Update exec.php
This commit is contained in:
parent
4f96412470
commit
9e9539c3ab
|
|
@ -26,10 +26,13 @@
|
|||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
//includes
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('operator_panel_view')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -55,27 +58,6 @@ else {
|
|||
$username = $_SESSION['username'];
|
||||
}
|
||||
|
||||
//authorized commands
|
||||
// if (stristr($switch_cmd, '&uuid=') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($switch_cmd, 'uuid_kill') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($switch_cmd, 'uuid_transfer') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($switch_cmd, 'uuid_record') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($action, 'user_status') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($action, 'callcenter_config') == true) {
|
||||
// //authorized;
|
||||
// } elseif (stristr($action, 'originate') == true) {
|
||||
// //authorized;
|
||||
// } else {
|
||||
// //not found. this command is not authorized
|
||||
// echo "access denied";
|
||||
// exit;
|
||||
// }
|
||||
|
||||
if (count($_GET) >0) {
|
||||
|
||||
//setup the event socket connection
|
||||
|
|
|
|||
Loading…
Reference in New Issue