●快速架站程式:Appserv1.9.0
●免費空間連結:
●您的上網方式:臺灣固網
●您安裝的程式:Apache 1.9.0 + php 4.3.0 + MySql 2.3.3
●您的 phpBB2 版本:phpBB (2.0.6)。
●您的 domain(網域名稱) :taiwanclub.idv.tw
●您的 phpBB2 連結網址: http://www.taiwanclub.idv.tw/
想請問各位先進.我安裝了WOG v2.06在首頁裝了連結.但是一進去會出現偵錯的視窗.我沒去改wog.js的檔案
代碼: 選擇全部
行:122
錯誤:'parent foot document'是null或不是一個物件
行:149
錯誤:'document'是null或不是一個物件
可是我在開一個瀏覽器\r
http://www.taiwanclub.idv.tw/phpbb/wog
在沒有把註解拿掉的情況下.可以正常遊戲\r
/*
if(substr(getenv("HTTP_REFERER"),0,22)!="http://www.taiwanclub.idv.tw/phpbb/wog")
{
alertWindowMsg("請重http://www.taiwanclub.idv.tw/wog/ 進入遊戲");
}
*/
這是在 overall_header.tpl 的連結語法
代碼: 選擇全部
<img src="templates/subSilver/images/ff.gif" width="12" height="13" border="0" hspace="3" /><a href="http://www.taiwanclub.idv.tw/phpbb/wog/">Online FF 太空戰士</a>
vbb_support/config/config.php
代碼: 選擇全部
<?php
/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////
// type of database running
// (only mysql is supported at the moment)
$dbservertype='mysql';
// hostname or ip of server
$servername='localhost'; //<--你使用的db的ip或網址
// username and password to log onto db server
$dbusername='taiwan'; //<--連結db的帳號
$dbpassword='29979478'; //<--連結db的密碼\r
// name of database
$dbname='phpbb'; //<--你使用的db名稱\r
// technical email address - any error messages will be emailed here
$technicalemail='ang37689@ms14.hinet.net'; //<--當有error訊息時所要寄發的email位子
// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect=0;
?>
代碼: 選擇全部
<?
/*=====================================================
Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
Modify : 2003/09/05
URL : http://www.2233.idv.tw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===================================================== */
// ###################### Start init #######################
//alertWindowMsg("遊戲改版中");
/* vbb論壇專用\r
$bbs_id=$bbuserinfo[userid];
if ($bbs_id==0) {
showscript("alert('尚未登入論壇 或 尚未成為論壇會員不能進行遊戲..');history.back();");
exit();
}
*/
// gzip start
$do_gzip_compress = FALSE;
if ($wog_arry["gzip_compress"])
{
$phpver = phpversion();
$useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
{
if ( extension_loaded('zlib') )
{
ob_start('ob_gzhandler');
}
}
else if ( $phpver > '4.0' )
{
if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
{
if ( extension_loaded('zlib') )
{
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
}
}
//post_check($_POST);
unset($dbservertype);
//load config
require($phpbb_root_path.'vbb_support/config/config.php');
// init db **********************
// load db class
$dbservertype = strtolower($dbservertype);
$dbclassname=$phpbb_root_path."vbb_support/config/db_$dbservertype.php";
require($dbclassname);
$DB_site=new DB_Sql_vb;
$DB_site->appname='vBulletin';
$DB_site->appshortname='vBulletin (forum)';
$DB_site->database=$dbname;
$DB_site->server=$servername;
$DB_site->user=$dbusername;
$DB_site->password=$dbpassword;
$DB_site->connect();
$dbpassword="";
$DB_site->password="";
// end init db
// ###################### Start functions #######################
?>
代碼: 選擇全部
<?
/*=====================================================
Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
Modify : 2001/01/21
URL : http://www.2233.idv.tw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===================================================== */
$phpbb_root_path = "../";
require($phpbb_root_path.'vbb_support/function.php');
//alertWindowMsg("遊戲更新中,暫時關閉");
if(substr(getenv("HTTP_REFERER"),0,38)!="http://www.taiwanclub.idv.tw/phpbb/wog")
{
alertWindowMsg("請重http://www.taiwanclub.idv.tw/ 進入遊戲");
}
error_reporting(7);
if(!isset($_POST["act"]))
{
$_POST["act"]="";
}
if(!isset($_POST["f"]))
{
$_POST["f"]="";
}
if( $_POST["f"] != "chara" && $HTTP_COOKIE_VARS["wog_cookie"]=="")
{
alertWindowMsg("尚未登入遊戲 或 cookie失效無法正常執行遊戲");
}
/* vbb論壇專用\r
if($bbs_id==3)
{
alertWindowMsg("未認證會員不能進行遊戲");
}
*/
//session_register('act_time');
require("./wog_act_config.php");
//session_check($wog_arry["act_dely_time"]);
require($phpbb_root_path."vbb_support/global.php");
//########################## switch case begin #######################
//$bbuserinfo[userid]="no_vbb";
$a_id="";
$temp_ss="";
switch ($_POST["f"])
{
case "chara":
$p_ip=get_ip();
$bbs_id=phpbb_check($p_ip);// phpbb論壇專用\r
if($bbs_id==-1)
{
showscript("alert('尚未登入論壇 或 尚未成為論壇會員不能進行遊戲..');window.open('../phpbb/','_top');");
}
switch ($_POST["act"])
{
代碼: 選擇全部
/*=====================================================
Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
Modify : 2004/01/21
URL : http://www.2233.idv.tw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===================================================== */
$phpbb_root_path = "../";
require($phpbb_root_path.'vbb_support/function.php');
if($_GET["f"]!="img")
{
if(substr(getenv("HTTP_REFERER"),0,38)!="http://www.taiwanclub.idv.tw/phpbb/wog")
{
alertWindowMsg("請重http://www.taiwanclub.idv.tw/ 進入遊戲");
}
}
//session_register('act_time');
require("./wog_act_config.php");
//session_check($wog_arry["etc_dely_time"]);
require($phpbb_root_path."vbb_support/global.php");
$a_id="";
代碼: 選擇全部
/*=====================================================
Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
Modify : 2001/01/21
URL : http://www.2233.idv.tw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===================================================== */
$phpbb_root_path = "../";
require($phpbb_root_path.'vbb_support/function.php');
//alertWindowMsg("遊戲更新中,暫時關閉");
if(substr(getenv("HTTP_REFERER"),0,38)!="http://www.taiwanclub.idv.tw/phpbb/wog")
{
alertWindowMsg("請重http://www.taiwanclub.idv.tw/ 進入遊戲");
}
if($HTTP_COOKIE_VARS["wog_cookie"]=="")
{
alertWindowMsg("尚未登入遊戲 或 cookie失效無法正常執行遊戲");
}
error_reporting(7);
session_register('act_time');
require("./wog_act_config.php");
session_check($wog_arry["f_time"],3);
require($phpbb_root_path."vbb_support/global.php");
require("./wog_class.php");
$wogclass = new wog;
if(!isset($_POST["act"]))
{
$_POST["act"]="";
}
if(!isset($_POST["f"]))
{
$_POST["f"]="";
}
//########################## switch case begin #######################
if(empty($HTTP_COOKIE_VARS["wog_bbs_id"]))
{
alertWindowMsg("尚未登入論壇");
}else
{
$datecut = time() - $wog_arry["offline_time"];
$online=$DB_site->query_first("select p_name from wog_player where p_online_time > $datecut and p_id<>".$HTTP_COOKIE_VARS["wog_cookie"]." and p_bbsid=".$HTTP_COOKIE_VARS["wog_bbs_id"]."");
if($online)
{
setcookie("wog_cookie","");
setcookie("wog_cookie_name","");
setcookie("wog_bbs_id","");
showscript("alert('相同論壇帳號在遊戲中');window.open('../phpbb/','_top')");