Revision 64ec1ddf
Added by Scott Ullrich over 14 years ago
usr/local/www/guiconfig.inc | ||
---|---|---|
34 | 34 |
|
35 | 35 |
/* Include authentication routines */ |
36 | 36 |
/* THIS MUST BE ABOVE ALL OTHER CODE */ |
37 |
function csrf_startup() { |
|
38 |
csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); |
|
37 |
if(!$nocsrf) { |
|
38 |
function csrf_startup() { |
|
39 |
csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); |
|
40 |
} |
|
41 |
require_once("csrf/csrf-magic.php"); |
|
39 | 42 |
} |
40 |
require_once("csrf/csrf-magic.php"); |
|
41 | 43 |
require_once("authgui.inc"); |
42 | 44 |
|
43 | 45 |
/* make sure nothing is cached */ |
Also available in: Unified diff
Add nocsrf flag