Пример #1
0
 //
 //        if ($result === true)//注销成功
 //        {
 //            sys_msg($_LANG['disable_ok'], 0, $link);
 //        }
 //        else
 //        {
 //            sys_msg($_LANG['disable_error'], 1, $link);
 //        }
 //
 //        break;
 /* 显示短信发送界面,如果尚未注册或启用短信服务则显示注册界面。 */
 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');
     }