2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Restrict execution to CLI for voip scripts

This commit is contained in:
Adam Zammit
2015-08-14 15:34:19 +10:00
parent c91a7082d6
commit cd41038ee9
3 changed files with 13 additions and 1 deletions

View File

@@ -29,6 +29,11 @@
*
*/
if (php_sapi_name() !== "cli")
{
die();
}
/**
* Configuration file
*/