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 (isset($_GET['clear']))
{
if (key_exists($CONFIG['extendedgitgraph']['session_var'], $_SESSION)) $_SESSION[$CONFIG['extendedgitgraph']['session_var']] = '';
}
$svar = $CONFIG['extendedgitgraph']['session_var'];
if (key_exists($CONFIG['extendedgitgraph']['session_var'], $_SESSION))
echo $_SESSION[$CONFIG['extendedgitgraph']['session_var']];
if (isset($_GET['clear'])) if (key_exists($svar, $_SESSION)) $_SESSION[$svar] = '';
if (key_exists($svar, $_SESSION))
{
if ($_SESSION[$svar] === '') echo '[[ NO OUTPUT ]]';
else echo $_SESSION[$svar] === '';
}
else
{
echo '[[ NO SESSION STARTED ]]';
}
return;