<?php /** * 手机管理后台管理栏目首页文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once '../config/config.inc.php'; require_once "../class/phonelist.class.php"; require_once '../../useradmin/checklogin.php'; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; //图片上传参数 $objWebInit->arrGPic = $arrGPic; $objWebInit->db(); $arrWhere = array(); $arrLink = array(); if (isset($_GET['action'])) { if ($_GET['action'] == 'search') { // 构造搜索条件和翻页参数 $arrLink[] = 'action=search'; if (!empty($_GET['title'])) {
<?php /** * 手机管理 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; require_once '../data/sms.inc.php'; //导入商务领航短信接口的基本参数 $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $arrGSmarty['caching'] = false; $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); $arrWhere = array(); $arrLink = array(); $arrWhere[] = "pass='******'"; $strLink = ''; if (empty($_GET['page'])) { $intPage = 1; } else {
<?php /** * 手机管理 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; //require_once('../'.__WEBADMIN_ROOT.'/checklogin.php'); $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $arrGSmarty['caching'] = false; $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); $arrWhere = array(); $arrLink = array(); $arrWhere[] = "pass='******'"; $strLink = ''; if (empty($_GET['page'])) { $intPage = 1; } else { $intPage = intval($_GET['page']);
<?php /** * 最新手机管理文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ if (is_object($objWebInit)) { if (!isset($objphonelist)) { include_once __WEB_ROOT . "/phonelist/class/phonelist.class.php"; include_once __WEB_ROOT . "/phonelist/config/var.inc.php"; $objphonelist = new phonelist(); $objphonelist->setDBG($arrGPdoDB); if (is_object($objWebInit->db)) { $objphonelist->db = $objWebInit->db; } else { $objphonelist->db(); } } $arrphonelistList = array(); $arrphonelistList = $objphonelist->getInfoList("where pass=1", " ORDER BY recommendflag DESC,submit_date DESC,clicktimes DESC", 0, 6, '*', null, false); //print_r($arrphonelistList); // 输出到模板 $arrMOutput["smarty_assign"]['arrphonelistList'] = $arrphonelistList; }
<?php /** * 手机管理后台管理栏目修改文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once '../config/config.inc.php'; require_once "../class/phonelist.class.php"; require_once '../../useradmin/checklogin.php'; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; //图片上传参数 $objWebInit->arrGPic = $arrGPic; $objWebInit->db(); // 取得文章信息 $arrInfo = $objWebInit->getInfo($_GET['id']); if ($arrInfo['user_id'] != $_SESSION['user_id']) { check::AlertExit("错误:此信息不是您发布的,您无权修改!", -1); } if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST['type_id']) || empty($_POST['title']) || empty($_POST['intro'])) { check::AlertExit("错误:有必填选项没填!", -1); }
<?php /** * 手机管理后台管理栏目首页文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once '../config/config.inc.php'; require_once "../class/phonelist.class.php"; require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php'; $objWebInit = new phonelist(); $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'; if ($_GET['pass'] == '1' || $_GET['pass'] == '0') { $arrWhere[] = "pass='******'pass'] . "'"; $arrLink[] = 'pass='******'pass']; } if (!empty($_GET['type_id'])) {
<?php /* * 手机管理数据库安装文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * modified 2009-1-3 */ include_once dirname(__FILE__) . '/config/config.inc.php'; include_once dirname(__FILE__) . '/class/phonelist.class.php'; $objWebInit = new phonelist(); $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; } unset($arrGWeb); $strFilename = __WEB_ROOT . '/data/webconfig.inc.php'; include $strFilename;
<?php /** * 手机管理文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ if (is_object($objWebInit)) { if (!isset($objphonelist)) { include_once __WEB_ROOT . "/phonelist/class/phonelist.class.php"; include_once __WEB_ROOT . "/phonelist/config/var.inc.php"; $objphonelist = new phonelist(); $objphonelist->setDBG($arrGPdoDB); if (is_object($objWebInit->db)) { $objphonelist->db = $objWebInit->db; } else { $objphonelist->db(); } } $arrTopphonelist = array(); $arrTopphonelist = $objphonelist->getInfoList("where pass=1", " ORDER BY recommendflag DESC,clicktimes DESC,submit_date DESC", 0, 15, true); unset($arrTopphonelist['COUNT_ROWS']); // print_r($arrTopphonelist); // 输出到模板 $arrMOutput["smarty_assign"]['arrTopphonelist'] = $arrTopphonelist; }
<?php /** * 手机管理 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $arrGSmarty['caching'] = false; $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); include "_block.php"; $arrWhere = array(); $arrLink = array(); $arrWhere[] = "pass='******'"; $strLink = ''; if (!empty($_REQUEST['keywords'])) { $strKeywords = strval(urldecode($_REQUEST['keywords'])); if ($strKeywords[0] == '/') { //精确查询ID
<?php /** * 5117手机管理后台管理栏目新增文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once '../config/config.inc.php'; require_once "../class/phonelist.class.php"; require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php'; $objWebInit = new phonelist(); $objWebInit->db(); //访问权限检查 if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) { check::AlertExit('对不起,您没有写权限', -1); } if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST['type_id']) || empty($_POST['title'])) { check::AlertExit("错误:有必填选项没填!", -1); } if (!check::CheckMobilePhone($_POST['title'])) { check::AlertExit("错误:手机格式不对!", -1); } //if($_POST['title'] != '') $_POST['title_md5'] = md5($_POST['title']); //判断是否发布重复信息 $arrTemp = $objWebInit->getInfoList("where title='{$_POST['title']}'", "", 0, 1); if ($arrTemp['COUNT_ROWS'] != 0) {
<?php /** * 手机管理 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); $objWebInit->db(); //图像参数 $objWebInit->arrGPic = $arrGPic; //smarty参数 if ($arrGWeb['URL_static']) { $arrGSmarty['caching'] = false; } else { $arrGSmarty['cache_lifetime'] = 3600; } $objWebInit->arrGSmarty = $arrGSmarty; if ($_GET['id'] === null) { exit; } //产品分类 include '../product/block/_menu.php';
<?php /** * 手机管理 列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $arrGSmarty['caching'] = false; //$objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); if (!empty($_GET['u_mail']) && !empty($_GET['token'])) { if ($_GET['token'] == md5($_GET['u_mail'] . $arrGWeb['jamstr'])) { //数据匹配,则标识为退订邮件 $strWhere = " WHERE title='{$_GET['u_mail']}'"; $objWebInit->updateDataG('biweb_phonelist', array('pass' => '7'), $strWhere); echo "<script>alert('退订成功');window.close();</script>"; exit; } }
<?php /** * 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 '../../phonelist/class/phonelist.class.php'; require_once '../../phonelist/config/var.inc.php'; $objWebInit = new phonelist(); //访问权限检查 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[] = "title != ''"; // 构造搜索条件和翻页参数 if (!empty($_POST['title'])) {
<?php /** * 手机管理列表文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once 'config/config.inc.php'; require_once "class/phonelist.class.php"; $objWebInit = new phonelist(); //数据库连接参数 $objWebInit->setDBG($arrGPdoDB); //smarty参数 $objWebInit->arrGSmarty = $arrGSmarty; //翻页参数 $objWebInit->arrGPage = $arrGPage; $objWebInit->db(); if ($_REQUEST['act'] == 'order') { $info = $objWebInit->getInfoWhere(" where title='{$_POST['title']}'"); if (!empty($info)) { $info = array_merge($info, $_POST); $objWebInit->saveInfo($info, 1, false); } else { $info = array(); $info['title'] = $_POST['title']; $info['product_a'] = 1; $objWebInit->saveInfo($info, 0, false);
<?php /** * 手机管理后台管理栏目修改文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage phonelist */ require_once '../config/config.inc.php'; require_once "../class/phonelist.class.php"; require_once '../..' . __WEBADMIN_ROOT . '/checklogin.php'; $objWebInit = new phonelist(); $objWebInit->db(); //访问权限检查 if (!$objWebInit->checkPopedomG($_SESSION['user_id'], 'w')) { check::AlertExit('对不起,您没有写权限', -1); } // 取得文章信息 $arrInfo = $objWebInit->getInfo($_REQUEST['id']); if ($_SERVER["REQUEST_METHOD"] == "POST") { $_POST = array_merge($arrInfo, $_POST); $objWebInit->saveInfo($_POST, 1); check::WindowLocation('index.php', 'page=' . $_GET['page']); } if (!is_array($arrMType) || empty($arrMType)) { $arrMType = $objWebInit->getTypeList(); $arrMType = $objWebInit->formatTypeList(0, $arrMType); }