extendedgitgraph -- test
This commit is contained in:
parent
6e895484d7
commit
0d0b8f64b1
@ -4,15 +4,19 @@ global $CONFIG;
|
|||||||
|
|
||||||
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
|
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
|
||||||
|
|
||||||
if (isset($_GET['clear']))
|
$svar = $CONFIG['extendedgitgraph']['session_var'];
|
||||||
{
|
|
||||||
if (key_exists($CONFIG['extendedgitgraph']['session_var'], $_SESSION)) $_SESSION[$CONFIG['extendedgitgraph']['session_var']] = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (key_exists($CONFIG['extendedgitgraph']['session_var'], $_SESSION))
|
if (isset($_GET['clear'])) if (key_exists($svar, $_SESSION)) $_SESSION[$svar] = '';
|
||||||
echo $_SESSION[$CONFIG['extendedgitgraph']['session_var']];
|
|
||||||
|
if (key_exists($svar, $_SESSION))
|
||||||
|
{
|
||||||
|
if ($_SESSION[$svar] === '') echo '[[ NO OUTPUT ]]';
|
||||||
|
else echo $_SESSION[$svar] === '';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
echo '[[ NO SESSION STARTED ]]';
|
echo '[[ NO SESSION STARTED ]]';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
Loading…
Reference in New Issue
Block a user