本文整理匯總了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";