* 会员信息栏目编辑删除管理文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id $ * @package ArthurXF * @subpackage mcenter */ require_once '../config/config.inc.php'; require_once "../class/mcenter.class.php"; require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php'; $objWebInit = new mcenter(); $objWebInit->db(); if ($_SERVER["REQUEST_METHOD"] == "POST") { //访问权限检查 if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) { check::AlertExit('对不起,您没有写权限', -1); } if (!check::CheckUser($_POST['user_name'])) { check::AlertExit("输入的用户名必须是4-21字符之间的数字、字母,或7个中文!", -1); } if (!check::CheckPassword($_POST['password'])) { check::AlertExit("输入的密码必须是4-21字符之间的数字、字母!", -1); } if (empty($_POST['user_id'])) { check::AlertExit("用户ID不能为空!", -1); } if (empty($_POST['nick_name'])) { check::AlertExit("用户昵称不能为空!", -1); } //如果两次密码不一致,说明,需要更新密码
* * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage email */ require_once '../config/config.inc.php'; require_once '../checklogin.php'; require_once '../../mcenter/class/mcenter.class.php'; require_once '../../mcenter/config/var.inc.php'; $objWebInit = new mcenter(); //数据库连接参数 $objWebInit->db(); //访问权限检查 if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r', 'email')) { check::AlertExit('对不起,您没有权限访问此页', -1); } if ($_SERVER["REQUEST_METHOD"] == "POST") { unset($_POST['okgo']); // print_r($_POST); $arrWhere = array(); $arrWhere[] = "`email` LIKE '%.com' OR `email` LIKE '%.net' OR `email` LIKE '%.cn' OR `email` LIKE '%.com.cn' OR `email` LIKE '%.hk' OR `email` LIKE '%.tw' OR `email` LIKE '%.org' OR `email` LIKE '%.edu.cn' "; // 构造搜索条件和翻页参数 if (!empty($_POST['title'])) { $arrWhere[] = "user_name LIKE '%" . $_POST['title'] . "%' or real_name LIKE '%" . $_POST['title'] . "' "; } if (!empty($_POST['pass']) && ($_POST['pass'] == '1' || $_POST['pass'] == '0')) { $arrWhere[] = "pass='******'pass'] . "'"; } $strWhere = implode(' AND ', $arrWhere);
/** * EMAIL营销后台管理栏目搜索抓取文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage sms */ require_once '../config/config.inc.php'; require_once '../checklogin.php'; require_once '../../mcenter/class/mcenter.class.php'; require_once '../../mcenter/config/var.inc.php'; $objWebInit = new mcenter(); //访问权限检查 if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r', 'sms')) { check::AlertExit('对不起,您没有读权限', -1); } if ($_SERVER["REQUEST_METHOD"] == "POST") { if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'x', 'sms')) { check::AlertExit('对不起,您没有执行权限', -1); } unset($_POST['okgo']); //数据库连接 $objWebInit->db(); $arrWhere = array(); $arrWhere[] = "mobile != ''"; // 构造搜索条件和翻页参数 if (!empty($_POST['title'])) { $arrWhere[] = "mobile LIKE '%" . $_POST['title'] . "%' "; }