Location: PHPKode > projects > Uchome and Discuz > config.new.php
<?php
/*
	[Ucenter Home] (C) 2007-2008 Comsenz Inc.
	$Id: config.new.php 10855 2008-12-29 08:10:45Z liguode $
*/

//Ucenter HomeÅäÖòÎÊý
$_SC = array();
$_SC['dbhost']  		= 'localhost'; //·þÎñÆ÷µØÖ·
$_SC['dbuser']  		= 'root'; //Óû§
$_SC['dbpw'] 	 		= 'root'; //ÃÜÂë
$_SC['dbcharset'] 		= 'gbk'; //×Ö·û¼¯
$_SC['pconnect'] 		= 0; //ÊÇ·ñ³ÖÐøÁ¬½Ó
$_SC['dbname']  		= 'uchome'; //Êý¾Ý¿â
$_SC['tablepre'] 		= 'uchome_'; //±íÃûǰ׺
$_SC['charset'] 		= 'gbk'; //Ò³Ãæ×Ö·û¼¯

$_SC['gzipcompress'] 	= 0; //ÆôÓÃgzip

$_SC['cookiepre'] 		= 'uchome_'; //COOKIEǰ׺
$_SC['cookiedomain'] 	= ''; //COOKIE×÷ÓÃÓò
$_SC['cookiepath'] 		= '/'; //COOKIE×÷Ó÷¾¶

$_SC['attachdir']		= './attachment/'; //¸½¼þ±¾µØ±£´æλÖÃ(·þÎñÆ÷·¾¶, ÊôÐÔ 777, ±ØÐëΪ web ¿É·ÃÎʵ½µÄĿ¼, Ïà¶ÔĿ¼Îñ±ØÒÔ "./" ¿ªÍ·, ĩβ¼Ó "/")
$_SC['attachurl']		= 'attachment/'; //¸½¼þ±¾µØURLµØÖ·(¿ÉΪµ±Ç° URL ϵÄÏà¶ÔµØÖ·»ò http:// ¿ªÍ·µÄ¾ø¶ÔµØÖ·, ĩβ¼Ó "/")

$_SC['siteurl']			= ''; //Õ¾µãµÄ·ÃÎÊURLµØÖ·(http:// ¿ªÍ·µÄ¾ø¶ÔµØÖ·, ĩβ¼Ó "/")£¬Îª¿ÕµÄ»°£¬ÏµÍ³»á×Ô¶¯Ê¶±ð¡£

$_SC['tplrefresh']		= 0; //ÅжÏÄ£°åÊÇ·ñ¸üеÄЧÂʵȼ¶£¬ÊýÖµÔ½´ó£¬Ð§ÂÊÔ½¸ß; ÉèÖÃΪ0ÔòÓÀ¾Ã²»ÅжÏ

//Ucenter Home°²È«Ïà¹Ø
$_SC['founder'] 		= '1'; //´´Ê¼ÈË UID, ¿ÉÒÔÖ§³Ö¶à¸ö´´Ê¼ÈË£¬Ö®¼äʹÓà ¡°,¡± ·Ö¸ô¡£²¿·Ö¹ÜÀí¹¦ÄÜÖ»Óд´Ê¼È˲ſɲÙ×÷¡£
$_SC['allowedittpl']	= 0; //ÊÇ·ñÔÊÐíÔÚÏ߱༭ģ°å¡£ÎªÁË·þÎñÆ÷°²È«£¬Ç¿ÁÒ½¨Òé¹Ø±Õ

//Ó¦ÓõÄUCenterÅäÖÃÐÅÏ¢(¿ÉÒÔµ½UCenterºǫ́->Ó¦ÓùÜÀí->²é¿´±¾Ó¦ÓÃ->¸´ÖÆÀïÃæ¶ÔÓ¦µÄÅäÖÃÐÅÏ¢½øÐÐÌæ»»)
define('UC_CONNECT', 'mysql'); // Á¬½Ó UCenter µÄ·½Ê½: mysql/NULL, ĬÈÏΪ¿ÕʱΪ fscoketopen(), mysql ÊÇÖ±½ÓÁ¬½ÓµÄÊý¾Ý¿â, ΪÁËЧÂÊ, ½¨Òé²ÉÓà mysql
define('UC_DBHOST', 'localhost'); // UCenter Êý¾Ý¿âÖ÷»ú
define('UC_DBUSER', 'root'); // UCenter Êý¾Ý¿âÓû§Ãû
define('UC_DBPW', 'root'); // UCenter Êý¾Ý¿âÃÜÂë
define('UC_DBNAME', 'ucenter'); // UCenter Êý¾Ý¿âÃû³Æ
define('UC_DBCHARSET', 'gbk'); // UCenter Êý¾Ý¿â×Ö·û¼¯
define('UC_DBTABLEPRE', 'uc_'); // UCenter Êý¾Ý¿â±íǰ׺
define('UC_DBCONNECT', '0'); // UCenter Êý¾Ý¿â³Ö¾ÃÁ¬½Ó 0=¹Ø±Õ, 1=´ò¿ª
define('UC_KEY', '1234567890'); // Óë UCenter µÄͨÐÅÃÜÔ¿, ÒªÓë UCenter ±£³ÖÒ»ÖÂ
define('UC_API', 'http://localhost/uc_server'); // UCenter µÄ URL µØÖ·, ÔÚµ÷ÓÃÍ·ÏñʱÒÀÀµ´Ë³£Á¿
define('UC_CHARSET', 'gbk'); // UCenter µÄ×Ö·û¼¯
define('UC_IP', ''); // UCenter µÄ IP, µ± UC_CONNECT Ϊ·Ç mysql ·½Ê½Ê±, ²¢ÇÒµ±Ç°Ó¦Ó÷þÎñÆ÷½âÎöÓòÃûÓÐÎÊÌâʱ, ÇëÉèÖôËÖµ
define('UC_APPID', '1'); // µ±Ç°Ó¦ÓÃµÄ ID
define('UC_PPP', 20);

?>
Return current item: Uchome and Discuz