Example #1
0
<?php

/**
 * 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'] . "' ";
    }
Example #2
0
<?php

/**
 * 会员信息栏目编辑删除管理文件
 *
 * @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'])) {
Example #3
0
<?php

/**
 * 会员信息栏目新增管理文件
 *
 * @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 (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) {
    check::AlertExit('对不起,您没有写权限', -1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if (!check::CheckUser($_POST['user_name'])) {
        check::AlertExit("输入的用户名必须是4-21字符之间的数字、字母,或7个中文!", -1);
    }
    if (!check::CheckPassword($_POST['password'])) {
        check::AlertExit("输入的密码必须是4-21字符之间的数字、字母!", -1);
    }
    if (!check::CheckEmailAddr($_POST['email'])) {
        check::AlertExit("输入的email必须是合法的email!", -1);
    }
    if (!check::CheckMobilePhone($_POST['mobile'])) {
Example #4
0
<?php

/**
 * 会员信息栏目首页文件
 *
 * @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 (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'r')) {
    check::AlertExit('对不起,您没有读权限', -1);
}
$arrWhere = array();
$arrLink = array();
if (isset($_GET['action'])) {
    if ($_GET['action'] == 'search') {
        // 构造搜索条件和翻页参数
        $arrLink[] = 'action=search';
        $_GET['title'] = trim($_GET['title']);
        if (!empty($_GET['title'])) {
            $strKeywords = strval(urldecode($_GET['title']));
            if ($strKeywords[0] == '/') {
                //精确查询ID
Example #5
0
<?php

/*
 * 用户中心数据库安装文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * modified		2011/4/10
 */
include_once dirname(__FILE__) . '/config/config.inc.php';
include_once dirname(__FILE__) . '/class/mcenter.class.php';
$objWebInit = new mcenter();
$objWebInit->db();
if (empty($charset)) {
    $charset = str_replace('-', '', $arrGWeb['charset']);
}
if (empty($extend)) {
    $extend = $objWebInit->db->getAttribute(PDO::ATTR_SERVER_VERSION) > '4.1' ? " DEFAULT CHARSET={$charset} " : "";
}
$intDbSummaryLen = $arrGWeb['db_summary_len'];
//写入频道数组
if (empty($strWEB_ROOT_pre)) {
    $strWEB_ROOT_pre = $arrGWeb['WEB_ROOT_pre'];
}
if (empty($strWEBADMIN_ROOT)) {
    $strWEBADMIN_ROOT = __WEBADMIN_ROOT;
}
try {
    //sql语句
    if ($_SESSION['install_type']) {