Copyright 2004-2011 iDB Support - http://idb.berlios.de/
Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: main.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $
+ $FileInfo: main.php - Last Update: 06/18/2011 SVN 678 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="main.php"||$File3Name=="/main.php") {
$SettInfo['board_name'] = $Settings['board_name']; }
if($Settings['board_name']!=$SettInfo['board_name']) {
$SettInfo['board_name'] = $Settings['board_name']; }
+if(!isset($Settings['VerCheckURL'])) {
+ $Settings['VerCheckURL'] = ""; }
+if(!isset($Settings['IPCheckURL'])) {
+ $Settings['IPCheckURL'] = ""; }
+if(!isset($Settings['log_config_format'])) {
+ $Settings['log_config_format'] = "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""; }
?>
<table class="Table3">
<tr style="width: 100%; vertical-align: top;">
"\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
"\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
"\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
+"\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
+"\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
"\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
+"\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
"\$Settings['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n".
"\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
"\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
"\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
"\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
"\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
+"\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
+"\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
"\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
+"\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
"\$Settings['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n".
"\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
"\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
"\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
"\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
"\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
+"\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
+"\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
"\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
+"\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
"\$Settings['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n".
"\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
"\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
"\$Settings['enable_pathinfo'] = ".null_string($Settings['enable_pathinfo']).";\n".
"\$Settings['rssurl'] = ".null_string($Settings['rssurl']).";\n".
"\$Settings['board_offline'] = ".null_string($Settings['board_offline']).";\n".
+"\$Settings['VerCheckURL'] = ".null_string($Settings['VerCheckURL']).";\n".
+"\$Settings['IPCheckURL'] = ".null_string($Settings['IPCheckURL']).";\n".
"\$Settings['log_http_request'] = ".null_string($Settings['log_http_request']).";\n".
+"\$Settings['log_config_format'] = ".null_string($Settings['log_config_format']).";\n".
"\$Settings['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n".
"\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n".
"\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n".
Copyright 2004-2011 iDB Support - http://idb.berlios.de/
Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: function.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $
+ $FileInfo: function.php - Last Update: 06/18/2011 SVN 678 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="function.php"||$File3Name=="/function.php") {
global $Settings;
if(!isset($_SERVER['HTTP_REFERER'])) { $URL_REFERER = "-"; }
if(isset($_SERVER['HTTP_REFERER'])) { $URL_REFERER = $_SERVER['HTTP_REFERER']; }
+if(!isset($_SERVER['PHP_AUTH_USER'])) { $AUTH_USER = "-"; }
+if(isset($_SERVER['PHP_AUTH_USER'])) { $AUTH_USER = $_SERVER['PHP_AUTH_USER']; }
+$LOG_QUERY_STRING = "";
+if($_SERVER["QUERY_STRING"]!=="") {
+$LOG_QUERY_STRING = "?".$_SERVER["QUERY_STRING"]; }
+$oldcontentsize = $contentsize;
+if($contentsize===0) { $contentsize = "-"; }
$logtxt = preg_replace("/".preg_quote("%h", "/")."/s", $_SERVER['REMOTE_ADDR'], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%a", "/")."/s", $_SERVER['REMOTE_ADDR'], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%A", "/")."/s", $_SERVER["SERVER_ADDR"], $logtxt);
$logtxt = preg_replace("/".preg_quote("%l", "/")."/s", "-", $logtxt);
-$logtxt = preg_replace("/".preg_quote("%u", "/")."/s", "-", $logtxt);
+$logtxt = preg_replace("/".preg_quote("%u", "/")."/s", $AUTH_USER, $logtxt);
+$logtxt = preg_replace("/".preg_quote("%f", "/")."/s", $_SERVER["SCRIPT_FILENAME"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%H", "/")."/s", $_SERVER["SERVER_PROTOCOL"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%m", "/")."/s", $_SERVER["REQUEST_METHOD"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%p", "/")."/s", $_SERVER["SERVER_PORT"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%q", "/")."/s", $LOG_QUERY_STRING, $logtxt);
+$logtxt = preg_replace("/".preg_quote("%U", "/")."/s", $_SERVER["PHP_SELF"], $logtxt);
+// Not what it should be but PHP dose not have variable to get Apache ServerName config value. :(
+$logtxt = preg_replace("/".preg_quote("%v", "/")."/s", $_SERVER["SERVER_NAME"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%V", "/")."/s", $_SERVER["SERVER_NAME"], $logtxt);
$logtxt = preg_replace("/".preg_quote("%t", "/")."/s", "[".date("d/M/Y:H:i:s O")."]", $logtxt);
-$logtxt = preg_replace("/".preg_quote("%r", "/")."/s", $_SERVER["REQUEST_METHOD"]." ".$_SERVER["REQUEST_URI"], $logtxt);
+$logtxt = preg_replace("/".preg_quote("%r", "/")."/s", $_SERVER["REQUEST_METHOD"]." ".$_SERVER["REQUEST_URI"]." ".$_SERVER["SERVER_PROTOCOL"], $logtxt);
$logtxt = preg_replace("/".preg_quote("%s", "/")."/s", $status, $logtxt);
$logtxt = preg_replace("/".preg_quote("%>s", "/")."/s", $status, $logtxt);
$logtxt = preg_replace("/".preg_quote("%b", "/")."/s", $contentsize, $logtxt);
+$logtxt = preg_replace("/".preg_quote("%B", "/")."/s", $oldcontentsize, $logtxt);
$logtxt = preg_replace("/".preg_quote("%{Referer}i", "/")."/s", $URL_REFERER, $logtxt);
$logtxt = preg_replace("/".preg_quote("%{User-Agent}i", "/")."/s", $_SERVER["HTTP_USER_AGENT"], $logtxt);
if(isset($logfile)&&$logfile!==null) {
global $Settings,$SettDir;
if(!isset($Settings['log_http_request'])) {
$Settings['log_http_request'] = "off"; }
+if(!isset($Settings['log_config_format'])) {
+ $Settings['log_config_format'] = "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""; }
if(isset($Settings['log_http_request'])&&$Settings['log_http_request']=="on"&&
$Settings['log_http_request']!==null&&$Settings['log_http_request']!="off") {
-return apache_log_maker("%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"", $SettDir['logs'].$Settings['sqltable'].date("YW").".log",$status,$contentsize); }
+return apache_log_maker($Settings['log_config_format'], $SettDir['logs'].$Settings['sqltable'].date("YW").".log", $status, $contentsize); }
if(isset($Settings['log_http_request'])&&$Settings['log_http_request']!="on"&&
$Settings['log_http_request']!==null&&$Settings['log_http_request']!="off") {
-return apache_log_maker("%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"", $SettDir['logs'].$Settings['log_http_request'],$status,$contentsize); } }
+return apache_log_maker($Settings['log_config_format'], $SettDir['logs'].$Settings['log_http_request'], $status, $contentsize); } }
?>
Copyright 2004-2011 iDB Support - http://idb.berlios.de/
Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
- $FileInfo: versioninfo.php - Last Update: 06/18/2011 SVN 677 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 06/18/2011 SVN 678 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
return $return_var; }
// Version number and date stuff. :P
$VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 677;
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 678;
$SVNDay[0] = 06; $SVNDay[1] = 18; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
$AltName = "RDB"; $AltName2 = "ReneeDB"; $RName = "iDB"; $SFName = "IntDB";
$RFullName = "Internet Discussion Boards"; $AltFullName = "Renee Discussion Boards";
*/
$iDBHome = "http://idb.berlios.de/"; $DF2kHome = "http://df2k.berlios.de/";
$OrgName = "iDB"; $AltOrgName = "RDB"; $AltiDB = "Renee Discussion Boards";
-if(!isset($Settings['VerCheckURL'])) {
+if(!isset($Settings['VerCheckURL'])||
+ $Settings['VerCheckURL']==="") {
$VerCheckURL = $iDBHome."?act=vercheck"; }
-if(isset($Settings['VerCheckURL'])) {
+if(isset($Settings['VerCheckURL'])&&
+ $Settings['VerCheckURL']!=="") {
$VerCheckURL = $Settings['VerCheckURL']; }
$VerCheckQuery = parse_url($VerCheckURL);
$VerCheckQuery = $VerCheckQuery['query'];
if($VerCheckQuery=="") { $VerCheckURL = $VerCheckURL."?"; }
-if(!isset($Settings['IPCheckURL'])) {
+if(!isset($Settings['IPCheckURL'])||
+ $Settings['IPCheckURL']==="") {
$IPCheckURL = 'http://cqcounter.com/whois/?query=%s'; }
-if(isset($Settings['IPCheckURL'])) {
+if(isset($Settings['IPCheckURL'])&&
+ $Settings['IPCheckURL']!=="") {
$IPCheckURL = $Settings['IPCheckURL']; }
$CD2k = "Kazuki Przyborowski"; $GM2k = "Game Maker 2k"; $iDB_Author = "Kazuki";
$iDB = "Internet Discussion Boards"; $iTB = "Internet Tag Boards";
Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/
iDB Installer made by Game Maker 2k - http://idb.berlios.net/
- $FileInfo: mkconfig.php - Last Update: 06/13/2011 SVN 669 - Author: cooldude2k $
+ $FileInfo: mkconfig.php - Last Update: 06/18/2011 SVN 678 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
"\$Settings['enable_pathinfo'] = 'off';\n".
"\$Settings['rssurl'] = 'off';\n".
"\$Settings['board_offline'] = 'off';\n".
+"\$Settings['VerCheckURL'] = '';\n".
+"\$Settings['IPCheckURL'] = '';\n".
"\$Settings['log_http_request'] = 'off';\n".
+"\$Settings['log_config_format'] = '%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"';\n".
"\$Settings['BoardUUID'] = '".$ServerUUID."';\n".
"\$Settings['KarmaBoostDays'] = '".$KarmaBoostDay."';\n".
"\$Settings['KBoostPercent'] = '6|10';\n".$pretext2[1]."\n".