Commit 871a3251 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) issue in cleanup guiconfig.inc

parent bb991b41
...@@ -28,18 +28,18 @@ ...@@ -28,18 +28,18 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
require_once("config.inc"); require_once("config.inc");
require_once("csrf/csrf-magic.php");
require_once("util.inc"); require_once("util.inc");
/* Include authentication routines */ /* Include authentication routines */
/* THIS MUST BE ABOVE ALL OTHER CODE */ /* THIS MUST BE ABOVE ALL OTHER CODE */
if(isset($nocsrf) && !$nocsrf) { if(empty($nocsrf)) {
function csrf_startup() { function csrf_startup() {
csrf_conf('rewrite-js', '/csrf/csrf-magic.js'); csrf_conf('rewrite-js', '/csrf/csrf-magic.js');
$timeout_minutes = isset($config['system']['webgui']['session_timeout']) ? $config['system']['webgui']['session_timeout'] : 240; $timeout_minutes = isset($config['system']['webgui']['session_timeout']) ? $config['system']['webgui']['session_timeout'] : 240;
csrf_conf('expires', $timeout_minutes * 60); csrf_conf('expires', $timeout_minutes * 60);
} }
require_once("csrf/csrf-magic.php");
} }
function set_language($lang) function set_language($lang)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment