Restrict execution to CLI for voip scripts

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

No files matched your search

+6
View File
@@ -30,6 +30,12 @@
*
*/
if (php_sapi_name() !== "cli")
{
die();
}
/**
* VoIP functions
*/