Example #1
0
/**
 * EMAIL营销后台管理栏目搜索抓取文件
 *
 * @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'] . "'";