OSDN Git Service

Got rid of most of the at signs (@) in the code. (made it hard to debug the code)
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 23 Nov 2009 21:59:42 +0000 (21:59 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 23 Nov 2009 21:59:42 +0000 (21:59 +0000)
Also added /inc/misc/MySQL.php

git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@357 2b68903e-0b30-0410-9a39-a2e4f3c5be39

62 files changed:
README
admin.php
calendar.php
category.php
event.php
forum.php
inc/admin/categories.php
inc/admin/forums.php
inc/admin/main.php
inc/admin/members.php
inc/admin/sqldumper.php
inc/calendars.php
inc/categories.php
inc/endpage.php
inc/events.php
inc/forums.php
inc/function.php
inc/groupsetup.php
inc/javascript.php
inc/lowcategories.php
inc/lowforums.php
inc/lowreplies.php
inc/lowsubcategories.php
inc/lowsubforums.php
inc/lowtopics.php
inc/members.php
inc/misc/compression.php
inc/misc/functions.php
inc/misc/mysql.php [new file with mode: 0644]
inc/misc/setcheck.php
inc/misc/utf8.php
inc/navbar.php
inc/pm.php
inc/prelogin.php
inc/profilemain.php
inc/replies.php
inc/rssfeed.php
inc/searchs.php
inc/stats.php
inc/subcategories.php
inc/subforums.php
inc/topics.php
inc/versioninfo.php
inc/xhtml10.php
inc/xhtml11.php
index.php
install.php
member.php
messenger.php
mysql.php
preindex.php
profile.php
rss.php
search.php
settings.php
settingsbak.php
setup/mkconfig.php
setup/preinstall.php
setup/setup.php
subcategory.php
subforum.php
topic.php

diff --git a/README b/README
index fbfa0bd..5cae09f 100644 (file)
--- a/README
+++ b/README
@@ -21,7 +21,7 @@
 //                       """"""""""""""""""""""""""""""""""""""""""
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 // UTF8 helper functions
-// author: Scott Michael Reynen "scott@randomchaos.com"
+// author: Scott Michael Reynen "scottrandomchaos.com"
 // url: http://www.randomchaos.com/document.php?source=php_and_unicode
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 // utf8_substr by frank at jkelloggs dot dk
@@ -32,7 +32,7 @@
 // Copyright (C) 2005-2006, Edward Eliot.
 // All rights reserved.
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//        $FileInfo: README - Last Update: 6/23/2009 SVN 268 - Author: cooldude2k $            
+//        $FileInfo: README - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $            
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 // Copyright 2004-2009 Cool Dude 2k - http://intdb.sourceforge.net/ http://idb.berlios.net/
 // Copyright 2004-2009 Game Maker 2k - http://upload.idb.s1.jcink.com/ 
index 35bc87f..8a07ec7 100644 (file)
--- a/admin.php
+++ b/admin.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: admin.php - Last Update: 11/15/2009 SVN 350 - Author: cooldude2k $
+    $FileInfo: admin.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
@@ -39,14 +39,14 @@ $AdminMenu = null;
 require($SettDir['inc'].'navbar.php');
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_GET['act']==null) {
        $_GET['act']="view"; }
 if($_GET['act']=="view"&&$GroupInfo['ViewDBInfo']!="yes") {
        $_GET['act']="view"; }
 if($_GET['act']=="vercheck"&&$GroupInfo['ViewDBInfo']=="yes") {
-       @header("Location: ".$VerCheckURL."&bid=".$Settings['bid']."&vercheck=newtype"); }
+       header("Location: ".$VerCheckURL."&bid=".$Settings['bid']."&vercheck=newtype"); }
 if($_GET['act']=="view")
 { $AdminMenu = "menu";
 if($_GET['menu']==null) {
index c0f792d..f45324d 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: calendar.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: calendar.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
index 521a18e..deab6b6 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: category.php - Last Update: 8/5/2009 SVN 291 - Author: cooldude2k $
+    $FileInfo: category.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
index 1d8e356..6ad27df 100644 (file)
--- a/event.php
+++ b/event.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: event.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: event.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
index 52cb4ae..19ee4d0 100644 (file)
--- a/forum.php
+++ b/forum.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: forum.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: forum.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
@@ -46,8 +46,8 @@ if($_GET['act']=="lowview")
 { require($SettDir['inc'].'lowtopics.php'); }
 if($_GET['act']=="oldrss"||$_GET['act']=="rss"||$_GET['act']=="atom") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 require($SettDir['inc'].'endpage.php');
 if(!isset($ForumName)) { $ForumName = null; }
 ?>
index 7bcc4ed..d6ea2ff 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: categories.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: categories.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="categories.php"||$File3Name=="/categories.php") {
@@ -21,8 +21,8 @@ if ($File3Name=="categories.php"||$File3Name=="/categories.php") {
 // Check if we can goto admin cp
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if(!isset($_POST['update'])) { $_POST['update'] = null; }
 $Error = null; $errorstr = null;
 ?>
@@ -101,7 +101,7 @@ if ($AiFiInSubCategory=="0") {
 ?>
        <option value="<?php echo $InCategoryID; ?>"><?php echo $InCategoryName; ?></option>
 <?php } ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="NumPostView">Number of posts to view category:</label></td>
@@ -129,14 +129,14 @@ if ($AiFiInSubCategory=="0") {
 <?php } if($_POST['act']=="addcategory"&&$_POST['update']=="now"&&$_GET['act']=="addcategory") {
 $_POST['CategoryName'] = stripcslashes(htmlspecialchars($_POST['CategoryName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['CategoryName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryName']);
-$_POST['CategoryName'] = @remove_spaces($_POST['CategoryName']);
+$_POST['CategoryName'] = remove_spaces($_POST['CategoryName']);
 $_POST['CategoryDesc'] = stripcslashes(htmlspecialchars($_POST['CategoryDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['CategoryDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryDesc']);
-$_POST['CategoryDesc'] = @remove_spaces($_POST['CategoryDesc']);
+$_POST['CategoryDesc'] = remove_spaces($_POST['CategoryDesc']);
 $sql_id_check = exec_query(query("SELECT `id` FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_POST['CategoryID'])));
 $sql_order_check = exec_query(query("SELECT `OrderID` FROM `".$Settings['sqltable']."categories` WHERE `OrderID`=%i LIMIT 1", array($_POST['OrderID'])));
 $id_check = mysql_num_rows($sql_id_check); $order_check = mysql_num_rows($sql_order_check);
-@mysql_free_result($sql_id_check); @mysql_free_result($sql_order_check);
+mysql_free_result($sql_id_check); mysql_free_result($sql_order_check);
 $errorstr = "";
 if ($_POST['NumPostView']==null||
        !is_numeric($_POST['NumPostView'])) {
@@ -167,7 +167,7 @@ $errorstr = $errorstr."Your category name is too big.<br />\n"; }
 if (pre_strlen($_POST['CategoryDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your category description is too big.<br />\n"; } 
 if ($Error!="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 $query = query("INSERT INTO `".$Settings['sqltable']."categories` (`id`, `OrderID`, `Name`, `ShowCategory`, `CategoryType`, `SubShowForums`, `InSubCategory`, `PostCountView`, `KarmaCountView`, `Description`) VALUES\n".
 "(%i, %i, '%s', '%s', '%s', 'yes', %i, %i, %i, '%s')", array($_POST['CategoryID'],$_POST['OrderID'],$_POST['CategoryName'],$_POST['ShowCategory'],$_POST['CategoryType'],$_POST['InSubCategory'],$_POST['CategoryDesc'],$_POST['NumPostView'],$_POST['NumKarmaView'],$_POST['CategoryDesc']));
@@ -183,11 +183,11 @@ $getperidq2 = query("SELECT * FROM `".$Settings['sqltable']."catpermissions` WHE
 $getperidr2=exec_query($getperidq2);
 $getperidnum2=mysql_num_rows($getperidr2);
 $getperidName=mysql_result($getperidr2,0,"Name");
-@mysql_free_result($getperidr2);
+mysql_free_result($getperidr2);
 $query = query("INSERT IGNORE INTO `".$Settings['sqltable']."catpermissions` VALUES (%i, %i, '%s', %i, 'yes')", array($nextperid,$getperidID,$getperidName,$_POST['CategoryID'])); 
 exec_query($query);
 ++$getperidi; ++$nextperid; }
-@mysql_free_result($getperidr);
+mysql_free_result($getperidr);
 ?>
 <?php } } if($_GET['act']=="deletecategory"&&$_POST['update']!="now") { 
 $admincptitle = " ".$ThemeSet['TitleDivider']." Deleting a Category";
@@ -254,7 +254,7 @@ $AiFiInSubCategory=mysql_result($fr,$fi,"InSubCategory");
 ?>
        <option value="<?php echo $InCategoryID; ?>"><?php echo $InCategoryName; ?></option>
 <?php ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -309,7 +309,7 @@ if($_POST['DelPermission']=="yes") {
 $dtquery = query("DELETE FROM `".$Settings['sqltable']."permissions` WHERE `ForumID`=%i", array($DelForumID));
 exec_query($dtquery); }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if($_POST['DelPermission']=="yes") {
 $apcquery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `InSubCategory`=%i ORDER BY `OrderID` ASC, `id` ASC", array($_POST['DelID']));
 $apcresult=exec_query($apcquery);
@@ -321,7 +321,7 @@ if($_POST['DelPermission']=="yes") {
 $dtquery = query("DELETE FROM `".$Settings['sqltable']."catpermissions` WHERE `CategoryID`=%i", array($DelSubsCategoryID));
 exec_query($dtquery); }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 ?>
 <?php } } if($_GET['act']=="editcategory"&&$_POST['update']!="now") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Editing a Category";
@@ -365,7 +365,7 @@ $AiFiInSubCategory=mysql_result($fr,$fi,"InSubCategory");
 ?>
        <option value="<?php echo $InCategoryID; ?>"><?php echo $InCategoryName; ?></option>
 <?php ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -387,9 +387,9 @@ $AiFiInSubCategory=mysql_result($fr,$fi,"InSubCategory");
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $CategoryID=mysql_result($preresult,0,"id");
 $CategoryOrder=mysql_result($preresult,0,"OrderID");
@@ -403,7 +403,7 @@ $CategoryDescription=mysql_result($preresult,0,"Description");
 $CategoryDescription = htmlspecialchars($CategoryDescription, ENT_QUOTES, $Settings['charset']);
 $KarmaCountView=mysql_result($preresult,0,"KarmaCountView");
 $PostCountView=mysql_result($preresult,0,"PostCountView");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $CategoryType = strtolower($CategoryType);
 ?>
 <div class="TableMenuBorder">
@@ -473,7 +473,7 @@ if($InSubCategory==$InCategoryID) {
 <?php } if($InSubCategory!=$InCategoryID) { ?>
        <option value="<?php echo $InCategoryID; ?>"><?php echo $InCategoryName; ?></option>
 <?php } } ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="NumPostView">Number of posts to view categories:</label></td>
@@ -503,24 +503,24 @@ if($InSubCategory==$InCategoryID) {
        isset($_POST['id'])) {
 $_POST['CategoryName'] = stripcslashes(htmlspecialchars($_POST['CategoryName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['CategoryName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryName']);
-$_POST['CategoryName'] = @remove_spaces($_POST['CategoryName']);
+$_POST['CategoryName'] = remove_spaces($_POST['CategoryName']);
 $_POST['CategoryDesc'] = stripcslashes(htmlspecialchars($_POST['CategoryDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['CategoryDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryDesc']);
-$_POST['CategoryDesc'] = @remove_spaces($_POST['CategoryDesc']);
+$_POST['CategoryDesc'] = remove_spaces($_POST['CategoryDesc']);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $OldID=mysql_result($preresult,0,"id");
 $OldOrder=mysql_result($preresult,0,"OrderID");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $sql_id_check = exec_query(query("SELECT `id` FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_POST['ForumID'])));
 $sql_order_check = exec_query(query("SELECT `OrderID` FROM `".$Settings['sqltable']."categories` WHERE `OrderID`=%i LIMIT 1", array($_POST['OrderID'])));
 $id_check = mysql_num_rows($sql_id_check); $order_check = mysql_num_rows($sql_order_check);
-@mysql_free_result($sql_id_check); @mysql_free_result($sql_order_check);
+mysql_free_result($sql_id_check); mysql_free_result($sql_order_check);
 if ($_POST['NumPostView']==null||
        !is_numeric($_POST['NumPostView'])) {
        $_POST['NumPostView'] = 0; }
@@ -544,7 +544,7 @@ $errorstr = $errorstr."Your category name is too big.<br />\n"; }
 if (pre_strlen($_POST['CategoryDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your category description is too big.<br />\n"; } 
 if ($Error!="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 $query = query("UPDATE `".$Settings['sqltable']."categories` SET `id`=%i,`OrderID`=%i,`Name`='%s',`ShowCategory`='%s',`CategoryType`='%s',`InSubCategory`=%i,`Description`='%s',`PostCountView`=%i,`KarmaCountView`=%i WHERE `id`=%i", array($_POST['CategoryID'],$_POST['OrderID'],$_POST['CategoryName'],$_POST['ShowCategory'],$_POST['CategoryType'],$_POST['InSubCategory'],$_POST['CategoryDesc'],$_POST['NumPostView'],$_POST['NumKarmaView'],$_POST['id']));
 exec_query($query);
@@ -589,11 +589,11 @@ $getperidq2 = query("SELECT * FROM `".$Settings['sqltable']."catpermissions` WHE
 $getperidr2=exec_query($getperidq2);
 $getperidnum2=mysql_num_rows($getperidr2);
 $getperidName=mysql_result($getperidr2,0,"Name");
-@mysql_free_result($getperidr2);
+mysql_free_result($getperidr2);
 ?>
        <option value="<?php echo $getperidID; ?>"><?php echo $getperidName; ?></option>
 <?php ++$getperidi; }
-@mysql_free_result($getperidr); ?>
+mysql_free_result($getperidr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -670,9 +670,9 @@ Permissions for <?php echo $InCategoryName; ?> are not set: <br />
 </td></tr></table>
 </form>
 <?php 
-@mysql_free_result($getperidr);
+mysql_free_result($getperidr);
 ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
 </td>
 </tr>
 <tr class="TableMenuRow4">
@@ -684,16 +684,16 @@ Permissions for <?php echo $InCategoryName; ?> are not set: <br />
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."catpermissions` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $PermissionNum=mysql_result($preresult,0,"id"); 
 $PermissionID=mysql_result($preresult,0,"PermissionID"); 
 $PermissionName=mysql_result($preresult,0,"Name"); 
 $PermissionCategoryID=mysql_result($preresult,0,"CategoryID"); 
 $CanViewCategory=mysql_result($preresult,0,"CanViewCategory");
-@mysql_free_result($preresult); }
+mysql_free_result($preresult); }
 $PermissionName = stripcslashes(htmlspecialchars($PermissionName, ENT_QUOTES, $Settings['charset']));
 //$_POST['CategoryName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryName']);
 ?>
@@ -746,7 +746,7 @@ $PermissionName = stripcslashes(htmlspecialchars($PermissionName, ENT_QUOTES, $S
 </div>
 <?php } if(isset($_POST['id'])&&$_POST['subact']=="editnow") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $query = query("UPDATE `".$Settings['sqltable']."catpermissions` SET `CanViewCategory`='%s' WHERE `id`=%i", array($_POST['CanViewCategory'], $_POST['id']));
 exec_query($query); } if(isset($_POST['id'])&&$_POST['subact']=="create") { 
 ?>
@@ -799,16 +799,16 @@ exec_query($query); } if(isset($_POST['id'])&&$_POST['subact']=="create") {
 </div>
 <?php } if(isset($_POST['id'])&&isset($_POST['permid'])&&$_POST['subact']=="makenow") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."catpermissions` WHERE `id`=%i LIMIT 1", array($_POST['permid']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $PermissionName=mysql_result($preresult,0,"Name"); 
-@mysql_free_result($preresult); }
+mysql_free_result($preresult); }
 $nextidnum = getnextid($Settings['sqltable'],"catpermissions");
 $query = query("INSERT INTO `".$Settings['sqltable']."catpermissions` (`PermissionID`, `Name`, `CategoryID`, `CanViewCategory`) VALUES\n".
 "(%i, '%s', %i, '%s')", array($_POST['permid'], $PermissionName, $_POST['id'], $_POST['CanViewCategory'])); 
@@ -871,7 +871,7 @@ if($doupdate===true&&$Error!="Yes") { ?>
 <td class="TableMenuColumn4">&nbsp;</td>
 </tr></table></div>
 <?php } if ($_GET['act']!=null&&$Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=categories",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 ?>
 <div class="TableMenuBorder">
index 09909a7..d86f35c 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: forums.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: forums.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
@@ -21,8 +21,8 @@ if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
 // Check if we can goto admin cp
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if(!isset($_POST['update'])) { $_POST['update'] = null; }
 $Error = null; $errorstr = null;
 ?>
@@ -50,10 +50,10 @@ $rresult=exec_query($rquery);
 $rnum=mysql_num_rows($rresult);
 $query = query("UPDATE `".$Settings['sqltable']."forums` SET `NumPosts`=%i,`NumTopics`=%i WHERE `id`=%i", array($rnum,$tnum,$ForumID));
 exec_query($query);
-@mysql_free_result($tresult);
-@mysql_free_result($rresult);
+mysql_free_result($tresult);
+mysql_free_result($rresult);
 ++$i; }
-@mysql_free_result($result);
+mysql_free_result($result);
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -100,9 +100,9 @@ $rnum=mysql_num_rows($rresult);
 $Nrnum = $rnum - 1;
 $query = query("UPDATE `".$Settings['sqltable']."topics` SET `NumReply`=%i WHERE `id`=%i", array($Nrnum,$TopicID));
 exec_query($query);
-@mysql_free_result($rresult);
+mysql_free_result($rresult);
 ++$i; }
-@mysql_free_result($result);
+mysql_free_result($result);
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -163,7 +163,7 @@ $NewUserID = $UsersID; $NewGuestsName = $GuestsName; }
 $query = query("UPDATE `".$Settings['sqltable']."topics` SET `UserID`=%i,`GuestName`='%s' WHERE `id`=%i", array($NewUserID,$NewGuestsName,$TopicID));
 exec_query($query);
 ++$i; }
-@mysql_free_result($result);
+mysql_free_result($result);
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -241,7 +241,7 @@ $NewEditUserID = $EditUserID; $NewEditUserName = $EditUserName; }
 $query = query("UPDATE `".$Settings['sqltable']."posts` SET `UserID`=%i,`GuestName`='%s',`EditUser`=%i,`EditUserName`='%s' WHERE `id`=%i", array($NewUserID,$NewGuestsName,$NewEditUserID,$NewEditUserName,$PostID));
 exec_query($query);
 ++$i; }
-@mysql_free_result($result);
+mysql_free_result($result);
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -320,7 +320,7 @@ $EuNuMai = "Eu nu mai vreau";
 ?>
        <option value="<?php echo $InCatID; ?>"><?php echo $InCatName; ?></option>
 <?php ++$nu; }
-@mysql_free_result($cr); ?>
+mysql_free_result($cr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="ForumName">Insert name for forum:</label></td>
@@ -362,7 +362,7 @@ if ($InForumType!="redirect"&&$AiFiInSubForum=="0") {
 ?>
        <option value="<?php echo $InForumID; ?>"><?php echo $InForumName; ?></option>
 <?php } ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="PostCountAdd">Add to post count:</label></td>
@@ -402,7 +402,7 @@ $AiFiInSubForum=mysql_result($fr,$fi,"InSubForum");
 ?>
        <option value="<?php echo $InForumID; ?>"><?php echo $InForumName; ?></option>
 <?php ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -424,14 +424,14 @@ $AiFiInSubForum=mysql_result($fr,$fi,"InSubForum");
 <?php } if($_POST['act']=="addforum"&&$_POST['update']=="now"&&$_GET['act']=="addforum") {
 $_POST['ForumName'] = stripcslashes(htmlspecialchars($_POST['ForumName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ForumName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
-$_POST['ForumName'] = @remove_spaces($_POST['ForumName']);
+$_POST['ForumName'] = remove_spaces($_POST['ForumName']);
 $_POST['ForumDesc'] = stripcslashes(htmlspecialchars($_POST['ForumDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ForumDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumDesc']);
-$_POST['ForumDesc'] = @remove_spaces($_POST['ForumDesc']);
+$_POST['ForumDesc'] = remove_spaces($_POST['ForumDesc']);
 $sql_id_check = exec_query(query("SELECT `id` FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_POST['ForumID'])));
 $sql_order_check = exec_query(query("SELECT `OrderID` FROM `".$Settings['sqltable']."forums` WHERE `OrderID`=%i LIMIT 1", array($_POST['OrderID'])));
 $id_check = mysql_num_rows($sql_id_check); $order_check = mysql_num_rows($sql_order_check);
-@mysql_free_result($sql_id_check); @mysql_free_result($sql_order_check);
+mysql_free_result($sql_id_check); mysql_free_result($sql_order_check);
 $errorstr = "";
 if ($_POST['NumPostView']==null||
        !is_numeric($_POST['NumPostView'])) {
@@ -462,7 +462,7 @@ $errorstr = $errorstr."Your Forum Name is too big.<br />\n"; }
 if (pre_strlen($_POST['ForumDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Description is too big.<br />\n"; } 
 if ($Error!="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 $query = query("INSERT INTO `".$Settings['sqltable']."forums` (`id`, `CategoryID`, `OrderID`, `Name`, `ShowForum`, `ForumType`, `InSubForum`, `RedirectURL`, `Redirects`, `NumViews`, `Description`, `PostCountAdd`, `PostCountView`, `KarmaCountView`, `CanHaveTopics`, `HotTopicPosts`, `NumPosts`, `NumTopics`) VALUES\n".
 "(%i, %i, %i, '%s', '%s', '%s', %i, '%s', 0, 0, '%s', '%s', %i, %i, '%s', %i, 0, 0)", array($_POST['ForumID'],$_POST['ForumCatID'],$_POST['OrderID'],$_POST['ForumName'],$_POST['ShowForum'],$_POST['ForumType'],$_POST['InSubForum'],$_POST['RedirectURL'],$_POST['ForumDesc'],$_POST['PostCountAdd'],$_POST['NumPostView'],$_POST['NumKarmaView'],$_POST['CanHaveTopics'],$_POST['NumPostHotTopic']));
@@ -502,7 +502,7 @@ $CanPinTopics=mysql_result($getperidr2,0,"CanPinTopics");
 $CanDohtml=mysql_result($getperidr2,0,"CanDohtml"); 
 $CanUseBBags=mysql_result($getperidr2,0,"CanUseBBags"); 
 $CanModForum=mysql_result($getperidr2,0,"CanModForum"); 
-@mysql_free_result($getperidr2);
+mysql_free_result($getperidr2);
 if($_POST['CPermissions']=="0") {
 $query = query("INSERT IGNORE INTO `".$Settings['sqltable']."permissions` VALUES (%i, %i, '%s', %i, 'yes', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no')", array($nextperid,$PermissionID,$PermissionName,$_POST['ForumID'])); }
 if($_POST['CPermissions']!="0") {
@@ -512,7 +512,7 @@ if($getperidnum2<=0) {
 $query = query("INSERT IGNORE INTO `".$Settings['sqltable']."permissions` VALUES (%i, %i, '%s', %i, 'yes', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no', 'no')", array($nextperid,$PermissionID,$PermissionName,$_POST['ForumID'])); } }
 exec_query($query);
 ++$getperidi; ++$nextperid; }
-@mysql_free_result($getperidr);
+mysql_free_result($getperidr);
 ?>
 <?php } } if($_GET['act']=="deleteforum"&&$_POST['update']!="now") { 
 $admincptitle = " ".$ThemeSet['TitleDivider']." Deleting a Forum";
@@ -573,7 +573,7 @@ $AiFiInSubForum=mysql_result($fr,$fi,"InSubForum");
 ?>
        <option value="<?php echo $InForumID; ?>"><?php echo $InForumName; ?></option>
 <?php ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -629,7 +629,7 @@ exec_query($dtquery); }
 $dtquery = query("DELETE FROM `".$Settings['sqltable']."forums` WHERE `id`=%i", array($DelSubsForumID));
 exec_query($dtquery);
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 ?>
 <?php } } if($_GET['act']=="editforum"&&$_POST['update']!="now") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Editing a Forum";
@@ -673,7 +673,7 @@ $AiFiInSubForum=mysql_result($fr,$fi,"InSubForum");
 ?>
        <option value="<?php echo $InForumID; ?>"><?php echo $InForumName; ?></option>
 <?php ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -695,9 +695,9 @@ $AiFiInSubForum=mysql_result($fr,$fi,"InSubForum");
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $ForumID=mysql_result($preresult,0,"id");
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
@@ -719,7 +719,7 @@ $CanHaveTopics=mysql_result($preresult,0,"CanHaveTopics");
 $HotTopicPosts=mysql_result($preresult,0,"HotTopicPosts");
 $NumberPosts=mysql_result($preresult,0,"NumPosts");
 $NumberTopics=mysql_result($preresult,0,"NumTopics");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics);
 ?>
 <div class="TableMenuBorder">
@@ -768,7 +768,7 @@ if($ForumCatID==$InCatID) {
 <?php } if($ForumCatID!=$InCatID) { ?>
        <option value="<?php echo $InCatID; ?>"><?php echo $InCatName; ?></option>
 <?php } ++$nu; }
-@mysql_free_result($cr); ?>
+mysql_free_result($cr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="ForumName">Insert name for forum:</label></td>
@@ -813,7 +813,7 @@ if($InSubForum==$InForumID) {
 <?php } if($InSubForum!=$InForumID) { ?>
        <option value="<?php echo $InForumID; ?>"><?php echo $InForumName; ?></option>
 <?php } } ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="PostCountAdd">Add to post count:</label></td>
@@ -858,24 +858,24 @@ if($InSubForum==$InForumID) {
        isset($_POST['id'])) {
 $_POST['ForumName'] = stripcslashes(htmlspecialchars($_POST['ForumName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ForumName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
-$_POST['ForumName'] = @remove_spaces($_POST['ForumName']);
+$_POST['ForumName'] = remove_spaces($_POST['ForumName']);
 $_POST['ForumDesc'] = stripcslashes(htmlspecialchars($_POST['ForumDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ForumDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumDesc']);
-$_POST['ForumDesc'] = @remove_spaces($_POST['ForumDesc']);
+$_POST['ForumDesc'] = remove_spaces($_POST['ForumDesc']);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $OldID=mysql_result($preresult,0,"id");
 $OldOrder=mysql_result($preresult,0,"OrderID");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $sql_id_check = exec_query(query("SELECT `id` FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_POST['ForumID'])));
 $sql_order_check = exec_query(query("SELECT `OrderID` FROM `".$Settings['sqltable']."forums` WHERE `OrderID`=%i LIMIT 1", array($_POST['OrderID'])));
 $id_check = mysql_num_rows($sql_id_check); $order_check = mysql_num_rows($sql_order_check);
-@mysql_free_result($sql_id_check); @mysql_free_result($sql_order_check);
+mysql_free_result($sql_id_check); mysql_free_result($sql_order_check);
 if ($_POST['NumPostView']==null||
        !is_numeric($_POST['NumPostView'])) {
        $_POST['NumPostView'] = 0; }
@@ -905,7 +905,7 @@ $errorstr = $errorstr."Your Forum Name is too big.<br />\n"; }
 if (pre_strlen($_POST['ForumDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Description is too big.<br />\n"; } 
 if ($Error!="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 $query = query("UPDATE `".$Settings['sqltable']."forums` SET `id`=%i,`CategoryID`=%i,`OrderID`=%i,`Name`='%s',`ShowForum`='%s',`ForumType`='%s',`InSubForum`=%i,`RedirectURL`='%s',`Description`='%s',`PostCountAdd`='%s',`PostCountView`=%i,`KarmaCountView`=%i,`CanHaveTopics`='%s',`HotTopicPosts`=%i WHERE `id`=%i", array($_POST['ForumID'],$_POST['ForumCatID'],$_POST['OrderID'],$_POST['ForumName'],$_POST['ShowForum'],$_POST['ForumType'],$_POST['InSubForum'],$_POST['RedirectURL'],$_POST['ForumDesc'],$_POST['PostCountAdd'],$_POST['NumPostView'],$_POST['NumKarmaView'],$_POST['CanHaveTopics'],$_POST['NumPostHotTopic'],$_POST['id']));
 exec_query($query);
@@ -950,11 +950,11 @@ $getperidq2 = query("SELECT * FROM `".$Settings['sqltable']."permissions` WHERE
 $getperidr2=exec_query($getperidq2);
 $getperidnum2=mysql_num_rows($getperidr2);
 $getperidName=mysql_result($getperidr2,0,"Name");
-@mysql_free_result($getperidr2);
+mysql_free_result($getperidr2);
 ?>
        <option value="<?php echo $getperidID; ?>"><?php echo $getperidName; ?></option>
 <?php ++$getperidi; }
-@mysql_free_result($getperidr); ?>
+mysql_free_result($getperidr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -1031,9 +1031,9 @@ Permissions for <?php echo $InForumName; ?> are not set: <br />
 </td></tr></table>
 </form>
 <?php 
-@mysql_free_result($getperidr);
+mysql_free_result($getperidr);
 ++$fi; }
-@mysql_free_result($fr); ?>
+mysql_free_result($fr); ?>
 </td>
 </tr>
 <tr class="TableMenuRow4">
@@ -1045,9 +1045,9 @@ Permissions for <?php echo $InForumName; ?> are not set: <br />
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."permissions` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $PermissionNum=mysql_result($preresult,0,"id"); 
 $PermissionID=mysql_result($preresult,0,"PermissionID"); 
@@ -1070,7 +1070,7 @@ $CanPinTopics=mysql_result($preresult,0,"CanPinTopics");
 $CanDohtml=mysql_result($preresult,0,"CanDohtml"); 
 $CanUseBBags=mysql_result($preresult,0,"CanUseBBags"); 
 $CanModForum=mysql_result($preresult,0,"CanModForum"); 
-@mysql_free_result($preresult); }
+mysql_free_result($preresult); }
 $PermissionName = stripcslashes(htmlspecialchars($PermissionName, ENT_QUOTES, $Settings['charset']));
 //$_POST['ForumName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
 ?>
@@ -1234,7 +1234,7 @@ $PermissionName = stripcslashes(htmlspecialchars($PermissionName, ENT_QUOTES, $S
 </div>
 <?php } if(isset($_POST['id'])&&$_POST['subact']=="editnow") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $query = query("UPDATE `".$Settings['sqltable']."permissions` SET `CanViewForum`='%s', `CanMakeTopics`='%s', `CanMakeReplys`='%s', `CanMakeReplysCT`='%s', `CanEditTopics`='%s', `CanEditTopicsCT`='%s', `CanEditReplys`='%s', `CanEditReplysCT`='%s', `CanDeleteTopics`='%s', `CanDeleteTopicsCT`='%s', `CanDeleteReplys`='%s', `CanDeleteReplysCT`='%s', `CanCloseTopics`='%s', `CanPinTopics`='%s', `CanDohtml`='%s', `CanUseBBags`='%s', `CanModForum`='%s' WHERE `id`=%i", array($_POST['CanViewForum'], $_POST['CanMakeTopics'], $_POST['CanMakeReplys'], $_POST['CanMakeReplysCT'], $_POST['CanEditTopics'], $_POST['CanEditTopicsCT'], $_POST['CanEditReplys'], $_POST['CanEditReplysCT'], $_POST['CanDeleteTopics'], $_POST['CanDeleteTopicsCT'], $_POST['CanDeleteReplys'], $_POST['CanDeleteReplysCT'], $_POST['CanCloseTopics'], $_POST['CanPinTopics'], $_POST['CanDohtml'], $_POST['CanUseBBags'], $_POST['CanModForum'], $_POST['id']));
 exec_query($query); } if(isset($_POST['id'])&&$_POST['subact']=="create") { 
 ?>
@@ -1399,16 +1399,16 @@ exec_query($query); } if(isset($_POST['id'])&&$_POST['subact']=="create") {
 </div>
 <?php } if(isset($_POST['id'])&&isset($_POST['permid'])&&$_POST['subact']=="makenow") {
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."permissions` WHERE `id`=%i LIMIT 1", array($_POST['permid']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $PermissionName=mysql_result($preresult,0,"Name"); 
-@mysql_free_result($preresult); }
+mysql_free_result($preresult); }
 $nextidnum = getnextid($Settings['sqltable'],"permissions");
 $query = query("INSERT INTO `".$Settings['sqltable']."permissions` (`PermissionID`, `Name`, `ForumID`, `CanViewForum`, `CanMakeTopics`, `CanMakeReplys`, `CanMakeReplysCT`, `CanEditTopics`, `CanEditTopicsCT`, `CanEditReplys`, `CanEditReplysCT`, `CanDeleteTopics`, `CanDeleteTopicsCT`, `CanDeleteReplys`, `CanDeleteReplysCT`, `CanCloseTopics`, `CanPinTopics`, `CanDohtml`, `CanUseBBags`, `CanModForum`) VALUES\n".
 "(%i, '%s', %i, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", array($_POST['permid'], $PermissionName, $_POST['id'], $_POST['CanViewForum'], $_POST['CanMakeTopics'], $_POST['CanMakeReplys'], $_POST['CanMakeReplysCT'], $_POST['CanEditTopics'], $_POST['CanEditTopicsCT'], $_POST['CanEditReplys'], $_POST['CanEditReplysCT'], $_POST['CanDeleteTopics'], $_POST['CanDeleteTopicsCT'], $_POST['CanDeleteReplys'], $_POST['CanDeleteReplysCT'], $_POST['CanCloseTopics'], $_POST['CanPinTopics'], $_POST['CanDohtml'], $_POST['CanUseBBags'], $_POST['CanModForum'])); 
@@ -1471,7 +1471,7 @@ if($doupdate===true&&$Error!="Yes") { ?>
 <td class="TableMenuColumn4">&nbsp;</td>
 </tr></table></div>
 <?php } if ($_GET['act']!=null&&$Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=forums",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
 ?>
 <div class="TableMenuBorder">
index ee2d8d1..33a87d3 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: main.php - Last Update: 11/15/2009 SVN 350 - Author: cooldude2k $
+    $FileInfo: main.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="main.php"||$File3Name=="/main.php") {
@@ -21,13 +21,13 @@ if ($File3Name=="main.php"||$File3Name=="/main.php") {
 // Check if we can goto admin cp
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if(!isset($_POST['update'])) { $_POST['update'] = null; }
 if($_GET['act']=="mysql"&&$GroupInfo['ViewDBInfo']!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if(!isset($_POST['update'])) { $_POST['update'] = null; }
 $iDBRDate = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $iDBRSVN = $VER2[2]." ".$SubVerN;
@@ -35,7 +35,7 @@ $OutPutLog = null;
 $LastUpdateS = "Last Update: ".$iDBRDate." ".$iDBRSVN;
 $pretext = "<?php\n/*\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation; either version 2 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    Revised BSD License for more details.\n\n    Copyright 2004-".$SVNDay[2]." iDB Support - http://idb.berlios.de/\n    Copyright 2004-".$SVNDay[2]." Game Maker 2k - http://gamemaker2k.org/\n    iDB Installer made by Game Maker 2k - http://idb.berlios.net/\n\n    \$FileInfo: settings.php & settingsbak.php - ".$LastUpdateS." - Author: cooldude2k \$\n*/\n";
 $pretext2 = array("/*   Board Setting Section Begins   */\n\$Settings = array();","/*   Board Setting Section Ends  \n     Board Info Section Begins   */\n\$SettInfo = array();","/*   Board Setting Section Ends   \n     Board Dir Section Begins   */\n\$SettDir = array();","/*   Board Dir Section Ends   */");
-$settcheck = "\$File3Name = basename(\$_SERVER['SCRIPT_NAME']);\nif (\$File3Name==\"settings.php\"||\$File3Name==\"/settings.php\"||\n    \$File3Name==\"settingsbak.php\"||\$File3Name==\"/settingsbak.php\") {\n    @header('Location: index.php');\n    exit(); }\n";
+$settcheck = "\$File3Name = basename(\$_SERVER['SCRIPT_NAME']);\nif (\$File3Name==\"settings.php\"||\$File3Name==\"/settings.php\"||\n    \$File3Name==\"settingsbak.php\"||\$File3Name==\"/settingsbak.php\") {\n    header('Location: index.php');\n    exit(); }\n";
 if(!isset($_POST['update'])) { $_POST['update'] = null; }
 function bool_string($boolean) {
 if(!is_bool($boolean)) {
@@ -104,7 +104,7 @@ $_POST['update'] = "now"; $_GET['act'] = "view"; }
 <?php if($_POST['update']=="now"&&$_GET['act']!=null) {
 $updateact = url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act']."&menu=main",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
 $admincptitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"3");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"3");
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -188,7 +188,7 @@ $mi = 0;
 while ($mi < $mnum) {
 $MGroups[$mi]=mysql_result($mgresults,$mi,"Name");
 ++$mi; }
-@mysql_free_result($mgresults);
+mysql_free_result($mgresults);
 ?>
 <div class="TableMenuBorder">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -454,23 +454,23 @@ if(!isset($Settings['BoardUUID'])||$Settings['BoardUUID']===null) {
        $Settings['BoardUUID'] = uuid(false,true,false,$Settings['use_hashtype'],null); }
 $Settings['board_name'] = htmlspecialchars($Settings['board_name'], ENT_QUOTES, $Settings['charset']);
 $Settings['board_name'] = fixbamps($Settings['board_name']);
-$Settings['board_name'] = @remove_spaces($Settings['board_name']);
+$Settings['board_name'] = remove_spaces($Settings['board_name']);
 $Settings['board_name'] = str_replace("\&#039;", "&#039;", $Settings['board_name']);
 $SettInfo['board_name'] = htmlspecialchars($SettInfo['board_name'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['board_name'] = fixbamps($SettInfo['board_name']);
-$SettInfo['board_name'] = @remove_spaces($SettInfo['board_name']);
+$SettInfo['board_name'] = remove_spaces($SettInfo['board_name']);
 $SettInfo['board_name'] = str_replace("\&#039;", "&#039;", $SettInfo['board_name']);
 $SettInfo['Author'] = htmlspecialchars($SettInfo['Author'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Author'] = fixbamps($SettInfo['Author']);
-$SettInfo['Author'] = @remove_spaces($SettInfo['Author']);
+$SettInfo['Author'] = remove_spaces($SettInfo['Author']);
 $SettInfo['Author'] = str_replace("\&#039;", "&#039;", $SettInfo['Author']);
 $SettInfo['Keywords'] = htmlspecialchars($SettInfo['Keywords'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Keywords'] = fixbamps($SettInfo['Keywords']);
-$SettInfo['Keywords'] = @remove_spaces($SettInfo['Keywords']);
+$SettInfo['Keywords'] = remove_spaces($SettInfo['Keywords']);
 $SettInfo['Keywords'] = str_replace("\&#039;", "&#039;", $SettInfo['Keywords']);
 $SettInfo['Description'] = htmlspecialchars($SettInfo['Description'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Description'] = fixbamps($SettInfo['Description']);
-$SettInfo['Description'] = @remove_spaces($SettInfo['Description']);
+$SettInfo['Description'] = remove_spaces($SettInfo['Description']);
 $SettInfo['Description'] = str_replace("\&#039;", "&#039;", $SettInfo['Description']);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = ".null_string($Settings['sqlhost']).";\n\$Settings['sqldb'] = ".null_string($Settings['sqldb']).";\n\$Settings['sqltable'] = ".null_string($Settings['sqltable']).";\n\$Settings['sqluser'] = ".null_string($Settings['sqluser']).";\n\$Settings['sqlpass'] = ".null_string($Settings['sqlpass']).";\n\$Settings['board_name'] = ".null_string($Settings['board_name']).";\n\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n\$Settings['idburl'] = ".null_string($_POST['BoardURL']).";\n\$Settings['enable_https'] = ".null_string($_POST['enable_https']).";\n\$Settings['weburl'] = ".null_string($_POST['WebURL']).";\n\$Settings['use_gzip'] = ".null_string($_POST['UseGzip']).";\n\$Settings['html_type'] = ".null_string($_POST['HTMLType']).";\n\$Settings['html_level'] = ".null_string($_POST['HTMLLevel']).";\n\$Settings['output_type'] = ".null_string($_POST['OutPutType']).";\n\$Settings['GuestGroup'] = ".null_string($_POST['GuestGroup']).";\n\$Settings['MemberGroup'] = ".null_string($_POST['MemberGroup']).";\n\$Settings['ValidateGroup'] = ".null_string($_POST['ValidateGroup']).";\n\$Settings['AdminValidate'] = ".null_string($_POST['AdminValidate']).";\n\$Settings['TestReferer'] = ".null_string($_POST['TestReferer']).";\n\$Settings['DefaultTheme'] = ".null_string($_POST['DefaultTheme']).";\n\$Settings['DefaultTimeZone'] = ".null_string($_POST['YourOffSet'].":".$_POST['MinOffSet']).";\n\$Settings['DefaultDST'] = ".null_string($_POST['DST']).";\n\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n\$Settings['charset'] = ".null_string($Settings['charset']).";\n\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = ".null_string($_POST['max_posts']).";\n\$Settings['max_topics'] = ".null_string($_POST['max_topics']).";\n\$Settings['max_memlist'] = ".null_string($_POST['max_memlist']).";\n\$Settings['max_pmlist'] = ".null_string($_POST['max_pmlist']).";\n\$Settings['hot_topic_num'] = ".null_string($_POST['hot_topic_num']).";\n\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n\$Settings['enable_rss'] = ".null_string($_POST['enable_rss']).";\n\$Settings['enable_search'] = ".null_string($_POST['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".null_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".null_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".null_string($Settings['fixcookiedir']).";\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['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = ".null_string($SettInfo['board_name']).";\n\$SettInfo['Author'] = ".null_string($SettInfo['Author']).";\n\$SettInfo['Keywords'] = ".null_string($SettInfo['Keywords']).";\n\$SettInfo['Description'] = ".null_string($SettInfo['Description']).";\n".$pretext2[2]."\n\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
@@ -478,7 +478,7 @@ $BoardSettings = $pretext.$settcheck.$BoardSettings;
 $fp = fopen("settings.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
-//     @cp("settings.php","settingsbak.php");
+//     cp("settings.php","settingsbak.php");
 $fp = fopen("settingsbak.php","w+");
 fwrite($fp, $BoardSettingsBak);
 fclose($fp); } if($_GET['act']=="mysql"&&$_POST['update']!="now"&&$GroupInfo['ViewDBInfo']=="yes") {
@@ -546,23 +546,23 @@ if(!isset($Settings['BoardUUID'])||$Settings['BoardUUID']===null) {
        $Settings['BoardUUID'] = uuid(false,true,false,$Settings['use_hashtype'],null); }
 $Settings['board_name'] = htmlspecialchars($Settings['board_name'], ENT_QUOTES, $Settings['charset']);
 $Settings['board_name'] = fixbamps($Settings['board_name']);
-$Settings['board_name'] = @remove_spaces($Settings['board_name']);
+$Settings['board_name'] = remove_spaces($Settings['board_name']);
 $Settings['board_name'] = str_replace("\&#039;", "&#039;", $Settings['board_name']);
 $SettInfo['board_name'] = htmlspecialchars($SettInfo['board_name'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['board_name'] = fixbamps($SettInfo['board_name']);
-$SettInfo['board_name'] = @remove_spaces($SettInfo['board_name']);
+$SettInfo['board_name'] = remove_spaces($SettInfo['board_name']);
 $SettInfo['board_name'] = str_replace("\&#039;", "&#039;", $SettInfo['board_name']);
 $SettInfo['Author'] = htmlspecialchars($SettInfo['Author'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Author'] = fixbamps($SettInfo['Author']);
-$SettInfo['Author'] = @remove_spaces($SettInfo['Author']);
+$SettInfo['Author'] = remove_spaces($SettInfo['Author']);
 $SettInfo['Author'] = str_replace("\&#039;", "&#039;", $SettInfo['Author']);
 $SettInfo['Keywords'] = htmlspecialchars($SettInfo['Keywords'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Keywords'] = fixbamps($SettInfo['Keywords']);
-$SettInfo['Keywords'] = @remove_spaces($SettInfo['Keywords']);
+$SettInfo['Keywords'] = remove_spaces($SettInfo['Keywords']);
 $SettInfo['Keywords'] = str_replace("\&#039;", "&#039;", $SettInfo['Keywords']);
 $SettInfo['Description'] = htmlspecialchars($SettInfo['Description'], ENT_QUOTES, $Settings['charset']);
 $SettInfo['Description'] = fixbamps($SettInfo['Description']);
-$SettInfo['Description'] = @remove_spaces($SettInfo['Description']);
+$SettInfo['Description'] = remove_spaces($SettInfo['Description']);
 $SettInfo['Description'] = str_replace("\&#039;", "&#039;", $SettInfo['Description']);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = ".null_string($_POST['DatabaseHost']).";\n\$Settings['sqldb'] = ".null_string($_POST['DatabaseName']).";\n\$Settings['sqltable'] = ".null_string($_POST['tableprefix']).";\n\$Settings['sqluser'] = ".null_string($_POST['DatabaseUserName']).";\n\$Settings['sqlpass'] = ".null_string($_POST['DatabasePassword']).";\n\$Settings['board_name'] = ".null_string($Settings['board_name']).";\n\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n\$Settings['idburl'] = ".null_string($Settings['idburl']).";\n\$Settings['enable_https'] = ".null_string($Settings['enable_https']).";\n\$Settings['weburl'] = ".null_string($Settings['weburl']).";\n\$Settings['use_gzip'] = ".null_string($Settings['use_gzip']).";\n\$Settings['html_type'] = ".null_string($Settings['html_type']).";\n\$Settings['html_level'] = ".null_string($Settings['html_level']).";\n\$Settings['output_type'] = ".null_string($Settings['output_type']).";\n\$Settings['GuestGroup'] = ".null_string($Settings['GuestGroup']).";\n\$Settings['MemberGroup'] = ".null_string($Settings['MemberGroup']).";\n\$Settings['ValidateGroup'] = ".null_string($Settings['ValidateGroup']).";\n\$Settings['AdminValidate'] = ".null_string($Settings['AdminValidate']).";\n\$Settings['TestReferer'] = ".null_string($Settings['TestReferer']).";\n\$Settings['DefaultTheme'] = ".null_string($Settings['DefaultTheme']).";\n\$Settings['DefaultTimeZone'] = ".null_string($Settings['DefaultTimeZone']).";\n\$Settings['DefaultDST'] = ".null_string($Settings['DefaultDST']).";\n\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n\$Settings['charset'] = ".null_string($Settings['charset']).";\n\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = ".null_string($Settings['max_posts']).";\n\$Settings['max_topics'] = ".null_string($Settings['max_topics']).";\n\$Settings['max_memlist'] = ".null_string($Settings['max_memlist']).";\n\$Settings['max_pmlist'] = ".null_string($Settings['max_pmlist']).";\n\$Settings['hot_topic_num'] = ".null_string($Settings['hot_topic_num']).";\n\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n\$Settings['enable_rss'] = ".null_string($Settings['enable_rss']).";\n\$Settings['enable_search'] = ".null_string($Settings['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".null_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".null_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".null_string($Settings['fixcookiedir']).";\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['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = ".null_string($SettInfo['board_name']).";\n\$SettInfo['Author'] = ".null_string($SettInfo['Author']).";\n\$SettInfo['Keywords'] = ".null_string($SettInfo['Keywords']).";\n\$SettInfo['Description'] = ".null_string($SettInfo['Description']).";\n".$pretext2[2]."\n\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
@@ -570,7 +570,7 @@ $BoardSettings = $pretext.$settcheck.$BoardSettings;
 $fp = fopen("settings.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
-//     @cp("settings.php","settingsbak.php");
+//     cp("settings.php","settingsbak.php");
 $fp = fopen("settingsbak.php","w+");
 fwrite($fp, $BoardSettingsBak);
 fclose($fp); } if($_GET['act']=="info"&&$_POST['update']!="now") {
@@ -634,19 +634,19 @@ if(!isset($Settings['BoardUUID'])||$Settings['BoardUUID']===null) {
        $Settings['BoardUUID'] = uuid(false,true,false,$Settings['use_hashtype'],null); }
 $_POST['board_name'] = htmlspecialchars($_POST['board_name'], ENT_QUOTES, $Settings['charset']);
 $_POST['board_name'] = fixbamps($_POST['board_name']);
-$_POST['board_name'] = @remove_spaces($_POST['board_name']);
+$_POST['board_name'] = remove_spaces($_POST['board_name']);
 $_POST['board_name'] = str_replace("\&#039;", "&#039;", $_POST['board_name']);
 $_POST['Author'] = htmlspecialchars($_POST['Author'], ENT_QUOTES, $Settings['charset']);
 $_POST['Author'] = fixbamps($_POST['Author']);
-$_POST['Author'] = @remove_spaces($_POST['Author']);
+$_POST['Author'] = remove_spaces($_POST['Author']);
 $_POST['Author'] = str_replace("\&#039;", "&#039;", $_POST['Author']);
 $_POST['Keywords'] = htmlspecialchars($_POST['Keywords'], ENT_QUOTES, $Settings['charset']);
 $_POST['Keywords'] = fixbamps($_POST['Keywords']);
-$_POST['Keywords'] = @remove_spaces($_POST['Keywords']);
+$_POST['Keywords'] = remove_spaces($_POST['Keywords']);
 $_POST['Keywords'] = str_replace("\&#039;", "&#039;", $_POST['Keywords']);
 $_POST['Description'] = htmlspecialchars($_POST['Description'], ENT_QUOTES, $Settings['charset']);
 $_POST['Description'] = fixbamps($_POST['Description']);
-$_POST['Description'] = @remove_spaces($_POST['Description']);
+$_POST['Description'] = remove_spaces($_POST['Description']);
 $_POST['Description'] = str_replace("\&#039;", "&#039;", $_POST['Description']);
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = ".null_string($Settings['sqlhost']).";\n\$Settings['sqldb'] = ".null_string($Settings['sqldb']).";\n\$Settings['sqltable'] = ".null_string($Settings['sqltable']).";\n\$Settings['sqluser'] = ".null_string($Settings['sqluser']).";\n\$Settings['sqlpass'] = ".null_string($Settings['sqlpass']).";\n\$Settings['board_name'] = ".null_string($_POST['board_name']).";\n\$Settings['idbdir'] = ".null_string($Settings['idbdir']).";\n\$Settings['idburl'] = ".null_string($Settings['idburl']).";\n\$Settings['enable_https'] = ".null_string($Settings['enable_https']).";\n\$Settings['weburl'] = ".null_string($Settings['weburl']).";\n\$Settings['use_gzip'] = ".null_string($Settings['use_gzip']).";\n\$Settings['html_type'] = ".null_string($Settings['html_type']).";\n\$Settings['html_level'] = ".null_string($Settings['html_level']).";\n\$Settings['output_type'] = ".null_string($Settings['output_type']).";\n\$Settings['GuestGroup'] = ".null_string($Settings['GuestGroup']).";\n\$Settings['MemberGroup'] = ".null_string($Settings['MemberGroup']).";\n\$Settings['ValidateGroup'] = ".null_string($Settings['ValidateGroup']).";\n\$Settings['AdminValidate'] = ".null_string($Settings['AdminValidate']).";\n\$Settings['TestReferer'] = ".null_string($Settings['TestReferer']).";\n\$Settings['DefaultTheme'] = ".null_string($Settings['DefaultTheme']).";\n\$Settings['DefaultTimeZone'] = ".null_string($Settings['DefaultTimeZone']).";\n\$Settings['DefaultDST'] = ".null_string($Settings['DefaultDST']).";\n\$Settings['use_hashtype'] = ".null_string($Settings['use_hashtype']).";\n\$Settings['charset'] = ".null_string($Settings['charset']).";\n\$Settings['add_power_by'] = ".null_string($Settings['add_power_by']).";\n\$Settings['send_pagesize'] = ".null_string($Settings['send_pagesize']).";\n\$Settings['max_posts'] = ".null_string($Settings['max_posts']).";\n\$Settings['max_topics'] = ".null_string($Settings['max_topics']).";\n\$Settings['max_memlist'] = ".null_string($Settings['max_memlist']).";\n\$Settings['max_pmlist'] = ".null_string($Settings['max_pmlist']).";\n\$Settings['hot_topic_num'] = ".null_string($Settings['hot_topic_num']).";\n\$Settings['qstr'] = ".null_string($Settings['qstr']).";\n\$Settings['qsep'] = ".null_string($Settings['qsep']).";\n\$Settings['file_ext'] = ".null_string($Settings['file_ext']).";\n\$Settings['rss_ext'] = ".null_string($Settings['rss_ext']).";\n\$Settings['js_ext'] = ".null_string($Settings['js_ext']).";\n\$Settings['showverinfo'] = ".null_string($Settings['showverinfo']).";\n\$Settings['enable_rss'] = ".null_string($Settings['enable_rss']).";\n\$Settings['enable_search'] = ".null_string($Settings['enable_search']).";\n\$Settings['sessionid_in_urls'] = ".null_string($Settings['sessionid_in_urls']).";\n\$Settings['fixpathinfo'] = ".null_string($Settings['fixpathinfo']).";\n\$Settings['fixbasedir'] = ".null_string($Settings['fixbasedir']).";\n\$Settings['fixcookiedir'] = ".null_string($Settings['fixcookiedir']).";\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['BoardUUID'] = ".null_string($Settings['BoardUUID']).";\n\$Settings['KarmaBoostDays'] = ".null_string($Settings['KarmaBoostDays']).";\n\$Settings['KBoostPercent'] = ".null_string($Settings['KBoostPercent']).";\n".$pretext2[1]."\n\$SettInfo['board_name'] = ".null_string($_POST['board_name']).";\n\$SettInfo['Author'] = ".null_string($_POST['Author']).";\n\$SettInfo['Keywords'] = ".null_string($_POST['Keywords']).";\n\$SettInfo['Description'] = ".null_string($_POST['Description']).";\n".$pretext2[2]."\n\$SettDir['maindir'] = ".null_string($SettDir['maindir']).";\n\$SettDir['inc'] = ".null_string($SettDir['inc']).";\n\$SettDir['misc'] = ".null_string($SettDir['misc']).";\n\$SettDir['admin'] = ".null_string($SettDir['admin']).";\n\$SettDir['mod'] = ".null_string($SettDir['mod']).";\n\$SettDir['themes'] = ".null_string($SettDir['themes']).";\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
@@ -654,7 +654,7 @@ $BoardSettings = $pretext.$settcheck.$BoardSettings;
 $fp = fopen("settings.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
-//     @cp("settings.php","settingsbak.php");
+//     cp("settings.php","settingsbak.php");
 $fp = fopen("settingsbak.php","w+");
 fwrite($fp, $BoardSettingsBak);
 fclose($fp); } if($_POST['update']=="now"&&$_GET['act']!=null) {
index 7a322e9..7249373 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: members.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: members.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="members.php"||$File3Name=="/members.php") {
@@ -21,8 +21,8 @@ if ($File3Name=="members.php"||$File3Name=="/members.php") {
 // Check if we can goto admin cp
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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"; }
 if(!is_numeric($_POST['gid'])) { $_POST['gid'] = "0"; }
@@ -70,7 +70,7 @@ $admincptitle = " ".$ThemeSet['TitleDivider']." Validating Members";
 $gquerys = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s' LIMIT 1", array($Settings['ValidateGroup']));
 $gresults=exec_query($gquerys);
 $VGroupID=mysql_result($gresults,0,"id");
-@mysql_free_result($gresults);
+mysql_free_result($gresults);
 $getmemidq = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE (`GroupID`=%i AND `id`<>-1) OR (`Validated`='no' AND `id`<>-1)", array($VGroupID));
 $getmemidr=exec_query($getmemidq);
 $getmemidnum=mysql_num_rows($getmemidr);
@@ -84,7 +84,7 @@ $getmemidName=mysql_result($getmemidr,$getmemidi,"Name");
 ?>
 <option value="<?php echo $getmemidID; ?>"><?php echo $getmemidName; ?></option>
 <?php ++$getmemidi; }
-@mysql_free_result($getmemidr); ?>
+mysql_free_result($getmemidr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -107,11 +107,11 @@ $getmemidName=mysql_result($getmemidr,$getmemidi,"Name");
 $mguerys = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s' LIMIT 1", array($Settings['MemberGroup']));
 $mgresults=exec_query($mguerys);
 $MGroupID=mysql_result($mgresults,0,"id");
-@mysql_free_result($mgresults);
+mysql_free_result($mgresults);
 $gquerys = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s' LIMIT 1", array($Settings['ValidateGroup']));
 $gresults=exec_query($gquerys);
 $VGroupID=mysql_result($gresults,0,"id");
-@mysql_free_result($gresults);
+mysql_free_result($gresults);
 $query = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($_POST['id']));
 $result=exec_query($query);
 $num=mysql_num_rows($result);
@@ -120,7 +120,7 @@ $VMemName=mysql_result($result,$i,"Name");
 $VMemGroup=mysql_result($result,$i,"GroupID");
 $VMemValidated=mysql_result($result,$i,"Validated");
 $admincptitle = " ".$ThemeSet['TitleDivider']." Validating Members";
-@redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=members",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
+redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=".$_GET['act']."&menu=members",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
 if($VMemGroup==$VGroupID) {
 $query = query("UPDATE `".$Settings['sqltable']."members` SET `GroupID`='%s', `Validated`='%s' WHERE `id`=%i", array($MGroupID, "yes", $_POST['id']));
 exec_query($query); }
@@ -197,7 +197,7 @@ $getmemidName=mysql_result($getmemidr,$getmemidi,"Name");
 ?>
 <option value="<?php echo $getmemidID; ?>"><?php echo $getmemidName; ?></option>
 <?php ++$getmemidi; }
-@mysql_free_result($getmemidr); ?>
+mysql_free_result($getmemidr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -295,7 +295,7 @@ $getmemidName=mysql_result($getmemidr,$getmemidi,"Name");
 ?>
 <option value="<?php echo $getmemidID; ?>"><?php echo $getmemidName; ?></option>
 <?php ++$getmemidi; }
-@mysql_free_result($getmemidr); ?>
+mysql_free_result($getmemidr); ?>
        </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 50%;"><label class="TextBoxLabel" for="gid">New Group for Member:</label></td>
@@ -314,7 +314,7 @@ $getgrpidName=mysql_result($getgrpidr,$getgrpidi,"Name");
 ?>
 <option value="<?php echo $getgrpidID; ?>"><?php echo $getgrpidName; ?></option>
 <?php ++$getgrpidi; }
-@mysql_free_result($getgrpidr); ?>
+mysql_free_result($getgrpidr); ?>
        </select></td>
 </tr></table>
 <table style="text-align: left;">
@@ -338,11 +338,11 @@ $getgrpidName=mysql_result($getgrpidr,$getgrpidi,"Name");
 $ggidquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `name`='%s' LIMIT 1", array($Settings['GuestGroup']));
 $ggidresult=exec_query($ggidquery);
 $GuestGroupID=mysql_result($ggidresult,0,"id");
-@mysql_free_result($ggidresult);
+mysql_free_result($ggidresult);
 $vgidquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `name`='%s' LIMIT 1", array($Settings['ValidateGroup']));
 $vgidresult=exec_query($vgidquery);
 $ValidateGroupID=mysql_result($vgidresult,0,"id");
-@mysql_free_result($vgidresult);
+mysql_free_result($vgidresult);
 $DMemName = GetUserName($_POST['id'],$Settings['sqltable']);
 $DMemName = $DMemName['Name'];
 if($DMemName!==null&&($_POST['id']!="0"||$_POST['id']!="1"||$_POST['id']!="-1")&&
index 8602bdd..a8caae2 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: sqldumper.php - Last Update: 11/22/2009 SVN 356 - Author: cooldude2k $
+    $FileInfo: sqldumper.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="sqldumper.php"||$File3Name=="/sqldumper.php") {
@@ -20,8 +20,8 @@ if ($File3Name=="sqldumper.php"||$File3Name=="/sqldumper.php") {
 
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['HasAdminCP']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if(!isset($_GET['outtype'])) { $_GET['outtype'] = "UTF-8"; }
 header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
 header("Cache-Control: private",false); 
@@ -36,7 +36,7 @@ $tresult = exec_query("SELECT * FROM `".$table."`");
 while ($trow = mysql_fetch_array($tresult, MYSQL_ASSOC)) {
 $trowout[$rene_j] = $trow;
 ++$rene_j; }
-@mysql_free_result($tresult);
+mysql_free_result($tresult);
 return $trowout; }
 $TablePreFix = $Settings['sqltable'];
 function add_prefix($tarray) {
@@ -45,11 +45,11 @@ return $TablePreFix.$tarray; }
 $TableChCk = array("categories", "catpermissions", "events", "forums", "groups", "members", "messenger", "permissions", "posts", "restrictedwords", "sessions", "smileys", "topics", "wordfilter");
 $TableChCk = array_map("add_prefix",$TableChCk);
 if(!isset($_GET['outtype'])||$_GET['outtype']=="UTF-8") {
-@header("Content-Type: text/plain; charset=UTF-8"); }
+header("Content-Type: text/plain; charset=UTF-8"); }
 if($_GET['outtype']=="latin1") {
-@header("Content-Type: text/plain; charset=ISO-8859-15"); }
+header("Content-Type: text/plain; charset=ISO-8859-15"); }
 if($_GET['outtype']=="latin15") {
-@header("Content-Type: text/plain; charset=ISO-8859-15"); }
+header("Content-Type: text/plain; charset=ISO-8859-15"); }
 $sql = "SHOW TABLES LIKE '".$Settings['sqltable']."%'";
 $result = exec_query($sql);
 if (!$result) {
@@ -99,8 +99,8 @@ $AutoIncrement = " AUTO_INCREMENT=".$tabstats["Auto_increment"]." "; }
 if (!$result2) {
     echo 'Could not run query: ' . mysql_error();
     exit; }
-@mysql_free_result($result2);
-@mysql_free_result($tabsta);
+mysql_free_result($result2);
+mysql_free_result($tabsta);
 ++$l; } $tableout = null;
 $num = count($TableNames); $renee_s = 0;
 echo "-- ".$OrgName." ".$SQLDumper."\n";
index d377067..e25b8d2 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: calendars.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: calendars.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="calendars.php"||$File3Name=="/calendars.php") {
@@ -81,7 +81,7 @@ if ($EventsName[$NextDay] == null) {
 $NextDay++; } }
 $EventsID[$EventDay] = $EventID;
 ++$is; } 
-@mysql_free_result($result);
+mysql_free_result($result);
 $bdquery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `BirthMonth`=%i", array($MyMonth));
 $bdresult=exec_query($bdquery);
 $bdnum=mysql_num_rows($bdresult);
@@ -101,7 +101,7 @@ if ($EventsName[$BirthDay] != null) {
 if ($EventsName[$BirthDay] == null) {
        $EventsName[$BirthDay] = "<span title=\"".$oldusername."'s birthday.\">".$UserNamebd1."</span>"; }
 ++$bdi; } 
-@mysql_free_result($bdresult);
+mysql_free_result($bdresult);
 $MyDays = array();
 $MyDays[] = "Sunday";
 $MyDays[] = "Monday";
index 2bdd8dc..03ed6e0 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: categories.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: categories.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="categories.php"||$File3Name=="/categories.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $CategoryID=mysql_result($preresult,0,"id");
 $CategoryName=mysql_result($preresult,0,"Name");
@@ -47,8 +47,8 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") {
 if(!isset($CatCheck)) { $CatCheck = null; } 
 if($CatCheck!="skip") {
@@ -70,15 +70,15 @@ $iscCategoryShow=mysql_result($iscresult,0,"ShowCategory");
 $iscCategoryType=mysql_result($iscresult,0,"CategoryType");
 $iscCategoryType = strtolower($iscCategoryType); }
 if($iscnum<1) { $InSubCategory = "0"; } 
-@mysql_free_result($iscresult); }
+mysql_free_result($iscresult); }
 ?>
 <div class="NavLinks"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php if($InSubCategory!="0") { echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$iscCategoryType],$Settings['file_ext'],"act=view&id=".$iscCategoryID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$iscCategoryType],$exqstr[$iscCategoryType]); ?>"><?php echo $iscCategoryName; ?></a><?php } echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=view&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
 <div class="DivNavLinks">&nbsp;</div>
 <?php
 if($CategoryType=="subcategory") {
 redirect("location",$basedir.url_maker($exfile['subcategory'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['subcategory'],$exqstr['subcategory'],FALSE));
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 $query = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `CategoryID`=%i AND `InSubForum`=0 ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID));
 $result=exec_query($query);
 $num=mysql_num_rows($result);
@@ -144,7 +144,7 @@ if($apcl>1) {
 $sflist = $sflist.", ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -161,7 +161,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 if ($ForumType!="subforum"&&$ForumType!="redirect") { $UseThisFonum = $gltf[0]; }
 if ($ForumType!="redirect") {
@@ -190,7 +190,7 @@ $UsersID=mysql_result($glrresult,0,"UserID");
 $GuestsName=mysql_result($glrresult,0,"GuestName");
 $TimeStamp=mysql_result($glrresult,0,"TimeStamp");
 $TimeStamp=GMTimeChange("F j Y, g:i a",$TimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
-@mysql_free_result($glrresult); }
+mysql_free_result($glrresult); }
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']);
 if($PreUsersName['Name']===null) { $UsersID = -1;
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']); }
@@ -212,7 +212,7 @@ if(($UsersID<-1&&$UsersHidden=="yes")||$UsersID==0||($UsersID>0&&$UsersHidden=="
        $UserPre = "Hidden:"; }
 $LastTopic = $TimeStamp."<br />\nTopic: <a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
 if($LastTopic==null) { $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;"; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
 if ($ForumType=="redirect") { $LastTopic="&nbsp;<br />Redirects: ".$NumRedirects."<br />&nbsp;"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
@@ -232,7 +232,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <td class="TableColumn3" style="text-align: center;"><?php echo $NumPosts; ?></td>
 <td class="TableColumn3"><?php echo $LastTopic; ?></td>
 </tr>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 if($num>=1) { ?>
 <tr id="CatEnd<?php echo $CategoryID; ?>" class="TableRow4">
 <td class="TableColumn4" colspan="5">&nbsp;</td>
@@ -240,4 +240,4 @@ if($num>=1) { ?>
 </table></div>
 <div class="DivCategories">&nbsp;</div>
 <?php } } }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
index 48c5489..5ff23e3 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: endpage.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: endpage.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="endpage.php"||$File3Name=="/endpage.php") {
@@ -33,5 +33,5 @@ if($_GET['debug']=="true"||$_GET['debug']=="on") {
        $endpagevar=$endpagevar."</div>\n";
 echo $endpagevar;
 session_write_close();
-//@session_write_close();
+//session_write_close();
 ?>
index 8b23556..498268f 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: events.php - Last Update: 11/17/2009 SVN 353 - Author: cooldude2k $
+    $FileInfo: events.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="events.php"||$File3Name=="/events.php") {
@@ -23,9 +23,9 @@ $query = query("SELECT * FROM `".$Settings['sqltable']."events` WHERE `id`=%i LI
 $result=exec_query($query);
 $num=mysql_num_rows($result);
 $is=0;
-if($num==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($result);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($num==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($result);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 ?>
 <div class="NavLinks"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile['event'],$Settings['file_ext'],"act=view&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event']); ?>">Viewing Event</a></div>
 <div class="DivNavLinks">&nbsp;</div>
@@ -70,7 +70,7 @@ $User1Hidden=mysql_result($reresult,$rei,"HiddenMember");
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1Signature=mysql_result($reresult,$rei,"Signature");
 $User1Signature = preg_replace("/\<br\>/", "<br />", nl2br($User1Signature));
 $User1Avatar=mysql_result($reresult,$rei,"Avatar");
@@ -84,8 +84,8 @@ $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 $User1Website=mysql_result($reresult,$rei,"Website");
 $User1PostCount=mysql_result($reresult,$rei,"PostCount");
 $User1IP=mysql_result($reresult,$rei,"IP");
-@mysql_free_result($reresult);
-++$is; } @mysql_free_result($result);
+mysql_free_result($reresult);
+++$is; } mysql_free_result($result);
 if($User1Name=="Guest") { $User1Name=$EventGuest;
 if($User1Name==null) { $User1Name="Guest"; } }
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
@@ -172,8 +172,8 @@ echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr
 </table></div>
 <?php } if($_GET['act']=="create") { 
 if($GroupInfo['CanAddEvents']=="no") { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $UFID = uuid(false,true,false,$Settings['use_hashtype'],null);
 $_SESSION['UserFormID'] = $UFID;
 ?>
@@ -221,7 +221,7 @@ if($SmileCRow<5&&$SmileCRow!=0) {
 $SmileCRowL = 5 - $SmileCRow;
 echo "<td colspan=\"".$SmileCRowL."\">&nbsp;</td></tr>"; }
 echo "</table>";
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="MkEventForm" action="<?php echo url_maker($exfile['event'],$Settings['file_ext'],"act=makeevent",$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event']); ?>">
@@ -267,8 +267,8 @@ echo "</table>";
 </table></div>
 <?php }  if($_GET['act']=="makeevent"&&$_POST['act']=="makeevents") {
 if($GroupInfo['CanAddEvents']=="no") { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $MyUserID = $_SESSION['UserID']; if($MyUserID=="0"||$MyUserID==null) { $MyUserID = -1; }
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -434,17 +434,17 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $_POST['EventName'] = stripcslashes(htmlspecialchars($_POST['EventName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['EventName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['EventName']);
-$_POST['EventName'] = @remove_spaces($_POST['EventName']);
+$_POST['EventName'] = remove_spaces($_POST['EventName']);
 $_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
+$_POST['GuestName'] = remove_spaces($_POST['GuestName']);
 $_POST['EventText'] = stripcslashes(htmlspecialchars($_POST['EventText'], ENT_QUOTES, $Settings['charset']));
 //$_POST['EventText'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['EventText']);
 $_POST['EventText'] = remove_bad_entities($_POST['EventText']);
-//$_POST['EventText'] = @remove_spaces($_POST['EventText']);
+//$_POST['EventText'] = remove_spaces($_POST['EventText']);
 if($_SESSION['UserGroup']==$Settings['GuestGroup']) {
 if(isset($_POST['GuestName'])&&$_POST['GuestName']!=null) {
-@setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
+setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
 $_SESSION['GuestName']=$_POST['GuestName']; } }
 /*    <_<  iWordFilter  >_>      
    by Kazuki Przyborowski - Cool Dude 2k */
@@ -472,7 +472,7 @@ if($CaseInsensitive!="yes"&&$WholeWord!="yes") {
 $_POST['EventText'] = preg_replace("/".$Filter."/", $Replace, $_POST['EventText']); }
 if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
 $_POST['EventText'] = preg_replace("/".$Filter."/i", $Replace, $_POST['EventText']); }
-++$katarzynas; } @mysql_free_result($katarzynart);
+++$katarzynas; } mysql_free_result($katarzynart);
 $lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedEventName`='yes' or `RestrictedUserName`='yes'", array(null));
 $lonewolfrt=exec_query($lonewolfqy);
 $lonewolfnm=mysql_num_rows($lonewolfrt);
@@ -524,7 +524,7 @@ $RMatches = preg_match("/".$RWord."/i", $_POST['EventName']);
 if($RestrictedUserName=="yes") {
 $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']);
        if($RGMatches==true) { break 1; } } }
-++$lonewolfs; } @mysql_free_result($lonewolfrt);
+++$lonewolfs; } mysql_free_result($lonewolfrt);
 if ($_POST['EventName']==null) { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
@@ -612,7 +612,7 @@ if ($_POST['EventName']==null) { $Error="Yes"; ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
@@ -634,7 +634,7 @@ if($_SESSION['UserGroup']!=$Settings['GuestGroup']) { $User1Name = $_SESSION['Me
 $query = query("INSERT INTO ".$Settings['sqltable']."events (`UserID`, `GuestName`, `EventName`, `EventText`, `TimeStamp`, `TimeStampEnd`, `EventMonth`, `EventMonthEnd`, `EventDay`, `EventDayEnd`, `EventYear`, `EventYearEnd`) VALUES\n".
 "(%i, '%s', '%s', '%s', %i, %i, %i, %i, %i, %i, %i, %i)", array($User1ID,$User1Name,$_POST['EventName'],$_POST['EventText'],$TimeSIn,$TimeSOut,$EventMonth,$EventMonthEnd,$EventDay,$EventDayEnd,$EventYear,$EventYearEnd));
 exec_query($query);
-@redirect("refresh",$basedir.url_maker($exfile['event'],$Settings['file_ext'],"act=event&id=".$eventid,$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE),"3");
+redirect("refresh",$basedir.url_maker($exfile['event'],$Settings['file_ext'],"act=event&id=".$eventid,$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE),"3");
 ?><tr>
        <td><span class="TableMessage"><br />
        Event <?php echo $_POST['EventName']; ?> was started.<br />
index 59923e9..a3a15a9 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: forums.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: forums.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
@@ -116,7 +116,7 @@ if($apcl>1) {
 $sflist = $sflist.", ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -133,7 +133,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 if ($ForumType!="subforum"&&$ForumType!="redirect") { $UseThisFonum = $gltf[0]; }
 if ($ForumType!="redirect") {
@@ -162,7 +162,7 @@ $UsersID=mysql_result($glrresult,0,"UserID");
 $GuestsName=mysql_result($glrresult,0,"GuestName");
 $TimeStamp=mysql_result($glrresult,0,"TimeStamp");
 $TimeStamp=GMTimeChange("F j Y, g:i a",$TimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
-@mysql_free_result($glrresult); }
+mysql_free_result($glrresult); }
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']);
 if($PreUsersName['Name']===null) { $UsersID = -1;
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']); }
@@ -184,7 +184,7 @@ if(($UsersID<-1&&$UsersHidden=="yes")||$UsersID==0||($UsersID>0&&$UsersHidden=="
        $UserPre = "Hidden:"; }
 $LastTopic = $TimeStamp."<br />\nTopic: <a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
 if($LastTopic==null) { $LastTopic="&nbsp;<br />&nbsp;"; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
 if ($ForumType=="redirect") { $LastTopic="&nbsp;<br />Redirects: ".$NumRedirects."<br />&nbsp;"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
@@ -204,7 +204,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <td class="TableColumn3" style="text-align: center;"><?php echo $NumPosts; ?></td>
 <td class="TableColumn3"><?php echo $LastTopic; ?></td>
 </tr>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 if($num>=1) {
 ?>
 <tr id="CatEnd<?php echo $CategoryID; ?>" class="TableRow4">
@@ -216,4 +216,4 @@ if($num>=1) {
 <?php } if($prei == $prenum - 1) { ?>
 <div class="DivStsts">&nbsp;</div>
 <?php } } } ++$prei; }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
index 05103b7..41a9c80 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: function.php - Last Update: 11/19/2009 SVN 354 - Author: cooldude2k $
+    $FileInfo: function.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="function.php"||$File3Name=="/function.php") {
@@ -21,9 +21,9 @@ require_once($SettDir['misc'].'sha256.php');
 require_once($SettDir['misc'].'functions.php');
 /* Change Some PHP Settings Fix the & to &amp;
 if($Settings['use_iniset']==true&&$Settings['qstr']!="/") {
-@ini_set("arg_separator.output",htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']));
-@ini_set("arg_separator.input",$Settings['qstr']);
-@ini_set("arg_separator",htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset'])); }
+ini_set("arg_separator.output",htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']));
+ini_set("arg_separator.input",$Settings['qstr']);
+ini_set("arg_separator",htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset'])); }
 //$basepath = pathinfo($_SERVER['REQUEST_URI']);
 if(dirname($_SERVER['REQUEST_URI'])!="."||
        dirname($_SERVER['REQUEST_URI'])!=null) {
@@ -61,9 +61,9 @@ $REFERERurl = null;
 /**
   * Generates an UUID
   * 
-  * @author     Anis uddin Ahmad <admin@ajaxray.com>
-  * @param      string  an optional prefix
-  * @return     string  the formatted uuid
+  * author     Anis uddin Ahmad <adminajaxray.com>
+  * param      string  an optional prefix
+  * return     string  the formatted uuid
   */
   function uuid($useold = false,$more_entropy = false,$mtrand = false,$hash = 'sha1',$prefix = '') 
   {
@@ -102,7 +102,7 @@ function qstring($qstr=";",$qsep="=")
 { $_GET = array(); $_GET = null;
 if (!isset($_SERVER['QUERY_STRING'])) {
 $_SERVER['QUERY_STRING'] = getenv('QUERY_STRING'); }
-@ini_get("arg_separator.input", $qstr);
+ini_get("arg_separator.input", $qstr);
 $_SERVER['QUERY_STRING'] = urldecode($_SERVER['QUERY_STRING']);
 $preqs = explode($qstr,$_SERVER["QUERY_STRING"]);
 $qsnum = count($preqs); $qsi = 0;
@@ -115,13 +115,13 @@ if($preqst[0]!=null) {
 $_GET[$preqst[0]] = $preqst[1]; }
 ++$qsi; } return true; }
 if($_SERVER['PATH_INFO']==null) {
-       if(@getenv('PATH_INFO')!=null&&@getenv('PATH_INFO')!="1") {
-$_SERVER['PATH_INFO'] = @getenv('PATH_INFO'); }
-if(@getenv('PATH_INFO')==null) {
+       if(getenv('PATH_INFO')!=null&&getenv('PATH_INFO')!="1") {
+$_SERVER['PATH_INFO'] = getenv('PATH_INFO'); }
+if(getenv('PATH_INFO')==null) {
 $myscript = $_SERVER["SCRIPT_NAME"];
 $myphpath = $_SERVER["PHP_SELF"];
 $mypathinfo = str_replace($myscript, "", $myphpath);
-@putenv("PATH_INFO=".$mypathinfo); } }
+putenv("PATH_INFO=".$mypathinfo); } }
 // Change raw post data to POST array
 // Not sure why I made but alwell. :P 
 function parse_post_data()
@@ -159,7 +159,7 @@ if($type!="location"&&$type!="refresh") { $type=="location"; }
 if($url!=null) { $file = $url.$file; }
 if($dbsr===true) { $file = str_replace("//", "/", $file); }
 if($type=="refresh") { header("Refresh: ".$time."; URL=".$file); }
-if($type=="location") { @session_write_close(); 
+if($type=="location") { session_write_close(); 
 header("Location: ".$file); } return true; }
 function redirects($type,$url,$time=0) {
 if($type!="location"&&$type!="refresh") { $type=="location"; }
index 504240d..e3d71c7 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: groupsetup.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: groupsetup.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="groupsetup.php"||$File3Name=="/groupsetup.php") {
@@ -73,29 +73,29 @@ $_SESSION['UserGroupID']=$ChkUsrGroupID;
 $_SESSION['UserDST']=$ChkUsrDST;
 $_SESSION['UserPass']=$ChkUsrPass;
 $_SESSION['LastPostTime'] = $ChkUsrLastPostTime; } }
-if($numchkusr<=0||$numchkusr>1||$BanError=="yes") { @session_unset();
+if($numchkusr<=0||$numchkusr>1||$BanError=="yes") { session_unset();
 if($cookieDomain==null) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
 unset($_COOKIE[session_name()]);
-$_SESSION = array(); @session_unset(); @session_destroy();
-@redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); @mysql_free_result($numchkusr); @mysql_free_result($svrgresultkgb);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($numchkusr); @mysql_free_result($svrgresultkgb); }
+$_SESSION = array(); session_unset(); session_destroy();
+redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); mysql_free_result($resultchkusr); mysql_free_result($svrgresultkgb);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($resultchkusr); mysql_free_result($svrgresultkgb); }
 if($_SESSION['UserID']==0||$_SESSION['UserID']==null) {
 $_SESSION['UserIP']=$_SERVER['REMOTE_ADDR'];
 $_SESSION['MemberName'] = null;
@@ -103,14 +103,14 @@ $_SESSION['UserGroup'] = $Settings['GuestGroup'];
 $gidquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `name`='%s' LIMIT 1", array($Settings['GuestGroup']));
 $gidresult=exec_query($gidquery);
 $_SESSION['UserGroupID']=mysql_result($gidresult,0,"id"); 
-@mysql_free_result($gidresult); }
+mysql_free_result($gidresult); }
 if($_SESSION['MemberName']==null) { $_SESSION['UserID'] = "0";
 $_SESSION['UserIP']=$_SERVER['REMOTE_ADDR'];
 $_SESSION['UserGroup'] = $Settings['GuestGroup']; 
 $gidquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `name`='%s' LIMIT 1", array($Settings['GuestGroup']));
 $gidresult=exec_query($gidquery);
 $_SESSION['UserGroupID']=mysql_result($gidresult,0,"id"); 
-@mysql_free_result($gidresult); }
+mysql_free_result($gidresult); }
 // Member Group Setup
 if(!isset($_SESSION['UserGroup'])) { $_SESSION['UserGroup'] = null; }
 if($_SESSION['UserGroup']==null) { 
@@ -118,10 +118,10 @@ $_SESSION['UserGroup']=$Settings['GuestGroup']; } $GruError = null;
 $gruquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s' LIMIT 1", array($_SESSION['UserGroup']));
 $gruresult=exec_query($gruquery);
 $grunum=mysql_num_rows($gruresult);
-if($grunum<=0) { $GruError = true; @mysql_free_result($gruresult);
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+if($grunum<=0) { $GruError = true; mysql_free_result($gruresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 ob_clean(); echo "Sorry could not find group data in database.\nContact the board admin about error."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($grunum>=1) {
 $GroupInfo['ID']=mysql_result($gruresult,0,"id");
 if(!is_numeric($GroupInfo['ID'])) { $GruError = true; }
@@ -193,14 +193,14 @@ if($MyKarmaUpdate<$NewKarmaUpdate&&$MyPostCountChk>0) {
 if($GroupInfo['PromoteTo']!=0&&$MyPostCountChk>=$GroupInfo['PromotePosts']) {
        $sql_group_check = exec_query(query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($GroupInfo['PromoteTo'])));
        $group_check = mysql_num_rows($sql_group_check);
-       @mysql_free_result($sql_group_check);
+       mysql_free_result($sql_group_check);
        if($group_check > 0) {
        $queryupgrade = query("UPDATE `".$Settings['sqltable']."members` SET `GroupID`=%i WHERE `id`=%i", array($GroupInfo['PromoteTo'],$_SESSION['UserID']));
        exec_query($queryupgrade); } }
 if($GroupInfo['PromotePosts']==0&&$GroupInfo['PromoteTo']!=0&&$MyKarmaCount>=$GroupInfo['PromoteKarma']) {
        $sql_group_check = exec_query(query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($GroupInfo['PromoteTo'])));
        $group_check = mysql_num_rows($sql_group_check);
-       @mysql_free_result($sql_group_check);
+       mysql_free_result($sql_group_check);
        if($group_check > 0) {
        $queryupgrade = query("UPDATE `".$Settings['sqltable']."members` SET `GroupID`=%i WHERE `id`=%i", array($GroupInfo['PromoteTo'],$_SESSION['UserID']));
        exec_query($queryupgrade); } } }
@@ -214,23 +214,23 @@ $GroupInfo['ViewDBInfo']=mysql_result($gruresult,0,"ViewDBInfo");
 if($GroupInfo['ViewDBInfo']!="yes"&&$GroupInfo['ViewDBInfo']!="no") {
        $GroupInfo['ViewDBInfo'] = "no"; }
 if($GruError==true) {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); @mysql_free_result($gruresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); mysql_free_result($gruresult);
 ob_clean(); echo "Sorry could not load all group data in database.\nContact the board admin about error."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
-@mysql_free_result($gruresult);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
+mysql_free_result($gruresult);
 if($GroupInfo['CanViewBoard']=="no") { 
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 ob_clean(); echo "Sorry you can not view the board."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 // Member Group Permissions Setup
 $perquery = query("SELECT * FROM `".$Settings['sqltable']."permissions` WHERE `PermissionID`=%i ORDER BY `ForumID` ASC", array($GroupInfo['PermissionID']));
 $peresult=exec_query($perquery);
 $pernum=mysql_num_rows($peresult);
 $peri=0; $PerError = null;
-if($pernum<=0) { $PerError = true; @mysql_free_result($peresult);
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+if($pernum<=0) { $PerError = true; mysql_free_result($peresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 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(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($pernum>=1) { while ($peri < $pernum) {
 $PerForumID=mysql_result($peresult,$peri,"ForumID");
 if(!is_numeric($PerForumID)) { $PerError = true; }
@@ -294,18 +294,18 @@ if($PermissionInfo['CanModForum'][$PerForumID]!="yes"&&$PermissionInfo['CanModFo
        $PermissionInfo['CanModForum'][$PerForumID] = "no"; }
 if($PerError===true) { $peri = $pernum; }
 ++$peri; } if($PerError===true) {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); @mysql_free_result($peresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); mysql_free_result($peresult);
 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(); } }
-@mysql_free_result($peresult);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
+mysql_free_result($peresult);
 $per2query = query("SELECT * FROM `".$Settings['sqltable']."catpermissions` WHERE `PermissionID`=%i ORDER BY `CategoryID` ASC", array($GroupInfo['PermissionID']));
 $per2esult=exec_query($per2query);
 $per2num=mysql_num_rows($per2esult);
 $per2i=0; $Per2Error = null;
-if($per2num<=0) { $Per2Error = true; @mysql_free_result($per2esult);
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+if($per2num<=0) { $Per2Error = true; mysql_free_result($per2esult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 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(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($per2num>=1) { while ($per2i < $per2num) {
 $PerCatID=mysql_result($per2esult,$per2i,"CategoryID");
 if(!is_numeric($PerCatID)) { $Per2Error = true; }
@@ -320,8 +320,8 @@ $CatPermissionInfo['CanViewCategory'][$PerCatID]=mysql_result($per2esult,$per2i,
 if($CatPermissionInfo['CanViewCategory'][$PerCatID]!="yes"&&$CatPermissionInfo['CanViewCategory'][$PerCatID]!="no") { $Per2Error = true; }
 if($Per2Error===true) { $per2i = $per2num; }
 ++$per2i; } if($Per2Error===true) {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); @mysql_free_result($per2esult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); mysql_free_result($per2esult);
 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(); } }
-@mysql_free_result($per2esult);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
+mysql_free_result($per2esult);
 ?>
\ No newline at end of file
index e229798..a394cb9 100644 (file)
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: javascript.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: javascript.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-@header("Content-Language: en");
-@header("Vary: Accept");
+header("Content-Language: en");
+header("Vary: Accept");
 ?>
 function getid(id) {
 var itm;
index dd0c666..e89be1a 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: lowcategories.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: lowcategories.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowcategories.php"||$File3Name=="/lowcategories.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $CategoryID=mysql_result($preresult,0,"id");
 $CategoryName=mysql_result($preresult,0,"Name");
@@ -47,8 +47,8 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes") {
 if(!isset($CatCheck)) { $CatCheck = null; } 
 if($CatCheck!="skip") {
@@ -70,7 +70,7 @@ $iscCategoryShow=mysql_result($iscresult,0,"ShowCategory");
 $iscCategoryType=mysql_result($iscresult,0,"CategoryType");
 $iscCategoryType = strtolower($iscCategoryType); }
 if($iscnum<1) { $InSubCategory = "0"; } 
-@mysql_free_result($iscresult); }
+mysql_free_result($iscresult); }
 ?>
 <div style="font-size: 1.0em; font-weight: bold; margin-bottom: 10px; padding-top: 3px; width: auto;">Full Version: <a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=view&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
 <div style="font-size: 11px; font-weight: bold; padding: 10px; border: 1px solid gray;"><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php if($InSubCategory!="0") { echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$iscCategoryType],$Settings['file_ext'],"act=view&id=".$iscCategoryID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$iscCategoryType],$exqstr[$iscCategoryType]); ?>"><?php echo $iscCategoryName; ?></a><?php } echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
@@ -80,8 +80,8 @@ if($iscnum<1) { $InSubCategory = "0"; }
 <?php
 if($CategoryType=="subcategory") {
 redirect("location",$basedir.url_maker($exfile['subcategory'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['subcategory'],$exqstr['subcategory'],FALSE));
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 $query = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `CategoryID`=%i AND `InSubForum`=0 ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID));
 $result=exec_query($query);
 $num=mysql_num_rows($result);
@@ -130,7 +130,7 @@ if($apcl>1) {
 $sflist = $sflist." ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -148,9 +148,9 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <ul style="list-style-type: none;"><li>
 <a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 if($num>=1) { ?>
 </li></ul></div>
 <div>&nbsp;</div>
 <?php } } }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
index 7c2be5f..8bc7cdc 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: lowforums.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: lowforums.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowforums.php"||$File3Name=="/lowforums.php") {
@@ -103,7 +103,7 @@ if($apcl>1) {
 $sflist = $sflist." ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -120,7 +120,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 $shownum = null;
 if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
@@ -135,12 +135,12 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <ul style="list-style-type: none;"><li>
 <a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 if($num>=1) {
 ?>
 <?php } } 
 ?></li><?php
 ++$prei; }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
 </ul></div>
 <div>&nbsp;</div>
index 9e4a8e2..3dd3827 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: replies.php - Last Update: 11/17/2009 SVN 353 - Author: cooldude2k $
+    $FileInfo: replies.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -28,9 +28,9 @@ if($_GET['modact']=="pin"||$_GET['modact']=="unpin"||$_GET['modact']=="open"||
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $TopicName=mysql_result($preresult,0,"TopicName");
 $TopicID=mysql_result($preresult,0,"id");
@@ -39,7 +39,7 @@ $TopicCatID=mysql_result($preresult,0,"CategoryID");
 $TopicClosed=mysql_result($preresult,0,"Closed");
 $NumberReplies=mysql_result($preresult,0,"NumReply");
 $ViewTimes=mysql_result($preresult,0,"NumViews");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $forumcheckx = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i  LIMIT 1", array($TopicForumID));
 $fmckresult=exec_query($forumcheckx);
 $ForumName=mysql_result($fmckresult,0,"Name");
@@ -47,14 +47,14 @@ $ForumType=mysql_result($fmckresult,0,"ForumType");
 $CanHaveTopics=mysql_result($fmckresult,0,"CanHaveTopics");
 $ForumPostCountView=mysql_result($fmckresult,0,"PostCountView");
 $ForumKarmaCountView=mysql_result($fmckresult,0,"KarmaCountView");
-@mysql_free_result($fmckresult);
+mysql_free_result($fmckresult);
 $catcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i  LIMIT 1", array($TopicCatID));
 $catresult=exec_query($catcheck);
 $CategoryName=mysql_result($catresult,0,"Name");
 $CategoryType=mysql_result($catresult,0,"CategoryType");
 $CategoryPostCountView=mysql_result($catresult,0,"PostCountView");
 $CategoryKarmaCountView=mysql_result($catresult,0,"KarmaCountView");
-@mysql_free_result($catresult);
+mysql_free_result($catresult);
 if($GroupInfo['HasAdminCP']!="yes"||$GroupInfo['HasModCP']!="yes") {
 if($MyPostCountChk==null) { $MyPostCountChk = 0; }
 if($MyKarmaCount==null) { $MyKarmaCount = 0; }
@@ -84,15 +84,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$TopicCatID])) {
 if($CatPermissionInfo['CanViewCategory'][$TopicCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$TopicCatID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_GET['act']!="view") { 
 $CanMakeReply = "no"; $CanMakeTopic = "no";
 if($PermissionInfo['CanMakeTopics'][$TopicForumID]=="yes"&&$CanHaveTopics=="yes") { 
@@ -136,8 +136,8 @@ $query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%
 $result=exec_query($query);
 $num=mysql_num_rows($result);
 if($num==0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($num!=0) { 
 if($ViewTimes==0||$ViewTimes==null) { $NewViewTimes = 1; }
 if($ViewTimes!=0&&$ViewTimes!=null) { $NewViewTimes = $ViewTimes + 1; }
@@ -250,7 +250,7 @@ $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1Signature=mysql_result($reresult,$rei,"Signature");
 $User1Avatar=mysql_result($reresult,$rei,"Avatar");
 $User1AvatarSize=mysql_result($reresult,$rei,"AvatarSize");
@@ -264,7 +264,7 @@ $User1Website=mysql_result($reresult,$rei,"Website");
 $User1PostCount=mysql_result($reresult,$rei,"PostCount");
 $User1Karma=mysql_result($reresult,$rei,"Karma");
 $User1IP=mysql_result($reresult,$rei,"IP");
-@mysql_free_result($reresult);
+mysql_free_result($reresult);
 if($User1Name=="Guest") { $User1Name=$GuestsName;
 if($User1Name==null) { $User1Name="Guest"; } }
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
@@ -285,13 +285,13 @@ $eunum = mysql_num_rows($euresult); }
        $EditUserGroupID = mysql_result($euresult,0,"GroupID");
        $EditUserHidden=mysql_result($euresult,0,"HiddenMember");
        $EditUserName = mysql_result($euresult,0,"Name");
-       @mysql_free_result($euresult);
+       mysql_free_result($euresult);
        $eugquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($EditUserGroupID));
        $eugresult=exec_query($eugquery);
        $EditUserGroup=mysql_result($eugresult,0,"Name");
        $EditUserNamePrefix=mysql_result($eugresult,0,"NamePrefix");
        $EditUserNameSuffix=mysql_result($eugresult,0,"NameSuffix");
-       @mysql_free_result($eugresult); }
+       mysql_free_result($eugresult);  }
        if($MyEditUserID==$MyUserID) {
        $EditUserID = $User1ID;
        $EditUserGroupID = $User1GroupID;
@@ -328,7 +328,7 @@ $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult); }
+mysql_free_result($gresult); }
 $MyPost = text2icons($MyPost,$Settings['sqltable']);
 if($MySubPost!=null) { $MyPost = $MyPost."\n".$MySubPost; }
 $User1Signature = preg_replace("/\<br\>/", "<br />", nl2br($User1Signature));
@@ -351,5 +351,5 @@ $ReplyNum = $i + $PageLimit + 1;
 <div style="width:auto; font-size: 0.8em; color: gray; text-align:right;"><?php echo $MyTimeStamp; ?></div>
 </div>
 <div style="padding: 6px; font-size: 0.8em;"><?php echo $MyPost; ?></div></div>
-<?php ++$i; } @mysql_free_result($result); 
+<?php ++$i; } mysql_free_result($result); 
 ?></div><div>&nbsp;</div><?php } } ?>
index e6afd16..7f0152b 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: lowsubcategories.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: lowsubcategories.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowsubcategories.php"||$File3Name=="/lowsubcategories.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $checkquery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $checkresult=exec_query($checkquery);
 $checknum=mysql_num_rows($checkresult);
-if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($checkresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($checknum>=1) {
 $CategoryID=mysql_result($checkresult,0,"id");
 $CategoryName=mysql_result($checkresult,0,"Name");
@@ -38,8 +38,8 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -59,7 +59,7 @@ $iscCategoryShow=mysql_result($iscresult,0,"ShowCategory");
 $iscCategoryType=mysql_result($iscresult,0,"CategoryType");
 $iscCategoryType = strtolower($iscCategoryType); }
 if($iscnum<1) { $InSubCategory = "0"; } 
-@mysql_free_result($iscresult); }
+mysql_free_result($iscresult); }
 ?>
 <div style="font-size: 1.0em; font-weight: bold; margin-bottom: 10px; padding-top: 3px; width: auto;">Full Version: <a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=view&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
 <div style="font-size: 11px; font-weight: bold; padding: 10px; border: 1px solid gray;"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php if($InSubCategory!="0") { echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$iscCategoryType],$Settings['file_ext'],"act=view&id=".$iscCategoryID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$iscCategoryType],$exqstr[$iscCategoryType]); ?>"><?php echo $iscCategoryName; ?></a><?php } echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=lowview&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
@@ -69,9 +69,9 @@ if($iscnum<1) { $InSubCategory = "0"; }
 <?php
 if($CategoryType=="category") {
 redirect("location",$basedir.url_maker($exfile['category'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE));
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($checkresult);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `ShowCategory`='yes' AND `InSubCategory`=%i ORDER BY `OrderID` ASC, `id` ASC", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
@@ -134,7 +134,7 @@ if($apcl>1) {
 $sflist = $sflist." ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if ($ForumType=="subforum") { 
 $apcquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `InSubForum`=%i ORDER BY `OrderID` ASC, `id` ASC", array($ForumID));
 $apcresult=exec_query($apcquery);
@@ -150,7 +150,7 @@ if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -167,7 +167,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 $shownum = null;
 if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
@@ -182,12 +182,12 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <ul style="list-style-type: none;"><li>
 <a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?></a> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></li>
 <?php echo $sflist; ?></ul>
-<?php } ++$i; } @mysql_free_result($result); } ?>
+<?php } ++$i; } mysql_free_result($result); } ?>
 </li></ul>
 <ul style="list-style-type: none;">
 <?php ++$prei; } } ?>
 <?php
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $CatCheck = "skip";
 if($SubShowForums!="yes") { 
        $CategoryName = $SCategoryName; }
index 3bd27e7..5942ff2 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: lowsubforums.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: lowsubforums.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowsubforums.php"||$File3Name=="/lowsubforums.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $checkquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $checkresult=exec_query($checkquery);
 $checknum=mysql_num_rows($checkresult);
-if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($checkresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($checknum>=1) {
 $ForumID=mysql_result($checkresult,0,"id");
 $ForumName=mysql_result($checkresult,0,"Name");
@@ -48,17 +48,17 @@ $redirup = query("UPDATE `".$Settings['sqltable']."forums` SET `Redirects`='%s'
 exec_query($redirup);
 if($RedirectURL!="http://"&&$RedirectURL!="") {
 redirect("location",$RedirectURL,0,null,false); ob_clean();
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($ForumType=="forum") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($checkresult);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `ShowCategory`='yes' AND `id`=%i ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
@@ -80,7 +80,7 @@ $isfForumType=mysql_result($isfresult,0,"ForumType");
 $isfForumType = strtolower($isfForumType);
 $isfRedirectURL=mysql_result($isfresult,0,"RedirectURL"); }
 if($isfnum<1) { $InSubForum = "0"; } 
-@mysql_free_result($isfresult); }
+mysql_free_result($isfresult); }
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=lowview&id=".$ForumID."&page=".$_GET['page'],"&","=",$prexqstr[$ForumType],$exqstr[$ForumType]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
 $_SESSION['ViewingFile'] = $exfile[$ForumType].$Settings['file_ext']; }
@@ -100,15 +100,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes"&&
        $PermissionInfo['CanViewForum'][$_GET['id']]=="yes") {
 $query = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `CategoryID`=%i AND `InSubForum`=%i ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID,$_GET['id']));
@@ -159,7 +159,7 @@ if($apcl>1) {
 $sflist = $sflist." ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 $shownum = null;
 if ($ForumType=="redirect") { $shownum = "(".$NumRedirects." redirects)"; }
 if ($ForumType!="redirect") { $shownum = "(".$NumPosts." posts)"; }
@@ -173,11 +173,11 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <ul style="list-style-type: none;"><li>
 <a href="<?php echo url_maker($exfile[$ForumType],$Settings['file_ext'],"act=lowview&id=".$ForumID.$ExStr,$Settings['qstr'],$Settings['qsep'],$prexqstr[$ForumType],$exqstr[$ForumType]); ?>"<?php if($ForumType=="redirect") { echo " onclick=\"window.open(this.href);return false;\""; } ?>><?php echo $ForumName; ?> <span style="color: gray; font-size: 10px;"><?php echo $shownum; ?></span></a></li>
 <?php echo $sflist; ?></ul>
-<?php ++$i; } @mysql_free_result($result);
+<?php ++$i; } mysql_free_result($result);
 ?>
 </li></ul></div>
 <div>&nbsp;</div>
-<?php } @mysql_free_result($preresult);
+<?php } mysql_free_result($preresult);
 $ForumCheck = "skip";
 if($CanHaveTopics!="yes") { 
        $ForumName = $SForumName; }
index e66a867..b6f1b33 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: lowtopics.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: lowtopics.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="lowtopics.php"||$File3Name=="/lowtopics.php") {
@@ -23,9 +23,9 @@ if(!is_numeric($_GET['page'])) { $_GET['page'] = 1; }
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $ForumID=mysql_result($preresult,0,"id");
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
@@ -46,7 +46,7 @@ if(!is_numeric($Settings['hot_topic_num'])) {
        $Settings['hot_topic_num'] = 15; }
 $ForumPostCountView=mysql_result($preresult,0,"PostCountView");
 $ForumKarmaCountView=mysql_result($preresult,0,"KarmaCountView");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics);
 $catcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i  LIMIT 1", array($ForumCatID));
 $catresult=exec_query($catcheck);
@@ -54,7 +54,7 @@ $CategoryName=mysql_result($catresult,0,"Name");
 $CategoryType=mysql_result($catresult,0,"CategoryType");
 $CategoryPostCountView=mysql_result($catresult,0,"PostCountView");
 $CategoryKarmaCountView=mysql_result($catresult,0,"KarmaCountView");
-@mysql_free_result($catresult);
+mysql_free_result($catresult);
 if($GroupInfo['HasAdminCP']!="yes"||$GroupInfo['HasModCP']!="yes") {
 if($MyPostCountChk==null) { $MyPostCountChk = 0; }
 if($MyKarmaCount==null) { $MyKarmaCount = 0; }
@@ -78,7 +78,7 @@ $isfForumType=mysql_result($isfresult,0,"ForumType");
 $isfForumType = strtolower($isfForumType);
 $isfRedirectURL=mysql_result($isfresult,0,"RedirectURL"); }
 if($isfnum<1) { $InSubForum = "0"; }
-@mysql_free_result($isfresult); }
+mysql_free_result($isfresult); }
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=lowview&id=".$ForumID."&page=".$_GET['page'],"&","=",$prexqstr[$ForumType],$exqstr[$ForumType]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
 $_SESSION['ViewingFile'] = $exfile[$ForumType].$Settings['file_ext']; }
@@ -97,15 +97,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$ForumCatID])) {
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="yes"&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 if($ForumType!="redirect") {
@@ -120,17 +120,17 @@ $redirup = query("UPDATE `".$Settings['sqltable']."forums` SET `Redirects`=%i WH
 exec_query($redirup);
 if($RedirectURL!="http://"&&$RedirectURL!="") {
 redirect("location",$RedirectURL,0,null,false); ob_clean();
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($RedirectURL=="http://"||$RedirectURL=="") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($ForumCheck!="skip") {
 if($ForumType=="subforum") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($_GET['act']=="lowview") {
 if($NumberTopics==null) { 
        $NumberTopics = 0; }
@@ -258,4 +258,4 @@ if ($PinnedTopic==0) { $PreTopic=null; }
 <li><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=lowview&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>"><?php echo $PreTopic.$TopicName; ?></a> <span style="color: gray; font-size: 10px;">(<?php echo $NumReply; ?> replies)</span></li>
 <?php ++$i; } ?>
 </ul></div><div>&nbsp;</div>
-<?php @mysql_free_result($result); } } } ?>
+<?php mysql_free_result($result); } } } ?>
index d2e3061..4a8ab0e 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: members.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: members.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="members.php"||$File3Name=="/members.php") {
@@ -59,7 +59,7 @@ if(!is_numeric($_GET['groupid'])) { $_GET['groupid'] = null; }
 $ggquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s'", array($Settings['GuestGroup']));
 $ggresult=exec_query($ggquery);
 $GGroup=mysql_result($ggresult,0,"id");
-@mysql_free_result($ggresult);
+mysql_free_result($ggresult);
 //Get SQL LIMIT Number
 $nums = $_GET['page'] * $Settings['max_memlist'];
 $PageLimit = $nums - $Settings['max_memlist'];
@@ -73,7 +73,7 @@ $rnquery = query("SELECT FOUND_ROWS();", array(null));
 $result=exec_query($query);
 $rnresult=exec_query($rnquery);
 $NumberMembers = mysql_result($rnresult,0);
-@mysql_free_result($rnresult);
+mysql_free_result($rnresult);
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=list&orderby=".$_GET['orderby']."&ordertype=".$_GET['ordertype']."&page=".$_GET['page'],"&","=",$prexqstr['member'],$exqstr['member']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
 $_SESSION['ViewingFile'] = $exfile['member'].$Settings['file_ext']; }
@@ -222,7 +222,7 @@ $gresult=exec_query($gquery);
 $MemList['Group']=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
        $MemList['Name'] = $GroupNamePrefix.$MemList['Name']; }
 if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) {
@@ -241,7 +241,7 @@ if($MemList['Group']!=$Settings['GuestGroup']) {
 <td class="TableColumn3" style="text-align: center;"><a href="<?php echo $MemList['Website']; ?>" onclick="window.open(this.href);return false;">Website</a></td>
 </tr>
 <?php }
-++$i; } @mysql_free_result($result);
+++$i; } mysql_free_result($result);
 ?>
 <tr id="MemEnd" class="TableRow4">
 <td class="TableColumn4" colspan="8">&nbsp;</td>
@@ -273,7 +273,7 @@ $rnquery = query("SELECT FOUND_ROWS();", array(null));
 $result=exec_query($query);
 $rnresult=exec_query($rnquery);
 $NumberMembers = mysql_result($rnresult,0);
-@mysql_free_result($rnresult);
+mysql_free_result($rnresult);
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=online&list=".$_GET['list']."&page=".$_GET['page'],"&","=",$prexqstr['member'],$exqstr['member']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
 $_SESSION['ViewingFile'] = $exfile['member'].$Settings['file_ext']; }
@@ -453,7 +453,7 @@ $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") {
        $UserSessInfo['ViewingPage'] = url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']);
@@ -470,7 +470,7 @@ $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") {
        $UserSessInfo['ViewingPage'] = url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']);
@@ -546,8 +546,8 @@ $result=exec_query($query);
 $num=mysql_num_rows($result);
 $i=0;
 if($num==0||$_GET['id']<=0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $ViewMem['ID']=mysql_result($result,$i,"id");
 $ViewMem['Name']=mysql_result($result,$i,"Name");
 $ViewMem['Signature']=mysql_result($result,$i,"Signature");
@@ -577,7 +577,7 @@ $ViewMem['Group']=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
 */
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 /*
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
        $ViewMem['Name'] = $GroupNamePrefix.$ViewMem['Name']; }
@@ -585,8 +585,8 @@ if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) {
        $ViewMem['Name'] = $ViewMem['Name'].$GroupNameSuffix; }
 */
 if($ViewMem['HiddenMember']=="yes") { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $membertitle = " ".$ThemeSet['TitleDivider']." ".$ViewMem['Name'];     
 if ($ViewMem['Avatar']=="http://"||$ViewMem['Avatar']==null||
        strtolower($ViewMem['Avatar'])=="noavatar") {
@@ -599,16 +599,16 @@ 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();
+       header("Location: ".$ViewMem['Avatar']); }
 if($_GET['view']=="website"||$_GET['view']=="homepage") { 
        if ($ViewMem['Website']!="http://"&&$ViewMem['Website']!=null) {
-       @session_write_close();
-       @header("Location: ".$ViewMem['Website']); }
+       session_write_close();
+       header("Location: ".$ViewMem['Website']); }
        if ($ViewMem['Website']=="http://"||$ViewMem['Website']==null||
        strtolower($ViewMem['Avatar'])=="noavatar") {
-       @session_write_close();
-       @header("Location: ".$BoardURL."index.php?act=view"); } }
+       session_write_close();
+       header("Location: ".$BoardURL."index.php?act=view"); } }
 $_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']; }
@@ -671,37 +671,37 @@ Title: <?php echo $ViewMem['Title']; ?>
 <td class="TableColumn4" colspan="2">&nbsp;</td>
 </tr>
 </table></div>
-<?php } @mysql_free_result($result);
+<?php } mysql_free_result($result);
 if($_GET['act']=="logout") {
-@session_unset();
+session_unset();
 if($cookieDomain==null) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
 unset($_COOKIE[session_name()]);
 $_SESSION = array();
-@session_unset();
-@session_destroy();
-@redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+session_unset();
+session_destroy();
+redirect("location",$basedir.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']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_GET['act']=="login") {
 if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { 
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -773,8 +773,8 @@ $_SESSION['UserFormID'] = $UFID;
 <?php } } if($_POST['act']=="loginmember"&&$_GET['act']=="login_now") {
 if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { 
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -838,11 +838,11 @@ if (pre_strlen($_POST['userpass'])>"60") { $Error="Yes";  ?>
 </tr>
 <?php } } $BanError = null;
 if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false),"4"); }
+redirect("refresh",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false),"4"); }
 if($Error!="Yes"){
 $YourName = stripcslashes(htmlspecialchars($_POST['username'], ENT_QUOTES, $Settings['charset']));
 //$YourName = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $YourName);
-$YourName = @remove_spaces($YourName);
+$YourName = remove_spaces($YourName);
 $passtype="ODFH";
 if(!isset($_POST['loginemail'])) { $_POST['loginemail'] = "false"; }
 if($_POST['loginemail']!="true") {
@@ -885,7 +885,7 @@ if($YourBanTime>=$CGMTime) { $BanError = "yes"; } }
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($YourGroupM));
 $gresult=exec_query($gquery);
 $YourGroupM=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $YourTimeZoneM=mysql_result($resultlog,$i,"TimeZone");
 $YourDSTM=mysql_result($resultlog,$i,"DST");
 $JoinedDate=mysql_result($resultlog,$i,"Joined");
@@ -910,7 +910,7 @@ $NewIP=$_SERVER['REMOTE_ADDR'];
 if($BanError!="yes") {
 $queryup = query("UPDATE `".$Settings['sqltable']."members` SET `Password`='%s',`HashType`='%s',`LastActive`=%i,`IP`='%s',`Salt`='%s' WHERE `id`=%i", array($NewPassword,$iDBHash,$NewDay,$NewIP,$NewHashSalt,$YourIDM));
 exec_query($queryup);
-@mysql_free_result($resultlog); @mysql_free_result($queryup);
+mysql_free_result($resultlog); mysql_free_result($queryup);
 //session_regenerate_id();
 $_SESSION['Theme']=$UseTheme;
 $_SESSION['MemberName']=$YourNameM;
@@ -925,23 +925,23 @@ $_SESSION['LastPostTime'] = $YourLastPostTime;
 $_SESSION['DBName']=$Settings['sqldb'];
 if($_POST['storecookie']=="true") {
 if($cookieDomain==null) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } } }
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } } }
 } } if($numlog<=0) {
 //echo "Password was not right or user not found!! <_< ";
 } ?>
 <?php if($passright===true&&$BanError!="yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"3"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"3"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Welcome to the Board <?php echo $_SESSION['MemberName']; ?>. ^_^<br />
@@ -966,8 +966,8 @@ if($cookieSecure===false) {
 $membertitle = " ".$ThemeSet['TitleDivider']." Signing up"; 
 if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { 
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -1115,8 +1115,8 @@ echo "<option value=\"".$showmin."\">0:".$showmin." minutes</option>\n"; }
        if($_POST['act']=="makemembers") {
 if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=null) { 
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -1198,7 +1198,7 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $Name = stripcslashes(htmlspecialchars($_POST['Name'], ENT_QUOTES, $Settings['charset']));
 //$Name = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $Name);
-$Name = @remove_spaces($Name);
+$Name = remove_spaces($Name);
 $lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedUserName`='yes'", array(null));
 $lonewolfrt=exec_query($lonewolfqy);
 $lonewolfnm=mysql_num_rows($lonewolfrt);
@@ -1226,12 +1226,12 @@ $RMatches = preg_match("/".$RWord."/", $Name);
 if($RCaseInsensitive=="yes"&&$RWholeWord!="yes") {
 $RMatches = preg_match("/".$RWord."/i", $Name);
        if($RMatches==true) { break 1; } }
-++$lonewolfs; } @mysql_free_result($lonewolfrt);
+++$lonewolfs; } mysql_free_result($lonewolfrt);
 $sql_email_check = exec_query(query("SELECT `Email` FROM `".$Settings['sqltable']."members` WHERE `Email`='%s'", array($_POST['Email'])));
 $sql_username_check = exec_query(query("SELECT `Name` FROM `".$Settings['sqltable']."members` WHERE `Name`='%s'", array($Name)));
 $email_check = mysql_num_rows($sql_email_check); 
 $username_check = mysql_num_rows($sql_username_check);
-@mysql_free_result($sql_email_check); @mysql_free_result($sql_username_check);
+mysql_free_result($sql_email_check); mysql_free_result($sql_username_check);
 if ($_POST['TOS']!="Agree") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
@@ -1281,7 +1281,7 @@ if ($_POST['TOS']!="Agree") { $Error="Yes";  ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=signup",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],FALSE),"4"); ?>
+redirect("refresh",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=signup",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],FALSE),"4"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['member'],$Settings['file_ext'],"act=signup",$Settings['qstr'],$Settings['qsep'],$exqstr['member'],$prexqstr['member']); ?>">here</a> to try again.<br />&nbsp;
@@ -1323,18 +1323,18 @@ $_GET['YourPost'] = preg_replace("/\s\s+/"," ",$_GET['YourPost']);
 $_GET['YourPost'] = remove_bad_entities($_GET['YourPost']);
 $Avatar = stripcslashes(htmlspecialchars($_POST['Avatar'], ENT_QUOTES, $Settings['charset']));
 //$Avatar = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $Avatar);
-$Avatar = @remove_spaces($Avatar);
+$Avatar = remove_spaces($Avatar);
 $Website = stripcslashes(htmlspecialchars($_POST['Website'], ENT_QUOTES, $Settings['charset']));
 //$Website = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $Website);
-$Website = @remove_spaces($Website);
+$Website = remove_spaces($Website);
 $gquerys = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `Name`='%s' LIMIT 1", array($yourgroup));
 $gresults=exec_query($gquerys);
 $yourgroup=mysql_result($gresults,0,"id");
-@mysql_free_result($gresults);
+mysql_free_result($gresults);
 $yourid = getnextid($Settings['sqltable'],"members");
-$_POST['Interests'] = @remove_spaces($_POST['Interests']);
-$_POST['Title'] = @remove_spaces($_POST['Title']);
-$_POST['Email'] = @remove_spaces($_POST['Email']);
+$_POST['Interests'] = remove_spaces($_POST['Interests']);
+$_POST['Title'] = remove_spaces($_POST['Title']);
+$_POST['Email'] = remove_spaces($_POST['Email']);
 if(!is_numeric($_POST['YourOffSet'])) { $_POST['YourOffSet'] = "0"; }
 if($_POST['YourOffSet']>12) { $_POST['YourOffSet'] = "12"; }
 if($_POST['YourOffSet']<-12) { $_POST['YourOffSet'] = "-12"; }
@@ -1357,11 +1357,11 @@ $YourGroupIDMr=$YourGroupMr;
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($YourGroupMr));
 $gresult=exec_query($gquery);
 $YourGroupMr=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $YourTimeZoneMr=mysql_result($resultlogr,$ir,"TimeZone");
 $YourDSTMr=mysql_result($resultlogr,$ir,"DST"); }
-@mysql_free_result($resultlogr);
-@session_regenerate_id(true);
+mysql_free_result($resultlogr);
+session_regenerate_id(true);
 $_SESSION['Loggedin']=true;
 $_SESSION['MemberName']=$YourNameMr;
 $_SESSION['UserID']=$YourIDMr;
@@ -1374,19 +1374,19 @@ $_SESSION['UserPass']=$NewPassword;
 $_SESSION['DBName']=$Settings['sqldb'];
 if($_POST['storecookie']=="true") {
 if($cookieDomain==null) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain);
-@setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } }
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],FALSE),"3");
+setcookie("MemberName", $YourNameM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("UserID", $YourIDM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } } }
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],FALSE),"3");
 ?>
 <tr>
        <td><span class="TableMessage">
index 6b3007e..76427c7 100644 (file)
     GZip and Zlib by Jean-loup Gailly (compression) and Mark Adler (decompression) http://www.zlib.net/
        BZip2 and libbzip2 by Julian Seward http://www.bzip.org/
 
-    $FileInfo: compression.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: compression.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="compression.php"||$File3Name=="/compression.php") {
        require('index.php');
        exit(); }
 //Check if zlib is loaded
-if(@extension_loaded("zlib")) {
+if(extension_loaded("zlib")) {
 function gunzip($infile, $outfile) {
   $string = null;
   $zp = gzopen($infile, "r");
@@ -47,7 +47,7 @@ function gzip($infile, $outfile, $param = 5) {
  gzclose($zp);
 } }
 //Check if bz2 is loaded
-if(@extension_loaded("bz2")) {
+if(extension_loaded("bz2")) {
 function bzip($infile, $outfile) {
  $fp = fopen($infile, "r");
  $data = fread($fp, filesize($infile));
@@ -68,10 +68,10 @@ function bunzip($infile, $outfile) {
   fclose($fp);
 } }
 //Check if zip is loaded
-if(@extension_loaded("zip")) {
+if(extension_loaded("zip")) {
 /* Nothing for now... :P */ }
 //Check if rar is loaded
-if(@extension_loaded("rar")) {
+if(extension_loaded("rar")) {
 /* Nothing for now... :P */ }
 
 ?>
index 9fb4ae5..d3df85c 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: functions.php - Last Update: 11/22/2009 SVN 355 - Author: cooldude2k $
+    $FileInfo: functions.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="functions.php"||$File3Name=="/functions.php") {
@@ -31,18 +31,18 @@ if ($File3Name==$FileName||$File3Name=="/".$FileName) {
 CheckFile("functions.php");
 require($SettDir['misc']."compression.php");
 /* 
-if ($_GET['act']=="DeleteSession") { @session_destroy(); }
-if ($_GET['act']=="ResetSession") { @session_unset(); }
-if ($_GET['act']=="NewSessionID") { @session_regenerate_id(); }
-if ($_GET['act']=="PHPInfo") { @phpinfo(); exit(); }
-if ($_GET['act']=="phpinfo") { @phpinfo(); exit(); }
-if ($_GET['act']=="PHPCredits") { @phpcredits(); exit(); }
-if ($_GET['act']=="phpcredits") { @phpcredits(); exit(); } 
+if ($_GET['act']=="DeleteSession") { session_destroy(); }
+if ($_GET['act']=="ResetSession") { session_unset(); }
+if ($_GET['act']=="NewSessionID") { session_regenerate_id(); }
+if ($_GET['act']=="PHPInfo") { phpinfo(); exit(); }
+if ($_GET['act']=="phpinfo") { phpinfo(); exit(); }
+if ($_GET['act']=="PHPCredits") { phpcredits(); exit(); }
+if ($_GET['act']=="phpcredits") { phpcredits(); exit(); } 
 */// Connect to mysql database
 function ConnectMysql($sqlhost,$sqluser,$sqlpass,$sqldb,$retlink=false) {
 if($retlink!==true) { $retlink = false; }
-$StatSQL = @mysql_connect($sqlhost,$sqluser,$sqlpass);
-$StatBase = @mysql_select_db($sqldb);
+$StatSQL = mysql_connect($sqlhost,$sqluser,$sqlpass);
+$StatBase = mysql_select_db($sqldb);
 if (!$StatSQL) { return false; }
 if (!$StatBase) { return false; }
 if($retlink===true) { return $StatSQL; }
@@ -53,10 +53,10 @@ define("_renee_", $Names['RS']);
 function change_title($new_title,$use_gzip="off",$gzip_type="gzip") {
 global $Settings;
 if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } }
-$output = @ob_get_clean();
+$output = ob_get_clean();
 $output = preg_replace("/<title>(.*?)<\/title>/i", "<title>".$new_title."</title>", $output);
 /* Change Some PHP Settings Fix the &PHPSESSID to &amp;PHPSESSID */
-$SessName = @session_name();
+$SessName = session_name();
 $output = preg_replace("/&PHPSESSID/", "&amp;PHPSESSID", $output);
 $qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']);
 $output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output);
@@ -72,9 +72,9 @@ if($use_gzip=="on") {
 function fix_amp($use_gzip="off",$gzip_type="gzip") {
 global $Settings;
 if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } }
-$output = @ob_get_clean();
+$output = ob_get_clean();
 /* Change Some PHP Settings Fix the &PHPSESSID to &amp;PHPSESSID */
-$SessName = @session_name();
+$SessName = session_name();
 $output = preg_replace("/&PHPSESSID/", "&amp;PHPSESSID", $output);
 $qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']);
 $output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output);
@@ -91,7 +91,7 @@ define("_rene_", $Names['RJ']);
 // GZip page for faster download
 function gzip_page($use_gzip="off",$gzip_type="gzip") {
 global $Settings;
-$output = @ob_get_clean();
+$output = ob_get_clean();
 if($gzip_type!="gzip") { if($gzip_type!="deflate") { $gzip_type = "gzip"; } }
 if($use_gzip!="on") {
        echo $output; }
@@ -326,7 +326,7 @@ $Text = preg_replace("/(^\r+|\r+$)/","",$Text);
 $Text = preg_replace("/(\r|\n|\t)+/"," ",$Text);
 $Text = preg_replace("/\s\s+/"," ",$Text);
 $Text = preg_replace("/(^\s+|\s+$)/","",$Text);
-$Text = @remove_bad_entities($Text);
+$Text = remove_bad_entities($Text);
 return $Text; }
 // Fix some chars
 function fixbamps($text) {
@@ -344,14 +344,14 @@ function getnextid($tablepre,$table) {
    $getnextidr = exec_query($getnextidq);
    $getnextid = mysql_fetch_assoc($getnextidr);
    return $getnextid['Auto_increment'];
-   @mysql_free_result($getnextidr); }
+   mysql_free_result($getnextidr); }
 // Get number of rows for table
 function getnumrows($tablepre,$table) {
    $getnextidq = query("SHOW TABLE STATUS LIKE '".$tablepre.$table."'", array());
    $getnextidr = exec_query($getnextidq);
    $getnextid = mysql_fetch_assoc($getnextidr);
    return $getnextid['Rows'];
-   @mysql_free_result($getnextidr); }
+   mysql_free_result($getnextidr); }
        $Names['K'] = "Katarzyna";
 define("_katarzyna_", $Names['K']);
 // Change Time Stamp to a readable time
@@ -427,10 +427,10 @@ return date($format,mktime(gmdate('h')+$tsa['hour'],gmdate('i')+$tsa['minute'],g
 // Get Server offset
 function GetSeverZone() {
 $TestHour1 = date("H");
-@putenv("OTZ=".@getenv("TZ"));
-@putenv("TZ=GMT");
+putenv("OTZ=".getenv("TZ"));
+putenv("TZ=GMT");
 $TestHour2 = date("H");
-@putenv("TZ=".@getenv("OTZ"));
+putenv("TZ=".getenv("OTZ"));
 $TestHour3 = $TestHour1-$TestHour2;
 return $TestHour3; }
 // Get Server offset alt version
@@ -466,7 +466,7 @@ if($gunnum>0){
 $UsersName=mysql_result($gunresult,0,"Name");
 // Am i still hidden. o_O <_< I see you.
 $UsersHidden=mysql_result($gunresult,0,"HiddenMember"); }
-@mysql_free_result($gunresult);
+mysql_free_result($gunresult);
 $UsersInfo['Name'] = $UsersName;
 $UsersInfo['Hidden'] = $UsersHidden;
 return $UsersInfo; }
diff --git a/inc/misc/mysql.php b/inc/misc/mysql.php
new file mode 100644 (file)
index 0000000..330abbe
--- /dev/null
@@ -0,0 +1,191 @@
+<?php
+/*
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the Revised BSD License.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    Revised BSD License for more details.
+
+    Copyright 2004-2009 iDB Support - http://idb.berlios.de/
+    Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
+
+    $FileInfo: mysql.php - Last Update: 11/22/2009 SVN 357 - Author: cooldude2k $
+*/
+$File3Name = basename($_SERVER['SCRIPT_NAME']);
+if ($File3Name=="mysql.php"||$File3Name=="/mysql.php") {
+       @header('Location: index.php');
+       exit(); }
+// MySQL Functions.
+function sql_error($link=null) {
+if(isset($link)) {
+       $result = mysql_error($link); }
+if(!isset($link)) {
+       $result = mysql_error(); }
+if ($result=="") {
+       return ""; }
+       return $result; }
+function sql_errno($link=null) {
+if(isset($link)) {
+       $result = mysql_errno($link); }
+if(!isset($link)) {
+       $result = mysql_errno(); }
+if ($result===0) {
+       return 0; }
+       return $result; }
+function sql_errorno($link=null) {
+if(isset($link)) {
+       $result = mysql_error($link);
+       $resultno = mysql_errno($link); }
+if(!isset($link)) {
+       $result = mysql_error();
+       $resultno = mysql_errno(); }
+if ($result==""&&$result===0) {
+       return ""; }
+if ($result!=""&&$result!==0) {
+       $result = $resultno.": ".$result; }
+       return $result; }
+// Execute a query :P
+$NumQueries = 0;
+function sql_query($query,$link=null) {
+global $NumQueries;
+if(isset($link)) {
+       $result = mysql_query($query,$link); }
+if(!isset($link)) {
+       $result = mysql_query($query); }
+if ($result===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+if ($result!==false) {
+       ++$NumQueries;
+       return $result; } }
+//Fetch Number of Rows
+function sql_num_rows($result) {
+$num = mysql_num_rows($result);
+if ($num===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return $num; }
+// Connect to mysql database
+function sql_connect_db($server,$username,$password,$database,$new_link=false) {
+if($new_link!==true) { $new_link = false; }
+if($new_link!==true||$new_link===false) {
+$link = mysql_connect($server,$username,$password); }
+if($new_link===true) {
+$link = mysql_connect($server,$username,$password,$new_link); }
+if ($link===false) {
+    trigger_error("Not connected: ".sql_error(),E_USER_ERROR);
+       return false; }
+$dlink = mysql_select_db($database,$link);
+if ($dlink===false) {
+    trigger_error("Can't use database ".$database.": ".sql_error(),E_USER_ERROR);
+       return false; }
+return $link; }
+// Query Results :P
+function sql_result($result,$row,$field=0) {
+$value = mysql_result($result, $row, $field);
+if ($value===false) { 
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return $value; }
+// Free Results :P
+function sql_free_result($result) {
+$fresult = mysql_free_result($result);
+if ($fresult===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+if ($fresult===true) {
+       return true; } }
+//Fetch Results to Array
+function sql_fetch_array($result,$result_type=MYSQL_BOTH) {
+$row = mysql_fetch_array($result,$result_type);
+       return $row; }
+//Fetch Results to Associative Array
+function sql_fetch_assoc($result) {
+$row = mysql_fetch_assoc($result);
+       return $row; }
+//Fetch Row Results
+function sql_fetch_row($result,$result_type=MYSQL_BOTH) {
+$row = mysql_fetch_row($result,$result_type);
+       return $row; }
+//Fetch Row Results
+function sql_server_info($link) {
+if(isset($link)) {
+       $result = mysql_get_server_info($link); }
+if(!isset($link)) {
+       $result = mysql_get_server_info(); }
+       return $result; }
+function sql_escape_string($string,$link) {
+if(isset($link)) {
+       $string = mysql_real_escape_string($string,$link); }
+if(!isset($link)) {
+       $string = mysql_real_escape_string($string); }
+if ($string===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return $string; }
+// SafeSQL Lite Source Code by Cool Dude 2k
+// Make SQL Query's safe
+function sql_pre_query($query_string,$query_vars) {
+   $query_array = array(array("%i","%I","%F","%S"),array("%d","%d","%f","%s"));
+   $query_string = str_replace($query_array[0], $query_array[1], $query_string);
+   if (get_magic_quotes_gpc()) {
+       $query_vars  = array_map("stripslashes", $query_vars); }
+   $query_vars = array_map("sql_escape_string", $query_vars);
+   $query_val = $query_vars;
+$query_num = count($query_val);
+$query_i = 0;
+while ($query_i < $query_num) {
+$query_is = $query_i+1;
+$query_val[$query_is] = $query_vars[$query_i];
+++$query_i; }
+   $query_val[0] = $query_string;
+   return call_user_func_array("sprintf",$query_val); }
+function sql_set_charset($charset,$link) {
+if(function_exists('mysql_set_charset')===false) {
+       $result = sql_query("SET CHARACTER SET '".$charset."'");
+if ($result===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       $result = sql_query("SET NAMES '".$charset."'"); 
+if ($result===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return true; }
+if(function_exists('mysql_set_charset')===true) {
+if(isset($link)) {
+       $result = mysql_set_charset($charset,$link); }
+if(!isset($link)) {
+       $result = mysql_set_charset($charset); }
+if ($result===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return true; } }
+/*
+if(function_exists('mysql_set_charset')===false) {
+function mysql_set_charset($charset,$link) {
+if(isset($link)) {
+       $result = sql_set_charset($charset,$link); }
+if(!isset($link)) {
+       $result = sql_set_charset($charset); }
+if ($result===false) {
+    trigger_error("Invalid query: ".sql_error(),E_USER_ERROR);
+       return false; }
+       return true; } }
+*/
+// Get next id for stuff
+function sql_get_next_id($tablepre,$table) {
+   $getnextidq = sql_pre_query("SHOW TABLE STATUS LIKE '".$tablepre.$table."'", array());
+   $getnextidr = sql_query($getnextidq);
+   $getnextid = sql_fetch_assoc($getnextidr);
+   return $getnextid['Auto_increment'];
+   @sql_free_result($getnextidr); }
+// Get number of rows for table
+function sql_get_num_rows($tablepre,$table) {
+   $getnextidq = sql_pre_query("SHOW TABLE STATUS LIKE '".$tablepre.$table."'", array());
+   $getnextidr = sql_query($getnextidq);
+   $getnextid = sql_fetch_assoc($getnextidr);
+   return $getnextid['Rows'];
+   @sql_free_result($getnextidr); }
+?>
index 3ce1cac..f9d3222 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: setcheck.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: setcheck.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="setcheck.php"||$File3Name=="/setcheck.php") {
@@ -113,7 +113,7 @@ if($Settings['qstr']=="/"||
        $Settings['qsep'] = "="; }
 if($Settings['qstr']!="&"&&
        $Settings['qstr']!="/") {
-@qstring($Settings['qstr'],$Settings['qsep']);
+qstring($Settings['qstr'],$Settings['qsep']);
 if(!isset($_GET['page'])) { $_GET['page'] = null; }
 if(!isset($_GET['act'])) { $_GET['act'] = null; }
 if(!isset($_POST['act'])) { $_POST['act'] = null; }
@@ -170,11 +170,11 @@ if ($_GET['act']=="idx"||$_GET['act']=="View") { $_GET['act']="view"; }
 if ($_GET['act']=="Lo-Fi"||$_GET['act']=="lo-fi") { $_GET['act']="lowview"; }
 if ($_GET['act']=="Low-View"||$_GET['act']=="low-view") { $_GET['act']="lowview"; }
 if ($_GET['act']=="LowView"||$_GET['act']=="loview") { $_GET['act']="lowview"; }
-if ($_GET['act']=="iDBInfo") { @header('Location: http://sourceforge.net/projects/intdb/'); }
-if ($_GET['act']=="iDBSite") { @header('Location: http://intdb.sourceforge.net/'); }
-if ($_GET['act']=="OldiDBInfo") { @header('Location: http://developer.berlios.de/projects/idb/'); }
-if ($_GET['act']=="OldiDBSite") { @header('Location: http://idb.berlios.de/'); }
-if ($_GET['act']=="DF2kInfo") { @header('Location: http://developer.berlios.de/projects/df2k/'); }
-if ($_GET['act']=="DF2kSite") { @header('Location: http://df2k.berlios.de/'); }
-if ($_GET['act']=="GM2kSite") { @header('Location: http://upload.idb.s1.jcink.com/'); }
+if ($_GET['act']=="iDBInfo") { header('Location: http://sourceforge.net/projects/intdb/'); }
+if ($_GET['act']=="iDBSite") { header('Location: http://intdb.sourceforge.net/'); }
+if ($_GET['act']=="OldiDBInfo") { header('Location: http://developer.berlios.de/projects/idb/'); }
+if ($_GET['act']=="OldiDBSite") { header('Location: http://idb.berlios.de/'); }
+if ($_GET['act']=="DF2kInfo") { header('Location: http://developer.berlios.de/projects/df2k/'); }
+if ($_GET['act']=="DF2kSite") { header('Location: http://df2k.berlios.de/'); }
+if ($_GET['act']=="GM2kSite") { header('Location: http://upload.idb.s1.jcink.com/'); }
 ?>
index 87ba26a..2caed4b 100644 (file)
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: utf8.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: utf8.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 // UTF8 helper functions
-// author: Scott Michael Reynen "scott@randomchaos.com"
+// author: Scott Michael Reynen "scottrandomchaos.com"
 // url: http://www.randomchaos.com/document.php?source=php_and_unicode
 // utf8_substr by frank at jkelloggs dot dk
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
@@ -55,7 +55,7 @@ if($chkcharset!="UTF-8") { return substr($string,$start,$length); } }
 if(isset($_GET['text'])) {
 echo pre_substr($_GET['text'],0,6); }
 
-// author: Scott Michael Reynen "scott@randomchaos.com"
+// author: Scott Michael Reynen "scottrandomchaos.com"
 // url: http://www.randomchaos.com/document.php?source=php_and_unicode
 function utf8_strpos($haystack, $needle,$offset=0) {
   if(!defined('UTF8_NOMBSTRING')&&function_exists('mb_strpos')) {
@@ -79,7 +79,7 @@ function utf8_strpos($haystack, $needle,$offset=0) {
   return ( $found == true ) ? $position : false;
 } // strpos_unicode
 
-// author: Scott Michael Reynen "scott@randomchaos.com"
+// author: Scott Michael Reynen "scottrandomchaos.com"
 // url: http://www.randomchaos.com/document.php?source=php_and_unicode
 function utf8_to_unicode( $str ) {
   $unicode = array();  
@@ -105,7 +105,7 @@ function utf8_to_unicode( $str ) {
   return $unicode;
 } // utf8_to_unicode
 
-// author: Scott Michael Reynen "scott@randomchaos.com"
+// author: Scott Michael Reynen "scottrandomchaos.com"
 // url: http://www.randomchaos.com/document.php?source=php_and_unicode
 function unicode_to_utf8( $str ) {
   $utf8 = '';
index c506c6b..dc3fb3b 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: navbar.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: navbar.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="navbar.php"||$File3Name=="/navbar.php") {
@@ -21,11 +21,11 @@ if($_SESSION['UserGroup']!=$Settings['GuestGroup']||$GroupInfo['CanPM']=="yes")
 $pmquery1 = query("SELECT * FROM `".$Settings['sqltable']."messenger` WHERE `ReciverID`=%i AND `Read`=0", array($_SESSION['UserID']));
 $pmresult1=exec_query($pmquery1);
 $PMNumber=mysql_num_rows($pmresult1);
-@mysql_free_result($pmresult1); /*
+mysql_free_result($pmresult1); /*
 $pmquery2 = query("SELECT * FROM `".$Settings['sqltable']."messenger` WHERE `SenderID`=%i AND `Read`=0", array($_SESSION['UserID']));
 $pmresult2=exec_query($pmquery2);
 $SentPMNumber=mysql_num_rows($pmresult2);
-@mysql_free_result($pmresult2); */ }
+mysql_free_result($pmresult2); */ }
 if($ThemeSet['LogoStyle']==null) { $logostyle = ""; }
 if($ThemeSet['LogoStyle']!=null) { $logostyle = "style=\"".$ThemeSet['LogoStyle']."\" "; }
 // Am I hidden from everyone
index 5da85ff..5157197 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: pm.php - Last Update: 11/17/2009 SVN 353 - Author: cooldude2k $
+    $FileInfo: pm.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="pm.php"||$File3Name=="/pm.php") {
@@ -23,8 +23,8 @@ 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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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") {
 $_SESSION['ViewingFile'] = $exfile['index'].$Settings['file_ext']; }
@@ -72,7 +72,7 @@ $rnquery = query("SELECT FOUND_ROWS();", array(null));
 $result=exec_query($query);
 $rnresult=exec_query($rnquery);
 $NumberMessage = mysql_result($rnresult,0);
-@mysql_free_result($rnresult);
+mysql_free_result($rnresult);
 if($NumberMessage==null) { 
        $NumberMessage = 0; }
 $num = $NumberMessage;
@@ -228,7 +228,7 @@ echo "<span>".$SenderName."</span>"; }
 ?></td>
 <td class="TableMenuColumn3" style="text-align: center;"><?php echo $DateSend; ?></td>
 </tr>
-<?php ++$i; } @mysql_free_result($result); ?>
+<?php ++$i; } mysql_free_result($result); ?>
 <tr id="MessengerEnd" class="TableMenuRow4">
 <td class="TableMenuColumn4" colspan="4">&nbsp;</td>
 </tr>
@@ -242,7 +242,7 @@ $rnquery = query("SELECT FOUND_ROWS();", array(null));
 $result=exec_query($query);
 $rnresult=exec_query($rnquery);
 $NumberMessage = mysql_result($rnresult,0);
-@mysql_free_result($rnresult);
+mysql_free_result($rnresult);
 if($NumberMessage==null) { 
        $NumberMessage = 0; }
 $num = $NumberMessage;
@@ -402,15 +402,15 @@ echo "<span>".$ReciverName."</span>"; }
 <tr id="MessengerEnd" class="TableMenuRow4">
 <td class="TableMenuColumn4" colspan="4">&nbsp;</td>
 </tr>
-<?php } @mysql_free_result($result);
+<?php } mysql_free_result($result);
 if($_GET['act']=="read") {
 $query = query("SELECT * FROM `".$Settings['sqltable']."messenger` WHERE `id`=%i", array($_GET['id']));
 $result=exec_query($query);
 $num=mysql_num_rows($result);
 $is=0;
 if($num==0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 while ($is < $num) {
 $PMID=mysql_result($result,$is,"id");
 $SenderID=mysql_result($result,$is,"SenderID");
@@ -439,8 +439,8 @@ $rei=0;
 if($_SESSION['UserID']!=$ReciverID&&
        $_SESSION['UserID']!=$SenderID) {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 while ($rei < $renum) {
 $User1ID=$SenderID;
 $User1Name=mysql_result($reresult,$rei,"Name");
@@ -458,7 +458,7 @@ $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1Signature=mysql_result($reresult,$rei,"Signature");
 $User1Avatar=mysql_result($reresult,$rei,"Avatar");
 $User1AvatarSize=mysql_result($reresult,$rei,"AvatarSize");
@@ -472,8 +472,8 @@ $User1Website=mysql_result($reresult,$rei,"Website");
 $User1PostCount=mysql_result($reresult,$rei,"PostCount");
 $User1Karma=mysql_result($reresult,$rei,"Karma");
 $User1IP=mysql_result($reresult,$rei,"IP");
-++$rei; } @mysql_free_result($reresult);
-++$is; } @mysql_free_result($result);
+++$rei; } mysql_free_result($reresult);
+++$is; } mysql_free_result($result);
 if($_SESSION['UserID']==$ReciverID) {
 $queryup = query("UPDATE `".$Settings['sqltable']."messenger` SET `Read`=%i WHERE `id`=%i", array(1,$_GET['id']));
 exec_query($queryup); }
@@ -582,7 +582,7 @@ while ($rei < $renum) {
 $SendMessageTo = mysql_result($reresult,$rei,"Name");
 $SendMessageTo = htmlspecialchars($SendMessageTo, ENT_QUOTES, $Settings['charset']);
 $SendToGroupID = mysql_result($reresult,$rei,"GroupID");
-++$rei; } } @mysql_free_result($reresult);
+++$rei; } } mysql_free_result($reresult);
 if(!isset($renum)) { $renum = 0; }
 if($renum==0) { $SendMessageTo = null; }
 $QuoteReply = null; $QuoteDescription = null; $QuoteTitle = null;
@@ -651,7 +651,7 @@ if($SmileCRow<5&&$SmileCRow!=0) {
 $SmileCRowL = 5 - $SmileCRow;
 echo "<td colspan=\"".$SmileCRowL."\">&nbsp;</td></tr>"; }
 echo "</table>";
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="MkReplyForm" action="<?php echo url_maker($exfile['messenger'],$Settings['file_ext'],"act=sendmessage",$Settings['qstr'],$Settings['qsep'],$prexqstr['messenger'],$exqstr['messenger']); ?>">
@@ -785,23 +785,23 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $_POST['MessageName'] = stripcslashes(htmlspecialchars($_POST['MessageName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['MessageName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['MessageName']);
-$_POST['MessageName'] = @remove_spaces($_POST['MessageName']);
+$_POST['MessageName'] = remove_spaces($_POST['MessageName']);
 $_POST['MessageDesc'] = stripcslashes(htmlspecialchars($_POST['MessageDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['MessageDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['MessageDesc']);
-$_POST['MessageDesc'] = @remove_spaces($_POST['MessageDesc']);
+$_POST['MessageDesc'] = remove_spaces($_POST['MessageDesc']);
 $_POST['SendMessageTo'] = stripcslashes(htmlspecialchars($_POST['SendMessageTo'], ENT_QUOTES, $Settings['charset']));
 //$_POST['SendMessageTo'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['SendMessageTo']);
-$_POST['SendMessageTo'] = @remove_spaces($_POST['SendMessageTo']);
+$_POST['SendMessageTo'] = remove_spaces($_POST['SendMessageTo']);
 $_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
+$_POST['GuestName'] = remove_spaces($_POST['GuestName']);
 $_POST['Message'] = stripcslashes(htmlspecialchars($_POST['Message'], ENT_QUOTES, $Settings['charset']));
 //$_POST['Message'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Message']);
-//$_POST['Message'] = @remove_spaces($_POST['Message']);
+//$_POST['Message'] = remove_spaces($_POST['Message']);
 $_POST['Message'] = remove_bad_entities($_POST['Message']);
 if($_SESSION['UserGroup']==$Settings['GuestGroup']) {
 if(isset($_POST['GuestName'])&&$_POST['GuestName']!=null) {
-@setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
+setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
 $_SESSION['GuestName']=$_POST['GuestName']; } }
 /*    <_<  iWordFilter  >_>      
    by Kazuki Przyborowski - Cool Dude 2k */
@@ -833,7 +833,7 @@ $_POST['MessageDesc'] = preg_replace("/".$Filter."/", $Replace, $_POST['MessageD
 if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
 $_POST['Message'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Message']);
 $_POST['MessageDesc'] = preg_replace("/".$Filter."/i", $Replace, $_POST['MessageDesc']); }
-++$katarzynas; } @mysql_free_result($katarzynart);
+++$katarzynas; } mysql_free_result($katarzynart);
 $lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedMessageName`='yes' or `RestrictedUserName`='yes'", array(null));
 $lonewolfrt=exec_query($lonewolfqy);
 $lonewolfnm=mysql_num_rows($lonewolfrt);
@@ -885,7 +885,7 @@ $RMatches = preg_match("/".$RWord."/i", $_POST['MessageName']);
 if($RestrictedUserName=="yes") {
 $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']);
        if($RGMatches==true) { break 1; } } }
-++$lonewolfs; } @mysql_free_result($lonewolfrt);
+++$lonewolfs; } mysql_free_result($lonewolfrt);
 $requery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `Name`='%s'", array($_POST['SendMessageTo']));
 $reresult=exec_query($requery);
 $renum=mysql_num_rows($reresult);
@@ -899,8 +899,8 @@ $SendUserCanPM=mysql_result($gresult,0,"CanPM");
 $SendUserCanPM = strtolower($SendUserCanPM);
 if($SendUserCanPM!="yes"&&$SendUserCanPM!="no") {
        $SendUserCanPM = "no"; }
-@mysql_free_result($gresult);
-++$rei; } @mysql_free_result($reresult);
+mysql_free_result($gresult);
+++$rei; } mysql_free_result($reresult);
 if($renum==0) { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
@@ -952,7 +952,7 @@ if($renum==0) { $Error="Yes"; ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
index 9c87a3a..03ff6fb 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: prelogin.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: prelogin.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="prelogin.php"||$File3Name=="/prelogin.php") {
@@ -30,7 +30,7 @@ $YourPassAM=mysql_result($resultlog2,0,"Password");
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($YourGroupAM));
 $gresult=exec_query($gquery);
 $YourGroupAM=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult); $BanError = null;
+mysql_free_result($gresult); $BanError = null;
 $YourTimeZoneAM=mysql_result($resultlog2,0,"TimeZone");
 $UseThemeAM=mysql_result($resultlog2,0,"UseTheme");
 $YourDSTAM=mysql_result($resultlog2,0,"DST");
@@ -55,39 +55,39 @@ $_SESSION['UserPass']=$YourPassAM;
 $_SESSION['LastPostTime'] = $YourLastPostTime;
 $_SESSION['DBName']=$Settings['sqldb'];
 if($cookieDomain==null) {
-@setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir);
-@setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir);
-@setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir); }
+setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir);
+setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir);
+setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
 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); } }
-} } if($numlog2<=0||$numlog2>1||$BanError=="yes") { @session_unset();
+setcookie("MemberName", $YourNameAM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("UserID", $YourIDAM, time() + (7 * 86400), $cbasedir, $cookieDomain);
+setcookie("SessPass", $YourPassAM, time() + (7 * 86400), $cbasedir, $cookieDomain); } }
+} } if($numlog2<=0||$numlog2>1||$BanError=="yes") { session_unset();
 if($cookieDomain==null) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
-@setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
+setcookie("MemberName", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("UserID", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie("SessPass", null, GMTimeStamp() - 3600, $cbasedir, $cookieDomain);
+setcookie(session_name(), "", GMTimeStamp() - 3600, $cbasedir, $cookieDomain); } }
 unset($_COOKIE[session_name()]);
-$_SESSION = array(); @session_unset(); @session_destroy();
-@redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); @mysql_free_result($resultlog2); @mysql_free_result($gresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($resultlog2); @mysql_free_result($gresult);
+$_SESSION = array(); session_unset(); session_destroy();
+redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=login",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); mysql_free_result($resultlog2); mysql_free_result($gresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($resultlog2); mysql_free_result($gresult);
 ?>
index e1e4a6c..6da68b1 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: profilemain.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: profilemain.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
@@ -21,8 +21,8 @@ if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
 // Check if we can edit the profile
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -85,7 +85,7 @@ $_SESSION['ViewingTitle'] = "UserCP";
 <?php if($_POST['update']=="now"&&$_GET['act']!=null) {
 $updateact = url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
 $profiletitle = " ".$ThemeSet['TitleDivider']." Updating Settings";
-@redirect("refresh",$basedir.url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile'],FALSE),"3");
+redirect("refresh",$basedir.url_maker($exfile['profile'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile'],FALSE),"3");
 $noteact = url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
 $profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
 ?>
@@ -153,14 +153,14 @@ $notepadact = $noteact; $profiletitle = " ".$ThemeSet['TitleDivider']." NotePad"
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['act']=="view"&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
        $_POST['NotePad'] = htmlspecialchars($_POST['NotePad'], ENT_QUOTES, $Settings['charset']);
        $_POST['NotePad'] = remove_bad_entities($_POST['NotePad']);
        //$_POST['Signature'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
-       //$_POST['Signature'] = @remove_spaces($_POST['Signature']);
+       //$_POST['Signature'] = remove_spaces($_POST['Signature']);
        //$_POST['Signature'] = remove_bad_entities($_POST['Signature']);
        /*    <_<  iWordFilter  >_>      
     by Kazuki Przyborowski - Cool Dude 2k */
@@ -188,7 +188,7 @@ if($_POST['act']=="view"&&
        $_POST['NotePad'] = preg_replace("/".$Filter."/", $Replace, $_POST['NotePad']); }
        if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
        $_POST['NotePad'] = preg_replace("/".$Filter."/i", $Replace, $_POST['NotePad']); }
-       ++$katarzynas; } @mysql_free_result($katarzynart);
+       ++$katarzynas; } mysql_free_result($katarzynart);
        $NewDay=GMTimeStamp();
        $NewIP=$_SERVER['REMOTE_ADDR'];
        $querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `Notes`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['NotePad'],$NewDay,$NewIP,$_SESSION['UserID']));
@@ -236,13 +236,13 @@ $profiletitle = " ".$ThemeSet['TitleDivider']." Signature Editor";
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['act']=="signature"&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
        $_POST['Signature'] = stripcslashes(htmlspecialchars($_POST['Signature'], ENT_QUOTES));
        //$_POST['Signature'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
-       //$_POST['Signature'] = @remove_spaces($_POST['Signature']);
+       //$_POST['Signature'] = remove_spaces($_POST['Signature']);
        $_POST['Signature'] = remove_bad_entities($_POST['Signature']);
        /*    <_<  iWordFilter  >_>      
     by Kazuki Przyborowski - Cool Dude 2k */
@@ -270,7 +270,7 @@ if($_POST['act']=="signature"&&
        $_POST['Signature'] = preg_replace("/".$Filter."/", $Replace, $_POST['Signature']); }
        if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
        $_POST['Signature'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Signature']); }
-       ++$katarzynas; } @mysql_free_result($katarzynart);
+       ++$katarzynas; } mysql_free_result($katarzynart);
        $NewDay=GMTimeStamp();
        $NewIP=$_SERVER['REMOTE_ADDR'];
        $querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `Signature`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Signature'],$NewDay,$NewIP,$_SESSION['UserID']));
@@ -353,7 +353,7 @@ $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1];
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['Avatar']!=null&&$_POST['AvatarSizeW']!=null&&$_POST['AvatarSizeH']!=null&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
@@ -365,7 +365,7 @@ if($_POST['Avatar']!=null&&$_POST['AvatarSizeW']!=null&&$_POST['AvatarSizeH']!=n
        $_POST['Avatar'] = htmlentities($_POST['Avatar'], ENT_QUOTES, $Settings['charset']);
        $NewDay=GMTimeStamp();
        $NewIP=$_SERVER['REMOTE_ADDR'];
-       $_POST['Avatar'] = @remove_spaces($_POST['Avatar']);
+       $_POST['Avatar'] = remove_spaces($_POST['Avatar']);
        $querynewskin = query("UPDATE `".$Settings['sqltable']."members` SET `Avatar`='%s',`AvatarSize`='%s',`LastActive`=%i,`IP`='%s' WHERE `id`=%i", array($_POST['Avatar'],$fullavatarsize,$NewDay,$NewIP,$_SESSION['UserID']));
        exec_query($querynewskin); } } }
 if($_GET['act']=="settings") {
@@ -513,7 +513,7 @@ if ($handle = opendir($skindir)) { $dirnum = null;
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['act']=="settings"&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
@@ -696,18 +696,18 @@ echo "<option value=\"".$showmin."\">0:".$showmin." minutes</option>\n";
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['act']=="profile"&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
        $_POST['Interests'] = htmlspecialchars($_POST['Interests'], ENT_QUOTES, $Settings['charset']);
-       $_POST['Interests'] = @remove_spaces($_POST['Interests']);
+       $_POST['Interests'] = remove_spaces($_POST['Interests']);
        $_POST['Title'] = htmlspecialchars($_POST['Title'], ENT_QUOTES, $Settings['charset']);
-       $_POST['Title'] = @remove_spaces($_POST['Title']);
+       $_POST['Title'] = remove_spaces($_POST['Title']);
        $_POST['Website'] = htmlentities($_POST['Website'], ENT_QUOTES, $Settings['charset']);
-       $_POST['Website'] = @remove_spaces($_POST['Website']);
+       $_POST['Website'] = remove_spaces($_POST['Website']);
        //$_POST['Signature'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['Signature']);
-       //$_POST['Signature'] = @remove_spaces($_POST['Signature']);
+       //$_POST['Signature'] = remove_spaces($_POST['Signature']);
        //$_POST['Signature'] = remove_bad_entities($_POST['Signature']);
        /*    <_<  iWordFilter  >_>      
     by Kazuki Przyborowski - Cool Dude 2k */
@@ -739,7 +739,7 @@ if($_POST['act']=="profile"&&
        if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
        $_POST['Interests'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Interests']); 
        $_POST['Title'] = preg_replace("/".$Filter."/i", $Replace, $_POST['Title']); }
-       ++$katarzynas; } @mysql_free_result($katarzynart);
+       ++$katarzynas; } mysql_free_result($katarzynart);
        if(!is_numeric($_POST['RepliesPerPage'])) { $_POST['RepliesPerPage'] = "10"; }
        if(!is_numeric($_POST['TopicsPerPage'])) { $_POST['TopicsPerPage'] = "10"; }
        if(!is_numeric($_POST['MessagesPerPage'])) { $_POST['MessagesPerPage'] = "10"; }
@@ -842,7 +842,7 @@ $profiletitle = " ".$ThemeSet['TitleDivider']." User Info Editer";
 </tr>
 </table>
 </div>
-<?php @mysql_free_result($result); }
+<?php mysql_free_result($result); }
 if($_POST['update']=="now") {
 if($_POST['act']=="userinfo"&&
        $_SESSION['UserGroup']!=$Settings['GuestGroup']) {
@@ -877,13 +877,13 @@ if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
        $NewIP=$_SERVER['REMOTE_ADDR'];
        if ($Error!="Yes") { $_SESSION['UserPass']=$NewPassword;
        if($cookieDomain==null) {
-       @setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
+       setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir); }
        if($cookieDomain!=null) {
        if($cookieSecure===true) {
-       @setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
+       setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain, 1); }
        if($cookieSecure===false) {
-       @setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } }
-       $_POST['Email'] = @remove_spaces($_POST['Email']);
+       setcookie("SessPass", $NewPassword, time() + (7 * 86400), $cbasedir, $cookieDomain); } }
+       $_POST['Email'] = remove_spaces($_POST['Email']);
        $querynewuserinfo = query("UPDATE `".$Settings['sqltable']."members` SET `Password`='%s',`HashType`='iDBH',`Email`='%s',`LastActive`=%i,`IP`='%s',`Salt`='%s' WHERE `id`=%i", array($NewPassword,$_POST['Email'],$NewDay,$NewIP,$NewSalt,$_SESSION['UserID']));
        exec_query($querynewuserinfo); } } } }
 ?>
index 6458bf1..e1c3b00 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: replies.php - Last Update: 11/17/2009 SVN 353 - Author: cooldude2k $
+    $FileInfo: replies.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -28,9 +28,9 @@ if($_GET['modact']=="pin"||$_GET['modact']=="unpin"||$_GET['modact']=="open"||
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $TopicName=mysql_result($preresult,0,"TopicName");
 $TopicID=mysql_result($preresult,0,"id");
@@ -42,7 +42,7 @@ $NumberReplies=mysql_result($preresult,0,"NumReply"); }
 if(isset($_GET['post'])&&$_GET['post']!==null) {
 $NumberReplies=1; }
 $ViewTimes=mysql_result($preresult,0,"NumViews");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $forumcheckx = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i  LIMIT 1", array($TopicForumID));
 $fmckresult=exec_query($forumcheckx);
 $ForumName=mysql_result($fmckresult,0,"Name");
@@ -50,14 +50,14 @@ $ForumType=mysql_result($fmckresult,0,"ForumType");
 $CanHaveTopics=mysql_result($fmckresult,0,"CanHaveTopics");
 $ForumPostCountView=mysql_result($fmckresult,0,"PostCountView");
 $ForumKarmaCountView=mysql_result($fmckresult,0,"KarmaCountView");
-@mysql_free_result($fmckresult);
+mysql_free_result($fmckresult);
 $catcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i  LIMIT 1", array($TopicCatID));
 $catresult=exec_query($catcheck);
 $CategoryName=mysql_result($catresult,0,"Name");
 $CategoryType=mysql_result($catresult,0,"CategoryType");
 $CategoryPostCountView=mysql_result($catresult,0,"PostCountView");
 $CategoryKarmaCountView=mysql_result($catresult,0,"KarmaCountView");
-@mysql_free_result($catresult);
+mysql_free_result($catresult);
 if($GroupInfo['HasAdminCP']!="yes"||$GroupInfo['HasModCP']!="yes") {
 if($MyPostCountChk==null) { $MyPostCountChk = 0; }
 if($MyKarmaCount==null) { $MyKarmaCount = 0; }
@@ -79,15 +79,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$TopicCatID])) {
 if($CatPermissionInfo['CanViewCategory'][$TopicCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$TopicCatID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_GET['act']!="view") { 
 $CanMakeReply = "no"; $CanMakeTopic = "no";
 if($PermissionInfo['CanMakeTopics'][$TopicForumID]=="yes"&&$CanHaveTopics=="yes") { 
@@ -157,8 +157,8 @@ $query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%
 $result=exec_query($query);
 $num=mysql_num_rows($result);
 if($num==0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($num!=0) { 
 if($ViewTimes==0||$ViewTimes==null) { $NewViewTimes = 1; }
 if($ViewTimes!=0&&$ViewTimes!=null) { $NewViewTimes = $ViewTimes + 1; }
@@ -288,7 +288,7 @@ $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1Signature=mysql_result($reresult,$rei,"Signature");
 $User1Avatar=mysql_result($reresult,$rei,"Avatar");
 $User1AvatarSize=mysql_result($reresult,$rei,"AvatarSize");
@@ -302,7 +302,7 @@ $User1Website=mysql_result($reresult,$rei,"Website");
 $User1PostCount=mysql_result($reresult,$rei,"PostCount");
 $User1Karma=mysql_result($reresult,$rei,"Karma");
 $User1IP=mysql_result($reresult,$rei,"IP");
-@mysql_free_result($reresult);
+mysql_free_result($reresult);
 if($User1Name=="Guest") { $User1Name=$GuestsName;
 if($User1Name==null) { $User1Name="Guest"; } }
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
@@ -323,13 +323,13 @@ $eunum = mysql_num_rows($euresult); }
        $EditUserGroupID = mysql_result($euresult,0,"GroupID");
        $EditUserHidden=mysql_result($euresult,0,"HiddenMember");
        $EditUserName = mysql_result($euresult,0,"Name");
-       @mysql_free_result($euresult);
+       mysql_free_result($euresult);
        $eugquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($EditUserGroupID));
        $eugresult=exec_query($eugquery);
        $EditUserGroup=mysql_result($eugresult,0,"Name");
        $EditUserNamePrefix=mysql_result($eugresult,0,"NamePrefix");
        $EditUserNameSuffix=mysql_result($eugresult,0,"NameSuffix");
-       @mysql_free_result($eugresult); }
+       mysql_free_result($eugresult);  }
        if($MyEditUserID==$MyUserID) {
        $EditUserID = $User1ID;
        $EditUserGroupID = $User1GroupID;
@@ -453,11 +453,11 @@ echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr
 </tr>
 </table></div>
 <div class="DivReplies">&nbsp;</div>
-<?php ++$i; } @mysql_free_result($result); } 
+<?php ++$i; } mysql_free_result($result); } 
 if((GMTimeStamp()<$_SESSION['LastPostTime']&&$_SESSION['LastPostTime']!=0)&&
 ($_GET['act']=="create"||$_GET['act']=="edit"||$_GET['act']=="makereply"||$_GET['act']=="editreply")) { 
 $_GET['act'] = "view"; $_POST['act'] = null; 
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."&page=".$_GET['page'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3"); ?>
+redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."&page=".$_GET['page'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3"); ?>
 <div class="Table1Border">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
 <div class="TableRow1">
@@ -501,11 +501,11 @@ redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"a
 if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) {
 redirect("location",$basedir.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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $QuoteReply = null; $QuoteDescription = null;
 if($_GET['post']==null) {
 $query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC  LIMIT 1", array($_GET['id']));
@@ -514,7 +514,7 @@ $num=mysql_num_rows($result);
 $QuoteDescription=mysql_result($result,0,"Description"); 
 $QuoteDescription = str_replace("Re: ","",$QuoteDescription);
 $QuoteDescription = "Re: ".$QuoteDescription;
-@mysql_free_result($result); }
+mysql_free_result($result); }
 if($_GET['post']!=null) {
 $query = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `id`=%i LIMIT 1", array($_GET['post']));
 $result=exec_query($query);
@@ -539,10 +539,10 @@ if($QuoteUserName=="Guest") { $QuoteUserName=$QuoteGuestName;
 if($QuoteUserName==null) { $QuoteUserName="Guest"; } }
 $QuoteUserName = stripcslashes(htmlspecialchars($QuoteUserName, ENT_QUOTES, $Settings['charset']));
 //$QuoteUserName = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $QuoteUserName);
-$QuoteUserName = @remove_spaces($QuoteUserName);
+$QuoteUserName = remove_spaces($QuoteUserName);
 /*$QuoteReply = stripcslashes(htmlspecialchars($QuoteReply, ENT_QUOTES, $Settings['charset']));
 $QuoteReply = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $QuoteReply);
-//$QuoteReply = @remove_spaces($QuoteReply);*/
+//$QuoteReply = remove_spaces($QuoteReply);*/
 $QuoteReply = remove_bad_entities($QuoteReply);
 $QuoteDescription = str_replace("Re: ","",$QuoteDescription);
 $QuoteDescription = "Re: ".$QuoteDescription;
@@ -561,12 +561,12 @@ $rforumcheck = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`
 $rfmckresult=exec_query($rforumcheck);
 $rForumPostCountView=mysql_result($rfmckresult,0,"PostCountView");
 $rForumKarmaCountView=mysql_result($rfmckresult,0,"KarmaCountView");
-@mysql_free_result($rfmckresult);
+mysql_free_result($rfmckresult);
 $rcatcheck = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i  LIMIT 1", array($QuoteReplyCID));
 $rcatresult=exec_query($rcatcheck);
 $rCategoryPostCountView=mysql_result($rcatresult,0,"PostCountView");
 $rCategoryKarmaCountView=mysql_result($rcatresult,0,"KarmaCountView");
-@mysql_free_result($rcatresult);
+mysql_free_result($rcatresult);
 if($MyPostCountChk==null) { $MyPostCountChk = 0; }
 if($rForumPostCountView!=0&&$MyPostCountChk<$rForumPostCountView) {
 $QuoteReply = null; $QuoteDescription = null; }
@@ -622,7 +622,7 @@ if($SmileCRow<5&&$SmileCRow!=0) {
 $SmileCRowL = 5 - $SmileCRow;
 echo "<td colspan=\"".$SmileCRowL."\">&nbsp;</td></tr>"; }
 echo "</table>";
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="MkReplyForm" action="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=makereply&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>">
@@ -672,11 +672,11 @@ redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"a
 if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) {
 redirect("location",$basedir.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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($PermissionInfo['CanMakeReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 $URL['REFERER'] = $REFERERurl['host'];
@@ -747,17 +747,17 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $_POST['ReplyDesc'] = stripcslashes(htmlspecialchars($_POST['ReplyDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ReplyDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyDesc']);
-$_POST['ReplyDesc'] = @remove_spaces($_POST['ReplyDesc']);
+$_POST['ReplyDesc'] = remove_spaces($_POST['ReplyDesc']);
 $_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
+$_POST['GuestName'] = remove_spaces($_POST['GuestName']);
 $_POST['ReplyPost'] = stripcslashes(htmlspecialchars($_POST['ReplyPost'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ReplyPost'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyPost']);
-//$_POST['ReplyPost'] = @remove_spaces($_POST['ReplyPost']);
+//$_POST['ReplyPost'] = remove_spaces($_POST['ReplyPost']);
 $_POST['ReplyPost'] = remove_bad_entities($_POST['ReplyPost']);
 if($_SESSION['UserGroup']==$Settings['GuestGroup']) {
 if(isset($_POST['GuestName'])&&$_POST['GuestName']!=null) {
-@setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
+setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
 $_SESSION['GuestName']=$_POST['GuestName']; } }
 /*    <_<  iWordFilter  >_>      
    by Kazuki Przyborowski - Cool Dude 2k */
@@ -789,7 +789,7 @@ $_POST['ReplyPost'] = preg_replace("/".$Filter."/", $Replace, $_POST['ReplyPost'
 if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
 $_POST['ReplyDesc'] = preg_replace("/".$Filter."/i", $Replace, $_POST['ReplyDesc']); 
 $_POST['ReplyPost'] = preg_replace("/".$Filter."/i", $Replace, $_POST['ReplyPost']); }
-++$katarzynas; } @mysql_free_result($katarzynart);
+++$katarzynas; } mysql_free_result($katarzynart);
 if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
@@ -823,7 +823,7 @@ if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
@@ -834,7 +834,7 @@ $gnrquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i
 $gnrresult=exec_query($gnrquery); $gnrnum=mysql_num_rows($gnrresult);
 $NumberPosts=mysql_result($gnrresult,0,"NumPosts"); 
 $PostCountAdd=mysql_result($gnrresult,0,"PostCountAdd"); 
-@mysql_free_result($gnrresult);
+mysql_free_result($gnrresult);
 $postid = getnextid($Settings['sqltable'],"posts");
 $requery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i LIMIT 1", array($MyUsersID));
 $reresult=exec_query($requery);
@@ -854,9 +854,9 @@ if(!isset($NewPostCount)) { $NewPostCount = $PostCount; }
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($User1GroupID));
 $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1IP=$_SERVER['REMOTE_ADDR'];
-++$rei; } @mysql_free_result($reresult);
+++$rei; } mysql_free_result($reresult);
 $query = query("INSERT INTO `".$Settings['sqltable']."posts` (`TopicID`, `ForumID`, `CategoryID`, `UserID`, `GuestName`, `TimeStamp`, `LastUpdate`, `EditUser`, `EditUserName`, `Post`, `Description`, `IP`, `EditIP`) VALUES\n".
 "(%i, %i, %i, %i, '%s', %i, %i, 0, '', '%s', '%s', '%s', '0')", array($TopicID,$TopicForumID,$TopicCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['ReplyPost'],$_POST['ReplyDesc'],$User1IP));
 exec_query($query);
@@ -875,7 +875,7 @@ if($MyPostNum>$Settings['max_posts']) {
 $NumPages = ceil($MyPostNum/$Settings['max_posts']); }
 if($MyPostNum<=$Settings['max_posts']) {
 $NumPages = 1; }
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE).$Settings['qstr']."#reply".$MyPostNum,"3");
+redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE).$Settings['qstr']."#reply".$MyPostNum,"3");
 ?><tr>
        <td><span class="TableMessage"><br />
        Reply to Topic <?php echo $TopicName; ?> was posted.<br />
@@ -911,17 +911,17 @@ if($PermissionInfo['CanPinTopics'][$TForumID]=="yes"&&
                $TopicClosed==1) { $CanPinTopics = false; } }
 if($_SESSION['UserID']==0) { $CanPinTopics = false; }
 if($CanPinTopics===false) {
-redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($gtsresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($gtsresult);
+redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($gtsresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($gtsresult);
 if($CanPinTopics===true) {
        if($_GET['act']=="pin") {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `Pinned`=1 WHERE `id`=%i", array($TTopicID)); }
        if($_GET['act']=="unpin") {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `Pinned`=0 WHERE `id`=%i", array($TTopicID)); } 
 exec_query($queryupd); 
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TTopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false).$Settings['qstr']."#post".$_GET['post'],"4");
+redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TTopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false).$Settings['qstr']."#post".$_GET['post'],"4");
 ?>
 <div class="Table1Border">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -968,17 +968,17 @@ if($PermissionInfo['CanCloseTopics'][$TForumID]=="yes"&&
        $CanCloseTopics = true; } }
 if($_SESSION['UserID']==0) { $CanCloseTopics = false; }
 if($CanCloseTopics===false) {
-redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($gtsresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($gtsresult);
+redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($gtsresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($gtsresult);
 if($CanCloseTopics===true) {
        if($_GET['act']=="close") {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `Closed`=1 WHERE `id`=%i", array($TTopicID)); }
        if($_GET['act']=="open") {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `Closed`=0 WHERE `id`=%i", array($TTopicID)); } 
 exec_query($queryupd); 
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TTopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false).$Settings['qstr']."#post".$_GET['post'],"4");
+redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TTopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false).$Settings['qstr']."#post".$_GET['post'],"4");
 ?>
 <div class="Table1Border">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -1014,7 +1014,7 @@ $ReplyID=mysql_result($predresult,0,"id");
 $ReplyTopicID=mysql_result($predresult,0,"TopicID");
 $ReplyForumID=mysql_result($predresult,0,"ForumID");
 $ReplyUserID=mysql_result($predresult,0,"UserID");
-@mysql_free_result($predresult);
+mysql_free_result($predresult);
 $CanDeleteReply = false;
 if($_SESSION['UserID']!=0) {
 if($_SESSION['UserGroup']!=$Settings['GuestGroup']) {
@@ -1028,8 +1028,8 @@ if($PermissionInfo['CanDeleteReplys'][$ReplyForumID]=="yes"&&
 if($_SESSION['UserID']==0) { $CanDeleteReply = false; }
 if($CanDeleteReply===false) {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $delquery = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC", array($_GET['id']));
 $delresult=exec_query($delquery);
 $delnum=mysql_num_rows($delresult);
@@ -1037,7 +1037,7 @@ $DelTopic = false;
 $gnrquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($ReplyForumID));
 $gnrresult=exec_query($gnrquery); $gnrnum=mysql_num_rows($gnrresult);
 $NumberPosts=mysql_result($gnrresult,0,"NumPosts"); $NumberTopics=mysql_result($gnrresult,0,"NumTopics"); 
-@mysql_free_result($gnrresult);
+mysql_free_result($gnrresult);
 $FReplyID=mysql_result($delresult,0,"id");
 if($ReplyID==$FReplyID) { $DelTopic = true;
 $gtsquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($ReplyTopicID));
@@ -1055,9 +1055,9 @@ if($PermissionInfo['CanDeleteTopics'][$ReplyForumID]=="yes"&&
                $TopicClosed==1) { $CanDeleteTopics = false; } }
 if($_SESSION['UserID']==0) { $CanDeleteTopics = false; }
 if($CanDeleteTopics===false) {
-redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($delresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($delresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CanDeleteTopics===true) { $NewNumTopics = $NumberTopics - 1; $NewNumPosts = $NumberPosts - $delnum;
 $drquery = query("DELETE FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i", array($ReplyTopicID));
 exec_query($drquery); 
@@ -1083,8 +1083,8 @@ $queryupd = query("UPDATE `".$Settings['sqltable']."forums` SET `NumPosts`=%i WH
 exec_query($queryupd);
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `NumReply`=%i WHERE `id`=%i", array($NewNumReplies,$ReplyTopicID));
 exec_query($queryupd); }
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],FALSE),"3");
-@mysql_free_result($delresult);
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],FALSE),"3");
+mysql_free_result($delresult);
 ?>
 <div class="Table1Border">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
@@ -1114,46 +1114,46 @@ exec_query($queryupd); }
 </table></div>
 <?php } if($_GET['act']=="edit") {
 if($PermissionInfo['CanEditReplys'][$TopicForumID]=="no"||$_SESSION['UserID']==0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($PermissionInfo['CanEditReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $ShowEditTopic = null;
 if($PermissionInfo['CanEditTopics'][$TopicForumID]=="yes") {
 $editquery = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicID`=%i ORDER BY `TimeStamp` ASC", array($TopicID));
 $editresult=exec_query($editquery);
 $editnum=mysql_num_rows($editresult);
 $FReplyID=mysql_result($editresult,0,"id");
-@mysql_free_result($editresult);
+mysql_free_result($editresult);
 if($_GET['post']==$FReplyID) { $ShowEditTopic = true; } }
 if($PermissionInfo['CanEditTopics'][$TopicForumID]=="no") { $ShowEditTopic = null; }
 $ersquery = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `id`=%i LIMIT 1", array($_GET['post']));
 $ersresult=exec_query($ersquery);
 $ersnum=mysql_num_rows($ersresult);
-if($ersnum==0) { @mysql_free_result($ersresult);
+if($ersnum==0) { mysql_free_result($ersresult);
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $ReplyPost=mysql_result($ersresult,0,"Post");
 /*$ReplyPost = stripcslashes(htmlspecialchars($ReplyPost, ENT_QUOTES, $Settings['charset']));
 $ReplyPost = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyPost);
-//$ReplyPost = @remove_spaces($ReplyPost);*/
+//$ReplyPost = remove_spaces($ReplyPost);*/
 $ReplyPost = remove_bad_entities($ReplyPost);
 $ReplyDescription=mysql_result($ersresult,0,"Description");
 /*$ReplyDescription = stripcslashes(htmlspecialchars($ReplyDescription, ENT_QUOTES, $Settings['charset']));
 $ReplyDescription = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyDescription);
-//$ReplyDescription = @remove_spaces($ReplyDescription);*/
+//$ReplyDescription = remove_spaces($ReplyDescription);*/
 $ReplyGuestName=mysql_result($ersresult,0,"GuestName");
 //$ReplyGuestName = stripcslashes(htmlspecialchars($ReplyGuestName, ENT_QUOTES, $Settings['charset']));
 //$ReplyGuestName = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ReplyGuestName);
-$ReplyGuestName = @remove_spaces($ReplyGuestName);
+$ReplyGuestName = remove_spaces($ReplyGuestName);
 $ReplyUser=mysql_result($ersresult,0,"UserID");
 if($_SESSION['UserID']!=$ReplyUser&&$PermissionInfo['CanModForum'][$TopicForumID]=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($ersresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($ersresult);
 if($ShowEditTopic===true) {
 $gtsquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($TopicID));
 $gtsresult=exec_query($gtsquery);
@@ -1167,8 +1167,8 @@ if($PermissionInfo['CanEditTopicsClose'][$TopicForumID]=="no"&&$TopicClosed==1)
        $ShowEditTopic = null; } }
 //$TopicName = stripcslashes(htmlspecialchars($TopicName, ENT_QUOTES, $Settings['charset']));
 //$TopicName = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $TopicName);
-$TopicName = @remove_spaces($TopicName);
-@mysql_free_result($gtsresult);
+$TopicName = remove_spaces($TopicName);
+mysql_free_result($gtsresult);
 $UFID = uuid(false,true,false,$Settings['use_hashtype'],null);
 $_SESSION['UserFormID'] = $UFID;
 ?>
@@ -1208,7 +1208,7 @@ if($SmileRow<5) { ?>
        <img src="<?php echo $SmileDirectory."".$FileName; ?>" style="vertical-align: middle; border: 0px; cursor: pointer;" title="<?php echo $SmileName; ?>" alt="<?php echo $SmileName; ?>" onclick="addsmiley('ReplyPost','&nbsp;<?php echo htmlspecialchars($SmileText, ENT_QUOTES, $Settings['charset']); ?>&nbsp;')" /><br />
        <?php $SmileRow=1; }
 ++$renee_s; ++$SmileRow; }
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="EditReplyForm" action="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=editreply&id=".$TopicID."&post=".$_GET['post'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>">
@@ -1249,11 +1249,11 @@ if($SmileRow<5) { ?>
 <div class="DivMkReply">&nbsp;</div>
 <?php } if($_GET['act']=="editreply"&&$_POST['act']=="editreplies") {
 if($PermissionInfo['CanEditReplys'][$TopicForumID]=="no"||$_SESSION['UserID']==0) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($PermissionInfo['CanEditReplysClose'][$TopicForumID]=="no"&&$TopicClosed==1) { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $REFERERurl = parse_url($_SERVER['HTTP_REFERER']);
 $URL['REFERER'] = $REFERERurl['host'];
 $URL['HOST'] = $_SERVER["SERVER_NAME"];
@@ -1271,22 +1271,22 @@ $editquery = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `TopicI
 $editresult=exec_query($editquery);
 $editnum=mysql_num_rows($editresult);
 $FReplyID=mysql_result($editresult,0,"id");
-@mysql_free_result($editresult);
+mysql_free_result($editresult);
 if($_GET['post']==$FReplyID) { $ShowEditTopic = true; } }
 if($PermissionInfo['CanEditTopics'][$TopicForumID]=="no") { $ShowEditTopic = null; }
 $ersquery = query("SELECT * FROM `".$Settings['sqltable']."posts` WHERE `id`=%i LIMIT 1", array($_GET['post']));
 $ersresult=exec_query($ersquery);
 $ersnum=mysql_num_rows($ersresult);
-if($ersnum==0) { @mysql_free_result($ersresult);
+if($ersnum==0) { mysql_free_result($ersresult);
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $ReplyUser=mysql_result($ersresult,0,"UserID");
 if($_SESSION['UserID']!=$ReplyUser&&$PermissionInfo['CanModForum'][$TopicForumID]=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($ersresult); 
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($ersresult); 
 if($ShowEditTopic===true) {
 $gtsquery = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `id`=%i LIMIT 1", array($TopicID));
 $gtsresult=exec_query($gtsquery);
@@ -1364,17 +1364,17 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $_POST['ReplyDesc'] = stripcslashes(htmlspecialchars($_POST['ReplyDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ReplyDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyDesc']);
-$_POST['ReplyDesc'] = @remove_spaces($_POST['ReplyDesc']);
+$_POST['ReplyDesc'] = remove_spaces($_POST['ReplyDesc']);
 $_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
+$_POST['GuestName'] = remove_spaces($_POST['GuestName']);
 $_POST['ReplyPost'] = stripcslashes(htmlspecialchars($_POST['ReplyPost'], ENT_QUOTES, $Settings['charset']));
 //$_POST['ReplyPost'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ReplyPost']);
 $_POST['ReplyPost'] = remove_bad_entities($_POST['ReplyPost']);
 if($ShowEditTopic===true) {
 $_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['TopicName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicName']);
-$_POST['TopicName'] = @remove_spaces($_POST['TopicName']); }
+$_POST['TopicName'] = remove_spaces($_POST['TopicName']); }
 /*    <_<  iWordFilter  >_>      
    by Kazuki Przyborowski - Cool Dude 2k */
 $katarzynaqy=query("SELECT * FROM `".$Settings['sqltable']."wordfilter`", array(null));
@@ -1405,7 +1405,7 @@ $_POST['ReplyPost'] = preg_replace("/".$Filter."/", $Replace, $_POST['ReplyPost'
 if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
 $_POST['ReplyDesc'] = preg_replace("/".$Filter."/i", $Replace, $_POST['ReplyDesc']); 
 $_POST['ReplyPost'] = preg_replace("/".$Filter."/i", $Replace, $_POST['ReplyPost']); }
-++$katarzynas; } @mysql_free_result($katarzynart);
+++$katarzynas; } mysql_free_result($katarzynart);
 $lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedTopicName`='yes' or `RestrictedUserName`='yes'", array(null));
 $lonewolfrt=exec_query($lonewolfqy);
 $lonewolfnm=mysql_num_rows($lonewolfrt);
@@ -1457,7 +1457,7 @@ $RMatches = preg_match("/".$RWord."/i", $_POST['TopicName']);
 if($RestrictedUserName=="yes") {
 $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']);
        if($RGMatches==true) { break 1; } } }
-++$lonewolfs; } @mysql_free_result($lonewolfrt);
+++$lonewolfs; } mysql_free_result($lonewolfrt);
 if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
@@ -1509,7 +1509,7 @@ if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']),"3"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']),"3"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
@@ -1525,7 +1525,7 @@ $User1ID=$_SESSION['UserID'];
 $User1Name=mysql_result($reresult,$rei,"Name");
 if($_SESSION['UserGroup']==$Settings['GuestGroup']) { $User1Name = $_POST['GuestName']; }
 ++$rei; }
-@mysql_free_result($reresult);
+mysql_free_result($reresult);
 $EditUserIP=$_SERVER['REMOTE_ADDR'];
 $_SESSION['LastPostTime'] = GMTimeStamp() + $GroupInfo['FloodControl'];
 if($_SESSION['UserID']!=0&&$_SESSION['UserID']!=-1) {
@@ -1536,7 +1536,7 @@ exec_query($queryupd);
 if($ShowEditTopic===true) {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `TopicName`='%s',`Description`='%s' WHERE `id`=%i", array($_POST['TopicName'],$_POST['ReplyDesc'],$TopicID));
 exec_query($queryupd); } } 
-@redirect(url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE).$Settings['qstr']."#post".$_GET['post'],"3");
+redirect(url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE).$Settings['qstr']."#post".$_GET['post'],"3");
 ?>
 <tr>
        <td><span class="TableMessage"><br />
@@ -1590,7 +1590,7 @@ $numrose=mysql_num_rows($resultra);
 $QuoteDescription=mysql_result($resultra,0,"Description"); 
 $QuoteDescription = str_replace("Re: ","",$QuoteDescription);
 $QuoteDescription = "Re: ".$QuoteDescription;
-@mysql_free_result($resultra);
+mysql_free_result($resultra);
 $UFID = uuid(false,true,false,$Settings['use_hashtype'],null);
 $_SESSION['UserFormID'] = $UFID;
 ?>
@@ -1636,7 +1636,7 @@ if($SmileCRow<5&&$SmileCRow!=0) {
 $SmileCRowL = 5 - $SmileCRow;
 echo "<td colspan=\"".$SmileCRowL."\">&nbsp;</td></tr>"; }
 echo "</table>";
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="MkReplyForm" action="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=makereply&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>">
index aa22208..0680b92 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: rssfeed.php - Last Update: 11/22/2009 SVN 355 - Author: cooldude2k $
+    $FileInfo: rssfeed.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="rssfeed.php"||$File3Name=="/rssfeed.php") {
@@ -66,14 +66,14 @@ if($_GET['feedtype']=="rss") { $checkfeedtype = "application/rss+xml"; }
 if($_GET['feedtype']=="atom") { $checkfeedtype = "application/atom+xml"; }
 if($_GET['feedtype']=="opensearch") { $checkfeedtype = "application/opensearchdescription+xml"; }
 if(stristr($_SERVER["HTTP_ACCEPT"],$checkfeedtype) ) {
-@header("Content-Type: ".$checkfeedtype."; charset=".$Settings['charset']); }
+header("Content-Type: ".$checkfeedtype."; charset=".$Settings['charset']); }
 else { if(stristr($_SERVER["HTTP_ACCEPT"],"application/xml") ) {
-@header("Content-Type: application/xml; charset=".$Settings['charset']); }
+header("Content-Type: application/xml; charset=".$Settings['charset']); }
 else { if (stristr($_SERVER["HTTP_USER_AGENT"],"FeedValidator")) {
-   @header("Content-Type: application/xml; charset=".$Settings['charset']);
-} else { @header("Content-Type: text/xml; charset=".$Settings['charset']); } } }
-@header("Content-Language: en");
-@header("Vary: Accept");
+   header("Content-Type: application/xml; charset=".$Settings['charset']);
+} else { header("Content-Type: text/xml; charset=".$Settings['charset']); } } }
+header("Content-Language: en");
+header("Vary: Accept");
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
@@ -85,17 +85,17 @@ $ForumName = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $ForumName);
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
 $ForumType=mysql_result($preresult,0,"ForumType");
 $ForumType = strtolower($ForumType);
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 if($PermissionInfo['CanViewForum'][$ForumID]=="no"||
        $PermissionInfo['CanViewForum'][$ForumID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $gltf = array(null); $gltf[0] = $ForumID;
 if ($ForumType=="subforum") { 
 $apcquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `InSubForum`=%i ORDER BY `id`", array($ForumID));
@@ -108,7 +108,7 @@ if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 $Atom = null; $RSS = null; $PreRSS = null;
 $gltnum = count($gltf); $glti = 0; 
 while ($glti < $gltnum) {
@@ -138,13 +138,13 @@ $UsersName=mysql_result($reresult,0,"Name");
 $UsersGroupID=mysql_result($reresult,0,"GroupID");
 if($UsersName=="Guest") { $UsersName=$GuestsName;
 if($UsersName==null) { $UsersName="Guest"; } }
-@mysql_free_result($reresult);
+mysql_free_result($reresult);
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($UsersGroupID));
 $gresult=exec_query($gquery);
 $UsersGroup=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) {
        $UsersName = $GroupNamePrefix.$UsersName; }
 if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) {
@@ -170,8 +170,8 @@ $RSS .= '<item rdf:about="'.$BoardURL.url_maker($exfilerss['topic'],$Settings['f
 if($_GET['feedtype']=="rss") {
 $CDataDescription = "<![CDATA[\n".$MyDescription."\n]]>";
 $RSS .= '<item>'."\n".'<pubDate>'.$TheTime.'</pubDate>'."\n".'<author>'.$UsersName.'</author>'."\n".'<title>'.$TopicName.'</title>'."\n".'<description>'.$CDataDescription.'</description>'."\n".'<link>'.$BoardURL.url_maker($exfilerss['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstrrss['topic'],$exqstrrss['topic']).'</link>'."\n".'<guid>'.$BoardURL.url_maker($exfilerss['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstrrss['topic'],$exqstrrss['topic']).'</guid>'."\n".'</item>'."\n"; } }
-++$i; } @mysql_free_result($result);
-@mysql_free_result($result);
+++$i; } mysql_free_result($result);
+mysql_free_result($result);
 ++$glti; }
 xml_doc_start("1.0",$Settings['charset']);
 if($Settings['showverinfo']=="on") { ?>
index ada4be0..f33b072 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: searchs.php - Last Update: 11/17/2009 SVN 352 - Author: cooldude2k $
+    $FileInfo: searchs.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="searchs.php"||$File3Name=="/searchs.php") {
@@ -20,9 +20,9 @@ if ($File3Name=="searchs.php"||$File3Name=="/searchs.php") {
 if($Settings['enable_search']=="off"||
        $GroupInfo['CanSearch']=="no") {
 redirect("location",$basedir.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']);
+header("Content-Type: text/plain; charset=".$Settings['charset']);
 ob_clean(); echo "Sorry you do not have permission to do a search."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $pagenum = null;
 if($Settings['enable_search']=="on"||
        $GroupInfo['CanSearch']=="yes") {
@@ -95,7 +95,7 @@ $memsi=0;
 if($memsinum==0) { $memsid = -1; }
 if($memsinum!=0) {
 $memsid=mysql_result($memsiresult,$memsi,"id"); 
-@mysql_free_result($memsiresult); } }
+mysql_free_result($memsiresult); } }
 //Get SQL LIMIT Number
 $nums = $_GET['page'] * $Settings['max_topics'];
 $PageLimit = $nums - $Settings['max_topics'];
@@ -118,7 +118,7 @@ $rnquery = query("SELECT FOUND_ROWS();", array(null));
 $result=exec_query($query);
 $rnresult=exec_query($rnquery);
 $NumberTopics = mysql_result($rnresult,0);
-@mysql_free_result($rnresult);
+mysql_free_result($rnresult);
 if($NumberTopics==null) { 
        $NumberTopics = 0; }
 $num = $NumberTopics;
@@ -147,9 +147,9 @@ if($pnum<$Settings['max_topics']&&$pnum>0) {
 $num=mysql_num_rows($result);
 if($num<=0) { 
 redirect("location",$basedir.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']);
-ob_clean(); echo "Sorry could not find any search results."; @mysql_free_result($result);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+header("Content-Type: text/plain; charset=".$Settings['charset']);
+ob_clean(); echo "Sorry could not find any search results."; mysql_free_result($result);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $i=0;
 //List Page Number Code Start
 $pagenum=count($Pages);
@@ -283,7 +283,7 @@ $prenum=mysql_num_rows($preresult);
 $HotTopicPosts = $Settings['hot_topic_num'];
 if($prenum > 0) {
 $HotTopicPosts = mysql_result($preresult,0,"HotTopicPosts"); }
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 if($HotTopicPosts!=0&&is_numeric($HotTopicPosts)) {
        $Settings['hot_topic_num'] = $HotTopicPosts; }
 if(!is_numeric($Settings['hot_topic_num'])) {
@@ -404,7 +404,7 @@ if(($UsersID1<-1&&$UsersHidden1=="yes")||$UsersID1==0||($UsersID1>0&&$UsersHidde
 $lul = url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']);
 $luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts;
 $LastReply = "Time: <a href=\"".$luln."\">".$TimeStamp1."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName1."</span>"; } }
-@mysql_free_result($glrresult);
+mysql_free_result($glrresult);
 if($TimeStamp1==null) { $LastReply = "&nbsp;<br />&nbsp;"; }
 $PreTopic = $ThemeSet['TopicIcon'];
 if ($PinnedTopic>1) { $PinnedTopic = 1; } 
@@ -468,7 +468,7 @@ if($pagenum>1) {
 ?>
 <div class="DivPageLinks">&nbsp;</div>
 <?php }
-@mysql_free_result($result); } } } 
+mysql_free_result($result); } } } 
 if($pagenum<=1) { ?>
 <div class="DivSearch">&nbsp;</div>
 <?php } ?>
index 3a084a1..ce51b6f 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: stats.php - Last Update: 11/19/2009 SVN 354 - Author: cooldude2k $
+    $FileInfo: stats.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="stats.php"||$File3Name=="/stats.php") {
@@ -53,11 +53,11 @@ if($_GET['act']=="view"||$_GET['act']=="stats") {
 $ntquery = query("SELECT COUNT(*) FROM `".$Settings['sqltable']."topics`", array(null));
 $ntresult = exec_query($ntquery);
 $numtopics = mysql_result($ntresult,0);
-@mysql_free_result($ntresult);
+mysql_free_result($ntresult);
 $npquery = query("SELECT COUNT(*) FROM `".$Settings['sqltable']."posts`", array(null));
 $npresult = exec_query($npquery);
 $numposts = mysql_result($npresult,0);
-@mysql_free_result($npresult);
+mysql_free_result($npresult);
 if($Settings['AdminValidate']=="on") {
 $nmquery = query("SELECT SQL_CALC_FOUND_ROWS * FROM `".$Settings['sqltable']."members` WHERE `id`>=%i AND `HiddenMember`='no' AND `Validated`='yes' AND `GroupID`<>%i ORDER BY `Joined` DESC LIMIT 1", array(1,$Settings['ValidateGroup'])); }
 if($Settings['AdminValidate']!="on") {
@@ -67,7 +67,7 @@ $nmresult = exec_query($nmquery);
 $rnmresult = exec_query($rnmquery);
 //$nummembers = mysql_num_rows($nmresult);
 $nummembers = mysql_result($rnmresult,0);
-@mysql_free_result($rnmresult);
+mysql_free_result($rnmresult);
 $NewestMem = array(null);
 $NewestMem['ID']=mysql_result($nmresult,0,"id");
 $NewestMem['Name']=mysql_result($nmresult,0,"Name");
index e906dc0..68953fe 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: subcategories.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: subcategories.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="subcategories.php"||$File3Name=="/subcategories.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $checkquery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $checkresult=exec_query($checkquery);
 $checknum=mysql_num_rows($checkresult);
-if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($checkresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($checknum>=1) {
 $CategoryID=mysql_result($checkresult,0,"id");
 $CategoryName=mysql_result($checkresult,0,"Name");
@@ -38,8 +38,8 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -59,16 +59,16 @@ $iscCategoryShow=mysql_result($iscresult,0,"ShowCategory");
 $iscCategoryType=mysql_result($iscresult,0,"CategoryType");
 $iscCategoryType = strtolower($iscCategoryType); }
 if($iscnum<1) { $InSubCategory = "0"; } 
-@mysql_free_result($iscresult); }
+mysql_free_result($iscresult); }
 ?>
 <div class="NavLinks"><?php echo $ThemeSet['NavLinkIcon']; ?><a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">Board index</a><?php if($InSubCategory!="0") { echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$iscCategoryType],$Settings['file_ext'],"act=view&id=".$iscCategoryID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr[$iscCategoryType],$exqstr[$iscCategoryType]); ?>"><?php echo $iscCategoryName; ?></a><?php } echo $ThemeSet['NavLinkDivider']; ?><a href="<?php echo url_maker($exfile[$CategoryType],$Settings['file_ext'],"act=view&id=".$CategoryID,$Settings['qstr'],$Settings['qsep'],$prexqstr[$CategoryType],$exqstr[$CategoryType]); ?>"><?php echo $CategoryName; ?></a></div>
 <div class="DivNavLinks">&nbsp;</div>
 <?php
 if($CategoryType=="category") {
 redirect("location",$basedir.url_maker($exfile['category'],$Settings['file_ext'],"act=".$_GET['act']."&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['category'],$exqstr['category'],FALSE));
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($checkresult);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `ShowCategory`='yes' AND `InSubCategory`=%i ORDER BY `OrderID` ASC, `id` ASC", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
@@ -148,7 +148,7 @@ if($apcl>1) {
 $sflist = $sflist.", ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 $gltf = array(null); $gltf[0] = $ForumID;
 if ($ForumType=="subforum") { 
 $apcquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `InSubForum`=%i ORDER BY `OrderID` ASC, `id` ASC", array($ForumID));
@@ -175,7 +175,7 @@ if($apcl>1) {
 $sflist = $sflist.", ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if ($ForumType=="subforum") { 
 $apcquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `InSubForum`=%i ORDER BY `OrderID` ASC, `id` ASC", array($ForumID));
 $apcresult=exec_query($apcquery);
@@ -191,7 +191,7 @@ if(isset($PermissionInfo['CanViewForum'][$SubsForumID])&&
        $PermissionInfo['CanViewForum'][$SubsForumID]=="yes") {
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -208,7 +208,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 if ($ForumType!="subforum"&&$ForumType!="redirect") { $UseThisFonum = $gltf[0]; }
 if ($ForumType!="redirect") {
@@ -237,7 +237,7 @@ $UsersID=mysql_result($glrresult,0,"UserID");
 $GuestsName=mysql_result($glrresult,0,"GuestName");
 $TimeStamp=mysql_result($glrresult,0,"TimeStamp");
 $TimeStamp=GMTimeChange("F j Y, g:i a",$TimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
-@mysql_free_result($glrresult); }
+mysql_free_result($glrresult); }
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']);
 if($PreUsersName['Name']===null) { $UsersID = -1;
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']); }
@@ -259,7 +259,7 @@ if(($UsersID<-1&&$UsersHidden=="yes")||$UsersID==0||($UsersID>0&&$UsersHidden=="
        $UserPre = "Hidden:"; }
 $LastTopic = $TimeStamp."<br />\nTopic: <a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
 if($LastTopic==null) { $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;"; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
 if ($ForumType=="redirect") { $LastTopic="&nbsp;<br />Redirects: ".$NumRedirects."<br />&nbsp;"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
@@ -278,7 +278,7 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <td class="TableColumn3" style="text-align: center;"><?php echo $NumPosts; ?></td>
 <td class="TableColumn3"><?php echo $LastTopic; ?></td>
 </tr>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 if($num>=1) {
 ?>
 <tr id="SubCatEnd<?php echo $CategoryID; ?>" class="TableRow4">
@@ -287,7 +287,7 @@ if($num>=1) {
 </table></div>
 <div class="DivSubCategories">&nbsp;</div>
 <?php } } ++$prei; } }
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $CatCheck = "skip";
 if($SubShowForums!="yes") { 
        $CategoryName = $SCategoryName; }
index b739337..e165eb9 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: subforums.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: subforums.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="subforums.php"||$File3Name=="/subforums.php") {
@@ -21,9 +21,9 @@ if(!is_numeric($_GET['id'])) { $_GET['id'] = null; }
 $checkquery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $checkresult=exec_query($checkquery);
 $checknum=mysql_num_rows($checkresult);
-if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($checkresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($checknum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($checknum>=1) {
 $ForumID=mysql_result($checkresult,0,"id");
 $ForumName=mysql_result($checkresult,0,"Name");
@@ -48,17 +48,17 @@ $redirup = query("UPDATE `".$Settings['sqltable']."forums` SET `Redirects`='%s'
 exec_query($redirup);
 if($RedirectURL!="http://"&&$RedirectURL!="") {
 redirect("location",$RedirectURL,0,null,false); ob_clean();
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($ForumType=="forum") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
-@mysql_free_result($checkresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
+mysql_free_result($checkresult);
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."categories` WHERE `ShowCategory`='yes' AND `id`=%i ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
@@ -80,7 +80,7 @@ $isfForumType=mysql_result($isfresult,0,"ForumType");
 $isfForumType = strtolower($isfForumType);
 $isfRedirectURL=mysql_result($isfresult,0,"RedirectURL"); }
 if($isfnum<1) { $InSubForum = "0"; } 
-@mysql_free_result($isfresult); }
+mysql_free_result($isfresult); }
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$ForumID."&page=".$_GET['page'],"&","=",$prexqstr[$ForumType],$exqstr[$ForumType]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
 $_SESSION['ViewingFile'] = $exfile[$ForumType].$Settings['file_ext']; }
@@ -97,15 +97,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$CategoryID])) {
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$CategoryID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$CategoryID]=="yes"&&
        $PermissionInfo['CanViewForum'][$_GET['id']]=="yes") {
 $query = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `ShowForum`='yes' AND `CategoryID`=%i AND `InSubForum`=%i ORDER BY `OrderID` ASC, `id` ASC", array($CategoryID,$_GET['id']));
@@ -172,7 +172,7 @@ if($apcl>1) {
 $sflist = $sflist.", ".$sfurl; }
 $gltf[$apcl] = $SubsForumID; ++$apcl; }
 ++$apci; }
-@mysql_free_result($apcresult); } }
+mysql_free_result($apcresult); } }
 if(isset($PermissionInfo['CanViewForum'][$ForumID])&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;";
@@ -189,7 +189,7 @@ $NewUpdateTime=mysql_result($gltforesult,0,"LastUpdate");
 if($NewUpdateTime>$OldUpdateTime) { 
        $UseThisFonum = $gltf[$glti]; 
 $OldUpdateTime = $NewUpdateTime; } }
-@mysql_free_result($gltforesult);
+mysql_free_result($gltforesult);
 ++$glti; } }
 if ($ForumType!="subforum"&&$ForumType!="redirect") { $UseThisFonum = $gltf[0]; }
 if ($ForumType!="redirect") {
@@ -217,7 +217,7 @@ $UsersID=mysql_result($glrresult,0,"UserID");
 $GuestsName=mysql_result($glrresult,0,"GuestName");
 $TimeStamp=mysql_result($glrresult,0,"TimeStamp");
 $TimeStamp=GMTimeChange("F j Y, g:i a",$TimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
-@mysql_free_result($glrresult); }
+mysql_free_result($glrresult); }
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']);
 if($PreUsersName['Name']===null) { $UsersID = -1;
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']); }
@@ -239,7 +239,7 @@ if(($UsersID<-1&&$UsersHidden=="yes")||$UsersID==0||($UsersID>0&&$UsersHidden=="
        $UserPre = "Hidden:"; }
 $LastTopic = $TimeStamp."<br />\nTopic: <a href=\"".url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
 if($LastTopic==null) { $LastTopic = "&nbsp;<br />&nbsp;<br />&nbsp;"; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
 if ($ForumType=="redirect") { $LastTopic="&nbsp;<br />Redirects: ".$NumRedirects."<br />&nbsp;"; }
 $PreForum = $ThemeSet['ForumIcon'];
 if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
@@ -259,14 +259,14 @@ $ExStr = ""; if ($ForumType!="redirect"&&
 <td class="TableColumn3" style="text-align: center;"><?php echo $NumPosts; ?></td>
 <td class="TableColumn3"><?php echo $LastTopic; ?></td>
 </tr>
-<?php } ++$i; } @mysql_free_result($result);
+<?php } ++$i; } mysql_free_result($result);
 ?>
 <tr id="CatEnd<?php echo $CategoryID; ?>" class="TableRow4">
 <td class="TableColumn4" colspan="5">&nbsp;</td>
 </tr>
 </table></div>
 <div class="DivSubForums">&nbsp;</div>
-<?php } @mysql_free_result($preresult);
+<?php } mysql_free_result($preresult);
 $ForumCheck = "skip";
 if($CanHaveTopics!="yes") { 
        $ForumName = $SForumName; }
index f6b9dfb..da2ada6 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: topics.php - Last Update: 11/15/2009 SVN 349 - Author: cooldude2k $
+    $FileInfo: topics.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="topics.php"||$File3Name=="/topics.php") {
@@ -23,9 +23,9 @@ if(!is_numeric($_GET['page'])) { $_GET['page'] = 1; }
 $prequery = query("SELECT * FROM `".$Settings['sqltable']."forums` WHERE `id`=%i LIMIT 1", array($_GET['id']));
 $preresult=exec_query($prequery);
 $prenum=mysql_num_rows($preresult);
-if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); @mysql_free_result($preresult);
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+if($prenum==0) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); mysql_free_result($preresult);
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($prenum>=1) {
 $ForumID=mysql_result($preresult,0,"id");
 $ForumCatID=mysql_result($preresult,0,"CategoryID");
@@ -46,7 +46,7 @@ if(!is_numeric($Settings['hot_topic_num'])) {
        $Settings['hot_topic_num'] = 15; }
 $ForumPostCountView=mysql_result($preresult,0,"PostCountView");
 $ForumKarmaCountView=mysql_result($preresult,0,"KarmaCountView");
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
 $ForumType = strtolower($ForumType); $CanHaveTopics = strtolower($CanHaveTopics);
 if($CanHaveTopics=="yes"&&$ForumType=="subforum") { 
 if($_GET['act']=="create"||$_GET['act']=="maketopic"||
@@ -57,7 +57,7 @@ $CategoryName=mysql_result($catresult,0,"Name");
 $CategoryType=mysql_result($catresult,0,"CategoryType");
 $CategoryPostCountView=mysql_result($catresult,0,"PostCountView");
 $CategoryKarmaCountView=mysql_result($catresult,0,"KarmaCountView");
-@mysql_free_result($catresult);
+mysql_free_result($catresult);
 if($GroupInfo['HasAdminCP']!="yes"||$GroupInfo['HasModCP']!="yes") {
 if($MyPostCountChk==null) { $MyPostCountChk = 0; }
 if($MyKarmaCount==null) { $MyKarmaCount = 0; }
@@ -81,7 +81,7 @@ $isfForumType=mysql_result($isfresult,0,"ForumType");
 $isfForumType = strtolower($isfForumType);
 $isfRedirectURL=mysql_result($isfresult,0,"RedirectURL"); }
 if($isfnum<1) { $InSubForum = "0"; } 
-@mysql_free_result($isfresult); }
+mysql_free_result($isfresult); }
 if($ForumCheck!="skip") {
 $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$ForumID."&page=".$_GET['page'],"&","=",$prexqstr[$ForumType],$exqstr[$ForumType]);
 if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") {
@@ -99,15 +99,15 @@ if(!isset($CatPermissionInfo['CanViewCategory'][$ForumCatID])) {
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="no"||
        $CatPermissionInfo['CanViewCategory'][$ForumCatID]!="yes") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($CatPermissionInfo['CanViewCategory'][$ForumCatID]=="yes"&&
        $PermissionInfo['CanViewForum'][$ForumID]=="yes") {
 if($ForumType!="redirect") {
@@ -122,17 +122,17 @@ $redirup = query("UPDATE `".$Settings['sqltable']."forums` SET `Redirects`=%i WH
 exec_query($redirup);
 if($RedirectURL!="http://"&&$RedirectURL!="") {
 redirect("location",$RedirectURL,0,null,false); ob_clean();
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($RedirectURL=="http://"||$RedirectURL=="") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($ForumCheck!="skip") {
 if($ForumType=="subforum") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); } }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); } }
 if($_GET['act']!="view") { ?>
 <table style="width: 100%;" class="Table2">
 <tr>
@@ -350,13 +350,13 @@ $reresult=exec_query($requery);
 $renum=mysql_num_rows($reresult); }
 $UserHidden=mysql_result($reresult,0,"HiddenMember");
 $UserGroupID=mysql_result($reresult,0,"GroupID");
-@mysql_free_result($reresult);
+mysql_free_result($reresult);
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($UserGroupID));
 $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
 $GroupNamePrefix=mysql_result($gresult,0,"NamePrefix");
 $GroupNameSuffix=mysql_result($gresult,0,"NameSuffix");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']);
 if($PreUsersName['Name']===null) { $UsersID = -1;
 $PreUsersName = GetUserName($UsersID,$Settings['sqltable']); }
@@ -406,7 +406,7 @@ if(($UsersID1<-1&&$UsersHidden1=="yes")||$UsersID1==0||($UsersID1>0&&$UsersHidde
 $lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID1,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']);
 $luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."&page=".$NumPages,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']).$qstrhtml."&#35;reply".$NumRPosts;
 $LastReply = "<a href=\"".$luln."\">".$TimeStamp1."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName1."</span>"; } }
-@mysql_free_result($glrresult);
+mysql_free_result($glrresult);
 if(!isset($TimeStamp1)) { $TimeStamp1 = null; } if(!isset($LastReply)) { $LastReply = "&nbsp;<br />&nbsp;"; }
 if($TimeStamp1==null) { $LastReply = "&nbsp;<br />&nbsp;"; }
 $PreTopic = $ThemeSet['TopicIcon'];
@@ -464,10 +464,10 @@ echo "<span>".$UsersName."</span>"; }
 </table></div>
 <div class="DivTopics">&nbsp;</div>
 <?php
-@mysql_free_result($result); }
+mysql_free_result($result); }
 if((GMTimeStamp()<$_SESSION['LastPostTime']&&$_SESSION['LastPostTime']!=0)&&($_GET['act']=="create"||$_GET['act']=="maketopic")) { 
 $_GET['act'] = "view"; $_POST['act'] = null; 
-@redirect("refresh",$basedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=view&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE),"3"); ?>
+redirect("refresh",$basedir.url_maker($exfile['forum'],$Settings['file_ext'],"act=view&id=".$ForumID."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum'],FALSE),"3"); ?>
 <div class="Table1Border">
 <?php if($ThemeSet['TableStyle']=="div") { ?>
 <div class="TableRow1">
@@ -511,8 +511,8 @@ redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"a
 if($CategoryKarmaCountView!=0&&$MyKarmaCount<$CategoryKarmaCountView) {
 redirect("location",$basedir.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",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $UFID = uuid(false,true,false,$Settings['use_hashtype'],null);
 $_SESSION['UserFormID'] = $UFID;
 ?>
@@ -558,7 +558,7 @@ if($SmileCRow<5&&$SmileCRow!=0) {
 $SmileCRowL = 5 - $SmileCRow;
 echo "<td colspan=\"".$SmileCRowL."\">&nbsp;</td></tr>"; }
 echo "</table>";
-@mysql_free_result($renee_result);
+mysql_free_result($renee_result);
 ?></div></td>
 <td class="TableColumn3" style="width: 85%;">
 <form style="display: inline;" method="post" id="MkTopicForm" action="<?php echo url_maker($exfile['forum'],$Settings['file_ext'],"act=maketopic&id=".$ForumID,$Settings['qstr'],$Settings['qsep'],$prexqstr['forum'],$exqstr['forum']); ?>">
@@ -602,8 +602,8 @@ echo "</table>";
 <div class="DivMkTopics">&nbsp;</div>
 <?php } if($_GET['act']=="maketopic"&&$_POST['act']=="maketopics") {
 if($PermissionInfo['CanMakeTopics'][$ForumID]=="no"||$CanHaveTopics=="no") { redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+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']);
 $URL['REFERER'] = $REFERERurl['host'];
@@ -681,20 +681,20 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
 <?php } }
 $_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['TopicName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicName']);
-$_POST['TopicName'] = @remove_spaces($_POST['TopicName']);
+$_POST['TopicName'] = remove_spaces($_POST['TopicName']);
 $_POST['TopicDesc'] = stripcslashes(htmlspecialchars($_POST['TopicDesc'], ENT_QUOTES, $Settings['charset']));
 //$_POST['TopicDesc'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicDesc']);
-$_POST['TopicDesc'] = @remove_spaces($_POST['TopicDesc']);
+$_POST['TopicDesc'] = remove_spaces($_POST['TopicDesc']);
 $_POST['GuestName'] = stripcslashes(htmlspecialchars($_POST['GuestName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['GuestName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['GuestName']);
-$_POST['GuestName'] = @remove_spaces($_POST['GuestName']);
+$_POST['GuestName'] = remove_spaces($_POST['GuestName']);
 $_POST['TopicPost'] = stripcslashes(htmlspecialchars($_POST['TopicPost'], ENT_QUOTES, $Settings['charset']));
 //$_POST['TopicPost'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicPost']);
 $_POST['TopicPost'] = remove_bad_entities($_POST['TopicPost']);
-//$_POST['TopicPost'] = @remove_spaces($_POST['TopicPost']);
+//$_POST['TopicPost'] = remove_spaces($_POST['TopicPost']);
 if($_SESSION['UserGroup']==$Settings['GuestGroup']) {
 if(isset($_POST['GuestName'])&&$_POST['GuestName']!=null) {
-@setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
+setcookie("GuestName", $_POST['GuestName'], time() + (7 * 86400), $cbasedir);
 $_SESSION['GuestName']=$_POST['GuestName']; } }
 /*    <_<  iWordFilter  >_>      
    by Kazuki Przyborowski - Cool Dude 2k */
@@ -726,7 +726,7 @@ $_POST['TopicPost'] = preg_replace("/".$Filter."/", $Replace, $_POST['TopicPost'
 if($CaseInsensitive=="yes"&&$WholeWord!="yes") {
 $_POST['TopicDesc'] = preg_replace("/".$Filter."/i", $Replace, $_POST['TopicDesc']); 
 $_POST['TopicPost'] = preg_replace("/".$Filter."/i", $Replace, $_POST['TopicPost']); }
-++$katarzynas; } @mysql_free_result($katarzynart);
+++$katarzynas; } mysql_free_result($katarzynart);
 $lonewolfqy=query("SELECT * FROM `".$Settings['sqltable']."restrictedwords` WHERE `RestrictedTopicName`='yes' or `RestrictedUserName`='yes'", array(null));
 $lonewolfrt=exec_query($lonewolfqy);
 $lonewolfnm=mysql_num_rows($lonewolfrt);
@@ -778,7 +778,7 @@ $RMatches = preg_match("/".$RWord."/i", $_POST['TopicName']);
 if($RestrictedUserName=="yes") {
 $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']);
        if($RGMatches==true) { break 1; } } }
-++$lonewolfs; } @mysql_free_result($lonewolfrt);
+++$lonewolfs; } mysql_free_result($lonewolfrt);
 if ($_POST['TopicName']==null) { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
@@ -824,7 +824,7 @@ if ($_POST['TopicName']==null) { $Error="Yes"; ?>
        </span>&nbsp;</td>
 </tr>
 <?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
+redirect("refresh",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false),"4"); ?>
 <tr>
        <td><span class="TableMessage">
        <br />Click <a href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>">here</a> to goto index page.<br />&nbsp;
@@ -850,9 +850,9 @@ if(!isset($NewPostCount)) { $NewPostCount = $PostCount; }
 $gquery = query("SELECT * FROM `".$Settings['sqltable']."groups` WHERE `id`=%i LIMIT 1", array($User1GroupID));
 $gresult=exec_query($gquery);
 $User1Group=mysql_result($gresult,0,"Name");
-@mysql_free_result($gresult);
+mysql_free_result($gresult);
 $User1IP=$_SERVER['REMOTE_ADDR'];
-++$rei; } @mysql_free_result($reresult);
+++$rei; } mysql_free_result($reresult);
 $query = query("INSERT INTO `".$Settings['sqltable']."topics` (`ForumID`, `CategoryID`, `OldForumID`, `OldCategoryID`, `UserID`, `GuestName`, `TimeStamp`, `LastUpdate`, `TopicName`, `Description`, `NumReply`, `NumViews`, `Pinned`, `Closed`) VALUES\n".
 "(%i, %i, %i, %i, %i, '%s', %i, %i, '%s', '%s', 0, 0, 0, 0)", array($ForumID,$ForumCatID,$ForumID,$ForumCatID,$User1ID,$User1Name,$LastActive,$LastActive,$_POST['TopicName'],$_POST['TopicDesc']));
 exec_query($query);
@@ -867,7 +867,7 @@ exec_query($queryupd); }
 $NewNumPosts = $NumberPosts + 1; $NewNumTopics = $NumberTopics + 1;
 $queryupd = query("UPDATE `".$Settings['sqltable']."forums` SET `NumPosts`=%i,`NumTopics`=%i WHERE `id`=%i", array($NewNumPosts,$NewNumTopics,$ForumID));
 exec_query($queryupd);
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$topicid."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3");
+redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$topicid."&page=1",$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE),"3");
 ?><tr>
        <td><span class="TableMessage"><br />
        Topic <?php echo $_POST['TopicName']; ?> was started.<br />
index 983ed6c..f9419fe 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 11/22/2009 SVN 356 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 11/23/2009 SVN 357 - 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] = 3; $VER1[2] = 2; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 356; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 11; $SVNDay[1] = 22; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 357; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 11; $SVNDay[1] = 23; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
 $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false);
 $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true);
 $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false);
@@ -47,15 +47,15 @@ $PHPQA = "PHP-Quick-Arcade|http://quickarcade.jcink.com/"; $TFBB = "TextFileBB|h
 $PHPQA = explode("|",$PHPQA); $TFBB = explode("|",$TFBB);
 $PHPQA = "<a href=\"".$PHPQA[1]."\" title=\"".$PHPQA[0]."\" onclick=\"window.open(this.href);return false;\">".$PHPQA[0]."</a>";
 $TFBB = "<a href=\"".$TFBB[1]."\" title=\"".$TFBB[0]."\" onclick=\"window.open(this.href);return false;\">".$TFBB[0]."</a>";
-$PHPV1 = @phpversion(); $PHPV2 = "PHP ".$PHPV1; $OSType = PHP_OS; // Check OS Name
+$PHPV1 = phpversion(); $PHPV2 = "PHP ".$PHPV1; $OSType = PHP_OS; // Check OS Name
 if($OSType=="WINNT") { $OSType="Windows NT"; } if($OSType=="WIN32") { $OSType="Windows 9x"; }
-$OSType2 = $PHPV2." / ".$OSType; $ZENDV1 = @zend_version(); $ZENDV2 = "Zend engine ".$ZENDV1;
+$OSType2 = $PHPV2." / ".$OSType; $ZENDV1 = zend_version(); $ZENDV2 = "Zend engine ".$ZENDV1;
 // Show or hide the version number
 if($Settings['showverinfo']=="on") {
-//@header("X-".$RName."-Powered-By: ".$VerInfo['iDB_Ver_Show']);
-@header("Generator: ".$VerInfo['iDB_Ver_Show']); }
+//header("X-".$RName."-Powered-By: ".$VerInfo['iDB_Ver_Show']);
+header("Generator: ".$VerInfo['iDB_Ver_Show']); }
 if($Settings['showverinfo']!="on") {
-//@header("X-".$RName."-Powered-By: ".$RName);
-//@header("X-Powered-By: PHP");
-@header("Generator: ".$RName); }
+//header("X-".$RName."-Powered-By: ".$RName);
+//header("X-Powered-By: PHP");
+header("Generator: ".$RName); }
 ?>
index 1629882..42c8b44 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: xhtml10.php - Last Update: 11/22/2009 SVN 355 - Author: cooldude2k $
+    $FileInfo: xhtml10.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
@@ -22,22 +22,22 @@ if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
 // can dispay if or else fallback to html
 if($Settings['output_type']=="html") {
        $ccstart = "//<!--"; $ccend = "//-->";
-@header("Content-Type: text/html; charset=".$Settings['charset']); }
+header("Content-Type: text/html; charset=".$Settings['charset']); }
 if($Settings['output_type']=="xhtml") {
 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
        $ccstart = "//<![CDATA["; $ccend = "//]]>";
-       @header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
+       header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
        xml_doc_start("1.0",$Settings['charset']); }
 else { if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
        $ccstart = "//<![CDATA["; $ccend = "//]]>";
-   @header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
+   header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
        xml_doc_start("1.0",$Settings['charset']);
 } else { $ccstart = "//<!--"; $ccend = "//-->";
-       @header("Content-Type: text/html; charset=".$Settings['charset']); } } }
+       header("Content-Type: text/html; charset=".$Settings['charset']); } } }
 if($Settings['output_type']!="xhtml") {
        if($Settings['output_type']!="html") {
                $ccstart = "//<!--"; $ccend = "//-->";
-@header("Content-Type: text/html; charset=".$Settings['charset']); } }
+header("Content-Type: text/html; charset=".$Settings['charset']); } }
 if($checklowview===true&&$_GET['act']=="lowview") { 
    $ThemeSet['CSSType'] = "lowview"; 
    $ThemeSet['ThemeName'] = $OrgName." Low Theme";
@@ -61,8 +61,8 @@ if($ThemeSet['CSSType']!="import"&&
    $ThemeSet['CSSType'] = "import"; }
 if($ThemeSet['CSSType']=="xhtml") {
    xml_tag_make("xml-stylesheet","type=text/css&href=".$ThemeSet['CSS']); }
-@header("Content-Style-Type: text/css");
-@header("Content-Script-Type: text/javascript");
+header("Content-Style-Type: text/css");
+header("Content-Script-Type: text/javascript");
 if($Settings['showverinfo']!="on") {
 $iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">"; }
 if($Settings['showverinfo']=="on") {
@@ -77,8 +77,8 @@ if($checklowview!==true) { $extext = "<a href=\"".url_maker($exfile['index'],$Se
 if($checklowview===true&&$_GET['act']!="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
 if($checklowview===true&&$_GET['act']=="lowview") {  $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Hi-Version</a>"; }
 $endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight']." | ".$extext; 
-@header("Content-Language: en");
-@header("Vary: Accept-Encoding");
+header("Content-Language: en");
+header("Vary: Accept-Encoding");
 // Check if we are on a secure HTTP connection
 if($_SERVER['HTTPS']=="on") { $prehost = "https://"; }
 if($_SERVER['HTTPS']!="on") { $prehost = "http://"; }
index a0c0448..a30514a 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: xhtml11.php - Last Update: 11/22/2009 SVN 355 - Author: cooldude2k $
+    $FileInfo: xhtml11.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="xhtml11.php"||$File3Name=="/xhtml11.php") {
@@ -24,22 +24,22 @@ if($Settings['output_type']!="xhtml") {
        $Settings['output_type'] = "xhtml"; }
 if($Settings['output_type']=="html") {
        $ccstart = "//<!--"; $ccend = "//-->";
-@header("Content-Type: text/html; charset=".$Settings['charset']); }
+header("Content-Type: text/html; charset=".$Settings['charset']); }
 if($Settings['output_type']=="xhtml") {
 if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
        $ccstart = "//<![CDATA["; $ccend = "//]]>";
-@header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
+header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
        xml_doc_start("1.0",$Settings['charset']); }
 else { if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
        $ccstart = "//<![CDATA["; $ccend = "//]]>";
-   @header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
+   header("Content-Type: application/xhtml+xml; charset=".$Settings['charset']);
        xml_doc_start("1.0",$Settings['charset']);
 } else { $ccstart = "//<!--"; $ccend = "//-->";
-       @header("Content-Type: text/html; charset=".$Settings['charset']); } } }
+       header("Content-Type: text/html; charset=".$Settings['charset']); } } }
 if($Settings['output_type']!="xhtml") {
        if($Settings['output_type']!="html") {
                $ccstart = "//<!--"; $ccend = "//-->";
-@header("Content-Type: text/html; charset=".$Settings['charset']); } }
+header("Content-Type: text/html; charset=".$Settings['charset']); } }
 if($checklowview===true) { $ThemeSet['CSSType'] = "lowview"; }
 if($checklowview===true&&$_GET['act']=="lowview") { 
    $ThemeSet['CSSType'] = "lowview"; 
@@ -64,8 +64,8 @@ if($ThemeSet['CSSType']!="import"&&
    $ThemeSet['CSSType'] = "import"; }
 if($ThemeSet['CSSType']=="xhtml") {
    xml_tag_make("xml-stylesheet","type=text/css&href=".$ThemeSet['CSS']); }
-@header("Content-Style-Type: text/css");
-@header("Content-Script-Type: text/javascript");
+header("Content-Style-Type: text/css");
+header("Content-Script-Type: text/javascript");
 if($Settings['showverinfo']!="on") {
 $iDBURL1 = "<a href=\"".$iDBHome."\" title=\"".$iDB."\" onclick=\"window.open(this.href);return false;\">"; }
 if($Settings['showverinfo']=="on") {
@@ -80,8 +80,8 @@ if($checklowview!==true) { $extext = "<a href=\"".url_maker($exfile['index'],$Se
 if($checklowview===true&&$_GET['act']!="lowview") { $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=lowview",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Low-Version</a>"; }
 if($checklowview===true&&$_GET['act']=="lowview") {  $extext = "<a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\">Hi-Version</a>"; }
 $endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> &copy; ".$GM2kURL." @ ".$csryear." - ".$cryear." <br />\n".$ThemeSet['CopyRight']." | ".$extext; 
-@header("Content-Language: en");
-@header("Vary: Accept-Encoding");
+header("Content-Language: en");
+header("Vary: Accept-Encoding");
 // Check if we are on a secure HTTP connection
 if($_SERVER['HTTPS']=="on") { $prehost = "https://"; }
 if($_SERVER['HTTPS']!="on") { $prehost = "http://"; }
index c241a96..88c18a1 100644 (file)
--- a/index.php
+++ b/index.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: index.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
index e701c91..28fb3b0 100644 (file)
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.de/support/category.php?act=view&id=2
 
-    $FileInfo: install.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: install.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
-@error_reporting(E_ALL ^ E_NOTICE);
-if(@ini_get("register_globals")) { 
+error_reporting(E_ALL ^ E_NOTICE);
+if(ini_get("register_globals")) { 
        if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
        require_once($SettDir['misc'].'killglobals.php'); }
 if(!isset($preact['idb'])) { $preact['idb'] = null; }
index 55a8d45..4023968 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: member.php - Last Update: 8/5/2009 SVN 291 - Author: cooldude2k $
+    $FileInfo: member.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
index edd89b9..464bf14 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: messenger.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: messenger.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
@@ -27,8 +27,8 @@ $filewpath = $exfile['messenger'].$usefileext.$_SERVER['PATH_INFO'];
 <?php require($SettDir['inc'].'navbar.php');
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanPM']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 ?>
 
 <?php 
index 37e5bed..ab77ecb 100644 (file)
--- a/mysql.php
+++ b/mysql.php
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: mysql.php - Last Update: 11/14/2009 SVN 347 - Author: cooldude2k $
+    $FileInfo: mysql.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 /* Some ini setting changes uncomment if you need them. 
    Display PHP Errors */
-//@ini_set("display_errors", true); 
-//@ini_set("display_startup_errors", true);
-@error_reporting(E_ALL ^ E_NOTICE);
+//ini_set("display_errors", true); 
+//ini_set("display_startup_errors", true);
+error_reporting(E_ALL ^ E_NOTICE);
 /* Get rid of session id in urls */
-//@ini_set("session.use_trans_sid", false);
-//@ini_set("session.use_cookies", true);
-//@ini_set("session.use_only_cookies", true);
-//@ini_set("url_rewriter.tags","");
-@set_time_limit(30); @ignore_user_abort(true);
+//ini_set("session.use_trans_sid", false);
+//ini_set("session.use_cookies", true);
+//ini_set("session.use_only_cookies", true);
+//ini_set("url_rewriter.tags","");
+set_time_limit(30); ignore_user_abort(true);
 /* Change session garbage collection settings */
-//@ini_set("session.gc_probability", 1);
-//@ini_set("session.gc_divisor", 100);
-//@ini_set("session.gc_maxlifetime", 1440);
+//ini_set("session.gc_probability", 1);
+//ini_set("session.gc_divisor", 100);
+//ini_set("session.gc_maxlifetime", 1440);
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mysql.php"||$File3Name=="/mysql.php") {
-       @header('Location: index.php');
+       header('Location: index.php');
        exit(); }
 require('settings.php');
 $Settings['bid'] = base64_encode(urlencode($Settings['idburl']));
@@ -43,7 +43,7 @@ if($Settings['fixbasedir']=="off") {
 if($Settings['fixcookiedir']=="off") {
        $Settings['fixcookiedir'] = null; }
 if($Settings['idburl']=="localhost") { 
-@header("Content-Type: text/plain; charset=UTF-8");
+header("Content-Type: text/plain; charset=UTF-8");
 echo "500 Error: URL is malformed. Try reinstalling iDB."; die(); }
 if($Settings['fixbasedir']=="on") {
 if($Settings['idburl']!=null&&$Settings['idburl']!="localhost") {
@@ -66,18 +66,18 @@ if($Settings['charset']!="ISO-8859-15"&&$Settings['charset']!="ISO-8859-1"&&
        $Settings['charset']!="Shift_JIS"&&$Settings['charset']!="EUC-JP") {
        $Settings['charset'] = "ISO-8859-15"; } }
        $chkcharset = $Settings['charset'];
-@ini_set('default_charset', $Settings['charset']);
-//@session_save_path($SettDir['inc']."temp/");
+ini_set('default_charset', $Settings['charset']);
+//session_save_path($SettDir['inc']."temp/");
 if(!isset($Settings['sqldb'])) { 
-if(file_exists("install.php")) { @header('Location: install.php'); die(); } 
-if(!file_exists("install.php")) { @header("Content-Type: text/plain; charset=UTF-8");
+if(file_exists("install.php")) { header('Location: install.php'); die(); } 
+if(!file_exists("install.php")) { header("Content-Type: text/plain; charset=UTF-8");
 echo "403 Error: Sorry could not find install.php\nTry uploading files again and if that dose not work try download iDB again."; die(); } }
 if(!isset($Settings['sqlhost'])) { $Settings['sqlhost'] = "localhost"; }
-@ini_set("error_prepend_string","<span style='color: ff0000;'>");
-@ini_set("error_append_string","</span>");
+ini_set("error_prepend_string","<span style='color: ff0000;'>");
+ini_set("error_append_string","</span>");
 if($Settings['fixpathinfo']=="on") {
        $_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
-       @putenv("PATH_INFO=".$_SERVER['ORIG_PATH_INFO']); }
+       putenv("PATH_INFO=".$_SERVER['ORIG_PATH_INFO']); }
 // Check to see if variables are set
 if(!isset($SettDir['inc'])) { $SettDir['inc'] = "inc/"; }
 if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
@@ -103,7 +103,7 @@ if(!isset($_POST['License'])) { $_POST['License'] = null; }
 if(!isset($_SERVER['HTTPS'])) { $_SERVER['HTTPS'] = "off"; }
 require_once($SettDir['misc'].'utf8.php');
 require_once($SettDir['inc'].'filename.php');
-if($_GET['act']=="versioninfo") { @header("Content-Type: text/plain; charset=UTF-8"); ?>
+if($_GET['act']=="versioninfo") { header("Content-Type: text/plain; charset=UTF-8"); ?>
 <charset><?php echo $Settings['charset']; ?></charset> 
 <title><?php echo $Settings['board_name']; ?></title> 
 <?php echo "<name>iDB|".$VER2[1]."|".$VER1[0].".".$VER1[1].".".$VER1[2]."|".$VER2[2]."|".$SubVerN."</name>"; die(); }
@@ -142,7 +142,7 @@ $cookieDomain = $URLsTest['host'];
 if($Settings['enable_https']=="on") {
  if($URLsTest['scheme']=="https") { $cookieSecure = true; }
  if($URLsTest['scheme']!="https") { $cookieSecure = false; } } }
-@ini_set("default_charset",$Settings['charset']);
+ini_set("default_charset",$Settings['charset']);
 $File1Name = dirname($_SERVER['SCRIPT_NAME'])."/";
 $File2Name = $_SERVER['SCRIPT_NAME'];
 $File3Name=str_replace($File1Name, null, $File2Name);
@@ -170,18 +170,18 @@ if($Settings['clean_ob']=="on") {
    and close and get the contents in an array */
 $numob = count(ob_list_handlers()); $iob = 0; 
 while ($iob < $numob) { 
-       $old_ob_var[$iob] = @ob_get_clean(); 
-       ++$iob; } } @ob_start();
+       $old_ob_var[$iob] = ob_get_clean(); 
+       ++$iob; } } ob_start();
 if($Settings['use_gzip']=="on") { 
 if($GZipEncode['Type']!="gzip") { if($GZipEncode['Type']!="deflate") { $GZipEncode['Type'] = "gzip"; } }
        if($GZipEncode['Type']=="gzip") {
-       @header("Content-Encoding: gzip"); }
+       header("Content-Encoding: gzip"); }
        if($GZipEncode['Type']=="deflate") {
-       @header("Content-Encoding: deflate"); } }
+       header("Content-Encoding: deflate"); } }
 /* if(eregi("msie",$browser) && !eregi("opera",$browser)){
-@header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); } */
+header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); } */
 // Some http stuff
-$SQLStat = @ConnectMysql($Settings['sqlhost'],$Settings['sqluser'],$Settings['sqlpass'],$Settings['sqldb']);
+$SQLStat = ConnectMysql($Settings['sqlhost'],$Settings['sqluser'],$Settings['sqlpass'],$Settings['sqldb']);
 $SQLCollate = "latin1_general_ci";
 $SQLCharset = "latin1"; 
 if($Settings['charset']=="ISO-8859-1") {
@@ -193,12 +193,12 @@ if($Settings['charset']=="ISO-8859-15") {
 if($Settings['charset']=="UTF-8") {
        $SQLCollate = "utf8_unicode_ci";
        $SQLCharset = "utf8"; }
-@mysql_set_charset($SQLCharset);
+mysql_set_charset($SQLCharset);
 if($SQLStat===false) {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); @mysql_free_result($peresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); mysql_free_result($peresult);
 ob_clean(); echo "Sorry could not connect to mysql database.\nContact the board admin about error. Error log below.";
 echo "\n".mysql_errno().": ".mysql_error();
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $sqltable = $Settings['sqltable'];
 function sqlsession_open( $save_path, $session_name ) {
 global $sess_save_path;
@@ -235,45 +235,45 @@ $time = GMTimeStamp() - $maxlifetime;
 $sqlg = query('DELETE FROM `'.$sqltable.'sessions` WHERE `expires` < %i', array($time));
 exec_query($sqlg);
 return true; }
-@session_set_save_handler("sqlsession_open", "sqlsession_close", "sqlsession_read", "sqlsession_write", "sqlsession_destroy", "sqlsession_gc");
+session_set_save_handler("sqlsession_open", "sqlsession_close", "sqlsession_read", "sqlsession_write", "sqlsession_destroy", "sqlsession_gc");
 if($cookieDomain==null) {
-@session_set_cookie_params(0, $cbasedir); }
+session_set_cookie_params(0, $cbasedir); }
 if($cookieDomain!=null) {
 if($cookieSecure===true) {
-@session_set_cookie_params(0, $cbasedir, $cookieDomain, 1); }
+session_set_cookie_params(0, $cbasedir, $cookieDomain, 1); }
 if($cookieSecure===false) {
-@session_set_cookie_params(0, $cbasedir, $cookieDomain); } }
-@session_cache_limiter("private, no-cache, must-revalidate");
-@header("Cache-Control: private, no-cache, must-revalidate");
-@header("Pragma: private, no-cache, must-revalidate");
-@header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
-@session_name($Settings['sqltable']."sess");
-@session_start();
-//@header("Set-Cookie: PHPSESSID=" . session_id() . "; path=".$cbasedir);
-@output_reset_rewrite_vars();
+session_set_cookie_params(0, $cbasedir, $cookieDomain); } }
+session_cache_limiter("private, no-cache, must-revalidate");
+header("Cache-Control: private, no-cache, must-revalidate");
+header("Pragma: private, no-cache, must-revalidate");
+header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
+session_name($Settings['sqltable']."sess");
+session_start();
+//header("Set-Cookie: PHPSESSID=" . session_id() . "; path=".$cbasedir);
+output_reset_rewrite_vars();
 if($_GET['act']=="bsdl"||$_GET['act']=="BSDL"||$_GET['act']=="license"||
        $_GET['act']=="LICENSE"||$_GET['act']=="License") { $_GET['act']="bsd"; }
 if($_GET['act']=="bsd") {
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
+header("Content-Type: text/plain; charset=".$Settings['charset']);
 require("LICENSE"); gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); }
 if($_GET['act']=="README"||$_GET['act']=="ReadME") { $_GET['act']="readme"; }
 if($_GET['act']=="readme"||$_GET['act']=="ReadMe") {
-@header("Content-Type: text/plain; charset=".$Settings['charset']);
+header("Content-Type: text/plain; charset=".$Settings['charset']);
 require("README"); gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); }
 if($_GET['act']=="js"||$_GET['act']=="javascript") {
-@header("Content-Script-Type: text/javascript");
+header("Content-Script-Type: text/javascript");
 if(stristr($_SERVER["HTTP_ACCEPT"],"application/x-javascript") ) {
-@header("Content-Type: application/x-javascript; charset=".$Settings['charset']); } else {
+header("Content-Type: application/x-javascript; charset=".$Settings['charset']); } else {
 if(stristr($_SERVER["HTTP_ACCEPT"],"application/javascript") ) {
-@header("Content-Type: application/javascript; charset=".$Settings['charset']); } else {
-@header("Content-Type: text/javascript; charset=".$Settings['charset']); } }
+header("Content-Type: application/javascript; charset=".$Settings['charset']); } else {
+header("Content-Type: text/javascript; charset=".$Settings['charset']); } }
 require($SettDir['inc'].'javascript.php');
 gzip_page($Settings['use_gzip'],$GZipEncode['Type']); die(); }
 if($Settings['use_captcha']=="on") {
 if($_GET['act']=="MkCaptcha"||$_GET['act']=="Captcha") {
-       if($Settings['captcha_clean']=="on") { @ob_clean(); }
+       if($Settings['captcha_clean']=="on") { ob_clean(); }
        require($SettDir['inc']."captcha.php");
        $aFonts = array('inc/fonts/VeraBd.ttf', 'inc/fonts/VeraBI.ttf', 'inc/fonts/VeraIt.ttf', 'inc/fonts/Vera.ttf');
        $oPhpCaptcha = new PhpCaptcha($aFonts, 200, 60);
@@ -283,18 +283,18 @@ if($_GET['act']=="MkCaptcha"||$_GET['act']=="Captcha") {
        $RandNum=strtoupper($RandNum);
        $oPhpCaptcha->SetOwnerText("Fake Code: ".$RandNum);
        $oPhpCaptcha->UseColour(true);
-       $oPhpCaptcha->Create(); @session_write_close(); die(); } }
+       $oPhpCaptcha->Create(); session_write_close(); die(); } }
 if(!isset($_SESSION['CheckCookie'])) {
 if(isset($_COOKIE['SessPass'])&&isset($_COOKIE['MemberName'])) {
 require($SettDir['inc'].'prelogin.php'); } }
 require($SettDir['inc'].'groupsetup.php');
 if($Settings['board_offline']=="on"&&$GroupInfo['CanViewOffLine']!="yes") {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); @mysql_free_result($peresult);
