Пример #1
0
             @($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;
     /* 显示充值页面 */
 /* 显示充值页面 */
 case 'display_charge_ui':
     /* 检查权限 */
     admin_priv('sms_charge');
     if ($sms->has_registered()) {
         $smarty->assign('ur_here', $_LANG['04_sms_charge']);
         assign_query_info();
         $sms_charge = array();
         $sms_charge['charge_url'] = $sms->get_url('charge');
         $sms_charge['login_info'] = $sms->get_login_info();
         $smarty->assign('sms_charge', $sms_charge);
         $smarty->display('sms_charge_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 'display_charge_history_ui':
     /* 检查权限 */
     admin_priv('charge_history');
     if ($sms->has_registered()) {