1
0
www.mikescher.com/www/commands/extendedgitgraph_status.php

22 lines
405 B
PHP

<?php
global $CONFIG;
if (session_status() !== PHP_SESSION_ACTIVE) session_start();
$svar = $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;