Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 22 additions & 15 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,28 @@ function getHelp() {


switch ($service) {
case 'version':
header("Content-Type: text/plain");
echo $VERSION;
exit;
case 'help':
header("Content-Type: text/plain");
getHelp();
break;
case 'phpinfo':
echo phpinfo();
break;
case 'serverinfo':
echo getServerInfo();
break; default:
call_service($service);
case 'version':
header("Content-Type: text/plain");
echo $VERSION;
exit;
case 'help':
header("Content-Type: text/plain");
getHelp();
break;
case 'phpinfo':
//echo phpinfo();
//break;
case 'serverinfo':
//echo getServerInfo();
//break;
case 'disabled':
echo "This call is disabled for security reasons. " .
"See <a href=\"https://github.com/guifi/snpservices/issues/6\">" .
"https://github.com/guifi/snpservices/issues/6</a> " .
"for more details.";
break;
default:
call_service($service);
}


Expand Down