1
0

extendedgitgraph -- test

This commit is contained in:
Mike Schwörer 2019-12-29 00:06:32 +01:00
parent 6e895484d7
commit 0d0b8f64b1

View File

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