本文整理匯總了PHP中sms::get_site_info方法的典型用法代碼示例。如果您正苦於以下問題:PHP sms::get_site_info方法的具體用法?PHP sms::get_site_info怎麽用?PHP sms::get_site_info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sms
的用法示例。
在下文中一共展示了sms::get_site_info方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
case 'display_send_ui':
/* 檢查權限 */
admin_priv('sms_send');
if ($sms->has_registered()) {
$smarty->assign('ur_here', $_LANG['03_sms_send']);
$special_ranks = get_rank_list();
$send_rank['1_0'] = $_LANG['user_list'];
foreach ($special_ranks as $rank_key => $rank_value) {
$send_rank['2_' . $rank_key] = $rank_value;
}
assign_query_info();
$smarty->assign('send_rank', $send_rank);
$smarty->display('sms_send_ui.htm');
} else {
$smarty->assign('ur_here', $_LANG['register_sms']);
$smarty->assign('sms_site_info', $sms->get_site_info());
assign_query_info();
$smarty->display('sms_register_ui.htm');
}
break;
/* 發送短信 */
/* 發送短信 */
case 'send_sms':
$send_num = isset($_POST['send_num']) ? $_POST['send_num'] : '';
if (isset($send_num)) {
$phone = $send_num . ',';
}
$send_rank = isset($_POST['send_rank']) ? $_POST['send_rank'] : 0;
if ($send_rank != 0) {
$rank_array = explode('_', $send_rank);
if ($rank_array['0'] == 1) {