本文整理汇总了PHP中sms::save_settings方法的典型用法代码示例。如果您正苦于以下问题:PHP sms::save_settings方法的具体用法?PHP sms::save_settings怎么用?PHP sms::save_settings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sms
的用法示例。
在下文中一共展示了sms::save_settings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: explode
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";