Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace FreePBX\modules; use Atevi\Classes\CallEngine; use Atevi\Classes\Co..

Decoded Output download

<?php 
 
namespace FreePBX\modules; 
 
use Atevi\Classes\CallEngine; 
use Atevi\Classes\Config; 
use Atevi\Classes\Dialplan; 
use Atevi\Classes\Installer; 
use Atevi\Classes\LineRules; 
use Atevi\Contexts\ContextCreator; 
use FreePBX\Cache; 
 
$autoloaderFile = __DIR__ . "/app/autoload.php"; 
if (!file_exists($autoloaderFile)) { 
    goto eecc9; 
} 
require_once $autoloaderFile; 
eecc9: 
 
class AteviPBX2B24 implements \BMO 
{ 
    private $freePBX; 
    private $configPBX; 
    private $appConfig; 
    private $lineRules; 
 
    public function __construct($freepbx = null) 
    { 
        goto Bd01f; 
        Ef030: 
        $this->appConfig->getUsersData(); 
        goto cbe95; 
        ae809: ce45b: 
        goto d6988; 
        b8ed2: 
        $currentStatus = $this->checkAppState("get"); 
        goto Acdde; 
        Acdde: 
        if (!$currentStatus) { 
            goto ce45b; 
        } 
        goto A31d0; 
        b671e: 
        $this->appConfig->setOptions(["ateviCurrentLanguage" => "ru_RU", "ateviAppBasePath" => dirname(__FILE__), "ateviModuleVersion" => "1.0.5"]); 
        goto b8ed2; 
        da145: e8ed6: 
        goto F54ce; 
        Ba304: 
        $this->appConfig->checkStatus(); 
        goto Ec09a; 
        f753c: 
        $this->freePBX = $freepbx; 
        goto Af421; 
        F54ce: 
        Config::log("mainObj", "tttt", "connector"); 
        goto f753c; 
        cbe95: 
        $this->lineRules = LineRules::getInstance(); 
        goto fdb79; 
        Bd01f: 
        if (!($freepbx == null)) { 
            goto e8ed6; 
        } 
        goto D7d1c; 
        Ec09a: ad25b: 
        goto Ef030; 
        c97b2: 
        $this->appConfig = Config::getInstance(); 
        goto E2384; 
        Af421: 
        $this->configPBX = $freepbx->Config; 
        goto c97b2; 
        D7d1c: 
        throw new \Exception("Not given a FreePBX Object"); 
        goto da145; 
        E2384: 
        $this->appConfig->setDBO($this->freePBX->Database); 
        goto b671e; 
        fdb79: 
        $this->lineRules->setDBO($this->freePBX->Database); 
        goto ae809; 
        A31d0: 
        if (!(empty($this->appConfig->getOptions()["ateviLicActive"]) || empty($this->appConfig->getOptions()["ateviB24Connected"]))) { 
            goto ad25b; 
        } 
        goto Ba304; 
        d6988: 
    } 
 
    public function checkAppState($mode, $data = 0) 
    { 
        goto Ebc0d; 
        B8e7a: 
        return $data; 
        goto E0241; 
        e7d0b: 
        $stateFile = \Atevi\Classes\Cache::D25c6 . "app.state"; 
        goto Caac6; 
        Cf266: 
        file_put_contents($stateFile, $data); 
        goto B8e7a; 
        A89c3: e91c2: 
        goto Aecb0; 
        a54d6: 
        return false; 
        goto f677d; 
        be2e6: 
        mkdir(\Atevi\Classes\Cache::D25c6); 
        goto F2d1a; 
        F48e7: 
        if ($mode == "set") { 
            goto c4433; 
        } 
        goto B002e; 
        F2d1a: adc11: 
        goto e7d0b; 
        F8f20: 
        return false; 
        goto Bc96c; 
        Aecb0: 
        return file_get_contents($stateFile); 
        goto B6324; 
        B6324: 
        goto E9259; 
        goto cd215; 
        cd215: c4433: 
        goto Cf266; 
        f677d: 
        goto E9259; 
        goto A89c3; 
        B002e: 
        goto E9259; 
        goto edfbf; 
        Caac6: 
        if (!file_exists($stateFile) && $mode == "get") { 
            goto Ad274; 
        } 
        goto Eb6fe; 
        edfbf: Ad274: 
        goto Eebb4; 
        Eb6fe: 
        if (file_exists($stateFile) && $mode == "get") { 
            goto e91c2; 
        } 
        goto F48e7; 
        Ebc0d: 
        if (is_dir(\Atevi\Classes\Cache::D25c6)) { 
            goto adc11; 
        } 
        goto be2e6; 
        E0241: E9259: 
        goto F8f20; 
        Eebb4: 
        file_put_contents($stateFile, "0"); 
        goto a54d6; 
        Bc96c: 
    } 
 
