$arrGPdoDB['db_tablepre'] = ''; $arrGPdoDB['htmlspecialchars'] = array('intro','summary','tag'); */ $arrGPdoDB['db_table'] = 'phonelist'; $arrGPdoDB['db_table1'] = 'phonelist_type'; //$arrGPdoDB['db_table_field']=array('id'=>'','type_id'=>1,'type_roue_id'=>'','user_id'=>1,'tag'=>'','title'=>'','title_md5'=>'','mailbox_host'=>'','product_a'=>'','product_b'=>'','product_c'=>'','product_d'=>'','product_e'=>'','product_f'=>'','product_g'=>'','product_h'=>'','structon_tb'=>array(),'pass'=>1,'submit_date'=>date('Y-m-d H:i:s')); //字段数组,将要显示的字段名称写入该数组 //$arrGPdoDB['htmlspecialchars'] = array('intro','summary','tag'); $arrGPdoDB['db_table_field'] = array('id' => '', 'type_id' => 1, 'type_roue_id' => '', 'title' => '', 'structon_tb' => array(), 'submit_date' => date('Y-m-d H:i:s'), 'pass' => 1); //字段数组,将要显示的字段名称写入该数组 //网站公用参数(栏目数据) $arrGWeb['module_name'] = '手机管理'; $arrGWeb['module_id'] = 'phonelist'; $arrGWeb['cache_phonelist_url'] = $arrGWeb['cache_url'] . '/' . $arrGWeb['module_id']; $arrGWeb['db_summary_len'] = 100; //摘要生成长度设定,不能超过255,安装后修改,需要去手动调整表字段长度 //上传图片参数 $arrGPic['FileMaxSize'] = 150 * 1024; $arrGPic['FileCallPath'] = $arrGWeb['WEB_ROOT_pre'] . "/uploadfile/" . $arrGWeb['module_id'] . "/"; $arrGPic['FileSavePath'] = __WEB_ROOT . "/uploadfile/" . $arrGWeb['module_id'] . "/"; $arrGPic['FileListPicSize'] = 0; $arrGPic['FileSourPicSize'] = 600; //静态页面缓存参数 $arrGCache['cache_root'] = $arrGCache['cache_root'] . '/' . $arrGWeb['module_id']; //分类缓存 $strFileNameB = __WEB_ROOT . '/data/' . $arrGWeb['module_id'] . '/' . $arrGWeb['module_id'] . '_type_b.php'; //后台用带├格式化的缓存 $strFileName = __WEB_ROOT . '/data/' . $arrGWeb['module_id'] . '/' . $arrGWeb['module_id'] . '_type.php'; //排列后的原始数据缓存 eval(menload_file($strFileNameB, $arrGWeb['MEM_CACHE'])); eval(menload_file($strFileName, $arrGWeb['MEM_CACHE']));
} //静态优化URL处理文件 if ($arrGWeb['MEM_CACHE'] != 0) { eval(menload_file(__WEB_ROOT . '/config/static.fun.php', $arrGWeb['MEM_CACHE'])); } else { include_once __WEB_ROOT . '/config/static.fun.php'; } //smarty不缓存执行函数集 if ($arrGWeb['MEM_CACHE'] != 0) { eval(menload_file(__WEB_ROOT . '/config/smarty.fun.php', $arrGWeb['MEM_CACHE'])); } else { include_once __WEB_ROOT . '/config/smarty.fun.php'; } //底层可选功能模块配置文件 if ($arrGWeb['MEM_CACHE'] != 0) { eval(menload_file(__WEB_ROOT . '/config/module.inc.php', $arrGWeb['MEM_CACHE'])); } else { include_once __WEB_ROOT . '/config/module.inc.php'; } //针对smarty3的修复 spl_autoload_register('__autoload'); //繁体转换 if (empty($_SESSION['langset'])) { $_SESSION['langset'] = 'zh_cn'; } if ($arrGWeb['isSubUrl']) { if (strpos($_SERVER['HTTP_HOST'], $arrGWeb['subPre']) === false) { $_SESSION['langset'] = 'zh_cn'; } else { $_SESSION['langset'] = 'zh_tw'; }
/** * 生成类型缓存数据 * @author 肖飞 * @param string $strModuleID 栏目ID * @return void */ public function makeTypeCache($strModuleID) { //分类缓存 $strFileNameB = __WEB_ROOT . '/data/' . $strModuleID . '/' . $strModuleID . '_type_b.php'; //后台用带├格式化的缓存 $strFileName = __WEB_ROOT . '/data/' . $strModuleID . '/' . $strModuleID . '_type.php'; //排列后的原始数据缓存 // 原文件删除 if (is_file($strFileNameB)) { unlink($strFileNameB); } if (is_file($strFileName)) { unlink($strFileName); } $arrMType = $this->getTypeList(); $arrMType = $this->formatTypeList(0, $arrMType, false); $objCache = new cache($strFileName); $str = '<?php' . "\n" . '$arrMType = ' . var_export($arrMType, true) . ';' . "\n" . '?>'; $objCache->write_file($str); $arrMTypeB = $this->formatTypeList(0, $arrMType); $objCache = new cache($strFileNameB); $str = '<?php' . "\n" . '$arrMTypeB = ' . var_export($arrMTypeB, true) . ';' . "\n" . '?>'; $objCache->write_file($str); unset($_GET['action']); //更新共享内存 eval(menload_file($strFileNameB, 2)); eval(menload_file($strFileName, 2)); }
<?php /** * 用户系统功能配置文件 * * @author Arthur(ArthurXF@gmail.com) * @copyright (c) 2006 by bizeway.com * @version $Id$ * @package ArthurXF * @subpackage user */ define('__WEB_ROOT', dirname(__FILE__) . "/../.."); require_once __WEB_ROOT . "/config/global.inc.php"; require_once "var.inc.php"; require_once "private.inc.php"; require_once "type.inc.php"; eval(menload_file(__WEB_ROOT . '/user/config/area_code.inc.php', $arrGWeb['MEM_CACHE'])); header('Content-Type: text/html; charset=UTF-8'); //smarty输出数组 $arrMOutput = array(); $arrMOutput["smarty_assign"]['arrGWeb'] = $arrGWeb; $arrMOutput['smarty_assign']['Title'] = $arrGMeta[$arrGWeb['module_id']]['meta']['Title'] . ' - ' . $arrGWeb['name']; $arrMOutput['smarty_assign']['Description'] = $arrGMeta[$arrGWeb['module_id']]['meta']['Description'] . ' - ' . $arrGWeb['name']; $arrMOutput['smarty_assign']['Keywords'] = $arrGMeta[$arrGWeb['module_id']]['meta']['Keywords'] . ' - ' . $arrGWeb['name']; $arrMOutput['template_file'] = "frame.html";