Refactor [su_ajax|admin_cmd|api_webhook] methods into single /api/ interface
This commit is contained in:
18
www/commands/extendedgitgraph_status.php
Normal file
18
www/commands/extendedgitgraph_status.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
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']] = '';
|
||||
}
|
||||
|
||||
if (key_exists($CONFIG['extendedgitgraph']['session_var'], $_SESSION))
|
||||
echo $_SESSION[$CONFIG['extendedgitgraph']['session_var']];
|
||||
else
|
||||
echo '[[ NO SESSION STARTED ]]';
|
||||
|
||||
|
||||
return;
|
||||
Reference in New Issue
Block a user