This should fix #193

hg/feature/cdb-packed
kaetemi 10 years ago
parent 83d9dc9f69
commit 667fa78aab

@ -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)

@ -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");

@ -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 } ?>

Loading…
Cancel
Save