mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
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()
|
||||
{
|
||||
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…
Reference in a new issue