求助phpmps 拼音伪静态 写法的写法

您所在位置: &
&nbsp&&nbsp&nbsp&&nbsp
PHPmps修改方法.doc 19页
本文档一共被下载:
次 ,您可全文免费在线阅读后下载本文档。
下载提示
1.本站不保证该用户上传的文档完整性,不预览、不比对内容而直接下载产生的反悔问题本站不予受理。
2.该文档所得收入(下载+内容+预览三)归上传者、原创者。
3.登录后可充值,立即自动返金币,充值渠道很便利
你可能关注的文档:
··········
··········
首先网站之前已经设置信息审核。 2、在后台审核一下有用信息。 3、在mysql管理页面运行sql命令:delete from `phpmps_info` where is_check=0 即可删除所有未审核的信息。
phpmps的黄页功能一直没怎么用,今天修改企业详细信息时发现修改后点击提交 原来的信息只剩30几个字了 比较郁闷,但是注册用户从前台修改却没问题,下面来说一下解决方法吧
找到admin/com.php 这个文件 打开查找 $introduce = cut_str($content,30);? 这段代码然后替换成 $introduce = $content? 关闭保存
接着找到 admin/templates/edit_com.htm 这个文件 打开查找
这段代码然后替换成
这样就大功告成了,哈哈……
phpmps2.1、2.2、2.3解决内容页不显示相关信息的方法这个问题一直纠结了我很久,因为相关信息是网站内链必不可少的东西。下面来说一下解决方法其实很简单
根目录找到view.php这个文件打开加在$seo['description'] = !empty($description) ? $description : cut_str(strip_tags($content),50);这行代码后面加
$match_info= get_info($catid,'','10','','date','15');
这一行代码就可以了。
嘿嘿是不是很简单呢
phpmps手机版自动跳转代码
发布:国平 | 发布时间: 日
找到index.php文件。在第一行插入以下代码:
phpmsp更改后台登陆地址的方法
1、ftp里将admin文件夹改成 想要的名
2、admin/include/
global.fun.php(65行) 和common(12行和21行) 的admin 改成 想要的名
PS:具体是第几行可能版本不同行数也不同,可以搜一下 看到admin 就改一下就ok了 ,怕有问题可以先备份一下就ok了。
不要怕错,怕错你就啥也做不好。
phpmps后台统计 同一个手机号和QQ出现次数的方法 这样可以看出同一个手机号发了多少条信息,有效防止中介等恶意发信息的行为。
方法 在后台目录学找到 info.php文件 搜索 editi
case 'edit':
$id = intval($_REQUEST['id']);
$sql = "SELECT * FROM {$table}info WHERE id = '$id'";
$info = $db->getrow($sql);
if(empty($info)){show('信息不存在','index.php');}
extract($info);
$sql = "SELECT * FROM {$table}info_image WHERE infoid = '$id' ";
$images = array();
$images = $db->getall($sql);
$up_img_count = count($images);
$img_count = 6-$up_img_
$postdate = date('Y年m月d日', $postdate);
$enddate ?= round(($enddate>0 ? ($enddate-time()) : '0')/(3600*24));
$is_pro = $is_pro > '0' ? date('Y-m-d', $is_pro) : '';
$is_top = $is_top > '0' ? date('Y-m-d', $is_top) : '';
$custom = cat_post_custom($catid,$id);
正在加载中,请稍后...
12页105页18页126页13页114页33页13页13页18页arrow_down.gif
arrow_down_o.gif
arrow_up.gif
arrow_up_o.gif
bgring.png
bg_repx_h.gif
closedfolder.gif
head_bg1.gif
menu_head_bg.gif
openedfolder.gif
spacer.gif
titlebar.gif
user_fold.gif
user_open.gif
add_about.htm
add_admin.htm
add_ads.htm
add_ads_place.htm
add_area.htm
add_article.htm
add_category.htm
add_com_cat.htm
add_custom.htm
add_fac.htm
add_flash.htm
add_help.htm
add_link.htm
add_nav.htm
add_pay.htm
add_type.htm
database.htm
edit_about.htm
edit_admin.htm
edit_ads.htm
edit_ads_place.htm
edit_area.htm
edit_article.htm
edit_category.htm
edit_com.htm
edit_com_cat.htm
edit_custom.htm
edit_fac.htm
edit_flash.htm
edit_help.htm
edit_info.htm
edit_link.htm
edit_member.htm
edit_nav.htm
edit_type.htm
list_about.htm
list_admin.htm
list_admin_log.htm
list_ads.htm
list_ads_place.htm
list_area.htm
list_article.htm
list_category.htm
list_com.htm
list_comment.htm
list_com_cat.htm
list_custom.htm
list_exchange.htm
list_fac.htm
list_flash.htm
list_help.htm
list_info.htm
list_link.htm
list_member.htm
list_nav.htm
list_pay.htm
list_report.htm
list_type.htm
list_ver.htm
modify.htm
payonline.htm
payonline_setting.htm
payonline_view.htm
replace.htm
set_config.htm
sitemap.htm
view_comment.htm
view_info.htm
flashimage
chkcode.png
flashplay.swf
active-bg.gif
calendar.css
dark-bg.gif
hover-bg.gif
menuarrow.gif
normal-bg.gif
rowhover-bg.gif
status-bg.gif
title-bg.gif
disablehandles.htc
showtableborders.htc
block_address.png
block_blockquote.png
block_div.png
block_h1.png
block_h2.png
block_h3.png
block_h4.png
block_h5.png
block_h6.png
block_p.png
block_pre.png
fck_anchor.gif
fck_flashlogo.gif
fck_hiddenfield.gif
fck_pagebreak.gif
fck_plugin.gif
fck_editorarea.css
fck_internal.css
fck_showtableborders_gecko.css
locked.gif
unlocked.gif
fck_dialog_common.css
spellchecker_net.gif
logo_fckeditor.gif
logo_fredck.gif
fck_docprops
fck_document_preview.html
fck_flash_preview.html
fck_image_preview.html
fck_select
fck_spellerpages
spellerpages
server-scripts
spellchecker.cfm
spellchecker.pl
blank.html
controls.html
spellchecker.html
spellerStyle.css
fck_template
template1.gif
template2.gif
template3.gif
fck_about.html
fck_anchor.html
fck_button.html
fck_checkbox.html
fck_colorselector.html
fck_docprops.html
fck_flash.html
fck_form.html
fck_hiddenfield.html
fck_image.html
fck_link.html
fck_listprop.html
fck_paste.html
fck_radiobutton.html
fck_replace.html
fck_select.html
fck_smiley.html
fck_source.html
fck_specialchar.html
fck_spellerpages.html
fck_table.html
fck_tablecell.html
fck_template.html
fck_textarea.html
fck_textfield.html
fck_dtd_test.html
filemanager
default.icon.gif
default.icon.gif
ButtonArrow.gif
Folder.gif
Folder32.gif
FolderOpened.gif
FolderOpened32.gif
FolderUp.gif
spacer.gif
browser.css
browser.html
frmactualfolder.html
frmcreatefolder.html
frmfolders.html
frmresourceslist.html
frmresourcetype.html
frmupload.html
connectors
angel_smile.gif
angry_smile.gif
broken_heart.gif
confused_smile.gif
cry_smile.gif
devil_smile.gif
embaressed_smile.gif
envelope.gif
lightbulb.gif
omg_smile.gif
regular_smile.gif
sad_smile.gif
shades_smile.gif
teeth_smile.gif
thumbs_down.gif
thumbs_up.gif
tounge_smile.gif
whatchutalkingabout_smile.gif
wink_smile.gif
anchor.gif
arrow_ltr.gif
arrow_rtl.gif
spacer.gif
dialog.sides.gif
dialog.sides.png
dialog.sides.rtl.png
sprites.gif
sprites.png
toolbar.arrowright.gif
toolbar.buttonarrow.gif
toolbar.collapse.gif
toolbar.end.gif
toolbar.expand.gif
toolbar.separator.gif
toolbar.start.gif
fck_dialog.css
fck_editor.css
fck_strip.gif
fckdebug.html
fckdialog.html
fckeditor.html
fckeditor.original.html
fckeditor.cfc
fckpackager.xml
fckstyles.xml
fcktemplates.xml
license.txt
ipdata.dat
gb-unicode.table
license.htm
phpmps.sql
explain.gif
explains.gif
inhibit.gif
onError.gif
onFocus.gif
onInit.gif
onLoad.gif
onValid.gif
validator.css
abuis_bg.gif
abuis_icon.gif
alert_ok.gif
all950bg2.gif
bg_960.png
bg_bro_03.gif
bg_com.gif
bg_line_tg_03.gif
bg_repeatX.png
bg_td_title.jpg
btn_02.gif
button2.jpg
card_down_bg.gif
card_normal_bg.gif
ca_hz_002.gif
centerPoi.gif
change_bg.gif
cj_bg_18.png
current_bg.gif
fabu2_03.png
fabu3_03.png
hd_320.png
hd_picBg_03.gif
headerbg.jpg
help2_08.gif
help_06.gif
help_11.gif
icon_3.gif
icon_arrow.gif
images.gif
indexloading.gif
index_07.png
kicon_03.gif
koubei_11.gif
koubei_bg.png
leftmenu_bg.gif
line_xu.gif
live_bg.png
live_close_bg.gif
live_new72_05.gif
live_new72_10.gif
live_new_10.gif
live_new_select.gif
live_new_select2.gif
live_open_bg.gif
login_1.gif
login_right_bg.png
login_top.gif
mbi_016.gif
menubox_bg.gif
navBg_06.gif
navBg_06.png
navJ2_03.png
navJ2_07.png
navJ_15.png
nav_bg_09.gif
news_list_bg.png
nid2_icon.gif
nid2_repeatX.gif
postcom.gif
qq_online.gif
repeatX2.png
rss_xml.gif
search.gif
sitelist_bg.gif
sjiao_1.gif
Template_bg.png
top_go.png
useCenter_icon.gif
user2_03.gif
user2_07.gif
user3_03.gif
userCenter_bg.gif
zhekouka_29.gif
article.css
category.css
com_view.css
siteinfo.css
useredit.css
article.htm
article_list.htm
bianmin.htm
call_info.htm
category-1.htm
category.htm
comment.htm
com_comment.htm
com_list.htm
com_post.htm
com_select.htm
com_view.htm
credit_rule.htm
edit_info.htm
edit_password.htm
footer.htm
get_password.htm
header.htm
help_list.htm
member.htm
member_check_email.htm
member_com.htm
member_editcom.htm
member_exchange.htm
member_info.htm
member_info_comment.htm
member_info_refer.htm
member_info_top.htm
member_left.htm
member_uc_avatar.htm
modify.htm
payconfirm.htm
payonline.htm
payreceive.htm
post_ok.htm
register.htm
reset_password.htm
search.htm
select.htm
category.htm
robots.txt
sitemap.xml
iis伪静态模块
httpd.parse.errors
mtbnotif.dll
Rewrite.dll
伪静态.txt
升级说明.txt
PHPMPS代码说明.doc
PHPMPS模板制作.doc
ucenter整合说明.doc
安装说明.txt
模板制作说明.doc
添加广告.doc
站外调用.txt
define('IN_PHPMPS', true);
require dirname(__FILE__) . '/include/common.php';
if($CFG['uc'])require PHPMPS_ROOT . 'include/uc.inc.php';
require PHPMPS_ROOT . 'include/json.class.php';
require PHPMPS_ROOT . 'include/pay.fun.php';
$act = $_REQUEST['act'] ? trim($_REQUEST['act']) : 'index';
$not_login = array('login','act_login','register','act_register','logout',
'ajax', 'get_password', 'reset_password', 'send_pwd_email', 'email_edit_password','credit_rule','receive', 'check_info_gold', 'delinfo', 'editinfo', 'updateinfo', 'report', 'comment');
$must_login = array('index','modify','act_modify', 'edit_password', 'act_edit_password', 'info','info_comment', 'payonline', 'confirm', 'send', 'exchange', 'gold', 'act_gold', 'com_comment', 'com_list', 'editcom', 'updatecom', 'delcom','refer', 'top', 'send_info_mail' );
if(empty($_userid)) {
if (!in_array($act, $not_login)) {
if (in_array($act, $must_login)) {
showmsg('请先登录', 'member.php?act=login&refer='.$PHP_URL);
showmsg('请不要提交非法请求!');
switch($act)
case 'index':
$seo['title'] = &会员中心&.' powered by phpmps';
$userinfo = member_info($_userid);
extract($userinfo);
$registertime = date('Y年m月d日', $registertime);
if(empty($email) || empty($qq) || empty($phone))$notice=1;
include template('member');
case 'login':
if(!empty($_userid)) {
showmsg(&你已经登录了&, &member.php&);
$verf = get_one_ver();
$refer = trim($_REQUEST['refer']);
$seo['title'] = &用户登录&;
include template('login');
case 'act_login':
if(!submitcheck('submit')) showmsg('提交错误');
$username = $_POST['username'] ? htmlspecialchars(trim($_POST['username'])) : '';
$password = $_POST['password'] ? trim($_POST['password']) : '';
$checkcode = $_POST['checkcode'] ? trim($_POST['checkcode']) : '';
$md5_password = MD5($password);
if(empty($username))showmsg(&用户名不能为空&);
if(empty($password))showmsg(&密码不能为空&);
//check_code($checkcode);
check_ver(intval($_REQUEST['vid']), trim($_REQUEST['answer']));
* 整合UCenter登录的思路
* 一. 首先查询UCenter有没有用户名为$username的用户,分以下两种情况:
1.如果没有,查询本地,如果本地有,则注册到UCenter,同时登陆
UCenter,登录失败则提示,如果成功,则到第二步
2.如果有,判断本地有没有此用户
(1).本地有,则更新本地用户的UCenter编号
(2).本地没有,则插入本地
二. 到这步,UCenter肯定是登陆成功了,然后同步登陆UCenter
if($CFG['uc']) {
/* UCenter有没有用户名为$username的用户 */
list($uid, $uc_username, $uc_password, $email) =
uc_call(&uc_user_login&, array($username, $password));
if($uid==-2) {
showmsg('密码错误');
/* 如果UCenter不存在此用户 */
if($uid==-1) {
/* 查询本地 */
$sql = &SELECT * FROM {$table}member WHERE username='$username' and password='$md5_password'&;
$user = $db-&getRow($sql);
/* 如果本地有 */
if($user['userid']&0) {
/* 注册到UCenter */
$uid = uc_call(&uc_user_register&, array($user['username'], $password, $user['email']));
/* 如果注册失败,则提示 */
if($uid&=0){showmsg('注册到ucenter失败');}
/* 如果注册成功,则更新用户UCenter编号 */
if($uid&0) {
$db-&query(&UPDATE {$table}member SET uid='$uid' WHERE userid='$user[userid]' &);
/* 登录UCenter */
list($uid, $uc_username, $uc_password, $email) =
uc_call(&uc_user_login&, array($username, $password));
if($uid&0) {
showmsg('同步登陆到UCenter失败');
if($uid&0) {
/* 查询本地是否有此用户 */
$userinfo = $db-&getOne(&select * from {$table}member where username='$username' and password='$md5_password' &);
/* 本地和UCenter都有此用户,更新本地用户的UCenter编号 */
if($userinfo && $userinfo['uid']!=$uid) {
$sql = &update {$table}member set uid='$uid' where userid='$userinfo[userid]'&;
$db-&query($sql);
/* 如果本地没有,插入本地 */
if($userinfo['userid']&=0) {
$ip = get_ip();
$regtime = $lastlogintime = time();
$sql = &insert into {$table}member (uid,username,email,password,registertime,registerip,lastlogintime) values ('$uid','$username','$email','$md5_password','$regtime','$ip','$lastlogintime')&;
$db-&query($sql);
$ucsynlogin = uc_call('uc_user_synlogin', array($uid));
if(login($username,$md5_password)) {
$credit_count = $db-&getOne(&select count(*) from {$table}pay_exchange where username='$username' and addtime&&.mktime(0,0,0).& and note='login' &);
if($credit_count & $CFG['max_login_credit']) {
if(!empty($CFG['login_credit'])) credit_add($username, $CFG['login_credit'],'login');
$url= $_REQUEST['refer'] ? $_REQUEST['refer'] : 'member.php';
showmsg(&登陆成功&, $url);
showmsg(&登录失败&,'member.php?act=login');
case 'logout':
if($CFG['uc']) {
$ucsynlogout = uc_call('uc_user_synlogout', array());
$link = &index.php&;
showmsg(&退出成功&,$link);
case 'register':
if($CFG['close_register'] == '1') showmsg('本站已关闭用户注册。');
if(!empty($_userid)) {
$link = &member.php?act=index&;
showmsg(&请退出后再进行该操作&, $link);
$ip = get_ip();
$postarea = getPostArea($ip);
onlyarea($postarea);
$verf = get_one_ver();
$mappoint = explode(',',$CFG[map]);
$seo['title'] = &会员注册&;
include template('register');
case 'act_register':
$ip = get_ip();
$postarea = getPostArea($ip);
onlyarea($postarea);
if(!submitcheck('submit')) showmsg('提交错误');
= $_POST['username'] ? htmlspecialchars(trim($_POST['username'])) : '';
= $_POST['password'] ? trim($_POST['password']) : '';
$repassword = $_POST['repassword'] ? trim($_POST['repassword']) : '';
= $_POST['email']?trim($_POST['email']):'';
$checkcode
= $_POST['checkcode']?trim($_POST['checkcode']):'';
$md5_password = MD5($password);
if(empty($username))showmsg(&用户名不能为空&);
if(empty($password))showmsg(&密码不能为空&);
if(empty($repassword))showmsg(&重复密码不能为空&);
if(empty($email))showmsg(&邮箱不能为空&);
if($password != $repassword)showmsg(&两次输入的密码不相同&);
if(!is_email($email))showmsg(&邮箱的格式不正确&);
//check_code($checkcode);
check_ver(intval($_REQUEST['vid']), trim($_REQUEST['answer']));
if($CFG['uc']){
查询本地是否有此用户,如果有,就应该到登陆的时候处理,登录的时候如果本地有,UCenter没有,插入UCenter。
$userid = $db-&getOne(&select userid from {$table}member where username='$username' &);
if($userid&0){
showmsg('已经存在此用户名');
//本地没有,则分别插入到Ucenter和Phpmps
$uid = uc_call(&uc_user_register&, array($username, $password, $email));
if($uid == -1) {
showmsg('用户名不合法');
} elseif($uid == -2) {
showmsg('包含要允许注册的词语');
} elseif($uid == -3) {
showmsg('用户名已经存在');
} elseif($uid == -4) {
showmsg('Email 格式有误');
} elseif($uid == -5) {
showmsg('Email 不允许注册');
} elseif($uid == -6) {
showmsg('该 Email 已经被注册');
$regtime = $lastlogintime = time();
$sql = &insert into {$table}member (uid,username,email,password,registertime,registerip,lastlogintime) values ('$uid','$username','$email','$md5_password','$regtime','$ip','$lastlogintime')&;
$res = $db-&query($sql);
if(empty($res)) {
if(register($username,$md5_password,$email)) {
if(!empty($CFG['register_credit']))credit_add($_SESSION['username'], $CFG['register_credit'],'register');
$link='member.php';
showmsg(&注册成功&,$link);
$link = &member.php?act=register&;
showmsg(&注册失败&,$link);
login($username, $md5_password);
showmsg('注册成功', 'member.php');
case 'modify':
$mappoint = explode(',',$CFG['map']);
$userinfo = member_info($_userid);
$seo['title'] = &修改会员资料&;
include template('modify');
case 'act_modify':
= $_POST['phone'] ? trim($_POST['phone']) : '';
= $_POST['qq'] ? intval($_POST['qq']) : '';
= $_POST['address'] ? trim($_POST['address']) : '';
$mappoint = $_POST['mappoint'] ? trim($_POST['mappoint']) : '';
= $_SESSION['userid'];
$username = $_SESSION['username'] ? trim($_SESSION['username']) : '';
= trim($_POST['email']);
if($CFG['uc']) {
$result = uc_call(&uc_user_edit&, array($username, '', '', $email, '1'));
if($result == -4) {
showmsg('Email 格式有误');
} elseif($result == -5) {
showmsg('Email 不允许注册');
} elseif($result == -6) {
showmsg('该 Email 已经被注册');
$sql = &update {$table}member set
phone = '$phone',
qq = '$qq',
address = '$address',
mappoint = '$mappoint',
email = '$email'
where userid='$_userid' and username='$username' &;
$res = $db-&query($sql);
showmsg('修改资料成功', 'member.php?act=modify');
case 'edit_password':
$seo['title'] = '修改密码';
include template('edit_password');
case 'act_edit_password':
$oldpassword = $_POST['oldpassword'] ? trim($_POST['oldpassword']) : '';
$password = $_POST['password'] ? trim($_POST['password']) : '';
$repassword = $_POST['repassword'] ? trim($_POST['repassword']) : '';
if(empty($oldpassword) && !empty($password))showmsg('请输入旧密码!');
if($password && $repassword && $password!=$repassword)showmsg('两次输入的密码不一致!');
$sql = &SELECT password FROM {$table}member WHERE userid='$_userid' LIMIT 1&;
if(MD5($oldpassword) != $db-&getOne($sql))showmsg('旧密码输入错误');
$password = MD5($password);
$query = $db-&query(&UPDATE {$table}member SET password='$password' WHERE userid='$_userid' &);
if($CFG['uc']) {
$username = $_
$old_password = $
$new_password = $
$result = uc_call(&uc_user_edit&, array($username, $old_password, $new_password, '1'));
if($result == -1) {
showmsg('旧密码不正确');
showmsg('密码修改成功!','member.php?act=edit_password');
case 'ajax':
$json = new Services_JSON;
switch($_REQUEST['type'])
case 'username':
$username = trim($_REQUEST['username']);
$sql = &SELECT count(*) FROM {$table}member WHERE username='$username'&;
$count = $db-&getOne($sql);
if($CFG['uc'])$uc_count = uc_call(&uc_user_checkname&, $username);
if($count&0 || $uc_count&0) {
echo $json-&encode(false);
echo $json-&encode(true);
case 'email':
$count = $uc_count = 0;
$email = trim($_REQUEST['email']);
$sql = &SELECT userid FROM {$table}member WHERE email='$email'&;
$count = $db-&getOne($sql);
if($CFG['uc'])$uc_count = uc_call(&uc_user_checkemail&, $email);
if($count&0 || $uc_count&0) {
echo $json-&encode(false);
echo $json-&encode(true);
case 'payonline':
$payonline_setting = get_pay_setting();
$paycenter = $_COOKIE['paycenter'];
if($paycenter) $selected[$paycenter] = 'selected';
if(!isset($amount)) $amount = '';
$memberinfo = member_info($_userid);
$telephone = $memberinfo['telephone'];
$email = $memberinfo['email'];
$seo['title'] = '在线支付-选择支付方式';
include template('payonline');
case 'confirm':
$payonline_setting = get_pay_setting();
$paycenter = trim($_POST['paycenter']);
$contactname = trim($_POST['contactname']);
$telephone = trim($_POST['telephone']);
$email = trim($_POST['email']);
$amount = round(floatval($_POST['amount']), 2);
if($amount & 0.01) showmsg('不能小于0.01元');
if(empty($contactname) || empty($telephone) || empty($email)) showmsg('请填写完整信息');
array_key_exists($paycenter, $payonline_setting) or showmsg('不存在此支付方式');
@extract($payonline_setting[$paycenter]);
if($percent) {
$percent = round(floatval($percent), 2);
$trade_fee = round($amount*$percent/100, 2);
if($trade_fee & 0.01) $trade_fee = 0.01;
$trade_fee = 0;
$total_amount = $amount + $trade_
require PHPMPS_ROOT.'include/payonline/'.$paycenter.'/confirm.php';
$seo['title'] = '在线支付-确认订单';
include template('payconfirm');
case 'send':
$paycenter = trim($_POST['paycenter']);
$contactname = trim($_POST['contactname']);
$telephone = trim($_POST['telephone']);
$email = trim($_POST['email']);
$username = trim($_POST['username']);
$orderid = trim($_POST['orderid']);
$time = time();
$ip = get_ip();
$payonline_setting = get_pay_setting();
array_key_exists($paycenter, $payonline_setting) or showmsg('不存在此支付方式');
@extract($payonline_setting[$paycenter]);
setcookie('paycenter', $paycenter, time() + );
$r = $db-&getOne(&SELECT payid FROM {$table}pay_online WHERE `orderid`='$orderid'&);
if($r) showmsg('不要刷新');
$moneytype = 'CNY';
$amount = floatval($_POST['amount']);
$trade_fee = floatval($_POST['trade_fee']);
$db-&query(&INSERT INTO {$table}pay_online (`paycenter`,`username`,`orderid`,`moneytype`,`amount`,`trade_fee`,`contactname`,`telephone`,`email`,`sendtime`,`ip`) VALUES('$paycenter','$_username','$orderid','$moneytype','$amount','$trade_fee','$contactname','$telephone','$email','$time','$ip')&);
$amount = $amount + $trade_
require PHPMPS_ROOT.'include/payonline/'.$paycenter.'/send.php';
case 'receive':
extract($_REQUEST);
$payonline_setting = get_pay_setting();
array_key_exists($paycenter, $payonline_setting) or showmsg('支付错误');
@extract($payonline_setting[$paycenter]);
require PHPMPS_ROOT.'include/payonline/'.$paycenter.'/receive.php';
$total_amount = $amount + $trade_
$seo['title'] = '支付返回信息';
include template('payreceive');
case 'exchange':
$units = array('gold'=&'枚', 'money'=&'元', 'credit'=&'分');
$types = array('money'=&'资金', 'gold'=&'信息币', 'credit'=&'积分');
$notes = array('login'=&'登陆积分', 'post_info_credit'=&'发布信息积分' ,'post_comment_credit'=&'发布评论积分' ,'info_refer'=&'一键更新信息' ,'info_top'=&'信息置顶' , 'credit2gold'=&'积分兑换信息币', 'money2gold'=&'资金购买信息币');
extract($_REQUEST);
$page = isset($page) ? intval($page) : 1;
$pagesize = 20;
$sql = '';
if($type) $sql .= & AND type='$type' &;
if($begindate) {
$begintime = strtotime($begindate.' 00:00:00');
$sql .= & AND addtime&=$begintime &;
if($enddate) {
$endtime = strtotime($enddate.' 23:59:59');
$sql .= & AND addtime&=$endtime&;
$r = $db-&getOne(&SELECT count(*) as number FROM {$table}pay_exchange WHERE username='$_username' $sql&);
$pager['search'] = array('act' =& 'exchange');
$pager = get_pager('member.php', $pager['search'], $r, $page, $pagesize);
$exchanges = array();
$result = $db-&query(&SELECT * FROM {$table}pay_exchange WHERE username='$_username' $sql ORDER BY exchangeid DESC LIMIT $pager[start],$pager[size]&);
while($r = $db-&fetchrow($result)) {
$r['unit'] = $units[$r['type']];
$r['type'] = $types[$r['type']];
$r['note'] = !empty($notes[$r['note']]) ? $notes[$r['note']] : $r['note'];
$r['addtime'] = date('Y-m-d h:i:s', $r['addtime']);
$exchanges[] = $r;
$seo['title'] = '交易详情';
include template('member_exchange');
case 'get_password':
if(!$CFG['sendmailtype'])showmsg('尚未设置邮件服务器,请与管理员联系。');
if (isset($_GET['code']) && isset($_GET['userid'])) {
$code = trim($_GET['code']);
= intval($_GET['userid']);
/* 判断链接的合法性 */
$user_info = member_info($userid);
if (empty($user_info) || ($user_info && md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']) != $code)) {
showmsg('参数错误');
$seo['title'] = '重置密码';
include template('reset_password');
$seo['title'] = '找回密码';
include template('get_password');
case 'send_pwd_email':
$username = !empty($_POST['username']) ? trim($_POST['username']) : '';
= !empty($_POST['email'])
? trim($_POST['email'])
: '';
$user_info = member_info($username,'2');
if ($user_info && $user_info['email'] == $email) {
$code = md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']);
include PHPMPS_ROOT.'include/mail.inc.php';
if (send_pwd_email($user_info['userid'], $username, $email, $code)) {
showmsg('发送成功' , 'index.php');
showmsg('发送失败' , 'index.php');
showmsg('用户名和邮件地址不匹配');
case 'email_edit_password':
$new_password = isset($_POST['new_password']) ? trim($_POST['new_password']) : '';
$confirm_password = isset($_POST['confirm_password']) ? trim($_POST['confirm_password']) : '';
= isset($_POST['userid']) ? intval($_POST['userid']) : $
$code = isset($_POST['code']) ? trim($_POST['code'])
: '';
if (strlen($new_password) & 6)showmsg('密码不能少于6位');
if($new_password != $confirm_password)showmsg('两次输入的密码不一致');
$user_info = member_info($userid);
if (($user_info && (!empty($code) && md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']) == $code))) {
$password = MD5($new_password);
$sql = &UPDATE {$table}member SET password='$password' WHERE userid='$userid' &;
$query = $db-&query($sql);
if($CFG['uc']) {
$result = uc_call(&uc_user_edit&, array($username, $old_password, $new_password, ''));
if($result == -1)showmsg('旧密码不正确');
showmsg('密码修改成功', 'index.php');
showmsg('密码修改失败', 'index.php');
case 'gold':
$userinfo = member_info($_userid);
$seo['title'] = &购买信息币&;
include template('gold');
case 'act_gold':
$type = $_POST['type'];
$number = $type == 'money2gold' ? intval($_POST['m_number']) : intval($_POST['c_number']);
if($number &= 0)showmsg('数量必须大于0');
$userinfo = member_info($_userid);
$_credit = $number * $CFG['credit2gold'];
$_money = $number * $CFG['money2gold'];
if($type == 'money2gold') {
if($_money & $userinfo['money']) showmsg('您的资金不足以支付此次购买');
money_diff($_username, $_money, $type);
if($_credit & $userinfo['credit']) showmsg('您的积分不足以支付此次购买');
credit_diff($_username, $_credit, $type);
gold_add($_username, $number, $type);
showmsg('购买信息币成功' , 'member.php?act=gold');
case 'credit_rule':
$user_info = member_info($_userid);
$seo['title'] = '积分规则';
include template('credit_rule');
case 'check_credit2gold':
$json = new Services_JSON;
$number = intval($_REQUEST['number']);
$sql = &select credit from {$table}member where userid='$_userid'&;
$user_credit = $db-&getOne($sql);
$pay_credit = $number * $CFG['credit2gold'];
$data = $pay_credit & $user_credit ? '0' : '1';
echo $json-&encode($data);
case 'check_money2gold':
$json = new Services_JSON;
$number = intval($_REQUEST['number']);
$sql = &select money from {$table}member where userid='$_userid'&;
$user_money = $db-&getOne($sql);
$pay_money = $number * $CFG['money2gold'];
$data = $pay_money & $user_money ? '0' : '1';
echo $json-&encode($data);
case 'check_info_gold':
$json = new Services_JSON;
extract($_REQUEST);
$m_gold = $db-&getOne(&select gold from {$table}member where userid='$_userid' &);
$data['kou'] = $CFG['info_top_gold'] * intval($number);
$data['gold'] = $m_gold - $data['kou'];
$data=$json-&encode($data);
case 'info':
$page = !empty($_REQUEST['page'])
&& intval($_REQUEST['page'])
& 0 ? intval($_REQUEST['page'])
$size = !empty($CFG['pagesize']) && intval($CFG['pagesize']) & 0 ? intval($CFG['pagesize']) : 20;
$sql = &SELECT COUNT(*) FROM {$table}info WHERE userid='$_userid'&;
$count = $db-&getOne($sql);
$max_page = ($count& 0) ? ceil($count / $size) : 1;
if($page&$max_page)$page = $max_
$pager['search'] = array('act' =& 'info');
$pager = get_pager('member.php', $pager['search'], $count, $page, $size);
$sql = &SELECT i.*,a.areaname FROM {$table}info as i left join {$table}area as a on a.areaid=i.areaid WHERE userid='$_userid' ORDER BY id desc LIMIT $pager[start],$pager[size]&;
$res = $db-&query($sql);
$infos = array();
while($row = $db-&fetchRow($res)) {
$row['title']
= cut_str($row['title'],'18');
$row['postdate'] = date('y年m月d日', $row['postdate']);
$row['lastdate'] = enddate($row['enddate']);
$row['is_pro']
= $row['is_pro']&=time() ? '是' : '否';
$row['is_top']
= $row['is_top']&=time() ? '是' : '否';
$row['is_check'] = $row['is_check']=='1' ? '是' : '否';
$row['url']
= url_rewrite('view',array('vid'=&$row['id']));
$infos[] = $
$seo['title'] = &我发布的信息&;
include template('member_info');
case 'delinfo':
$id = intval($_REQUEST['id']);
if(empty($id)) showmsg('缺少参数!');
$info = getInfo($id);
if(empty($info)){showmsg('信息不存在','index.php');}
checkInfoUser($id, trim($_REQUEST['password']));
delInfo($id);
showmsg('删除信息成功', $_SERVER['HTTP_REFERER']);
case 'editinfo':
$id = intval($_REQUEST['id']);
$sql = &SELECT * FROM {$table}info WHERE id = '$id'&;
$info = $db-&getRow($sql);
if(empty($info)){showmsg('信息不存在','index.php');}
checkInfoUser($id, trim($_REQUEST['password']));
extract($info);
$postdate = date('Y年m月d日', $postdate);
$lastdate = round(($enddate-time())/(3600*24));
$lastdate = $lastdate ? $lastdate : '30';
if(!empty($mappoint)) {
$mappoints = explode(',', $mappoint);
} elseif(!empty($CFG['map'])) {
$mappoints = explode(',', $CFG['map']);
$custom = cat_post_custom($catid,$id);
$info_area = area_options($areaid);
$seo['title'] = '修改信息 - Powered by Phpmps';
include template('edit_info');
case 'updateinfo':
= intval($_POST['id']);
= $_POST['title'] ? htmlspecialchars(trim($_POST['title'])) : '';
= $_POST['areaid'] ? intval($_POST['areaid']) : '';
= !empty($_POST['enddate']) ? (intval($_POST['enddate']*3600*24)) + time() : '0';
= $_POST['content'] ? htmlspecialchars(trim($_POST['content'])) : '';
= $_POST['linkman'] ? htmlspecialchars(trim($_POST['linkman'])) : '';
= $_POST['phone'] ? trim($_POST['phone']) : '';
= $_POST['qq'] ? intval($_POST['qq']) : '';
= $_POST['email'] ? htmlspecialchars(trim($_POST['email'])) : '';
= $_POST['address'] ? trim($_POST['address']) : '';
$mappoint = $_POST['mappoint'] ? trim($_POST['mappoint']) : '';
if(empty($title))showmsg(&标题不能为空&);
if(empty($phone) && empty($qq) && empty($email))showmsg(&电话、qq、email,必须填写一项&);
check_words(array($title,$content));
$items = array(
'areaid' =& $areaid,
'title' =& $title,
'content' =& $content,
'linkman' =& $linkman,
'email' =& $email,
'qq' =& $qq,
'phone' =& $phone,
'mappoint' =& $mappoint,
'address' =& $address,
'enddate' =& $enddate
$res = editInfo($items, $_POST['cus_value'], $id);
$res ? $msg=&恭喜您,修改成功!& : $msg=&抱歉修改失败,请与客服联系。&;
$link = &view.php?id=$id&;
showmsg($msg, $link);
case 'report':
= intval($_REQUEST['id']);
= intval($_REQUEST['types']);
= get_ip();
$postdate = time();
$yes = $db-&getOne(&SELECT COUNT(*) FROM {$table}report WHERE info='$info' AND ip='$ip'&);
if($yes) showmsg('您已经举报过了');
$db-&query(&INSERT INTO {$table}report (info,type,ip,postdate) VALUES ('$info','$type','$ip','$postdate')&);
showmsg('举报成功,谢谢您的参与!', $_SERVER['HTTP_REFERER']);
case 'comment':
if(!$CFG['visitor_comment'] && empty($_userid)) showmsg('游客不允许发布评论,请登陆后再发布。');
$infoid = intval($_POST['id']);
$userid = $_
$username = $_
$content = htmlspecialchars(trim($_POST['content']));
$checkcode = trim($_POST['checkcode']);
if(empty($infoid)) {
showmsg('缺少信息编号');
$ip = get_ip();
$postarea = getPostArea($ip);
onlyarea($postarea);
if(empty($content))showmsg('请填写评论内容');
if(empty($checkcode))showmsg('请填写验证码');
check_code($checkcode);
check_words(array($content));
$postdate = time();
$check = $CFG['comment_check'] == '0' ? '1' : '0' ;
$sql = &INSERT INTO {$table}comment (infoid,userid,username,content,postdate,is_check,ip) VALUES ('$infoid','$userid','$username','$content','$postdate','$check','$ip')&;
$res = $db-&query($sql);
if($_username) {
$credit_count = $db-&getOne(&select count(*) from {$table}pay_exchange where username='$_username' and addtime&&.mktime(0,0,0).& and note='post_comment_credit' &);
if($credit_count & $CFG['max_comment_credit']) {
if(!empty($CFG['post_comment_credit']))credit_add($_username, $CFG['post_comment_credit'],'post_comment_credit');
if($CFG['comment_check'] == '1')$msg = &&br&评论审核后才能显示&;
$link = &view.php?id=$infoid&;
showmsg(&发表评论成功 $msg&, $link);
case 'info_comment':
$page = empty($_REQUEST['page'])? 1 : intval($_REQUEST['page']);
$count = $db-&getOne(&SELECT COUNT(*) FROM {$table}comment where userid='$_userid'&);
$pager = get_pager('member.php',array('act'=&'info_comment'),$count,$page,'20');
$sql = &SELECT * FROM {$table}comment where userid='$_userid' ORDER BY id DESC LIMIT $pager[start],$pager[size]&;
$res = $db-&query($sql);
$comments = array();
while($row=$db-&fetchRow($res)) {
$row['postdate'] = date('Y-m-d', $row['postdate']);
$row['is_check'] = $row['is_check'] == '1' ? '是' : '否' ;
$row['title']
= cut_str($row['content'], 15);
$comments[] = $
$seo['title'] = &我发表的信息评论列表&;
include template('member_info_comment');
case 'delete':
$id = is_array($_REQUEST['id']) ? join(',', $_REQUEST['id']) : intval($_REQUEST['id']);
if(empty($id))showmsg('没有选择记录');
$db-&query(&DELETE FROM {$table}comment WHERE id IN ($id)&);
showmsg('删除成功', 'member.php?act=info_comment');
case 'refer':
$id = intval($_REQUEST['id']);
$infouser = $db-&getOne(&select userid from {$table}info where id='$id' &);
if($infouser != $_userid)showmsg('此信息不是您的账号发布的,无法操作');
if(!empty($_POST['submit'])) {
gold_diff($_username, $CFG['info_refer_gold'], 'info_refer');
$db-&query(&update {$table}info set postdate=&.time().& where id='$id' &);
$url = url_rewrite('category', array('cid'=& $info['catid']));
showmsg('信息更新成功', $url);
$seo['title'] = '一键刷新信息';
$user_info = member_info($_userid);
$info = $db-&getRow(&select * from {$table}info where id='$id'&);
include template('member_info_refer');
case 'top':
$id = intval($_REQUEST['id']);
$infouser = $db-&getOne(&select userid from {$table}info where id='$id' &);
if($infouser != $_userid)showmsg('此信息不是您的账号发布的,无法操作');
if(!empty($_POST['submit'])) {
gold_diff($_username, $CFG['info_top_gold'], 'info_top');
$is_top = intval($_POST['number'])*3600*24+time();
$db-&query(&update {$table}info set is_top='$is_top',top_type='$_POST[is_top]' where id='$id' &);
if($_POST['is_top']=='1') {
$catinfo = get_cat_info($info['catid']);
$catid = $catinfo['parentid'];
$catid = $info['catid'];
$url = url_rewrite('category', array('cid'=& $catid));
showmsg('信息置顶成功', $url);
$seo['title'] = '信息置顶';
$user_info = member_info($_userid);
$info = $db-&getRow(&select * from {$table}info where id='$id'&);
$is_top = $info['is_top'];
if($is_top&time())showmsg('此条信息已置顶');
include template('member_info_top');
case 'send_info_mail':
include PHPMPS_ROOT.'include/mail.inc.php';
extract($_REQUEST);
$email = decrypt($email, $CFG['crypt']);
$content = $CFG['webname'].'代发,请勿回复。&br /&'.$
if (sendmail($email, $title, $content)) {
showmsg('发送成功', $_SERVER['HTTP_REFERER']);
showmsg('发送失败', $_SERVER['HTTP_REFERER']);
case 'com_comment':
= intval($_POST['comid']);
$username = $_SESSION['username'];
$content = htmlspecialchars(trim($_POST['content']));
$checkcode = trim($_POST['checkcode']);
if(empty($comid)) {
header(&Location: ./\n&);
require_once PHPMPS_ROOT . 'include/ip.class.php';
$ip = get_ip();
$cha = new ip();
$address = $cha-&getaddress($ip);
$postarea = $address[&area1&].$address[&area2&];
onlyarea($postarea);
if(empty($content))showmsg('请填写评论内容');
if(empty($checkcode))showmsg('请填写验证码');
check_code($checkcode);
check_words($who=array('content'));
$postdate = time();
$ip = get_ip();
$check = $CFG['comment_check'] == '0' ? '1' : '0' ;
$sql = &INSERT INTO {$table}com_comment (comid,userid,username,content,postdate,is_check,ip) VALUES ('$comid','$userid','$username','$content','$postdate','$check','$ip')&;
$res = $db-&query($sql);
if($CFG['comment_check'] == '1')$msg = &&br&评论审核后才能显示&;
showmsg(&发表评论成功&, $_SERVER['HTTP_REFERER']);
case 'com':
$page = !empty($_REQUEST['page'])
&& intval($_REQUEST['page'])
& 0 ? intval($_REQUEST['page'])
$sql = &SELECT COUNT(*) FROM {$table}com WHERE userid='$_userid'&;
$count = $db-&getOne($sql);
$max_page = ($count& 0) ? ceil($count / $size) : 1;
if($page&$max_page)$page = $max_
$pager['search'] = array('act' =& 'com');
$pager = get_pager('member.php', $pager['search'], $count, $page, $size);
$sql = &SELECT i.*,a.areaname FROM {$table}com as i left join {$table}area as a on a.areaid=i.areaid WHERE userid='$_userid' ORDER BY comid desc,postdate desc LIMIT $pager[start],$pager[size]&;
$res = $db-&query($sql);
$coms = array();
while($row = $db-&fetchRow($res)) {
$row['comname']
= cut_str($row['comname'],'18');
$row['postdate'] = date('y-m-d', $row['postdate']);
$row['is_check'] = $row['is_check']=='1' ? '是' : '否';
$row['url']
= url_rewrite('com',array('act'=&'view','comid'=&$row['comid']));
$coms[] = $
$seo['title'] = &我发布的企业黄页信息&;
include template('member_com','com');
case 'editcom':
$comid = intval($_GET['id']);
$sql = &SELECT c.*,cc.catname FROM {$table}com as c left join {$table}com_cat as cc on c.catid=cc.catid WHERE comid = '$comid'&;
$com = $db-&getRow($sql);
$com['comuid'] = $com['userid'];
unset($com['userid']);
if(empty($com))showmsg('信息不存在','index.php');
if($com['comuid']!=$_userid)showmsg('信息不是您发布的,不能修改');
extract($com);
$postdate = date('Y-m-d', $postdate);
= PHPMPS_PATH.$
if(!empty($mappoint)) {
$mappoints = explode(',', $mappoint);
$com_area = area_options($areaid);
$seo['title'] = '修改企业黄页信息';
include template('member_editcom','com');
case 'updatecom':
= intval($_POST['id']);
= $_POST['comname'] ? htmlspecialchars(trim($_POST['comname'])) : '';
= $_POST['areaid'] ? intval($_POST['areaid']) : '';
$introduce
= $_POST['introduce'] ? htmlspecialchars(trim($_POST['introduce'])) : '';
$description = cut_str($introduce,30);
= $_POST['linkman'] ? htmlspecialchars(trim($_POST['linkman'])) : '';
= $_POST['phone'] ? trim($_POST['phone']) : '';
= $_POST['qq'] ? intval($_POST['qq']) : '';
= $_POST['email'] ? htmlspecialchars(trim($_POST['email'])) : '';
= $_POST['address'] ? trim($_POST['address']) : '';
$mappoint = $_POST['mappoint'] ? trim($_POST['mappoint']) : '';
= $_POST['hours'] ? htmlspecialchars(trim($_POST['hours'])) : '';
= trim($_POST['fax']);
if(empty($comname))showmsg(&标题不能为空&);
if(empty($introduce))showmsg(&内容不能为空&);
if(empty($linkman))showmsg(&联系人不能为空&);
if(empty($phone) && empty($qq) && empty($email))showmsg(&电话、qq、email,必须填写一项&);
check_words($who=array('comname','content'));
if(!empty($_FILES['thumb']['name']))
$sql = &SELECT thumb FROM {$table}com WHERE comid IN ($comid)&;
$image = $db-&getAll($sql);
foreach((array)$image AS $val) {
if($val['thumb'] != '' && is_file(PHPMPS_ROOT.$val['thumb'])) {
@unlink(PHPMPS_ROOT . $val['thumb']);
$alled = array('png','jpg','gif','jpeg');
$exname = strtolower(trim(substr(strrchr($_FILES['thumb']['name'], '.'), 1)));
if(checkupfile($_FILES['thumb']['tmp_name']) && $_FILES['thumb']['tmp_name'] != 'none' && $_FILES['thumb']['tmp_name'] && $_FILES['thumb']['name'] && $_FILES['thumb']['size']&'; && in_array($exname,$alled))
$thumb_name = $comid.'_thumb'. '.' . end(explode('.', $_FILES['thumb']['name']));
$dir = PHPMPS_ROOT . 'data/com/thumb/';
if(!is_dir($dir)) {
if(@mkdir(rtrim($dir,'/'), 0777))@chmod($dir, 0777);
$to = $dir.'/'. $thumb_
CreateSmallImage( $_FILES['thumb']['tmp_name'], $to, 200, 80);
$image = 'data/com/thumb/'. $thumb_
$sql = &update {$table}com set thumb='$image' where comid='$comid' &;
$db-&query($sql);
$sql = &UPDATE {$table}com SET
areaid='$areaid',
comname='$comname',
introduce='$introduce',
description='$description',
linkman='$linkman',
email='$email',
qq='$qq',
phone='$phone',
mappoint='$mappoint',
address='$address',
fax='$fax',
hours='$hours'
where comid = '$comid' &;
$res = $db-&query($sql);
$msg=&恭喜您,修改成功!&;
$link = url_rewrite('com',array('act'=&'view', 'comid'=&$comid));
showmsg($msg, $link);
case 'delcom':
$comid = trim($_REQUEST['id']);
$sql = &select userid from {$table}com where comid='$comid' &;
$comuserid = $db-&getOne($sql);
if($comuserid!=$_userid)showmsg('此信息不是您发布的,您不能修改');
$sql = &SELECT thumb FROM {$table}com WHERE comid IN ($comid)&;
$image = $db-&getOne($sql);
if($image != '' && is_file(PHPMPS_ROOT.$image)) {
@unlink(PHPMPS_ROOT.$image);
$sql = &SELECT path FROM {$table}com_image WHERE comid IN ($comid)&;
$image = $db-&getAll($sql);
foreach((array)$image AS $val) {
if($val[path] != '' && is_file(PHPMPS_ROOT.$val[path])) {
@unlink(PHPMPS_ROOT.$val[path]);
$db-&query(&DELETE FROM {$table}com_image WHERE comid IN ($comid)&);
$db-&query(&DELETE FROM {$table}com WHERE comid IN ($comid)&);
showmsg('删除信息成功',$_SERVER['HTTP_REFERER']);
case 'avatar':
if(!$CFG['uc']) showmsg('系统没有整合Ucenter,不能使用此功能');
include PHPMPS_ROOT.'include/uc.inc.php';
if(!$_userid) showmsg('请先登录', 'member.php?act=login');
$uid = $db-&getone(&select uid from {$table}member where userid='$_userid' &);
$uc_html = uc_call(&uc_avatar&,
array($uid));
$seo['title'] = '修改头像';
include template('member_uc_avatar');
case 'send_check_email':
if($_POST)
$email = trim($_POST['email']);
$user_info = member_info($_userid);
$code = md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']);
$city_list = get_city_list();
$reset_email = 'http://'.$city_list[$_cityid]['citydomain'] . '.'.$CFG['domain'].'/member.php?act=check_email&userid='.$_userid.'&code=' . $
$send_date = date('Y-m-d', time());
$content = &{$username}您好!&br&&br&请点击以下链接(或者复制到您的浏览器):&br&&br&&a href=&.$reset_email.& target=\&_blank\&&&.$reset_email.&&/a&&br&&br&以进行您的邮件验证!&br&&br&&.$send_
$code = md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']);
include PHPMPS_ROOT.'include/mail.inc.php';
if (sendmail($email, $CFG['webname'].'-邮件验证', $content)) {
showmsg('发送成功,请登录邮箱进行验证' , 'member.php?act=send_check_email');
showmsg('发送失败' , 'member.php?act=send_check_email');
$seo['title'] = '验证邮件';
include template('member_check_email');
case 'check_email':
$code = isset($_GET['code']) ? trim($_GET['code'])
: '';
$user_info = member_info(intval($_REQUEST['userid']));
if ($user_info && (!empty($code) && md5($user_info['userid'] . $CFG['crypt'] . $user_info['registertime']) == $code)) {
$sql = &update {$table}member set status='1' where userid='$_userid' &;
$query = $db-&query($sql);
showmsg('邮件验证成功', 'member.php');
showmsg('邮件验证失败', '?send_check_email');
Copyright(C)
OKBASE.NET All Rights Reserved 好库网 版权所有}

我要回帖

更多关于 伪静态 写法 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信