示例#1
0
             $smarty->assign('end_date', $end_date);
             assign_query_info();
             $smarty->display('sms_charge_history.htm');
         } else {
             $link[] = array('text' => $_LANG['back_charge_history'], 'href' => 'sms.php?act=display_charge_history_ui');
             @($error_detail = $_LANG['server_errors'][$sms->errors['server_errors']['error_no']] . $_LANG['api_errors']['get_history'][$sms->errors['api_errors']['error_no']]);
             sys_msg($_LANG['history_query_error'] . $error_detail, 1, $link);
         }
     }
     break;
     /* 显示我的短信服务个人信息 */
 /* 显示我的短信服务个人信息 */
 default:
     /* 检查权限 */
     admin_priv('my_info');
     $sms_my_info = $sms->get_my_info();
     if (!$sms_my_info) {
         $link[] = array('text' => $_LANG['back'], 'href' => './');
         sys_msg($_LANG['empty_info'], 1, $link);
     }
     if (!$sms_my_info['sms_user_name']) {
         $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');
     } else {
         /* 立即更新短信特服信息 */
         $sms->restore($sms_my_info['sms_user_name'], $sms_my_info['sms_password']);
         /* 再次获取个人数据,保证显示的数据是最新的 */
         $sms_my_info = $sms->get_my_info();
         //这里不再进行判空处理,主要是因为如果前个式子不出错,这里一般不会出错