|
妈妈的,全是big5的,偶看得头大,哪位好心人给我一点提示啊!
我的问题是数据库已经建立,但是总说配置文件错误.
这个的配置文件是indexVARS.php么?
我是本机运行,麻烦看看偶这个文件,内容如下:
<?
if (!isset($SITEVARS_PHP_READONCE)) {
//------------------------ Site Info ------------------------------------------
$SITEHOSTIP="localhost";
$SITENAME="FabulousWeb";
$LFDN="localhost";
$LOGOFILE="FW1d.gif";
$LOGOALT="FabulousWeb Demo Site";
$SITEMEMBERID="FabulousWebMemberID";
$SITEMEMBERUNIQIDHEADER="fabulousweb";
$SITEMEMBERLANGID="FabulousWebMemberLanguageID"; // unset:Taiwan, set:China
$DOCUMENT_ROOT="/home/rollaned/FW";
//------------------------ Site Functions ----------------------------------
$SITEFUNCNUMB=3;
//------------------------ PlatForm ID -------------------------------------
$SERVER_OSTYPE=0; // 1 : Windows 0: Unix/Linux
if ($SERVER_OSTYPE==1)
$HEADER_PLUGIN_LOCATION="Status: 302 Moved \n ";
//------------------------ Language Checking -------------------------------
$DB="FW";
$BROWSER_CHARSET="big5";
$CACHEFILENAME_POSTFIX="";
//------------------------ Site Backup Path --------------------------------
$SITESYSTEM_BACKUP_PATH="/tmp";
//------------------------ Graphics Path -----------------------------------
$PIC_PATH="pic";
$ADV_PATH="adv";
$ICON_PATH="icon";
$LINK_PATH="link";
$EDITORICON_PATH="editor_icon";
$BOOKICON_PATH="bookicon";
$LOCAL_PICURL="/graphics/$PIC_PATH";
$LOCAL_ADVURL="/graphics/$ADV_PATH";
$LOCAL_ICONURL="/graphics/$ICON_PATH";
$LOCAL_LINKURL="/graphics/$LINK_PATH";
$LOCAL_EDITORICONURL="/graphics/$EDITORICON_PATH";
$LOCAL_BOOKICONURL="/graphics/BOOKICON_PATH";
$PICURL="/graphics/$PIC_PATH";
$ADVURL="/graphics/$ADV_PATH";
$ICONURL="/graphics/$ICON_PATH";
$LINKURL="/graphics/$LINK_PATH";
$EDITORICONURL="/graphics/$EDITORICON_PATH";
$BOOKICONURL="/graphics/$BOOKICON_PATH";
//------------------------ Graphics Icon Mirror Site --------------------------
$GRAPHICS_SITE1="";
$PICURL=$GRAPHICS_SITE1."/graphics/$PIC_PATH";
$ADVURL=$GRAPHICS_SITE1."/graphics/$ADV_PATH";
$ICONURL=$GRAPHICS_SITE1."/graphics/$ICON_PATH";
$LINKURL=$GRAPHICS_SITE1."/graphics/$LINK_PATH";
$EDITORICONURL=$GRAPHICS_SITE1."/graphics/$EDITORICON_PATH";
//----------------------- Search ----------------------------------------------
$SEARCH_DISP_LIMIT=10;
//----------------------- Poster Class ----------------------------------------
$POWD_REPLYTITLE=52;
$POWD_REPLYER=23;
$POWD_REPLYEMAIL=23;
$POWD_REPLYURL=23;
$POWD_REPLYPASSWD=23;
$POWD_REPLYBODY=50;
$POHT_REPLYBODY=15;
$POSTER_ENABLE_LEVEL=0;
$PO_NOTEFILE=$DOCUMENT_ROOT."/NoteFile/PoNote.inc";
//----------------------- Easy Interface ---------------------------------------
$EASYNEWS_DISP_LIMIT=8;
$EASYTOPNEWS_DISP_LIMIT=3;
$EASYSOFT_DISP_LIMIT=6;
$EASYTOPSOFT_DISP_LIMIT=3;
$EASYCOLUMN_DISP_LIMIT=6;
$EASYEBOOK_DISP_LIMIT=6;
$EASYBOOKSTALK_DISP_LIMIT=3;
$EASYTOPBOOKSTALK_DISP_LIMIT=2;
//----------------------- Vote ------------------------------------------------
$VOTECOOKIETIME=3600; // 259200;
//----------------------- News ------------------------------------------------
$TOPNEWS_WEEK_HITRATIO=10; // 100 hit/hour
$TOPNEWS_WEEK_DISP_LIMIT=7;
$TOPNEWS_MONTH_HITRATIO=10; // 100 hit/hour
$TOPNEWS_MONTH_DISP_LIMIT=10;
$TOPNEWS_QUARTER_HITRATIO=5; // 100 hit/hour
$TOPNEWS_QUARTER_DISP_LIMIT=10;
$NEWSSUPPLYPERIOD=10800; // 3 hours = 10800
$TOPASKSITENEWS_PERIOD_DAYS=30;
$TOPASKSITENEWS_DISP_LIMIT=12;
$TOPASKSITENEWS_PO_LIMIT=4;
$ASKSITENEWSTYPEID=46;
$EVENTNEWSTYPEID=37;
$NEWS_DISP_LIMIT=12;
//----------------------- Link -------------------------------------------------
$LINK_DETAIL_DISP_LIMIT=10;
$TOPLINK_ALL_DISP_LIMIT=20;
//----------------------- Editor ------------------------------------------------
$EDITOREMAILFORWARD=1;
$EDITORICONPATH="/graphics/editor_icon";
//----------------------- PEOPLEHALL ------------------------------------------------
$PEOPLEHALL_DISP_LIMIT=30;
//----------------------- Member -------------------------------------------------
$MESSAGEDISPLIMIT=24;
$MESSAGENEWICONDAYS=7;
$MEMBER_LOGINTIME_CHECK_PERIOD=300; // 5 mins
$MEMBER_GUEST_UNIQID='pccluster.nchc-0000000000000';
$MEMBER_GUEST_ID="guest";
//----------------------- Homepage Interface ------------------------------------
$NEWSFONTSIZE=2;
$SOFTFONTSIZE=2;
//----------------------- Prefetch System ----------------------------------------
$PREFETCHBEGMARK="-HAHABEGBEG-HAHABEGBEG-HAHABEGBEG-HAHABEGBEG-HAHABEGBEG-";
$PREFETCHENDMARK="-HEHEENDEND-HEHEENDEND-HEHEENDEND-HEHEENDEND-HEHEENDEND-";
//---------------------- Open MySQL Connection -----------------------------------
$DBServer=mysql_pconnect("localhost","(mysql用户名)","(mysql密码)");
mysql_select_db($DB,$DBServer);
//---------------------- Find IP ------------------------------------------
$tmp=ereg_replace(" ","",$HTTP_X_FORWARDED_FOR);
if ($tmp!="") {
$tmpa=explode(",",$HTTP_X_FORWARDED_FOR);
$FROMIP=$tmpa[0];
}
else
$FROMIP=$REMOTE_ADDR;
//---------------------- Guest Member Login !! -----------------------------------
//echo isset($$SITEMEMBERID);
if (!isset($$SITEMEMBERID) && $FROMIP!="") {
setcookie($SITEMEMBERID,$MEMBER_GUEST_UNIQID);
$SITEMEMBERID=$MEMBER_GUEST_UNIQID;
$MEMBER_LOGIN_UNIQID=$MEMBER_GUEST_UNIQID;
$MEMBER_LOGIN_ID=$MEMBER_GUEST_ID;
}
else {
$DBT=mysql_query("select ID,TYPE from MemberDB where UNIQID=\"".$$SITEMEMBERID."\"");
if (mysql_num_rows($DBT)>0) {
$DBTrow=mysql_fetch_row($DBT);
$MEMBER_LOGIN_TYPE=$DBTrow[1];
if ($DBTrow[1]>0) {
$DBL=mysql_query("select DLEVEL from EditorDB where ID=\"".$DBTrow[0]."\"");
if (mysql_num_rows($DBL)>0) {
$DBLrow=mysql_fetch_row($DBL);
$MEMBER_LOGIN_DLEVEL=$DBLrow[0];
};
};
$MEMBER_LOGIN_UNIQID=$$SITEMEMBERID;
$MEMBER_LOGIN_ID=$DBTrow[0];
};
};
//---------------------- Later Member Login --------------------------------------
if (isset($LATERMEMBERLOGINBUTTON)) {
$DBT=mysql_query("select UNIQID from MemberDB where ID='$LATERMEMBERLOGINID' and PASSWD='$LATERMEMBERLOGINPW'");
if (mysql_num_rows($DBT)>0) {
$DBTrow=mysql_fetch_row($DBT);
$UNIQID=$DBTrow[0];
mysql_query("update MemberDB set REFCOUNTER=REFCOUNTER+1 where ID='$LATERMEMBERLOGINID'");
setcookie($SITEMEMBERID,$UNIQID);
$POSTER_PRESET_UNIQID=$UNIQID;
};
};
//----------------------- Home Info -------------------------------------------
$DBFI=mysql_query("select ID,TITLE from FunctionItemDB where STATUS=1 order by ID ");
$DBFI_row_num=mysql_num_rows($DBFI);
for ($t=1;$t<=$DBFI_row_num;$t++) {
$DBFIrow=mysql_fetch_row($DBFI);
$FIID=$DBFIrow[0];
$FITITLE=$DBFIrow[1];
$VARNAME="HOME".$FIID."_TITLE";
$$VARNAME=$FITITLE;
};
//----------------------- SiteDB ---------------------------------------------
if (!isset($SYSTEMPREFETCH) && $FROMIP!="") {
if ($COUNTER_NOT_INCREASE==1)
setcookie("COUNTER_NOT_INCREASE","",time()+300,"/");
elseif (isset($UPDATE_SITE_LOGINCOUNTER))
mysql_query("update SiteDB set LOGINCOUNTER=LOGINCOUNTER+1");
};
$SITEVARS_PHP_READONCE=1;
};
?>
_____________________________________________________
问题在哪里呢? |
|