<?php

/*
 * common.var.php (安装公共变量)
 * @projectname  QCCMS
 * @package      
 * @author       qccms
 * @copyright    qccms
 * @license     
 * @version      2013-08-14
 */

define('ROOT_PATH', dirname(__FILE__) . '/../');
define('QCCMS_SQL', dirname(__FILE__).'/Data/data.sql');//数据库文件
define('TEMP_LOCK', dirname(__FILE__).'/Data/install.lock');//安装锁模板
define('INSTALL_LOCK', ROOT_PATH . '/../install.lock');//项目安装锁
define('TEMP_DBCONFIG',dirname(__FILE__).'/Data/dataconfig.php');//数据库配置模板
define('APP_DBCONFIG',ROOT_PATH.'../common/config/main-local.php');//项目数据库配置

$installSuccess = 1;  //安装错误控制
$installMsg='有错误';
//要检查的目录文件
$dirfile_items = array (
	'root' => array('type' => 'dir', 'needStatus' => 1 ,'path' => './'),
	'codeRoot' => array('type' => 'dir', 'needStatus' => 1 ,'path' => './../'),
	'index' => array('type' => 'file', 'needStatus' => 0 ,'path' => './index.php'),
	'dbconfig' => array('type' => 'file', 'needStatus' => 1, 'path' => './../common/config/main-local.php'),
	'config' => array('type' => 'dir', 'needStatus' => 1, 'path' => './assets'),
	'commonRuntime' => array('type' => 'file', 'needStatus' => 1, 'path' => './../common/runtime'),
	'homeRuntime' => array('type' => 'file', 'needStatus' => 1, 'path' => './../home/runtime'),
	'qcbaseRuntime' => array('type' => 'file', 'needStatus' => 1, 'path' => './../qcbase/runtime'),
);
//要检查的函数
$checkFuns = array(
	'mysql_connect' => array('status' => 1, 'suggest' => '请检查mysql模块是否正确加载'),
	'mysqli_connect' => array('status' => 1, 'suggest' => '请检查mysqli模块是否正确加载'),
	'curl_init' => array('status' => 1, 'suggest' => '请检查curl模块是否正确加载'),
	'chmod' => array('status' => 1, 'suggest' => '请检查服务器是否禁用chmod函数'),
);
//要检查的数据库信息
$dbInfo=array(
	'dbhost'=>'数据库服务器',
	'dbname'=>'数据库名',
	'dbuser'=>'数据库用户名',
	'dbpw'=>'数据库密码',
	'dbport'=>'数据库端口',
	'tablepre'=>'数据表前缀'
);
$adminInfo=array(
	'username'=>'管理员账号',
	'password'=>'管理员密码',
	'password2'=>'重复密码'
);
?>