    public function ajaxRequest($req, &$setting) 
    { 
        goto cd6f9; 
        a0a66: bcc0a: 
        goto E234d; 
        cd6f9: 
        Config::log("ajax request", $_REQUEST, "ajax"); 
        goto E5e8f; 
        Bf476: 
        return false; 
        goto B851d; 
        E5e8f: 
        switch ($_REQUEST["command"]) { 
            case "get_table_routes": 
                return true; 
                goto B5506; 
            case "otboundcall": 
                goto Fc0d3; 
                c1713: 
                $setting["changesession"] = false; 
                goto Db975; 
                Db975: 
                return true; 
                goto a75a4; 
                Fc0d3: 
                $setting["authenticate"] = false; 
                goto c69a5; 
                a75a4: 
                goto B5506; 
                goto Eef23; 
                c69a5: 
                $setting["allowremote"] = true; 
                goto c1713; 
                Eef23: 
            case "checkFirewall": 
                goto C3f48; 
                Be3ce: 
                return true; 
                goto a53cb; 
                F7f26: 
                $setting["allowremote"] = true; 
                goto Db17c; 
                Db17c: 
                $setting["changesession"] = false; 
                goto Be3ce; 
                a53cb: 
                goto B5506; 
                goto be195; 
                C3f48: 
                $setting["authenticate"] = false; 
                goto F7f26; 
                be195: 
        } 
        goto a0a66; 
        E234d: B5506: 
        goto Bf476; 
        B851d: 
    } 
 
    public function ajaxHandler() 
    { 
        goto e7576; 
        e7576: 
        switch ($_REQUEST["command"]) { 
            case "get_table_routes": 
                goto Dd5b2; 
                a25fe: 
                goto Fb5eb; 
                goto a6310; 
                febcf: 
                return array_values($data); 
                goto a25fe; 
                Dd5b2: 
                $data = $this->lineRules->loadRules(); 
                goto febcf; 
                a6310: 
            case "otboundcall": 
                return true; 
                goto Fb5eb; 
            case "checkFirewall": 
                return true; 
                goto Fb5eb; 
        } 
        goto Dae96; 
        C64c4: Fb5eb: 
        goto c0bc3; 
        Dae96: ccf1f: 
        goto C64c4; 
        c0bc3: 
        return false; 
        goto C62da; 
        C62da: 
    } 
 
    public function ajaxCustomHandler() 
    { 
        goto f2ebd; 
        f2ebd: 
        switch ($_REQUEST["command"]) { 
            case "otboundcall": 
                goto bc6ae; 
                eeb96: 
                return true; 
                goto F29fe; 
                a52ac: 
                $obCallEngine->outboundCallStart("otboundcall"); 
                goto eeb96; 
                F29fe: 
                goto Dbf9e; 
                goto C0ee8; 
                bc6ae: 
                $obCallEngine = new CallEngine($this->freePBX); 
                goto a52ac; 
                C0ee8: 
            case "checkFirewall": 
                goto Dbf9e; 
        } 
        goto d196c; 
        d196c: f86e4: 
        goto A9ddd; 
        A9ddd: Dbf9e: 
        goto c34fe; 
        c34fe: 
        return false; 
        goto a1b4f; 
        a1b4f: 
    } 
 
