This should fix #193

This commit is contained in:
kaetemi 2014-09-06 20:56:06 +02:00
parent 83d9dc9f69
commit 667fa78aab
3 changed files with 39 additions and 29 deletions

View file

@ -77,6 +77,11 @@
function nt_auth_start_session()
{
global $NEL_SETUP_SESSION;
if (isset($NEL_SETUP_SESSION) && ($NEL_SETUP_SESSION)) {
return;
}
session_name(NELTOOL_SESSIONID);
session_cache_limiter('nocache');
session_start();
@ -90,6 +95,11 @@
function nt_auth_stop_session()
{
global $NEL_SETUP_SESSION;
if (isset($NEL_SETUP_SESSION) && ($NEL_SETUP_SESSION)) {
return;
}
global $NELTOOL;
foreach($NELTOOL['SESSION_VARS'] as $key => $val)

View file

@ -1,7 +1,7 @@
<?php
$NEL_SETUP_SESSION = true;
if (file_exists( '../config.php')) {
session_start();
if ((!isset($_SESSION['nelSetupAuthenticated'])) || $_SESSION['nelSetupAuthenticated'] != 1) {
if (basename($_SERVER["SCRIPT_NAME"]) != "auth.php") {
header("Cache-Control: max-age=1");

View file

@ -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>
</p>-->
<p>
<!--<p>
<a class="btn btn-default" style="width: 100%;" href="upgrade.php"><span class="glyphicon glyphicon-tower"></span> Add Shard</a>
</p>
</p>-->
<?php } ?>