提交 11a86b0f authored 作者: wangkr's avatar wangkr

更新 config.php

上级 c46d623e
<?php <?php
/** /**
* 来自:信呼开发团队 * 来自:信呼开发团队
* 作者:磐石(rainrock) * 作者:磐石(rainrock)
* 网址:http://www.rockoa.com/ * 网址:http://www.rockoa.com/
* 系统默认配置文件,请不要去修改 * 系统默认配置文件,请不要去修改
* 要修改配置文件在:webmain/webmainConfig.php * 要修改配置文件在:webmain/webmainConfig.php
*/ */
//调整session为redis //调整session为redis
ini_set('session.save_handler', 'redis'); ini_set('session.save_handler', 'redis');
ini_set('session.save_path', 'tcp://192.168.1.222:6379'); ini_set('session.save_path', 'tcp://192.168.1.70:6379');
ini_set('session.cookie_path', '/'); ini_set('session.cookie_path', '/');
ini_set('session.cookie_domain', 'gonn.com.cn'); ini_set('session.cookie_domain', 'gonn.tech');
ini_set('session.cookie_lifetime', '7200'); ini_set('session.cookie_lifetime', '7200');
@session_start(); @session_start();
if(function_exists('date_default_timezone_set'))date_default_timezone_set('Asia/Shanghai'); //设置默认时区 if(function_exists('date_default_timezone_set'))date_default_timezone_set('Asia/Shanghai'); //设置默认时区
header('Content-Type:text/html;charset=utf-8'); header('Content-Type:text/html;charset=utf-8');
define('ROOT_PATH',str_replace('\\','/',dirname(dirname(__FILE__)))); //系统跟目录路径 define('ROOT_PATH',str_replace('\\','/',dirname(dirname(__FILE__)))); //系统跟目录路径
include_once(''.ROOT_PATH.'/include/rockFun.php'); include_once(''.ROOT_PATH.'/include/rockFun.php');
include_once(''.ROOT_PATH.'/include/Chajian.php'); include_once(''.ROOT_PATH.'/include/Chajian.php');
include_once(''.ROOT_PATH.'/include/class/rockClass.php'); include_once(''.ROOT_PATH.'/include/class/rockClass.php');
$rock = new rockClass(); $rock = new rockClass();
$db = null; $db = null;
$smarty = false; $smarty = false;
define('HOST', $rock->host); define('HOST', $rock->host);
define('REWRITE', 'true'); define('REWRITE', 'true');
if(!defined('PROJECT'))define('PROJECT', $rock->get('p', 'webmain')); if(!defined('PROJECT'))define('PROJECT', $rock->get('p', 'webmain'));
if(!defined('ENTRANCE'))define('ENTRANCE', 'index'); if(!defined('ENTRANCE'))define('ENTRANCE', 'index');
$config = array( $config = array(
'title' => '信呼', 'title' => '信呼',
'url' => '', 'url' => '',
'urly' => 'http://www.rockoa.com/', //官网域名地址,修改后就无法提供在线升级了。 'urly' => 'http://www.rockoa.com/', //官网域名地址,修改后就无法提供在线升级了。
'db_host' => '127.0.0.1', 'db_host' => '127.0.0.1',
'db_user' => 'root', 'db_user' => 'root',
'db_pass' => '', 'db_pass' => '',
'db_base' => '', 'db_base' => '',
'perfix' => '', 'perfix' => '',
'qom' => '', 'qom' => '',
'highpass' => '', 'highpass' => '',
'install' => false, 'install' => false,
'version' => require('version.php'), 'version' => require('version.php'),
'path' => 'index', 'path' => 'index',
'updir' => 'upload', 'updir' => 'upload',
'dbencrypt' => false, 'dbencrypt' => false,
'sqllog' => false, 'sqllog' => false,
'checksign' => false, //列表请求是否验证 'checksign' => false, //列表请求是否验证
'memory_limit' => '', //运行内存大小 'memory_limit' => '', //运行内存大小
'timeout' => -1, //抄送时间(秒),-1默认的 'timeout' => -1, //抄送时间(秒),-1默认的
'db_drive' => 'mysqli', //数据库操作驱动 'db_drive' => 'mysqli', //数据库操作驱动
'db_engine' => 'MyISAM', //数据库默认引擎 'db_engine' => 'MyISAM', //数据库默认引擎
'debug' => true, //默认debug模式 'debug' => true, //默认debug模式
'reim_show' => true, //首页是否显示REIM 'reim_show' => true, //首页是否显示REIM
'mobile_show' => true, //首页是否显示手机版 'mobile_show' => true, //首页是否显示手机版
'accesslogs' => false, //是否记录访问日志和限制IP 'accesslogs' => false, //是否记录访问日志和限制IP
'upurl' => '', //上传文件附件地址(还不能使用) 'upurl' => '', //上传文件附件地址(还不能使用)
'authorkey' => '', //系统授权的key,请联系官网获取 'authorkey' => '', //系统授权的key,请联系官网获取
'companymode' => false, //是否开启多单位模式切换 'companymode' => false, //是否开启多单位模式切换
'encrypt_key' => 'INJq4HXEGI', 'encrypt_key' => 'INJq4HXEGI',
'base_url' => 'http://jz.gonn.com.cn/' 'base_url' => 'http://jz-release.gonn.tech/'
); );
//引入配置文件 //引入配置文件
$_confpath = $rock->strformat('?0/?1/?1Config.php', ROOT_PATH, PROJECT); $_confpath = $rock->strformat('?0/?1/?1Config.php', ROOT_PATH, PROJECT);
if(file_exists($_confpath)){ if(file_exists($_confpath)){
$_tempconf = require($_confpath); $_tempconf = require($_confpath);
foreach($_tempconf as $_tkey=>$_tvs)$config[$_tkey] = $_tvs; foreach($_tempconf as $_tkey=>$_tvs)$config[$_tkey] = $_tvs;
if(isempt($config['url']))$config['url'] = $rock->url(); if(isempt($config['url']))$config['url'] = $rock->url();
if(!isempt($config['memory_limit']) && function_exists('ini_set')) if(!isempt($config['memory_limit']) && function_exists('ini_set'))
ini_set('memory_limit', $config['memory_limit']); ini_set('memory_limit', $config['memory_limit']);
if($config['timeout']>-1 && function_exists('set_time_limit'))set_time_limit($config['timeout']); if($config['timeout']>-1 && function_exists('set_time_limit'))set_time_limit($config['timeout']);
} }
$_confpath = ''.ROOT_PATH.'/config/author.php'; $_confpath = ''.ROOT_PATH.'/config/author.php';
if(file_exists($_confpath)){ if(file_exists($_confpath)){
$config['authorkey'] = require($_confpath); $config['authorkey'] = require($_confpath);
} }
define('DEBUG', $config['debug']); define('DEBUG', $config['debug']);
error_reporting(DEBUG ? E_ALL : 0); error_reporting(DEBUG ? E_ALL : 0);
define('TITLE', $config['title']); define('TITLE', $config['title']);
define('URL', $config['url']); define('URL', $config['url']);
define('URLY', $config['urly']); define('URLY', $config['urly']);
define('PATH', $config['path']); define('PATH', $config['path']);
define('DB_DRIVE', $config['db_drive']); define('DB_DRIVE', $config['db_drive']);
define('DB_HOST', $config['db_host']); define('DB_HOST', $config['db_host']);
define('DB_USER', $config['db_user']); define('DB_USER', $config['db_user']);
define('DB_PASS', $config['db_pass']); define('DB_PASS', $config['db_pass']);
define('DB_BASE', $config['db_base']); define('DB_BASE', $config['db_base']);
define('UPDIR', $config['updir']); define('UPDIR', $config['updir']);
define('PREFIX', $config['perfix']); define('PREFIX', $config['perfix']);
define('QOM', $config['qom']); define('QOM', $config['qom']);
define('VERSION', $config['version']); define('VERSION', $config['version']);
define('HIGHPASS', $config['highpass']); define('HIGHPASS', $config['highpass']);
define('SYSURL', ''.URL.PATH.'.php'); define('SYSURL', ''.URL.PATH.'.php');
define('UPURL', $config['upurl']); define('UPURL', $config['upurl']);
define('ISMORECOM', $config['companymode']); define('ISMORECOM', $config['companymode']);
define('ENCRYPT_KEY',$config['encrypt_key']); define('ENCRYPT_KEY',$config['encrypt_key']);
$_confpath = ''.ROOT_PATH.'/config/iplogs.php'; //这个用来限制IP访问的 $_confpath = ''.ROOT_PATH.'/config/iplogs.php'; //这个用来限制IP访问的
if(file_exists($_confpath))include_once($_confpath); if(file_exists($_confpath))include_once($_confpath);
$rock->initRock(); $rock->initRock();
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论