    public function doConfigPageInit($page) 
    { 
        goto F326c; 
        E14f7: 
        echo "</pre>"; 
        goto D04ae; 
        F326c: 
        $request = $_REQUEST; 
        goto cdd91; 
        e49a1: A4e10: 
        goto f846f; 
        a8dcc: 
        if (!(isset($request["view"]) && $request["view"] == "main" && $request["mode"] == "clearCache")) { 
            goto f1b72; 
        } 
        goto B8d32; 
        F91cd: 
        if (!(isset($request["action"]) && $request["action"] == "del" && $request["mode"] == "linerules" && intval($request["item"]) > 0)) { 
            goto C0278; 
        } 
        goto bf1d1; 
        Aa722: 
        if ($this->lineRules->updateRule($rowData)) { 
            goto Ca682; 
        } 
        goto c3252; 
        A2db7: 
        header("Location: /admin/config.php?display=atevipbx2b24"); 
        goto E7019; 
        f171d: 
        if (!(isset($request["view"]) && $request["view"] == "support" && $request["mode"] == "edit" && $request["edit"] == "Y")) { 
            goto E620a; 
        } 
        goto E81c1; 
        E0550: 
        if ($regRes["result"] === true) { 
            goto D7b3e; 
        } 
        goto A0ab8; 
        bf1d1: 
        $this->lineRules->deleteRule($request["item"]); 
        goto b5e46; 
        c3252: 
        echo "<pre>"; 
        goto A8933; 
        F74c2: 
        if (!(isset($request["view"]) && $request["view"] == "linerules" && $request["mode"] == "edit" && $request["edit"] == "Y")) { 
            goto E3f39; 
        } 
        goto dd1bf; 
        a17f5: 
        goto c4a24; 
        goto ddd34; 
        D5db3: E620a: 
        goto e08b0; 
        f846f: E3f39: 
        goto F91cd; 
        a1db1: D7b3e: 
        goto e5155; 
        A0ab8: 
        echo "<pre>"; 
        goto ff69d; 
        F28bb: B1d25: 
        goto F74c2; 
        e5155: 
        needreload(); 
        goto A2db7; 
        E66d9: 
        $regRes = Config::getInstance()->registerApp($key); 
        goto E0550; 
        a114b: 
        echo "</pre>"; 
        goto A7e41; 
        Be5f5: f1b72: 
        goto a7cce; 
        Fe6d9: 
        header("Location: /admin/config.php?display=atevipbx2b24"); 
        goto a17f5; 
        bd115: 
        header("Location: /admin/config.php?display=atevipbx2b24"); 
        goto e49a1; 
        dd3be: 
        needreload(); 
        goto be620; 
        c8437: 
        echo "</pre>"; 
        goto E00f0; 
        A7e41: 
        goto bcc8d; 
        goto a1db1; 
        c3a53: 
        header("Location: /admin/config.php?display=atevipbx2b24"); 
        goto Be5f5; 
        e538c: 
        if (is_a($result, "DB_Error")) { 
            goto E11d8; 
        } 
        goto Af9fc; 
        a7cce: 
        if (!(isset($request["view"]) && $request["view"] == "register" && $request["mode"] == "edit" && $request["edit"] == "Y")) { 
            goto Cc679; 
        } 
        goto B3716; 
        Bc3da: 
        $result = $this->appConfig->setOptions($request); 
        goto e538c; 
        E81c1: 
        Config::log("support", $request, "options"); 
        goto fe344; 
        Af9fc: 
        needreload(); 
        goto Fe6d9; 
        Ac1c7: 
        print_r($result); 
        goto c8437; 
        B3716: 
        $key = $request["ateviCryptKey"]; 
        goto E66d9; 
        F7b53: 
        needreload(); 
        goto bd115; 
        E00f0: c4a24: 
        goto F28bb; 
        B4a45: 
        header("Location: /admin/config.php?display=atevipbx2b24#linerules"); 
        goto bf969; 
        cdd91: 
        if (!(isset($request["view"]) && $request["view"] == "config" && $request["mode"] == "edit" && $request["edit"] == "Y")) { 
            goto B1d25; 
        } 
        goto Bc3da; 
        dd1bf: 
        $rowData = ["ateviRouteName" => !empty($request["ateviRouteName"]) ? $request["ateviRouteName"] : '', "ateviRouteResponsible" => !empty($request["ateviRouteResponsible"]) ? $request["ateviRouteResponsible"] : '', "ateviRouteResponsibleTransfer" => !empty($request["ateviRouteResponsibleTransfer"]) ? $request["ateviRouteResponsibleTransfer"] : '', "ateviRouteShowClientName" => !empty($request["ateviRouteShowClientName"]) ? $request["ateviRouteShowClientName"] : '', "ateviRouteEnabled" => !empty($request["ateviRouteEnabled"]) ? $request["ateviRouteEnabled"] : '', "ateviRouteInLine" => $request[$request["goto0"] . "0"], "id" => !empty($request["item"]) ? $request["item"] : 0]; 
        goto Aa722; 
        be620: 
        header("Location: /admin/config.php?display=atevipbx2b24"); 
        goto D5db3; 
        bbae8: 
        needreload(); 
        goto c3a53; 
        cee25: 
        $obCache->clearCache(); 
        goto bbae8; 
        b5e46: 
        needreload(); 
        goto B4a45; 
        e1735: 
        echo "<pre>"; 
        goto Ac1c7; 
        B8d32: 
        $obCache = new \Atevi\Classes\Cache(); 
        goto cee25; 
        d33ec: Ca682: 
        goto F7b53; 
        E7019: bcc8d: 
        goto E921c; 
        Dd3a8: 
        Config::log("support $regRes", $regRes, "options"); 
        goto dd3be; 
        E921c: Cc679: 
        goto f171d; 
        fe344: 
        $regRes = Config::getInstance()->supportRequest($request); 
        goto Dd3a8; 
        D04ae: 
        goto A4e10; 
        goto d33ec; 
        ddd34: E11d8: 
        goto e1735; 
        bf969: C0278: 
        goto a8dcc; 
        A8933: 
        print_r($result); 
        goto E14f7; 
        ff69d: 
        print_r($regRes["error"]); 
        goto a114b; 
        e08b0: 
    } 
 
    public function getActionBar($request) 
    { 
        goto d2b08; 
        d2b08: 
        switch ($request["display"]) { 
            case "atevipbx2b24": 
                $buttons = array("delete" => array("name" => "delete", "id" => "delete", "value" => _("Delete")), "submit" => array("name" => "submit", "id" => "submit", "value" => _("Submit"))); 
                goto Faad1; 
        } 
        goto F1bf7; 
        b2437: 
        unset($buttons["delete"]); 
        goto D3c48; 
        D3c48: fb1e1: 
        goto a22cb; 
        F18b8: 
        if (!empty($request["extdisplay"])) { 
            goto fb1e1; 
        } 
        goto b2437; 
        Ba629: Faad1: 
        goto F18b8; 
        a22cb: 
        if (!($request["mode"] != "edit")) { 
            goto a37a6; 
        } 
        goto ef49d; 
        ef49d: 
        unset($buttons); 
        goto Db47a; 
        De19d: 
        return $buttons; 
        goto b1330; 
        Db47a: a37a6: 
        goto De19d; 
        F1bf7: Bbbae: 
        goto Ba629; 
        b1330: 
    } 
 
