This should fix #193
This commit is contained in:
parent
83d9dc9f69
commit
667fa78aab
3 changed files with 39 additions and 29 deletions
|
@ -77,6 +77,11 @@
|
||||||
|
|
||||||
function nt_auth_start_session()
|
function nt_auth_start_session()
|
||||||
{
|
{
|
||||||
|
global $NEL_SETUP_SESSION;
|
||||||
|
if (isset($NEL_SETUP_SESSION) && ($NEL_SETUP_SESSION)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
session_name(NELTOOL_SESSIONID);
|
session_name(NELTOOL_SESSIONID);
|
||||||
session_cache_limiter('nocache');
|
session_cache_limiter('nocache');
|
||||||
session_start();
|
session_start();
|
||||||
|
@ -90,6 +95,11 @@
|
||||||
|
|
||||||
function nt_auth_stop_session()
|
function nt_auth_stop_session()
|
||||||
{
|
{
|
||||||
|
global $NEL_SETUP_SESSION;
|
||||||
|
if (isset($NEL_SETUP_SESSION) && ($NEL_SETUP_SESSION)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
global $NELTOOL;
|
global $NELTOOL;
|
||||||
|
|
||||||
foreach($NELTOOL['SESSION_VARS'] as $key => $val)
|
foreach($NELTOOL['SESSION_VARS'] as $key => $val)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$NEL_SETUP_SESSION = true;
|
||||||
if (file_exists( '../config.php')) {
|
if (file_exists( '../config.php')) {
|
||||||
session_start();
|
|
||||||
if ((!isset($_SESSION['nelSetupAuthenticated'])) || $_SESSION['nelSetupAuthenticated'] != 1) {
|
if ((!isset($_SESSION['nelSetupAuthenticated'])) || $_SESSION['nelSetupAuthenticated'] != 1) {
|
||||||
if (basename($_SERVER["SCRIPT_NAME"]) != "auth.php") {
|
if (basename($_SERVER["SCRIPT_NAME"]) != "auth.php") {
|
||||||
header("Cache-Control: max-age=1");
|
header("Cache-Control: max-age=1");
|
||||||
|
|
|
@ -24,9 +24,9 @@ include('header.php');
|
||||||
<a class="btn btn-default" style="width: 100%;" href="domain.php"><span class="glyphicon glyphicon-globe"></span> Add Domain</a>
|
<a class="btn btn-default" style="width: 100%;" href="domain.php"><span class="glyphicon glyphicon-globe"></span> Add Domain</a>
|
||||||
</p>-->
|
</p>-->
|
||||||
|
|
||||||
<p>
|
<!--<p>
|
||||||
<a class="btn btn-default" style="width: 100%;" href="upgrade.php"><span class="glyphicon glyphicon-tower"></span> Add Shard</a>
|
<a class="btn btn-default" style="width: 100%;" href="upgrade.php"><span class="glyphicon glyphicon-tower"></span> Add Shard</a>
|
||||||
</p>
|
</p>-->
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue