From a81cb441219053ff0e1b2c183cdaf967ce298d21 Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Tue, 14 Jun 2011 06:28:06 +0000 Subject: [PATCH] Another small update to apache like request logger. git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@672 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- admin.php | 4 +-- forum.php | 4 +-- inc/admin/categories.php | 12 ++++---- inc/admin/forums.php | 12 ++++---- inc/admin/groups.php | 8 ++--- inc/admin/main.php | 6 ++-- inc/admin/members.php | 6 ++-- inc/categories.php | 8 ++--- inc/events.php | 8 ++--- inc/function.php | 3 +- inc/groupsetup.php | 18 +++++------ inc/lowcategories.php | 8 ++--- inc/lowreplies.php | 14 ++++----- inc/lowsubcategories.php | 8 ++--- inc/lowsubforums.php | 14 ++++----- inc/lowtopics.php | 14 ++++----- inc/members.php | 31 ++++++++++--------- inc/messages.php | 8 ++--- inc/misc/functions.php | 23 +++++++------- inc/prelogin.php | 8 ++--- inc/profilemain.php | 4 +-- inc/replies.php | 78 ++++++++++++++++++++++++------------------------ inc/rssfeed.php | 8 ++--- inc/searches.php | 6 ++-- inc/subcategories.php | 8 ++--- inc/subforums.php | 14 ++++----- inc/topics.php | 18 +++++------ inc/versioninfo.php | 6 ++-- index.php | 12 ++++---- messenger.php | 4 +-- profile.php | 4 +-- rss.php | 6 ++-- search.php | 6 ++-- sql.php | 6 ++-- subforum.php | 4 +-- 35 files changed, 203 insertions(+), 198 deletions(-) diff --git a/admin.php b/admin.php index df071ff..320651f 100644 --- a/admin.php +++ b/admin.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: admin.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: admin.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ if(ini_get("register_globals")) { require_once('inc/misc/killglobals.php'); } @@ -47,7 +47,7 @@ $AdminMenu = null; require($SettDir['inc'].'navbar.php'); if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_GET['act']==null) { $_GET['act']="view"; } diff --git a/forum.php b/forum.php index f7a6d60..14e689a 100644 --- a/forum.php +++ b/forum.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: forum.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: forum.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ if(ini_get("register_globals")) { require_once('inc/misc/killglobals.php'); } @@ -44,7 +44,7 @@ if($_GET['act']=="lowview") { require($SettDir['inc'].'lowtopics.php'); } if($_GET['act']=="oldrss"||$_GET['act']=="rss"||$_GET['act']=="atom") { redirect("location",$rbasedir.url_maker($exfile['rss'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } require($SettDir['inc'].'endpage.php'); if(!isset($ForumName)) { $ForumName = null; } diff --git a/inc/admin/categories.php b/inc/admin/categories.php index 033655a..8e8b63c 100644 --- a/inc/admin/categories.php +++ b/inc/admin/categories.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: categories.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: categories.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="categories.php"||$File3Name=="/categories.php") { @@ -21,7 +21,7 @@ if ($File3Name=="categories.php"||$File3Name=="/categories.php") { // Check if we can goto admin cp if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } $Error = null; $errorstr = null; @@ -386,7 +386,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $CategoryID=sql_result($preresult,0,"id"); @@ -507,7 +507,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $OldID=sql_result($preresult,0,"id"); @@ -692,7 +692,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."catpermissio $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $PermissionNum=sql_result($preresult,0,"id"); @@ -811,7 +811,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."catpermissio $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $PermissionName=sql_result($preresult,0,"Name"); diff --git a/inc/admin/forums.php b/inc/admin/forums.php index 8c249ef..f7354a0 100644 --- a/inc/admin/forums.php +++ b/inc/admin/forums.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: forums.php - Last Update: 06/11/2011 SVN 666 - Author: cooldude2k $ + $FileInfo: forums.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="forums.php"||$File3Name=="/forums.php") { @@ -21,7 +21,7 @@ if ($File3Name=="forums.php"||$File3Name=="/forums.php") { // Check if we can goto admin cp if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } $Error = null; $errorstr = null; @@ -708,7 +708,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $ForumID=sql_result($preresult,0,"id"); @@ -876,7 +876,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $OldID=sql_result($preresult,0,"id"); @@ -1068,7 +1068,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."permissions\ $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $PermissionNum=sql_result($preresult,0,"id"); @@ -1442,7 +1442,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."permissions\ $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $PermissionName=sql_result($preresult,0,"Name"); diff --git a/inc/admin/groups.php b/inc/admin/groups.php index 3572172..c7ad71c 100644 --- a/inc/admin/groups.php +++ b/inc/admin/groups.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: groups.php - Last Update: 06/11/2011 SVN 666 - Author: cooldude2k $ + $FileInfo: groups.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="groups.php"||$File3Name=="/groups.php") { @@ -21,7 +21,7 @@ if ($File3Name=="groups.php"||$File3Name=="/groups.php") { // Check if we can goto admin cp if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } $Error = null; $errorstr = null; @@ -483,7 +483,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $GroupID = sql_result($preresult,0,"id"); @@ -681,7 +681,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $OldGroupName=sql_result($preresult,0,"Name"); diff --git a/inc/admin/main.php b/inc/admin/main.php index 4210171..3a08b98 100644 --- a/inc/admin/main.php +++ b/inc/admin/main.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: main.php - Last Update: 06/13/2011 SVN 669 - Author: cooldude2k $ + $FileInfo: main.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="main.php"||$File3Name=="/main.php") { @@ -21,12 +21,12 @@ if ($File3Name=="main.php"||$File3Name=="/main.php") { // Check if we can goto admin cp if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } if($_GET['act']=="sql"&&$GroupInfo['ViewDBInfo']!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } if($_GET['act']=="resyncthemes"&&$Settings['SQLThemes']!="on") { $_GET['act'] = "enablesthemes"; } diff --git a/inc/admin/members.php b/inc/admin/members.php index 8eae665..4c3a3f2 100644 --- a/inc/admin/members.php +++ b/inc/admin/members.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: members.php - Last Update: 05/26/2011 SVN 659 - Author: cooldude2k $ + $FileInfo: members.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="members.php"||$File3Name=="/members.php") { @@ -21,7 +21,7 @@ if ($File3Name=="members.php"||$File3Name=="/members.php") { // Check if we can goto admin cp if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } if(!isset($_POST['gid'])) { $_POST['gid'] = "0"; } @@ -338,7 +338,7 @@ $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); if($num<1) { redirect("location",$rbasedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=editmember",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $EditMem['ID']=sql_result($result,0,"id"); $EditMem['Name']=sql_result($result,0,"Name"); diff --git a/inc/categories.php b/inc/categories.php index bb675ac..c0e0c57 100644 --- a/inc/categories.php +++ b/inc/categories.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: categories.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: categories.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="categories.php"||$File3Name=="/categories.php") { @@ -26,7 +26,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $CategoryID=sql_result($preresult,0,"id"); @@ -51,7 +51,7 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") { if(!isset($CatCheck)) { $CatCheck = null; } @@ -81,7 +81,7 @@ sql_free_result($iscresult); } @@ -231,7 +231,7 @@ echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr 1) { $ModForumIgnoreList4 .= " AND \"ForumID\"<> if(strlen($ModForumIgnoreList4)<1) { $ModForumIgnoreList4 = " AND \"ForumID\"<>".$PerForumID; } } if($PerError===true) { $peri = $pernum; } ++$peri; } if($PerError===true) { -header("Content-Type: text/plain; charset=".$Settings['charset']); sql_free_result($peresult); +header("Content-Type: text/plain; charset=".$Settings['charset']); sql_free_result($peresult); $urlstatus = 503; ob_clean(); echo "Sorry could not load all permission data in database.\nContact the board admin about error."; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } sql_free_result($peresult); @@ -419,7 +419,7 @@ $per2esult=sql_query($per2query,$SQLStat); $per2num=sql_num_rows($per2esult); $per2i=0; $Per2Error = null; if($per2num<=0) { $Per2Error = true; sql_free_result($per2esult); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 503; ob_clean(); echo "Sorry could not find permission data in database.\nContact the board admin about error."; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $CatIgnoreList1 = null; $CatIgnoreList2 = null; @@ -452,7 +452,7 @@ if(strlen($CatIgnoreList6)>1) { $CatIgnoreList6 .= " AND \"OldCategoryID\"<>".$P if(strlen($CatIgnoreList6)<1) { $CatIgnoreList6 = " AND \"OldCategoryID\"<>".$PerCatID; } } if($Per2Error===true) { $per2i = $per2num; } ++$per2i; } if($Per2Error===true) { -header("Content-Type: text/plain; charset=".$Settings['charset']); sql_free_result($per2esult); +header("Content-Type: text/plain; charset=".$Settings['charset']); sql_free_result($per2esult); $urlstatus = 503; ob_clean(); echo "Sorry could not load all permission data in database.\nContact the board admin about error."; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } sql_free_result($per2esult); diff --git a/inc/lowcategories.php b/inc/lowcategories.php index 89ed209..c5f2052 100644 --- a/inc/lowcategories.php +++ b/inc/lowcategories.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: lowcategories.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: lowcategories.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="lowcategories.php"||$File3Name=="/lowcategories.php") { @@ -22,7 +22,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $CategoryID=sql_result($preresult,0,"id"); @@ -47,7 +47,7 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") { if(!isset($CatCheck)) { $CatCheck = null; } @@ -80,7 +80,7 @@ sql_free_result($iscresult); } =1) { $TopicName=sql_result($preresult,0,"TopicName"); @@ -39,7 +39,7 @@ $TopicCatID=sql_result($preresult,0,"CategoryID"); $TopicClosed=sql_result($preresult,0,"Closed"); if($TopicClosed==3&&$PermissionInfo['CanModForum'][$TopicForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_GET['post'])||$_GET['post']!==null) { $NumberReplies=sql_result($preresult,0,"NumReply"); } @@ -51,7 +51,7 @@ $forumcheckx = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" $fmckresult=sql_query($forumcheckx,$SQLStat); $fmcknum=sql_num_rows($fmckresult); if($fmcknum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $ForumName=sql_result($fmckresult,0,"Name"); $ForumType=sql_result($fmckresult,0,"ForumType"); @@ -95,14 +95,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$TopicCatID])) { if($CatPermissionInfo['CanViewCategory'][$TopicCatID]=="no"|| $CatPermissionInfo['CanViewCategory'][$TopicCatID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$TopicForumID])) { $PermissionInfo['CanViewForum'][$TopicForumID] = "no"; } if($PermissionInfo['CanViewForum'][$TopicForumID]=="no"|| $PermissionInfo['CanViewForum'][$TopicForumID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_GET['act']!="view") { $CanMakeReply = "no"; $CanMakeTopic = "no"; @@ -150,7 +150,7 @@ $query = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."posts\" WHERE \ $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); if($num==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($num!=0) { if($ViewTimes==0||$ViewTimes==null) { $NewViewTimes = 1; } diff --git a/inc/lowsubcategories.php b/inc/lowsubcategories.php index 7dfad59..ce00476 100644 --- a/inc/lowsubcategories.php +++ b/inc/lowsubcategories.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: lowsubcategories.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: lowsubcategories.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="lowsubcategories.php"||$File3Name=="/lowsubcategories.php") { @@ -22,7 +22,7 @@ $checkquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories $checkresult=sql_query($checkquery,$SQLStat); $checknum=sql_num_rows($checkresult); if($checknum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($checkresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($checknum>=1) { $CategoryID=sql_result($checkresult,0,"id"); @@ -38,7 +38,7 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") { $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=lowview&id=".$CategoryID,"&","=",$prexqstr[$CategoryType],$exqstr[$CategoryType]); @@ -69,7 +69,7 @@ sql_free_result($iscresult); } =1) { $ForumID=sql_result($checkresult,0,"id"); @@ -48,15 +48,15 @@ $redirup = sql_pre_query("UPDATE \"".$Settings['sqltable']."forums\" SET \"Redir sql_query($redirup,$SQLStat); if($RedirectURL!="http://"&&$RedirectURL!="") { redirect("location",$RedirectURL,0,null,false); ob_clean(); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($RedirectURL=="http://"||$RedirectURL=="") { redirect("location",url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($ForumType=="forum") { redirect("location",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } sql_free_result($checkresult); $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" WHERE \"ShowCategory\"='yes' AND \"id\"=%i".$CatIgnoreList2." ORDER BY \"OrderID\" ASC, \"id\" ASC", array($CategoryID)); @@ -100,14 +100,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$_GET['id']])) { $PermissionInfo['CanViewForum'][$_GET['id']] = "no"; } if($PermissionInfo['CanViewForum'][$_GET['id']]=="no"|| $PermissionInfo['CanViewForum'][$_GET['id']]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes"&& $PermissionInfo['CanViewForum'][$_GET['id']]=="yes") { diff --git a/inc/lowtopics.php b/inc/lowtopics.php index 801745e..74c2c43 100644 --- a/inc/lowtopics.php +++ b/inc/lowtopics.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: lowtopics.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: lowtopics.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="lowtopics.php"||$File3Name=="/lowtopics.php") { @@ -24,7 +24,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $ForumID=sql_result($preresult,0,"id"); @@ -97,14 +97,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$ForumCatID])) { if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"|| $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$ForumID])) { $PermissionInfo['CanViewForum'][$ForumID] = "no"; } if($PermissionInfo['CanViewForum'][$ForumID]=="no"|| $PermissionInfo['CanViewForum'][$ForumID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="yes"&& $PermissionInfo['CanViewForum'][$ForumID]=="yes") { @@ -120,16 +120,16 @@ $redirup = sql_pre_query("UPDATE \"".$Settings['sqltable']."forums\" SET \"Redir sql_query($redirup,$SQLStat); if($RedirectURL!="http://"&&$RedirectURL!="") { redirect("location",$RedirectURL,0,null,false); ob_clean(); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($RedirectURL=="http://"||$RedirectURL=="") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($ForumCheck!="skip") { if($ForumType=="subforum") { redirect("location",$rbasedir.url_maker($exfile['subforum'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['subforum'],$exqstr['subforum'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($_GET['act']=="lowview") { if($NumberTopics==null) { diff --git a/inc/members.php b/inc/members.php index bfe8232..749ebd2 100644 --- a/inc/members.php +++ b/inc/members.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: members.php - Last Update: 06/10/2011 SVN 663 - Author: cooldude2k $ + $FileInfo: members.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="members.php"||$File3Name=="/members.php") { @@ -568,7 +568,7 @@ $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); $i=0; if($num==0||$_GET['id']<=0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $ViewMem['ID']=sql_result($result,$i,"id"); $ViewMem['Name']=sql_result($result,$i,"Name"); @@ -614,7 +614,7 @@ if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) { $ViewMem['Name'] = $ViewMem['Name'].$GroupNameSuffix; } */ if($ViewMem['HiddenMember']=="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $membertitle = " ".$ThemeSet['TitleDivider']." ".$ViewMem['Name']; if ($ViewMem['Avatar']=="http://"||$ViewMem['Avatar']==null|| @@ -629,16 +629,19 @@ if($_GET['view']==null) { $_GET['view'] = "profile"; } if($_GET['view']!="profile"&&$_GET['view']!="avatar"&& $_GET['view']!="website"&&$_GET['view']!="homepage") { $_GET['view'] = "profile"; } if($_GET['view']=="avatar") { - session_write_close(); - header("Location: ".$ViewMem['Avatar']); } + session_write_close(); $urlstatus = 302; + header("Location: ".$ViewMem['Avatar']); + gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); } if($_GET['view']=="website"||$_GET['view']=="homepage") { if ($ViewMem['Website']!="http://"&&$ViewMem['Website']!=null) { - session_write_close(); - header("Location: ".$ViewMem['Website']); } + session_write_close(); $urlstatus = 302; + header("Location: ".$ViewMem['Website']); + gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); } if ($ViewMem['Website']=="http://"||$ViewMem['Website']==null|| strtolower($ViewMem['Avatar'])=="noavatar") { - session_write_close(); - header("Location: ".$BoardURL."index.php?act=view"); } } + session_write_close(); $urlstatus = 302; + header("Location: ".$BoardURL."index.php?act=view"); + gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); } } $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$_GET['id'],"&","=",$prexqstr['member'],$exqstr['member']); if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['ViewingFile'] = $exfile['member'].$Settings['file_ext']; } @@ -732,12 +735,12 @@ $temp_user_ip = $_SERVER['REMOTE_ADDR']; $exptime = GMTimeStamp() - ini_get("session.gc_maxlifetime"); sql_query(sql_pre_query("DELETE FROM \"".$Settings['sqltable']."sessions\" WHERE \"expires\" < %i OR ip_address='%s'", array($exptime,$temp_user_ip)),$SQLStat); redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_GET['act']=="login") { if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=logout",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_SESSION['UserID']==0||$_SESSION['UserID']==null) { $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=login","&","=",$prexqstr['member'],$exqstr['member']); @@ -810,7 +813,7 @@ $_SESSION['UserFormID'] = $UFID; 0:".$showmin." minutes\n"; } if($_POST['act']=="makemembers") { if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=logout",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_SESSION['UserID']==0||$_SESSION['UserID']==null) { $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=signup","&","=",$prexqstr['member'],$exqstr['member']); diff --git a/inc/messages.php b/inc/messages.php index 4504168..92149a5 100644 --- a/inc/messages.php +++ b/inc/messages.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: messages.php - Last Update: 05/23/2011 SVN 653 - Author: cooldude2k $ + $FileInfo: messages.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="messages.php"||$File3Name=="/messages.php") { @@ -23,7 +23,7 @@ if(!is_numeric($_GET['page'])) { $_GET['page'] = 1; } // Check if we can read/send PM if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanPM']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { @@ -411,7 +411,7 @@ $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); $is=0; if($num==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } while ($is < $num) { $PMID=sql_result($result,$is,"id"); @@ -445,7 +445,7 @@ $memrenum=sql_num_rows($memreresult); if($_SESSION['UserID']!=$ReciverID&& $_SESSION['UserID']!=$SenderID) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } while ($rei < $renum) { $User1ID=$SenderID; diff --git a/inc/misc/functions.php b/inc/misc/functions.php index 8f91c56..0b0fdda 100644 --- a/inc/misc/functions.php +++ b/inc/misc/functions.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: functions.php - Last Update: 06/13/2011 SVN 670 - Author: cooldude2k $ + $FileInfo: functions.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="functions.php"||$File3Name=="/functions.php") { @@ -54,7 +54,8 @@ define("_renee_", $Names['RS']); $CD2k_Loves="Renee Sabonis"; $I_Love="Renee Sabonis"; // Change the title and gzip page function change_title($new_title,$use_gzip="off",$gzip_type="gzip") { -global $Settings; +global $Settings,$urlstatus; +if(!isset($urlstatus)||!is_numeric($urlstatus)) { $urlstatus = 200; } if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } } $output = ob_get_clean(); $output = preg_replace("/(.*?)<\/title>/i", "<title>".$new_title."", $output); @@ -64,18 +65,19 @@ $output = preg_replace("/&PHPSESSID/", "&PHPSESSID", $output); $qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']); $output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output); if($use_gzip!="on") { - idb_log_maker(200,strlen($output)); + idb_log_maker($urlstatus,strlen($output)); echo $output; } if($use_gzip=="on") { if($gzip_type=="gzip") { $goutput = gzencode($output); } if($gzip_type=="deflate") { $goutput = gzcompress($output); } - idb_log_maker(200,strlen($goutput)); + idb_log_maker($urlstatus,strlen($goutput)); echo $goutput; } } // Fix amp => (&) to & and gzip page function fix_amp($use_gzip="off",$gzip_type="gzip") { -global $Settings; +global $Settings,$urlstatus; +if(!isset($urlstatus)||!is_numeric($urlstatus)) { $urlstatus = 200; } if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } } $output = ob_get_clean(); /* Change Some PHP Settings Fix the &PHPSESSID to &PHPSESSID */ @@ -84,31 +86,32 @@ $output = preg_replace("/&PHPSESSID/", "&PHPSESSID", $output); $qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']); $output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output); if($use_gzip!="on") { - idb_log_maker(200,strlen($output)); + idb_log_maker($urlstatus,strlen($output)); echo $output; } if($use_gzip=="on") { if($gzip_type=="gzip") { $goutput = gzencode($output); } if($gzip_type=="deflate") { $goutput = gzcompress($output); } - idb_log_maker(200,strlen($goutput)); + idb_log_maker($urlstatus,strlen($goutput)); echo $goutput; } } $Names['RJ'] = "Rene Johnson"; define("_rene_", $Names['RJ']); // GZip page for faster download function gzip_page($use_gzip="off",$gzip_type="gzip") { -global $Settings; +global $Settings,$urlstatus; +if(!isset($urlstatus)||!is_numeric($urlstatus)) { $urlstatus = 200; } $output = ob_get_clean(); if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } } if($use_gzip!="on") { - idb_log_maker(200,strlen($output)); + idb_log_maker($urlstatus,strlen($output)); echo $output; } if($use_gzip=="on") { if($gzip_type=="gzip") { $goutput = gzencode($output); } if($gzip_type=="deflate") { $goutput = gzcompress($output); } - idb_log_maker(200,strlen($goutput)); + idb_log_maker($urlstatus,strlen($goutput)); echo $goutput; } } $foo="bar"; $$foo="foo"; $Names['KSP'] = "Kazuki Suzuki Przyborowski"; diff --git a/inc/prelogin.php b/inc/prelogin.php index 3e5a4c0..0c44eee 100644 --- a/inc/prelogin.php +++ b/inc/prelogin.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: prelogin.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: prelogin.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="prelogin.php"||$File3Name=="/prelogin.php") { @@ -70,8 +70,8 @@ if($cookieSecure===false) { setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir, $cookieDomain); setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir, $cookieDomain); setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir, $cookieDomain); } } -redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -session_write_close(); die(); +redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); $urlstatus = 302; +gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($numlog2<=0||$numlog2>1||$BanError=="yes") { session_unset(); if($cookieDomain==null) { setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir); @@ -95,6 +95,6 @@ $temp_user_ip = $_SERVER['REMOTE_ADDR']; $exptime = GMTimeStamp() - ini_get("session.gc_maxlifetime"); sql_query(sql_pre_query("DELETE FROM \"".$Settings['sqltable']."sessions\" WHERE \"expires\" < %i OR ip_address='%s'", array($exptime,$temp_user_ip)),$SQLStat); redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); sql_free_result($resultlog2); sql_free_result($gresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } ?> diff --git a/inc/profilemain.php b/inc/profilemain.php index 353b502..91af005 100644 --- a/inc/profilemain.php +++ b/inc/profilemain.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: profilemain.php - Last Update: 01/15/2011 SVN 612 - Author: cooldude2k $ + $FileInfo: profilemain.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") { @@ -21,7 +21,7 @@ if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") { // Check if we can edit the profile if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_POST['update'])) { $_POST['update'] = null; } $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); diff --git a/inc/replies.php b/inc/replies.php index 476f426..5be8b50 100644 --- a/inc/replies.php +++ b/inc/replies.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: replies.php - Last Update: 06/10/2011 SVN 664 - Author: cooldude2k $ + $FileInfo: replies.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="replies.php"||$File3Name=="/replies.php") { @@ -35,7 +35,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."topics\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $TopicName=sql_result($preresult,0,"TopicName"); @@ -45,7 +45,7 @@ $TopicCatID=sql_result($preresult,0,"CategoryID"); $TopicClosed=sql_result($preresult,0,"Closed"); if($TopicClosed==3&&$PermissionInfo['CanModForum'][$TopicForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($_GET['post'])||$_GET['post']!==null) { $NumberReplies=sql_result($preresult,0,"NumReply"); } @@ -57,7 +57,7 @@ $forumcheckx = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" $fmckresult=sql_query($forumcheckx,$SQLStat); $fmcknum=sql_num_rows($fmckresult); if($fmcknum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $ForumName=sql_result($fmckresult,0,"Name"); $ForumType=sql_result($fmckresult,0,"ForumType"); @@ -93,14 +93,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$TopicCatID])) { if($CatPermissionInfo['CanViewCategory'][$TopicCatID]=="no"|| $CatPermissionInfo['CanViewCategory'][$TopicCatID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$TopicForumID])) { $PermissionInfo['CanViewForum'][$TopicForumID] = "no"; } if($PermissionInfo['CanViewForum'][$TopicForumID]=="no"|| $PermissionInfo['CanViewForum'][$TopicForumID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($_GET['act']!="view") { $CanMakeReply = "no"; $CanMakeTopic = "no"; @@ -171,7 +171,7 @@ $query = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."posts\" WHERE \ $result=sql_query($query,$SQLStat); $num=sql_num_rows($result); if($num==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($num!=0) { if($ViewTimes==0||$ViewTimes==null) { $NewViewTimes = 1; } @@ -578,10 +578,10 @@ redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext']," if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } } if($PermissionInfo['CanMakeReplys'][$TopicForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $QuoteReply = null; $QuoteDescription = null; if($_GET['post']==null) { @@ -750,10 +750,10 @@ redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext']," if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } } if($PermissionInfo['CanMakeReplys'][$TopicForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $MyUsersID = $_SESSION['UserID']; if($MyUsersID=="0"||$MyUsersID==null) { $MyUsersID = -1; } $REFERERurl = parse_url($_SERVER['HTTP_REFERER']); @@ -985,11 +985,11 @@ $TPinned=sql_result($gtsresult,0,"Pinned"); $TClosed=sql_result($gtsresult,0,"Closed"); if($TopicClosed==2&&$PermissionInfo['CanModForum'][$TForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($TopicClosed==3&&$PermissionInfo['CanModForum'][$TForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if ($TPinned>2) { $TPinned = 1; } if ($TPinned<0) { $TPinned = 0; } @@ -1009,7 +1009,7 @@ if($PermissionInfo['CanModForum'][$UseThisFonum]=="no") { if($_GET['level']>1) { $_GET['level'] = 1; } } if($CanPinTopics===false) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($gtsresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } sql_free_result($gtsresult); if($CanPinTopics===true) { @@ -1056,11 +1056,11 @@ $TUsersID=sql_result($gtsresult,0,"UserID"); $TClosed=sql_result($gtsresult,0,"Closed"); if($TopicClosed==2&&$PermissionInfo['CanModForum'][$TForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($TopicClosed==3&&$PermissionInfo['CanModForum'][$TForumID]=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if ($TClosed>3) { $TClosed = 3; } if ($TClosed<0) { $TClosed = 0; } @@ -1078,7 +1078,7 @@ if($_GET['level']>1) { $_GET['level'] = 1; } } if($_SESSION['UserID']==0) { $CanCloseTopics = false; } if($CanCloseTopics===false) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($gtsresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } sql_free_result($gtsresult); if($CanCloseTopics===true) { @@ -1118,11 +1118,11 @@ redirect("refresh",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"a  
diff --git a/inc/rssfeed.php b/inc/rssfeed.php index edf5380..1a70212 100644 --- a/inc/rssfeed.php +++ b/inc/rssfeed.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: rssfeed.php - Last Update: 05/23/2011 SVN 653 - Author: cooldude2k $ + $FileInfo: rssfeed.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="rssfeed.php"||$File3Name=="/rssfeed.php") { @@ -80,7 +80,7 @@ $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); $prei=0; if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $ForumID=sql_result($preresult,0,"id"); $ForumName=sql_result($preresult,0,"Name"); @@ -93,12 +93,12 @@ sql_free_result($preresult); if($PermissionInfo['CanViewForum'][$ForumID]=="no"|| $PermissionInfo['CanViewForum'][$ForumID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"|| $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $gltf = array(null); $gltf[0] = $ForumID; if ($ForumType=="subforum") { diff --git a/inc/searches.php b/inc/searches.php index 860561a..302f5d7 100644 --- a/inc/searches.php +++ b/inc/searches.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: searches.php - Last Update: 04/04/2011 SVN 625 - Author: cooldude2k $ + $FileInfo: searches.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="searches.php"||$File3Name=="/searches.php") { @@ -21,7 +21,7 @@ if($Settings['enable_search']=="off"|| $GroupInfo['CanSearch']=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); header("Content-Type: text/plain; charset=".$Settings['charset']); -ob_clean(); echo "Sorry you do not have permission to do a search."; +ob_clean(); echo "Sorry you do not have permission to do a search."; $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $pagenum = null; if($Settings['enable_search']=="on"|| @@ -165,7 +165,7 @@ if($pnum<$Settings['max_topics']&&$pnum>0) { $num=sql_num_rows($result); if($num<=0) { redirect("location",$rbasedir.url_maker($exfile['search'],$Settings['file_ext'],"act=topics",$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search'],false)); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; ob_clean(); echo "Sorry could not find any search results."; sql_free_result($result); gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $i=0; diff --git a/inc/subcategories.php b/inc/subcategories.php index ebd48cb..f945cb0 100644 --- a/inc/subcategories.php +++ b/inc/subcategories.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: subcategories.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: subcategories.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="subcategories.php"||$File3Name=="/subcategories.php") { @@ -26,7 +26,7 @@ $checkquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories $checkresult=sql_query($checkquery,$SQLStat); $checknum=sql_num_rows($checkresult); if($checknum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($checkresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($checknum>=1) { $CategoryID=sql_result($checkresult,0,"id"); @@ -42,7 +42,7 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") { $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$CategoryID,"&","=",$prexqstr[$CategoryType],$exqstr[$CategoryType]); @@ -70,7 +70,7 @@ sql_free_result($iscresult); } =1) { $ForumID=sql_result($checkresult,0,"id"); @@ -52,15 +52,15 @@ $redirup = sql_pre_query("UPDATE \"".$Settings['sqltable']."forums\" SET \"Redir sql_query($redirup,$SQLStat); if($RedirectURL!="http://"&&$RedirectURL!="") { redirect("location",$RedirectURL,0,null,false); ob_clean(); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($RedirectURL=="http://"||$RedirectURL=="") { redirect("location",url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($ForumType=="forum") { redirect("location",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } sql_free_result($checkresult); $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."categories\" WHERE \"ShowCategory\"='yes' AND \"id\"=%i".$CatIgnoreList2." ORDER BY \"OrderID\" ASC, \"id\" ASC", array($CategoryID)); @@ -101,14 +101,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) { if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"|| $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$_GET['id']])) { $PermissionInfo['CanViewForum'][$_GET['id']] = "no"; } if($PermissionInfo['CanViewForum'][$_GET['id']]=="no"|| $PermissionInfo['CanViewForum'][$_GET['id']]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes"&& $PermissionInfo['CanViewForum'][$_GET['id']]=="yes") { diff --git a/inc/topics.php b/inc/topics.php index da8494b..e3f4c80 100644 --- a/inc/topics.php +++ b/inc/topics.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: topics.php - Last Update: 06/11/2011 SVN 666 - Author: cooldude2k $ + $FileInfo: topics.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="topics.php"||$File3Name=="/topics.php") { @@ -24,7 +24,7 @@ $prequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."forums\" WHE $preresult=sql_query($prequery,$SQLStat); $prenum=sql_num_rows($preresult); if($prenum==0) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); sql_free_result($preresult); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($prenum>=1) { $ForumID=sql_result($preresult,0,"id"); @@ -99,14 +99,14 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$ForumCatID])) { if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"|| $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(!isset($PermissionInfo['CanViewForum'][$ForumID])) { $PermissionInfo['CanViewForum'][$ForumID] = "no"; } if($PermissionInfo['CanViewForum'][$ForumID]=="no"|| $PermissionInfo['CanViewForum'][$ForumID]!="yes") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="yes"&& $PermissionInfo['CanViewForum'][$ForumID]=="yes") { @@ -122,16 +122,16 @@ $redirup = sql_pre_query("UPDATE \"".$Settings['sqltable']."forums\" SET \"Redir sql_query($redirup,$SQLStat); if($RedirectURL!="http://"&&$RedirectURL!="") { redirect("location",$RedirectURL,0,null,false); ob_clean(); -header("Content-Type: text/plain; charset=".$Settings['charset']); +header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if($RedirectURL=="http://"||$RedirectURL=="") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($ForumCheck!="skip") { if($ForumType=="subforum") { redirect("location",$rbasedir.url_maker($exfile['subforum'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['subforum'],$exqstr['subforum'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } } if($_GET['act']!="view") { ?> @@ -551,7 +551,7 @@ redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext']," if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } } if($PermissionInfo['CanMakeTopics'][$ForumID]=="no"||$CanHaveTopics=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $UFID = rand_uuid("rand"); $_SESSION['UserFormID'] = $UFID; @@ -646,7 +646,7 @@ if($_POST['TopicDesc']==""&&$_POST['TopicName']!="") { if($_POST['TopicDesc']!=""&&$_POST['TopicName']=="") { $_POST['TopicName'] = $_POST['TopicDesc']; } if($PermissionInfo['CanMakeTopics'][$ForumID]=="no"||$CanHaveTopics=="no") { redirect("location",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } $MyUserID = $_SESSION['UserID']; if($MyUserID=="0"||$MyUserID==null) { $MyUserID = -1; } $REFERERurl = parse_url($_SERVER['HTTP_REFERER']); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 1eaccff..ac5a036 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: versioninfo.php - Last Update: 06/13/2011 SVN 671 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { return $return_var; } // Version number and date stuff. :P $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 4; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 671; -$SVNDay[0] = 06; $SVNDay[1] = 13; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 672; +$SVNDay[0] = 06; $SVNDay[1] = 14; $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"; if(!isset($Settings['usealtname'])) { $Settings['usealtname'] = "no"; } diff --git a/index.php b/index.php index d798521..cd29865 100644 --- a/index.php +++ b/index.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: index.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: index.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ if(ini_get("register_globals")) { require_once('inc/misc/killglobals.php'); } @@ -25,14 +25,14 @@ if(isset($_GET['showcategory'])&&is_numeric($_GET['showcategory'])) { $showact = "view"; if($_GET['act']=="lowview") { $showact = "lowview"; } redirect("location",$rbasedir.url_maker($exfile['category'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showcategory'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(isset($_GET['showforum'])&&is_numeric($_GET['showforum'])) { $showact = "view"; if($_GET['act']=="lowview") { $showact = "lowview"; } redirect("location",$rbasedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showforum'],$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(isset($_GET['showtopic'])&&is_numeric($_GET['showtopic'])) { @@ -44,19 +44,19 @@ ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); } if(!isset($_GET['showpost'])) { $_GET['showpost'] = null; } if(!isset($_GET['showpost'])||!is_numeric($_GET['showpost'])) { if(!isset($_GET['showpage'])) { $_GET['showpage'] = 1; } -if(!isset($_GET['showpage'])||!is_numeric($_GET['showpage'])) { $_GET['showpage'] = 1; } +if(!isset($_GET['showpage'])||!is_numeric($_GET['showpage'])) { $_GET['showpage'] = 1; } $urlstatus = 302; redirect("location",$rbasedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=".$showact."&id=".$_GET['showtopic']."&page=".$_GET['showpage'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE)); ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); } gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(isset($_GET['showuser'])&&is_numeric($_GET['showuser'])) { redirect("location",$rbasedir.url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$_GET['showuser'],$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } if(isset($_GET['showevent'])&&is_numeric($_GET['showevent'])) { redirect("location",$rbasedir.url_maker($exfile['event'],$Settings['file_ext'],"act=view&id=".$_GET['showevent'],$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE)); -ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); +ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']); $urlstatus = 302; gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } ?> diff --git a/messenger.php b/messenger.php index c39412f..1de6a4d 100644 --- a/messenger.php +++ b/messenger.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: messenger.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: messenger.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ if(ini_get("register_globals")) { require_once('inc/misc/killglobals.php'); } @@ -27,7 +27,7 @@ $filewpath = $exfile['messenger'].$usefileext.$_SERVER['PATH_INFO']; diff --git a/profile.php b/profile.php index 537107f..f721e4e 100644 --- a/profile.php +++ b/profile.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: profile.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: profile.php - Last Update: 06/14/2011 SVN 672 - Author: cooldude2k $ */ if(ini_get("register_globals")) { require_once('inc/misc/killglobals.php'); } @@ -27,7 +27,7 @@ $filewpath = $exfile['profile'].$usefileext.$_SERVER['PATH_INFO'];