mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Moved session_start() before includes
This commit is contained in:
parent
f92b7ebcf3
commit
c1fab759e4
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
|||
* @see http://sirlagz.net/2013/02/08/raspap-webgui/
|
||||
*/
|
||||
|
||||
session_start();
|
||||
|
||||
include_once( 'includes/config.php' );
|
||||
include_once( RASPI_CONFIG.'/raspap.php' );
|
||||
include_once( 'includes/locale.php');
|
||||
|
@ -35,7 +37,6 @@ include_once( 'includes/themes.php' );
|
|||
$output = $return = 0;
|
||||
$page = $_GET['page'];
|
||||
|
||||
session_start();
|
||||
if (empty($_SESSION['csrf_token'])) {
|
||||
if (function_exists('mcrypt_create_iv')) {
|
||||
$_SESSION['csrf_token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));
|
||||
|
|
Loading…
Reference in a new issue