} else { $msg .= "请查收短信"; } } sys_msg($msg, 0, array(), false); exit; case 'sense': $smarty->assign('ur_here', "敏感词汇"); $sms = new sms(); $smarty->assign('sense', implode("|", $sms->sense)); assign_query_info(); $smarty->display('sms_sense_info.htm'); exit; case 'update_sense': $sms = new sms(); $sms->getSmsKeys(); $sense = implode("|", $sms->sense); $sql = "update " . $ecs->table("sms_server") . " set sense='" . addslashes($sense) . "' where sms_server_id=" . $sms->sms_server_id; //mysql_like_quote $db->query($sql); $smarty->assign('sense', $sense); $smarty->assign('info', "更新成功!"); assign_query_info(); $smarty->display('sms_sense_info.htm'); exit; case 'statistics': $smarty->assign('ur_here', "短信统计"); $statics = array(); $sms = new sms(); $statics = array('total' => $sms->total, 'used' => $sms->used); $inf = $sms->getBalance();