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:
@@ -1,4 +1,5 @@
|
|||||||
<?php /**
|
<?php
|
||||||
|
/**
|
||||||
* Download VoIP client on an operator by operator basis
|
* Download VoIP client on an operator by operator basis
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -29,6 +29,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (php_sapi_name() !== "cli")
|
||||||
|
{
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration file
|
* Configuration file
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -30,6 +30,12 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (php_sapi_name() !== "cli")
|
||||||
|
{
|
||||||
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VoIP functions
|
* VoIP functions
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user