* @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 { $intPage = intval($_GET['page']); } $strWhere = implode(' AND ', $arrWhere); $strWhere = 'where ' . $strWhere; if ($_GET['code'] == 'domobilecode') { setcookie('intMobile', $_GET['title'], time() + 1); $intMobileCode = rand(10000, 99999); if ($_COOKIE['intMobile']) {
<?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; }