+header("Content-Type: text/plain; charset=".$Settings['charset']); mysql_free_result($peresult);
 ob_clean(); if(!isset($Settings['offline_text'])) {
 echo "Sorry the board is off line.\nIf you are a admin you can login by the admin cp."; }
 if(isset($Settings['offline_text'])) { echo $Settings['offline_text']; }
 //echo "\n".mysql_errno().": ".mysql_error();
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 $dayconv = array('second' => 1, 'minute' => 60, 'hour' => 3600, 'day' => 86400, 'week' => 604800, 'month' => 2630880, 'year' => 31570560, 'decade' => 15705600);
 //Time Zone Set
 if(!isset($_SESSION['UserTimeZone'])) { 
@@ -394,5 +394,5 @@ if($_SESSION['DBName']==null) {
        $_SESSION['DBName'] = $Settings['sqldb']; }
 if($_SESSION['DBName']!=null) {
        if($_SESSION['DBName']!=$Settings['sqldb']) {
-@redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=logout",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); } }
+redirect("location",$basedir.url_maker($exfile['member'],$Settings['file_ext'],"act=logout",$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member'],false)); } }
 ?>
index b30a2bc..fb1c203 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: preindex.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: preindex.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $pretime = explode(" ", microtime());
 $utime = $pretime[0];
@@ -19,7 +19,7 @@ $time = $pretime[1];
 $starttime = $utime + $time;
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="preindex.php"||$File3Name=="/preindex.php") {
-       @header('Location: index.php');
+       header('Location: index.php');
        exit(); }
 require('mysql.php');
 if($_GET['act']=="sqldumper"&&$_SESSION['UserGroup']!=$Settings['GuestGroup']&&
index df0e27b..c85273e 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: profile.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: profile.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
@@ -27,8 +27,8 @@ $filewpath = $exfile['profile'].$usefileext.$_SERVER['PATH_INFO'];
 <?php require($SettDir['inc'].'navbar.php');
 if($_SESSION['UserGroup']==$Settings['GuestGroup']||$GroupInfo['CanEditProfile']=="no") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_SESSION['UserGroup']!=$Settings['GuestGroup']||
        $GroupInfo['CanEditProfile']=="yes") {
 if($_GET['act']==null||$_GET['act']=="notepad")
diff --git a/rss.php b/rss.php
index 609e891..7a0c1f9 100644 (file)
--- a/rss.php
+++ b/rss.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: rss.php - Last Update: 11/06/2009 SVN 332 - Author: cooldude2k $
+    $FileInfo: rss.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $pretime = explode(" ", microtime());
 $utime = $pretime[0];
@@ -21,13 +21,13 @@ $time = $pretime[1];
 $starttime = $utime + $time;
 require_once('mysql.php');
 /*if($Settings['enable_search']=="off"||$GroupInfo['CanSearch']=="no") {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 ob_clean(); echo "Sorry you can not search on this board."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }*/
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }*/
 if($Settings['enable_rss']=="off") {
-@header("Content-Type: text/plain; charset=".$Settings['charset']); 
+header("Content-Type: text/plain; charset=".$Settings['charset']); 
 ob_clean(); echo "Sorry RSS Feeds are not enabled for this board."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($_GET['act']==null) { $_GET['act'] = "rss"; }
 if($_GET['act']=="rss"||$_GET['act']=="oldrss"||$_GET['act']=="atom"||$_GET['act']=="opensearch") {
        $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done";
index 790d11a..339f99d 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: search.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: search.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 require('preindex.php');
 $usefileext = $Settings['file_ext'];
@@ -29,9 +29,9 @@ $filewpath = $exfile['search'].$usefileext.$_SERVER['PATH_INFO'];
 if($Settings['enable_search']=="off"||
        $GroupInfo['CanSearch']=="no") {
 redirect("location",$basedir.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']);
+header("Content-Type: text/plain; charset=".$Settings['charset']);
 ob_clean(); echo "Sorry you do not have permission to do a search."; 
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 if($Settings['enable_search']=="on"||$GroupInfo['CanSearch']=="yes") {
 if(!isset($_GET['search'])) { $_GET['search'] = null; }
 if(!isset($_POST['search'])) { $_POST['search'] = null; }
@@ -56,8 +56,8 @@ if($_GET['act']=="topics") {
 require($SettDir['inc'].'searchs.php'); } }
 if($_GET['act']=="opensearch") {
 redirect("location",$basedir.url_maker($exfile['rss'],$Settings['file_ext'],"act=".$_GET['act'],$Settings['qstr'],$Settings['qsep'],$prexqstr['rss'],$exqstr['rss'],FALSE));
-ob_clean(); @header("Content-Type: text/plain; charset=".$Settings['charset']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 require($SettDir['inc'].'endpage.php');
 if(!isset($_GET['search'])) { $_GET['search'] = null; }
 ?>
index 1225741..4536154 100644 (file)
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: settings.php & settingsbak.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: settings.php & settingsbak.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 /*     You Need to install iDB. Run install.php        */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="settings.php"||$File3Name=="/settings.php"||
     $File3Name=="settingsbak.php"||$File3Name=="/settingsbak.php") {
-    @header('Location: index.php');
+    header('Location: index.php');
     exit(); }
 ?>
\ No newline at end of file
index 1225741..4536154 100644 (file)
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: settings.php & settingsbak.php - Last Update: 6/16/2009 SVN 264 - Author: cooldude2k $
+    $FileInfo: settings.php & settingsbak.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 /*     You Need to install iDB. Run install.php        */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="settings.php"||$File3Name=="/settings.php"||
     $File3Name=="settingsbak.php"||$File3Name=="/settingsbak.php") {
-    @header('Location: index.php');
+    header('Location: index.php');
     exit(); }
 ?>
\ No newline at end of file
index e8cbff3..7fcd68d 100644 (file)
@@ -12,7 +12,7 @@
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: mkconfig.php - Last Update: 11/14/2009 SVN 344 - Author: cooldude2k $
+    $FileInfo: mkconfig.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
@@ -35,23 +35,23 @@ $_POST['tableprefix'] = preg_replace("/[^A-Za-z0-9_$]/", "", $_POST['tableprefix
 if($_POST['tableprefix']==null||$_POST['tableprefix']=="_") { $_POST['tableprefix']="idb_"; }
 if($_POST['sessprefix']==null||$_POST['sessprefix']=="_") { $_POST['sessprefix']="idb_"; }
 $checkfile="settings.php";
-@chmod("settings.php",0766);
-@chmod("settingsbak.php",0766);
+chmod("settings.php",0766);
+chmod("settingsbak.php",0766);
 if (!is_writable($checkfile)) {
    echo "<br />Settings is not writable.";
-   @chmod("settings.php",0766); $Error="Yes";
-   @chmod("settingsbak.php",0766);
+   chmod("settings.php",0766); $Error="Yes";
+   chmod("settingsbak.php",0766);
 } else { /* settings.php is writable install iDB. ^_^ */ }
-@session_name($_POST['tableprefix']."sess");
+session_name($_POST['tableprefix']."sess");
 $URLsTest = parse_url($_POST['BoardURL']);
-@session_set_cookie_params(0, $this_dir, $URLsTest['host']);
-@session_cache_limiter("private, must-revalidate");
-@header("Cache-Control: private, must-revalidate"); // IE 6 Fix
-@header("Pragma: private, must-revalidate");
-@header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
-@session_start();
+session_set_cookie_params(0, $this_dir, $URLsTest['host']);
+session_cache_limiter("private, must-revalidate");
+header("Cache-Control: private, must-revalidate"); // IE 6 Fix
+header("Pragma: private, must-revalidate");
+header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
+session_start();
 if (pre_strlen($_POST['AdminPasswords'])<"3") { $Error="Yes";
 echo "<br />Your password is too small."; }
 if (pre_strlen($_POST['AdminUser'])<"3") { $Error="Yes";
@@ -74,13 +74,13 @@ $GSalt = salt_hmac(); $YourSalt = salt_hmac();
 /* Fix The User Info for iDB */
 $_POST['NewBoardName'] = stripcslashes(htmlspecialchars($_POST['NewBoardName'], ENT_QUOTES, $Settings['charset']));
 //$_POST['NewBoardName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['NewBoardName']);
-$_POST['NewBoardName'] = @remove_spaces($_POST['NewBoardName']);
+$_POST['NewBoardName'] = remove_spaces($_POST['NewBoardName']);
 //$_POST['AdminPassword'] = stripcslashes(htmlspecialchars($_POST['AdminPassword'], ENT_QUOTES, $Settings['charset']));
 //$_POST['AdminPassword'] = preg_replace("/\&amp;#(.*?);/is", "&#$1;", $_POST['AdminPassword']);
 $_POST['AdminUser'] = stripcslashes(htmlspecialchars($_POST['AdminUser'], ENT_QUOTES, $Settings['charset']));
 //$_POST['AdminUser'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['AdminUser']);
-$_POST['AdminUser'] = @remove_spaces($_POST['AdminUser']);
-$_POST['AdminEmail'] = @remove_spaces($_POST['AdminEmail']);
+$_POST['AdminUser'] = remove_spaces($_POST['AdminUser']);
+$_POST['AdminEmail'] = remove_spaces($_POST['AdminEmail']);
 if(!function_exists('hash')&&!function_exists('hash_algos')) {
 if($_POST['usehashtype']!="md5"&&
    $_POST['usehashtype']!="sha1"&&
@@ -107,7 +107,7 @@ if($_POST['usehashtype']=="sha512") { $iDBHashType = "iDBH512"; }
 if ($_POST['AdminUser']=="Guest") { $Error="Yes";
 echo "<br />You can not use Guest as your name."; }
 /* We are done now with fixing the info. ^_^ */
-$mydbtest = @ConnectMysql($_POST['DatabaseHost'],$_POST['DatabaseUserName'],$_POST['DatabasePassword'],$_POST['DatabaseName']);
+$mydbtest = ConnectMysql($_POST['DatabaseHost'],$_POST['DatabaseUserName'],$_POST['DatabasePassword'],$_POST['DatabaseName']);
 $SQLCollate = "latin1_general_ci";
 $SQLCharset = "latin1"; 
 if($Settings['charset']=="ISO-8859-1") {
@@ -119,7 +119,7 @@ if($Settings['charset']=="ISO-8859-15") {
 if($Settings['charset']=="UTF-8") {
        $SQLCollate = "utf8_unicode_ci";
        $SQLCharset = "utf8"; }
-@mysql_set_charset($SQLCharset);
+mysql_set_charset($SQLCharset);
 if($mydbtest!==true) { $Error="Yes";
 echo "<br />".mysql_errno().": ".mysql_error()."\n"; }
 if ($Error!="Yes") {
@@ -170,32 +170,32 @@ $iDBRSVN = $VER2[2]." ".$SubVerN;
 $LastUpdateS = "Last Update: ".$iDBRDate." ".$iDBRSVN;
 $pretext = "<?php\n/*\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation; either version 2 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    Revised BSD License for more details.\n\n    Copyright 2004-".$SVNDay[2]." iDB Support - http://idb.berlios.de/\n    Copyright 2004-".$SVNDay[2]." Game Maker 2k - http://gamemaker2k.org/\n    iDB Installer made by Game Maker 2k - http://idb.berlios.net/\n\n    \$FileInfo: settings.php & settingsbak.php - ".$LastUpdateS." - Author: cooldude2k \$\n*/\n";
 $pretext2 = array("/*   Board Setting Section Begins   */\n\$Settings = array();","/*   Board Setting Section Ends  \n     Board Info Section Begins   */\n\$SettInfo = array();","/*   Board Setting Section Ends   \n     Board Dir Section Begins   */\n\$SettDir = array();","/*   Board Dir Section Ends   */");
-$settcheck = "\$File3Name = basename(\$_SERVER['SCRIPT_NAME']);\nif (\$File3Name==\"settings.php\"||\$File3Name==\"/settings.php\"||\n    \$File3Name==\"settingsbak.php\"||\$File3Name==\"/settingsbak.php\") {\n    @header('Location: index.php');\n    exit(); }\n";
+$settcheck = "\$File3Name = basename(\$_SERVER['SCRIPT_NAME']);\nif (\$File3Name==\"settings.php\"||\$File3Name==\"/settings.php\"||\n    \$File3Name==\"settingsbak.php\"||\$File3Name==\"/settingsbak.php\") {\n    header('Location: index.php');\n    exit(); }\n";
 $BoardSettings=$pretext2[0]."\n\$Settings['sqlhost'] = '".$_POST['DatabaseHost']."';\n\$Settings['sqldb'] = '".$_POST['DatabaseName']."';\n\$Settings['sqltable'] = '".$_POST['tableprefix']."';\n\$Settings['sqluser'] = '".$_POST['DatabaseUserName']."';\n\$Settings['sqlpass'] = '".$_POST['DatabasePassword']."';\n\$Settings['board_name'] = '".$_POST['NewBoardName']."';\n\$Settings['idbdir'] = '".$idbdir."';\n\$Settings['idburl'] = '".$_POST['BoardURL']."';\n\$Settings['enable_https'] = 'off';\n\$Settings['weburl'] = '".$_POST['WebURL']."';\n\$Settings['use_gzip'] = '".$_POST['GZip']."';\n\$Settings['html_type'] = '".$_POST['HTMLType']."';\n\$Settings['html_level'] = '".$_POST['HTMLLevel']."';\n\$Settings['output_type'] = '".$_POST['OutPutType']."';\n\$Settings['GuestGroup'] = 'Guest';\n\$Settings['MemberGroup'] = 'Member';\n\$Settings['ValidateGroup'] = 'Validate';\n\$Settings['AdminValidate'] = 'off';\n\$Settings['TestReferer'] = '".$_POST['TestReferer']."';\n\$Settings['DefaultTheme'] = 'iDB';\n\$Settings['DefaultTimeZone'] = '".$AdminTime."';\n\$Settings['DefaultDST'] = '".$AdminDST."';\n\$Settings['use_hashtype'] = '".$_POST['usehashtype']."';\n\$Settings['charset'] = '".$_POST['charset']."';\n\$Settings['add_power_by'] = 'off';\n\$Settings['send_pagesize'] = 'off';\n\$Settings['max_posts'] = '10';\n\$Settings['max_topics'] = '10';\n\$Settings['max_memlist'] = '10';\n\$Settings['max_pmlist'] = '10';\n\$Settings['hot_topic_num'] = '15';\n\$Settings['qstr'] = '&';\n\$Settings['qsep'] = '=';\n\$Settings['file_ext'] = '.php';\n\$Settings['rss_ext'] = '.php';\n\$Settings['js_ext'] = '.js';\n\$Settings['showverinfo'] = 'on';\n\$Settings['enable_rss'] = 'on';\n\$Settings['enable_search'] = 'on';\n\$Settings['sessionid_in_urls'] = 'off';\n\$Settings['fixpathinfo'] = 'off';\n\$Settings['fixbasedir'] = 'off';\n\$Settings['fixcookiedir'] = 'off';\n\$Settings['enable_pathinfo'] = 'off';\n\$Settings['rssurl'] = 'off';\n\$Settings['board_offline'] = 'off';\n\$Settings['BoardUUID'] = '".$ServerUUID."';\n\$Settings['KarmaBoostDays'] = '".$KarmaBoostDay."';\n\$Settings['KBoostPercent'] = '6|10';\n".$pretext2[1]."\n\$SettInfo['board_name'] = '".$_POST['NewBoardName']."';\n\$SettInfo['Author'] = '".$_POST['AdminUser']."';\n\$SettInfo['Keywords'] = '".$_POST['NewBoardName'].",".$_POST['AdminUser']."';\n\$SettInfo['Description'] = '".$_POST['NewBoardName'].",".$_POST['AdminUser']."';\n".$pretext2[2]."\n\$SettDir['maindir'] = '".$idbdir."';\n\$SettDir['inc'] = 'inc/';\n\$SettDir['misc'] = 'inc/misc/';\n\$SettDir['admin'] = 'inc/admin/';\n\$SettDir['mod'] = 'inc/mod/';\n\$SettDir['themes'] = 'themes/';\n".$pretext2[3]."\n?>";
 $BoardSettingsBak = $pretext.$settcheck.$BoardSettings;
 $BoardSettings = $pretext.$settcheck.$BoardSettings;
 $fp = fopen("settings.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
-//     @cp("settings.php","settingsbak.php");
+//     cp("settings.php","settingsbak.php");
 $fp = fopen("settingsbak.php","w+");
 fwrite($fp, $BoardSettingsBak);
 fclose($fp);
 if($_POST['storecookie']=="true") {
-@setcookie("MemberName", $_POST['AdminUser'], time() + (7 * 86400), $this_dir, $URLsTest['host']);
-@setcookie("UserID", 1, time() + (7 * 86400), $this_dir, $URLsTest['host']);
-@setcookie("SessPass", $NewPassword, time() + (7 * 86400), $this_dir, $URLsTest['host']); }
-@mysql_close(); $chdel = true;
+setcookie("MemberName", $_POST['AdminUser'], time() + (7 * 86400), $this_dir, $URLsTest['host']);
+setcookie("UserID", 1, time() + (7 * 86400), $this_dir, $URLsTest['host']);
+setcookie("SessPass", $NewPassword, time() + (7 * 86400), $this_dir, $URLsTest['host']); }
+mysql_close(); $chdel = true;
 if($Error!="Yes") {
 if($_POST['unlink']=="true") {
-$chdel1 = @unlink($SetupDir['setup'].'presetup.php'); $chdel2 = @unlink($SetupDir['setup'].'setup.php');
-$chdel3 = @unlink($SetupDir['setup'].'mkconfig.php'); $chdel4 = @unlink($SetupDir['setup'].'mktable.php');
-$chdel5 = @unlink($SetupDir['setup'].'index.php'); $chdel6 = @unlink($SetupDir['setup'].'license.php');
-$chdel7 = @unlink($SetupDir['setup'].'preinstall.php'); $chdel8 = @unlink($SetupDir['convert'].'index.php');
-if($ConvertInfo['ConvertFile']!=null) { $chdel0 = @unlink($ConvertInfo['ConvertFile']); }
-$chdel9 = @unlink($SetupDir['convert'].'info.php'); 
-$chdel10 = @rmdir($SetupDir['convert']); $chdel11 = @rmdir('setup');
-$chdel12 = @unlink('install.php'); } }
+$chdel1 = unlink($SetupDir['setup'].'presetup.php'); $chdel2 = unlink($SetupDir['setup'].'setup.php');
+$chdel3 = unlink($SetupDir['setup'].'mkconfig.php'); $chdel4 = unlink($SetupDir['setup'].'mktable.php');
+$chdel5 = unlink($SetupDir['setup'].'index.php'); $chdel6 = unlink($SetupDir['setup'].'license.php');
+$chdel7 = unlink($SetupDir['setup'].'preinstall.php'); $chdel8 = unlink($SetupDir['convert'].'index.php');
+if($ConvertInfo['ConvertFile']!=null) { $chdel0 = unlink($ConvertInfo['ConvertFile']); }
+$chdel9 = unlink($SetupDir['convert'].'info.php'); 
+$chdel10 = rmdir($SetupDir['convert']); $chdel11 = rmdir('setup');
+$chdel12 = unlink('install.php'); } }
 if($chdel1===false||$chdel2===false||$chdel3===false||$chdel4===false) { $chdel = false; }
 if($chdel5===false||$chdel6===false||$chdel7===false||$chdel8===false) { $chdel = false; }
 if($chdel9===false||$chdel10===false||$chdel11===false||$chdel12===false) { $chdel = false; }
index 8ffbf28..0a8ac65 100644 (file)
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: preinstall.php - Last Update: 8/3/2009 SVN 288 - Author: cooldude2k $
+    $FileInfo: preinstall.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-@error_reporting(E_ALL ^ E_NOTICE);
+error_reporting(E_ALL ^ E_NOTICE);
 /* Some ini setting changes uncomment if you need them. */
-//@ini_set('session.use_trans_sid', false);
+//ini_set('session.use_trans_sid', false);
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="preinstall.php"||$File3Name=="/preinstall.php") {
-       @header('Location: index.php');
+       header('Location: index.php');
        exit(); }
 
-@header("Cache-Control: private, must-revalidate"); // IE 6 Fix
-@header("Pragma: private, must-revalidate");
-@header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
-@header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
-@output_reset_rewrite_vars();
+header("Cache-Control: private, must-revalidate"); // IE 6 Fix
+header("Pragma: private, must-revalidate");
+header("Date: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
+output_reset_rewrite_vars();
 if(!isset($SettDir['inc'])) { $SettDir['inc'] = "inc/"; }
 if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
 if(!isset($SettDir['admin'])) { $SettDir['admin'] = "inc/admin/"; }
index 99b96ad..d49a1ea 100644 (file)
@@ -12,7 +12,7 @@
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: setup.php - Last Update: 11/14/2009 SVN 344 - Author: cooldude2k $
+    $FileInfo: setup.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="setup.php"||$File3Name=="/setup.php") {
@@ -27,10 +27,10 @@ if(!isset($SetupDir['convert'])) { $SetupDir['convert'] = "setup/convert/"; }
 $checkfile="settings.php";
 if (!is_writable($checkfile)) {
    echo "<br />Settings is not writable.";
-   @chmod("settings.php",0755); $Error="Yes";
-   @chmod("settingsbak.php",0755);
+   chmod("settings.php",0755); $Error="Yes";
+   chmod("settingsbak.php",0755);
 } else { /* settings.php is writable install iDB. ^_^ */ }
-$StatSQL = @mysql_connect($_POST['DatabaseHost'],$_POST['DatabaseUserName'],$_POST['DatabasePassword']);
+$StatSQL = mysql_connect($_POST['DatabaseHost'],$_POST['DatabaseUserName'],$_POST['DatabasePassword']);
 if(!$StatSQL) { $Error="Yes";
 echo "<span class=\"TableMessage\">";
 echo "<br />".mysql_errno().": ".mysql_error()."\n</span>\n"; }
@@ -40,7 +40,7 @@ $BoardSettings=$pretext."\$Settings = array();\n\$Settings['sqlhost'] = '".$_POS
 $fp = fopen("./settings.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
-//     @cp("settings.php","settingsbak.php");
+//     cp("settings.php","settingsbak.php");
 $fp = fopen("./settingsbak.php","w+");
 fwrite($fp, $BoardSettings);
 fclose($fp);
index 03e0506..3dfec6c 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: subcategory.php - Last Update: 8/5/2009 SVN 291 - Author: cooldude2k $
+    $FileInfo: subcategory.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
index af52471..b523105 100644 (file)
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: subforum.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: subforum.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');
@@ -45,8 +45,8 @@ if($_GET['act']=="lowview")
 { require($SettDir['inc'].'lowsubforums.php'); }
 if($_GET['act']=="oldrss"||$_GET['act']=="rss"||$_GET['act']=="atom") {
 redirect("location",$basedir.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']);
-gzip_page($Settings['use_gzip'],$GZipEncode['Type']); @session_write_close(); die(); }
+ob_clean(); header("Content-Type: text/plain; charset=".$Settings['charset']);
+gzip_page($Settings['use_gzip'],$GZipEncode['Type']); session_write_close(); die(); }
 require($SettDir['inc'].'endpage.php');
 if(!isset($ForumName)) { $ForumName = null; }
 ?>
index 9eadbc4..7e71a0e 100644 (file)
--- a/topic.php
+++ b/topic.php
@@ -11,9 +11,9 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: topic.php - Last Update: 8/5/2009 SVN 291 - Author: cooldude2k $
+    $FileInfo: topic.php - Last Update: 11/23/2009 SVN 357 - Author: cooldude2k $
 */
-if(@ini_get("register_globals")) {
+if(ini_get("register_globals")) {
 require_once('inc/misc/killglobals.php'); }
 $checklowview = true;
 require('preindex.php');