Exemple #1
0
     break;
 case "create_sms_config":
     $json = $_REQUEST['param'];
     $param = parse_url($json);
     $query = explode("&", $param['query']);
     foreach ($query as $element) {
         $buff = explode("=", $element);
         if ($buff[0] == "a") {
             $sms->params["sms_instance_id"] = $buff[1];
         } elseif ($buff[0] == "n") {
             $sms->params["domain_name"] = $buff[1];
         }
     }
     $sms->params["sugartalk_url"] = $sms->sms_center;
     $sms->params["sender"] = "sugartalk";
     $sms->save_settings();
     break;
 case "load_mod_fields":
     if (isset($_GET["m"])) {
         if ($_GET["m"] == '') {
             echo "<em>-Пожалуйста, выберите модуль-</em>";
         } else {
             require_once "modules/Administration/sugartalk_smsPhone/sms_enzyme.php";
             $e = new sms_enzyme($_GET["m"]);
             echo $e->load_module_fields('macro_field', 'select');
         }
     }
     break;
 case "macro":
     require_once "modules/Administration/sugartalk_smsPhone/sms_enzyme.php";
     include_once "modules/Administration/sugartalk_smsPhone/smsPhone.js.php";