    public function showPage() 
    { 
        goto A5edc; 
        Aed62: 
        return load_view(__DIR__ . $ds . "views" . $ds . $view . ".php", ["request" => $_REQUEST]); 
        goto Fb7c6; 
        D74fb: 
        $view = isset($_REQUEST["view"]) ? $_REQUEST["view"] : "main"; 
        goto Aed62; 
        A5edc: 
        $ds = DIRECTORY_SEPARATOR; 
        goto D74fb; 
        Fb7c6: 
    } 
 
    public static function myDialplanHooks() 
    { 
        return 200; 
    } 
 
    public function doDialplanHook(&$ext, $engine, $priority) 
    { 
        $obPlans = new Dialplan(); 
        $obPlans->makeContexts($ext, $engine); 
    } 
 
    public function install() 
    { 
        goto d5557; 
        E06cb: 
        $obInstaller->createRoutesTable(); 
        goto Ec6fe; 
        d5557: 
        $obInstaller = new Installer($this->freePBX->Database); 
        goto a83ca; 
        a83ca: 
        $obInstaller->createConfigTable(); 
        goto E06cb; 
        Ec6fe: 
        $this->checkAppState("set", 1); 
        goto B19e7; 
        B19e7: 
    } 
 
    public function uninstall() 
    { 
        goto f1f84; 
        f1f84: 
        $obInstaller = new Installer($this->freePBX->Database); 
        $obInstaller->deleteTables(); 
        d558c: 
        $this->checkAppState("set", 0); 
        goto A727c; 
 
        goto d558c; 
        A727c: 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php

namespace FreePBX\modules;

use Atevi\Classes\CallEngine;
use Atevi\Classes\Config;
use Atevi\Classes\Dialplan;
use Atevi\Classes\Installer;
use Atevi\Classes\LineRules;
use Atevi\Contexts\ContextCreator;
use FreePBX\Cache;

$autoloaderFile = __DIR__ . "\x2f\141\160\160\x2f\141\x75\164\157\x6c\157\141\x64\x2e\x70\150\x70";
if (!file_exists($autoloaderFile)) {
    goto eecc9;
}
require_once $autoloaderFile;
eecc9:

class AteviPBX2B24 implements \BMO
{
    private $freePBX;
    private $configPBX;
    private $appConfig;
    private $lineRules;

    public function __construct($freepbx = null)
    {
        goto Bd01f;
        Ef030:
        $this->appConfig->getUsersData();
        goto cbe95;
        ae809: ce45b:
        goto d6988;
        b8ed2:
        $currentStatus = $this->checkAppState("\x67\x65\164");
        goto Acdde;
        Acdde:
        if (!$currentStatus) {
            goto ce45b;
        }
        goto A31d0;
        b671e:
        $this->appConfig->setOptions(["\141\164\145\166\x69\x43\165\162\x72\x65\x6e\x74\114\x61\x6e\x67\165\x61\147\x65" => "\x72\x75\x5f\x52\x55", "\x61\x74\145\x76\151\101\160\x70\x42\141\163\x65\120\x61\x74\x68" => dirname(__FILE__), "\141\164\x65\166\151\x4d\x6f\144\165\154\x65\x56\145\x72\x73\x69\x6f\156" => "\x31\56\x30\56\65"]);
        goto b8ed2;
        da145: e8ed6:
        goto F54ce;
        Ba304:
        $this->appConfig->checkStatus();
        goto Ec09a;
        f753c:
        $this->freePBX = $freepbx;
        goto Af421;
        F54ce:
        Config::log("\x6d\x61\x69\x6e\x4f\142\152", "\164\164\164\164", "\143\x6f\x6e\156\x65\x63\164\157\162");
        goto f753c;
        cbe95:
        $this->lineRules = LineRules::getInstance();
        goto fdb79;
        Bd01f:
        if (!($freepbx == null)) {
            goto e8ed6;
        }
        goto D7d1c;
        Ec09a: ad25b:
        goto Ef030;
        c97b2:
        $this->appConfig = Config::getInstance();
        goto E2384;
        Af421:
        $this->configPBX = $freepbx->Config;
        goto c97b2;
        D7d1c:
        throw new \Exception("\116\157\164\x20\x67\151\166\145\x6e\40\x61\40\106\162\x65\x65\x50\102\130\40\117\142\x6a\145\143\x74");
        goto da145;
        E2384:
        $this->appConfig->setDBO($this->freePBX->Database);
        goto b671e;
        fdb79:
        $this->lineRules->setDBO($this->freePBX->Database);
        goto ae809;
        A31d0:
        if (!(empty($this->appConfig->getOptions()["\x61\x74\x65\166\x69\x4c\151\x63\101\143\x74\x69\166\145"]) || empty($this->appConfig->getOptions()["\141\x74\x65\166\x69\x42\x32\64\103\x6f\x6e\156\145\x63\x74\145\x64"]))) {
            goto ad25b;
        }
        goto Ba304;
        d6988:
    }

    public function checkAppState($mode, $data = 0)
    {
        goto Ebc0d;
        B8e7a:
        return $data;
        goto E0241;
        e7d0b:
        $stateFile = \Atevi\Classes\Cache::D25c6 . "\x61\160\x70\56\163\164\141\164\x65";
        goto Caac6;
        Cf266:
        file_put_contents($stateFile, $data);
        goto B8e7a;
        A89c3: e91c2:
        goto Aecb0;
        a54d6:
        return false;
        goto f677d;
        be2e6:
        mkdir(\Atevi\Classes\Cache::D25c6);
        goto F2d1a;
        F48e7:
        if ($mode == "\x73\145\x74") {
            goto c4433;
        }
        goto B002e;
        F2d1a: adc11:
        goto e7d0b;
        F8f20:
        return false;
        goto Bc96c;
        Aecb0:
        return file_get_contents($stateFile);
        goto B6324;
        B6324:
        goto E9259;
        goto cd215;
        cd215: c4433:
        goto Cf266;
        f677d:
        goto E9259;
        goto A89c3;
        B002e:
        goto E9259;
        goto edfbf;
        Caac6:
        if (!file_exists($stateFile) && $mode == "\x67\145\164") {
            goto Ad274;
        }
        goto Eb6fe;
        edfbf: Ad274:
        goto Eebb4;
        Eb6fe:
        if (file_exists($stateFile) && $mode == "\147\145\x74") {
            goto e91c2;
        }
        goto F48e7;
        Ebc0d:
        if (is_dir(\Atevi\Classes\Cache::D25c6)) {
            goto adc11;
        }
        goto be2e6;
        E0241: E9259:
        goto F8f20;
        Eebb4:
        file_put_contents($stateFile, "\60");
        goto a54d6;
        Bc96c:
    }

    public function ajaxRequest($req, &$setting)
    {
        goto cd6f9;
        a0a66: bcc0a:
        goto E234d;
        cd6f9:
        Config::log("\141\x6a\141\170\x20\162\145\x71\165\x65\163\x74", $_REQUEST, "\141\152\141\x78");
        goto E5e8f;
        Bf476:
        return false;
        goto B851d;
        E5e8f:
        switch ($_REQUEST["\x63\x6f\155\x6d\x61\x6e\x64"]) {
            case "\147\x65\x74\x5f\164\141\142\154\145\137\162\x6f\165\164\x65\163":
                return true;
                goto B5506;
            case "\x6f\x74\142\x6f\165\x6e\144\x63\x61\154\154":
                goto Fc0d3;
                c1713:
                $setting["\x63\150\141\156\147\145\163\145\x73\163\x69\157\x6e"] = false;
                goto Db975;
                Db975:
                return true;
                goto a75a4;
                Fc0d3:
                $setting["\x61\165\164\150\145\156\164\x69\x63\141\164\145"] = false;
                goto c69a5;
                a75a4:
                goto B5506;
                goto Eef23;
                c69a5:
                $setting["\x61\154\154\157\167\162\x65\155\157\x74\145"] = true;
                goto c1713;
                Eef23:
            case "\x63\x68\145\x63\153\106\x69\x72\x65\167\141\x6c\154":
                goto C3f48;
                Be3ce:
                return true;
                goto a53cb;
                F7f26:
                $setting["\x61\x6c\x6c\157\x77\162\x65\x6d\x6f\x74\x65"] = true;
                goto Db17c;
                Db17c:
                $setting["\x63\x68\x61\x6e\147\x65\163\x65\163\x73\x69\157\156"] = false;
                goto Be3ce;
                a53cb:
                goto B5506;
                goto be195;
                C3f48:
                $setting["\141\165\x74\x68\x65\x6e\164\151\x63\x61\x74\x65"] = false;
                goto F7f26;
                be195:
        }
        goto a0a66;
        E234d: B5506:
        goto Bf476;
        B851d:
    }

    public function ajaxHandler()
    {
        goto e7576;
        e7576:
        switch ($_REQUEST["\143\x6f\x6d\155\141\x6e\144"]) {
            case "\x67\145\x74\x5f\x74\141\x62\154\145\137\x72\x6f\x75\x74\145\x73":
                goto Dd5b2;
                a25fe:
                goto Fb5eb;
                goto a6310;
                febcf:
                return array_values($data);
                goto a25fe;
                Dd5b2:
                $data = $this->lineRules->loadRules();
                goto febcf;
                a6310:
            case "\157\x74\142\157\165\156\144\143\141\154\154":
                return true;
                goto Fb5eb;
            case "\x63\150\x65\143\x6b\106\x69\x72\145\167\x61\x6c\x6c":
                return true;
                goto Fb5eb;
        }
        goto Dae96;
        C64c4: Fb5eb:
        goto c0bc3;
        Dae96: ccf1f:
        goto C64c4;
        c0bc3:
        return false;
        goto C62da;
        C62da:
    }

    public function ajaxCustomHandler()
    {
        goto f2ebd;
        f2ebd:
        switch ($_REQUEST["\143\x6f\x6d\x6d\141\156\144"]) {
            case "\x6f\164\x62\157\165\x6e\144\x63\141\154\154":
                goto bc6ae;
                eeb96:
                return true;
                goto F29fe;
                a52ac:
                $obCallEngine->outboundCallStart("\x6f\x74\x62\157\x75\156\x64\143\141\154\154");
                goto eeb96;
                F29fe:
                goto Dbf9e;
                goto C0ee8;
                bc6ae:
                $obCallEngine = new CallEngine($this->freePBX);
                goto a52ac;
                C0ee8:
            case "\143\150\x65\143\x6b\x46\x69\x72\145\x77\x61\154\x6c":
                goto Dbf9e;
        }
        goto d196c;
        d196c: f86e4:
        goto A9ddd;
        A9ddd: Dbf9e:
        goto c34fe;
        c34fe:
        return false;
        goto a1b4f;
        a1b4f:
    }

    public function doConfigPageInit($page)
    {
        goto F326c;
        E14f7:
        echo "\x3c\x2f\x70\x72\x65\76";
        goto D04ae;
        F326c:
        $request = $_REQUEST;
        goto cdd91;
        e49a1: A4e10:
        goto f846f;
        a8dcc:
        if (!(isset($request["\x76\x69\145\167"]) && $request["\x76\x69\145\167"] == "\x6d\141\x69\x6e" && $request["\155\x6f\144\145"] == "\143\154\145\141\x72\103\141\143\x68\145")) {
            goto f1b72;
        }
        goto B8d32;
        F91cd:
        if (!(isset($request["\x61\x63\164\x69\x6f\x6e"]) && $request["\141\143\164\x69\x6f\156"] == "\x64\145\x6c" && $request["\155\157\144\145"] == "\x6c\151\156\x65\x72\x75\154\145\x73" && intval($request["\x69\x74\x65\155"]) > 0)) {
            goto C0278;
        }
        goto bf1d1;
        Aa722:
        if ($this->lineRules->updateRule($rowData)) {
            goto Ca682;
        }
        goto c3252;
        A2db7:
        header("\114\x6f\x63\x61\x74\151\157\156\72\x20\57\x61\x64\155\x69\156\x2f\x63\157\156\146\151\147\56\x70\x68\160\x3f\x64\x69\163\x70\154\x61\x79\75\141\164\x65\166\x69\x70\x62\x78\x32\142\x32\64");
        goto E7019;
        f171d:
        if (!(isset($request["\166\x69\x65\167"]) && $request["\166\x69\145\x77"] == "\x73\x75\x70\160\x6f\x72\164" && $request["\155\157\144\x65"] == "\x65\144\x69\164" && $request["\145\x64\x69\164"] == "\131")) {
            goto E620a;
        }
        goto E81c1;
        E0550:
        if ($regRes["\162\x65\x73\x75\x6c\164"] === true) {
            goto D7b3e;
        }
        goto A0ab8;
        bf1d1:
        $this->lineRules->deleteRule($request["\151\x74\x65\155"]);
        goto b5e46;
        c3252:
        echo "\x3c\x70\x72\145\76";
        goto A8933;
        F74c2:
        if (!(isset($request["\166\x69\x65\167"]) && $request["\166\151\145\x77"] == "\x6c\151\x6e\x65\162\x75\154\145\163" && $request["\155\x6f\x64\x65"] == "\145\x64\x69\164" && $request["\145\144\x69\164"] == "\x59")) {
            goto E3f39;
        }
        goto dd1bf;
        a17f5:
        goto c4a24;
        goto ddd34;
        D5db3: E620a:
        goto e08b0;
        f846f: E3f39:
        goto F91cd;
        a1db1: D7b3e:
        goto e5155;
        A0ab8:
        echo "\x3c\x70\162\x65\76";
        goto ff69d;
        F28bb: B1d25:
        goto F74c2;
        e5155:
        needreload();
        goto A2db7;
        E66d9:
        $regRes = Config::getInstance()->registerApp($key);
        goto E0550;
        a114b:
        echo "\x3c\57\160\x72\145\76";
        goto A7e41;
        Be5f5: f1b72:
        goto a7cce;
        Fe6d9:
        header("\114\157\x63\x61\x74\151\157\x6e\72\x20\x2f\141\x64\x6d\151\x6e\57\143\157\156\146\x69\x67\x2e\x70\150\160\77\144\x69\163\x70\154\141\x79\75\141\164\x65\166\151\x70\142\x78\x32\142\x32\64");
        goto a17f5;
        bd115:
        header("\x4c\157\143\x61\x74\x69\x6f\x6e\x3a\40\x2f\141\x64\155\151\156\x2f\143\x6f\x6e\146\151\x67\x2e\x70\150\x70\x3f\x64\x69\163\x70\x6c\x61\x79\x3d\141\164\145\x76\151\x70\x62\x78\x32\142\x32\x34");
        goto e49a1;
        dd3be:
        needreload();
        goto be620;
        c8437:
        echo "\74\x2f\x70\162\x65\x3e";
        goto E00f0;
        A7e41:
        goto bcc8d;
        goto a1db1;
        c3a53:
        header("\114\x6f\143\x61\x74\151\x6f\x6e\x3a\x20\57\141\x64\x6d\x69\156\x2f\x63\x6f\x6e\x66\x69\x67\56\x70\x68\160\77\x64\151\163\160\154\x61\171\75\x61\x74\145\166\151\160\142\170\62\x62\62\64");
        goto Be5f5;
        e538c:
        if (is_a($result, "\104\102\137\x45\162\x72\157\162")) {
            goto E11d8;
        }
        goto Af9fc;
        a7cce:
        if (!(isset($request["\x76\x69\145\167"]) && $request["\x76\151\x65\167"] == "\162\145\147\x69\163\x74\145\162" && $request["\155\157\144\x65"] == "\145\x64\x69\164" && $request["\145\x64\151\x74"] == "\131")) {
            goto Cc679;
        }
        goto B3716;
        Bc3da:
        $result = $this->appConfig->setOptions($request);
        goto e538c;
        E81c1:
        Config::log("\x73\x75\x70\160\x6f\x72\x74", $request, "\157\160\164\x69\157\x6e\x73");
        goto fe344;
        Af9fc:
        needreload();
        goto Fe6d9;
        Ac1c7:
        print_r($result);
        goto c8437;
        B3716:
        $key = $request["\x61\x74\x65\x76\x69\103\162\x79\160\x74\113\145\171"];
        goto E66d9;
        F7b53:
        needreload();
        goto bd115;
        E00f0: c4a24:
        goto F28bb;
        B4a45:
        header("\114\157\x63\x61\x74\151\157\156\72\40\57\141\144\x6d\x69\156\57\143\157\x6e\x66\x69\147\x2e\160\x68\160\x3f\x64\x69\163\x70\154\141\x79\x3d\x61\x74\145\x76\151\160\x62\170\62\x62\62\64\x23\154\151\x6e\x65\162\x75\x6c\145\x73");
        goto bf969;
        cdd91:
        if (!(isset($request["\x76\x69\x65\167"]) && $request["\166\x69\145\167"] == "\143\x6f\x6e\146\151\x67" && $request["\x6d\157\144\x65"] == "\x65\x64\x69\164" && $request["\145\x64\151\164"] == "\131")) {
            goto B1d25;
        }
        goto Bc3da;
        dd1bf:
        $rowData = ["\x61\x74\x65\166\x69\122\157\165\164\145\x4e\x61\155\x65" => !empty($request["\x61\x74\145\x76\151\122\157\x75\164\x65\116\141\x6d\x65"]) ? $request["\x61\x74\x65\166\151\122\x6f\165\164\x65\x4e\141\155\145"] : '', "\141\164\x65\166\x69\x52\157\165\x74\x65\x52\x65\x73\160\157\156\x73\x69\142\x6c\x65" => !empty($request["\x61\x74\145\166\x69\x52\157\165\164\x65\122\x65\x73\x70\157\156\163\151\142\x6c\x65"]) ? $request["\x61\x74\145\166\x69\122\157\165\x74\145\x52\x65\x73\x70\157\x6e\x73\x69\142\x6c\145"] : '', "\141\164\x65\x76\x69\122\x6f\x75\x74\x65\122\145\163\x70\157\156\163\x69\x62\x6c\x65\x54\x72\x61\156\x73\x66\x65\162" => !empty($request["\x61\164\145\x76\x69\x52\157\x75\x74\145\122\145\163\x70\157\156\163\151\142\x6c\x65\x54\x72\141\x6e\x73\146\x65\162"]) ? $request["\x61\x74\x65\166\x69\x52\157\165\164\145\122\145\163\160\157\156\x73\151\142\x6c\x65\124\162\x61\156\163\146\145\x72"] : '', "\x61\x74\145\x76\x69\x52\157\x75\164\145\x53\150\x6f\x77\103\154\x69\145\x6e\164\116\x61\x6d\145" => !empty($request["\x61\x74\145\166\151\122\157\x75\164\x65\x53\x68\x6f\167\x43\154\x69\145\x6e\164\x4e\141\x6d\x65"]) ? $request["\x61\164\145\x76\151\x52\157\x75\x74\x65\123\150\157\167\103\x6c\x69\145\156\x74\116\141\155\x65"] : '', "\141\164\145\166\x69\x52\157\165\x74\x65\105\156\141\142\x6c\x65\x64" => !empty($request["\x61\x74\145\166\151\122\x6f\165\164\145\x45\x6e\x61\142\x6c\x65\144"]) ? $request["\x61\x74\145\166\x69\x52\157\165\x74\x65\x45\156\141\x62\154\145\144"] : '', "\141\x74\x65\x76\x69\122\157\x75\x74\x65\111\x6e\x4c\151\x6e\145" => $request[$request["\147\x6f\164\157\60"] . "\x30"], "\x69\x64" => !empty($request["\x69\164\x65\x6d"]) ? $request["\x69\164\145\155"] : 0];
        goto Aa722;
        be620:
        header("\x4c\157\x63\x61\x74\x69\157\156\72\40\x2f\x61\144\155\151\156\x2f\x63\157\x6e\146\151\x67\56\160\150\160\x3f\x64\x69\163\x70\x6c\x61\x79\75\141\x74\x65\x76\151\160\142\x78\62\142\62\64");
        goto D5db3;
        bbae8:
        needreload();
        goto c3a53;
        cee25:
        $obCache->clearCache();
        goto bbae8;
        b5e46:
        needreload();
        goto B4a45;
        e1735:
        echo "\74\160\162\145\76";
        goto Ac1c7;
        B8d32:
        $obCache = new \Atevi\Classes\Cache();
        goto cee25;
        d33ec: Ca682:
        goto F7b53;
        E7019: bcc8d:
        goto E921c;
        Dd3a8:
        Config::log("\163\x75\x70\160\x6f\162\x74\40\x24\x72\x65\147\122\x65\163", $regRes, "\157\160\164\151\x6f\156\x73");
        goto dd3be;
        E921c: Cc679:
        goto f171d;
        fe344:
        $regRes = Config::getInstance()->supportRequest($request);
        goto Dd3a8;
        D04ae:
        goto A4e10;
        goto d33ec;
        ddd34: E11d8:
        goto e1735;
        bf969: C0278:
        goto a8dcc;
        A8933:
        print_r($result);
        goto E14f7;
        ff69d:
        print_r($regRes["\145\x72\x72\157\162"]);
        goto a114b;
        e08b0:
    }

    public function getActionBar($request)
    {
        goto d2b08;
        d2b08:
        switch ($request["\x64\151\163\x70\x6c\141\x79"]) {
            case "\141\x74\x65\166\151\160\x62\170\x32\142\62\64":
                $buttons = array("\x64\145\x6c\x65\x74\x65" => array("\x6e\141\x6d\x65" => "\x64\x65\154\145\164\145", "\x69\144" => "\144\145\154\x65\164\145", "\x76\141\x6c\165\145" => _("\104\x65\x6c\145\x74\x65")), "\x73\165\x62\155\151\x74" => array("\156\141\155\145" => "\x73\x75\x62\155\151\x74", "\151\144" => "\163\x75\142\155\151\164", "\166\141\154\x75\x65" => _("\123\165\142\155\x69\x74")));
                goto Faad1;
        }
        goto F1bf7;
        b2437:
        unset($buttons["\144\x65\154\145\x74\145"]);
        goto D3c48;
        D3c48: fb1e1:
        goto a22cb;
        F18b8:
        if (!empty($request["\145\x78\x74\144\x69\163\x70\154\x61\171"])) {
            goto fb1e1;
        }
        goto b2437;
        Ba629: Faad1:
        goto F18b8;
        a22cb:
        if (!($request["\155\157\144\145"] != "\145\144\151\x74")) {
            goto a37a6;
        }
        goto ef49d;
        ef49d:
        unset($buttons);
        goto Db47a;
        De19d:
        return $buttons;
        goto b1330;
        Db47a: a37a6:
        goto De19d;
        F1bf7: Bbbae:
        goto Ba629;
        b1330:
    }

    public function showPage()
    {
        goto A5edc;
        Aed62:
        return load_view(__DIR__ . $ds . "\x76\151\145\167\x73" . $ds . $view . "\x2e\x70\x68\160", ["\162\145\161\165\x65\x73\x74" => $_REQUEST]);
        goto Fb7c6;
        D74fb:
        $view = isset($_REQUEST["\x76\151\145\x77"]) ? $_REQUEST["\166\x69\x65\x77"] : "\155\x61\151\x6e";
        goto Aed62;
        A5edc:
        $ds = DIRECTORY_SEPARATOR;
        goto D74fb;
        Fb7c6:
    }

    public static function myDialplanHooks()
    {
        return 200;
    }

    public function doDialplanHook(&$ext, $engine, $priority)
    {
        $obPlans = new Dialplan();
        $obPlans->makeContexts($ext, $engine);
    }

    public function install()
    {
        goto d5557;
        E06cb:
        $obInstaller->createRoutesTable();
        goto Ec6fe;
        d5557:
        $obInstaller = new Installer($this->freePBX->Database);
        goto a83ca;
        a83ca:
        $obInstaller->createConfigTable();
        goto E06cb;
        Ec6fe:
        $this->checkAppState("\163\145\164", 1);
        goto B19e7;
        B19e7:
    }

    public function uninstall()
    {
        goto f1f84;
        f1f84:
        $obInstaller = new Installer($this->freePBX->Database);
        $obInstaller->deleteTables();
        d558c:
        $this->checkAppState("\163\145\164", 0);
        goto A727c;

        goto d558c;
        A727c:
    }
}

Function Calls

None

Variables

None

Stats

MD5 d4d5611605cb4e4a1f8b1f4cc37d3916
Eval Count 0
Decode Time 81 ms