// """"""""""""""""""""""""""""""""""""""""""
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// 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
// 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/
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'];
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) {
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'];
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');
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'];
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');
{ 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; }
?>
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") {
// 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;
?>
?>
<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>
<?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("/&#(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("/&#(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'])) {
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']));
$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";
?>
<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;">
$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);
$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";
?>
<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;">
$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");
$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">
<?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>
isset($_POST['id'])) {
$_POST['CategoryName'] = stripcslashes(htmlspecialchars($_POST['CategoryName'], ENT_QUOTES, $Settings['charset']));
//$_POST['CategoryName'] = preg_replace("/&#(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("/&#(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; }
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);
$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;">
</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">
$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("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['CategoryName']);
?>
</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") {
?>
</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']));
<td class="TableMenuColumn4"> </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">
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") {
// 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;
?>
$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") { ?>
$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") { ?>
$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") { ?>
$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") { ?>
?>
<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>
?>
<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>
?>
<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;">
<?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("/&#(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("/&#(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'])) {
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']));
$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") {
$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";
?>
<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;">
$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";
?>
<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;">
$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");
$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">
<?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>
<?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>
isset($_POST['id'])) {
$_POST['ForumName'] = stripcslashes(htmlspecialchars($_POST['ForumName'], ENT_QUOTES, $Settings['charset']));
//$_POST['ForumName'] = preg_replace("/&#(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("/&#(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; }
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);
$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;">
</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">
$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");
$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("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['ForumName']);
?>
</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") {
?>
</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']));
<td class="TableMenuColumn4"> </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">
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") {
// 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;
$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)) {
<?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") { ?>
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") { ?>
$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("\'", "'", $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("\'", "'", $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("\'", "'", $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("\'", "'", $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("\'", "'", $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;
$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") {
$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("\'", "'", $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("\'", "'", $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("\'", "'", $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("\'", "'", $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("\'", "'", $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;
$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") {
$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("\'", "'", $_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("\'", "'", $_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("\'", "'", $_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("\'", "'", $_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;
$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) {
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") {
// 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"; }
$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);
?>
<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;">
$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);
$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); }
?>
<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;">
?>
<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>
?>
<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;">
$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")&&
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") {
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);
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) {
$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) {
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";
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") {
$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);
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";
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") {
$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");
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") {
$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"> </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);
$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 = " <br /> <br /> ";
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") {
$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']); }
$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."#reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
if($LastTopic==null) { $LastTopic = " <br /> <br /> "; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
if ($ForumType=="redirect") { $LastTopic=" <br />Redirects: ".$NumRedirects."<br /> "; }
$PreForum = $ThemeSet['ForumIcon'];
if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
<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"> </td>
</table></div>
<div class="DivCategories"> </div>
<?php } } }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
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") {
$endpagevar=$endpagevar."</div>\n";
echo $endpagevar;
session_write_close();
-//@session_write_close();
+//session_write_close();
?>
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") {
$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"> </div>
$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");
$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) {
</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;
?>
$SmileCRowL = 5 - $SmileCRow;
echo "<td colspan=\"".$SmileCRowL."\"> </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']); ?>">
</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") {
<?php } }
$_POST['EventName'] = stripcslashes(htmlspecialchars($_POST['EventName'], ENT_QUOTES, $Settings['charset']));
//$_POST['EventName'] = preg_replace("/&#(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("/&#(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("/&#(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 */
$_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);
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">
</span> </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 />
$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 />
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") {
$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 = " <br /> <br /> ";
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") {
$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']); }
$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."#reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
if($LastTopic==null) { $LastTopic=" <br /> "; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
if ($ForumType=="redirect") { $LastTopic=" <br />Redirects: ".$NumRedirects."<br /> "; }
$PreForum = $ThemeSet['ForumIcon'];
if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
<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">
<?php } if($prei == $prenum - 1) { ?>
<div class="DivStsts"> </div>
<?php } } } ++$prei; }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
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") {
require_once($SettDir['misc'].'functions.php');
/* Change Some PHP Settings Fix the & to &
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) {
/**
* 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 = '')
{
{ $_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;
$_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()
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"; }
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") {
$_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;
$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) {
$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; }
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); } } }
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; }
$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; }
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
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;
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") {
$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");
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") {
$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>
<?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);
$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 = " <br /> <br /> ";
<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> </div>
<?php } } }
-@mysql_free_result($preresult); ?>
+mysql_free_result($preresult); ?>
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") {
$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 = " <br /> <br /> ";
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)"; }
<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> </div>
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") {
$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");
$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");
$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; }
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") {
$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; }
$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");
$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) {
$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;
$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));
<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> </div><?php } } ?>
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") {
$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");
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") {
$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>
<?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);
$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);
$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 = " <br /> <br /> ";
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)"; }
<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; }
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") {
$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");
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);
$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']; }
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']));
$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)"; }
<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> </div>
-<?php } @mysql_free_result($preresult);
+<?php } mysql_free_result($preresult);
$ForumCheck = "skip";
if($CanHaveTopics!="yes") {
$ForumName = $SForumName; }
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") {
$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");
$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);
$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; }
$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']; }
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") {
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; }
<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> </div>
-<?php @mysql_free_result($result); } } } ?>
+<?php mysql_free_result($result); } } } ?>
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") {
$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'];
$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']; }
$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) {
<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"> </td>
$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']; }
$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']);
$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']);
$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");
$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']; }
$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") {
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']; }
<td class="TableColumn4" colspan="2"> </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") {
<?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") {
</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("/&#(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") {
$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");
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;
$_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 />
$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") {
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") {
<?php } }
$Name = stripcslashes(htmlspecialchars($_POST['Name'], ENT_QUOTES, $Settings['charset']));
//$Name = preg_replace("/&#(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);
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">
</span> </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 />
$_GET['YourPost'] = remove_bad_entities($_GET['YourPost']);
$Avatar = stripcslashes(htmlspecialchars($_POST['Avatar'], ENT_QUOTES, $Settings['charset']));
//$Avatar = preg_replace("/&#(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("/&#(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"; }
$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;
$_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">
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");
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));
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 */ }
?>
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") {
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; }
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 &PHPSESSID */
-$SessName = @session_name();
+$SessName = session_name();
$output = preg_replace("/&PHPSESSID/", "&PHPSESSID", $output);
$qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']);
$output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output);
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 &PHPSESSID */
-$SessName = @session_name();
+$SessName = session_name();
$output = preg_replace("/&PHPSESSID/", "&PHPSESSID", $output);
$qstrcode = htmlentities($Settings['qstr'], ENT_QUOTES, $Settings['charset']);
$output = str_replace($Settings['qstr'].$SessName, $qstrcode.$SessName, $output);
// 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; }
$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) {
$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
// 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
$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; }
--- /dev/null
+<?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); }
+?>
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") {
$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; }
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/'); }
?>
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']);
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')) {
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();
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 = '';
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") {
$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
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") {
// 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']; }
$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;
?></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"> </td>
</tr>
$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;
<tr id="MessengerEnd" class="TableMenuRow4">
<td class="TableMenuColumn4" colspan="4"> </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");
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");
$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");
$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); }
$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;
$SmileCRowL = 5 - $SmileCRow;
echo "<td colspan=\"".$SmileCRowL."\"> </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']); ?>">
<?php } }
$_POST['MessageName'] = stripcslashes(htmlspecialchars($_POST['MessageName'], ENT_QUOTES, $Settings['charset']));
//$_POST['MessageName'] = preg_replace("/&#(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("/&#(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("/&#(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("/&#(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("/&#(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 */
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);
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);
$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">
</span> </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 />
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") {
$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");
$_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);
?>
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") {
// 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") {
<?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";
?>
</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("/&#(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 */
$_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']));
</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("/&#(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 */
$_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']));
</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']) {
$_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") {
</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']) {
</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("/&#(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 */
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"; }
</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']) {
$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); } } } }
?>
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") {
$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");
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");
$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; }
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") {
$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; }
$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");
$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) {
$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;
</tr>
</table></div>
<div class="DivReplies"> </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">
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']));
$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);
if($QuoteUserName==null) { $QuoteUserName="Guest"; } }
$QuoteUserName = stripcslashes(htmlspecialchars($QuoteUserName, ENT_QUOTES, $Settings['charset']));
//$QuoteUserName = preg_replace("/&#(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("/&#(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;
$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; }
$SmileCRowL = 5 - $SmileCRow;
echo "<td colspan=\"".$SmileCRowL."\"> </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']); ?>">
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'];
<?php } }
$_POST['ReplyDesc'] = stripcslashes(htmlspecialchars($_POST['ReplyDesc'], ENT_QUOTES, $Settings['charset']));
//$_POST['ReplyDesc'] = preg_replace("/&#(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("/&#(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("/&#(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 */
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">
</span> </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 />
$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);
$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);
$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 />
$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") { ?>
$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") { ?>
$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']) {
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);
$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));
$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);
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") { ?>
</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("/&#(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("/&#(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("/&#(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);
$ShowEditTopic = null; } }
//$TopicName = stripcslashes(htmlspecialchars($TopicName, ENT_QUOTES, $Settings['charset']));
//$TopicName = preg_replace("/&#(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;
?>
<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',' <?php echo htmlspecialchars($SmileText, ENT_QUOTES, $Settings['charset']); ?> ')" /><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']); ?>">
<div class="DivMkReply"> </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"];
$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);
<?php } }
$_POST['ReplyDesc'] = stripcslashes(htmlspecialchars($_POST['ReplyDesc'], ENT_QUOTES, $Settings['charset']));
//$_POST['ReplyDesc'] = preg_replace("/&#(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("/&#(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("/&#(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("/&#(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));
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);
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">
</span> </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 />
$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) {
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 />
$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;
?>
$SmileCRowL = 5 - $SmileCRow;
echo "<td colspan=\"".$SmileCRowL."\"> </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']); ?>">
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") {
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);
$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));
$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) {
$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) {
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") { ?>
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") {
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") {
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'];
$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;
$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);
$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'])) {
$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."#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 = " <br /> "; }
$PreTopic = $ThemeSet['TopicIcon'];
if ($PinnedTopic>1) { $PinnedTopic = 1; }
?>
<div class="DivPageLinks"> </div>
<?php }
-@mysql_free_result($result); } } }
+mysql_free_result($result); } } }
if($pagenum<=1) { ?>
<div class="DivSearch"> </div>
<?php } ?>
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") {
$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") {
$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");
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") {
$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");
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") {
$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"> </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);
$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));
$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);
$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 = " <br /> <br /> ";
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") {
$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']); }
$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."#reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
if($LastTopic==null) { $LastTopic = " <br /> <br /> "; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
if ($ForumType=="redirect") { $LastTopic=" <br />Redirects: ".$NumRedirects."<br /> "; }
$PreForum = $ThemeSet['ForumIcon'];
if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
<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">
</table></div>
<div class="DivSubCategories"> </div>
<?php } } ++$prei; } }
-@mysql_free_result($preresult);
+mysql_free_result($preresult);
$CatCheck = "skip";
if($SubShowForums!="yes") {
$CategoryName = $SCategoryName; }
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") {
$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");
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);
$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']; }
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']));
$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 = " <br /> <br /> ";
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") {
$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']); }
$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."#reply".$NumRPosts."\" title=\"".$oldtopicname."\">".$TopicName."</a><br />\n".$UserPre." <span title=\"".$oldusername."\">".$UsersName."</span>"; } }
if($LastTopic==null) { $LastTopic = " <br /> <br /> "; } }
-@mysql_free_result($gltresult);
+mysql_free_result($gltresult);
if ($ForumType=="redirect") { $LastTopic=" <br />Redirects: ".$NumRedirects."<br /> "; }
$PreForum = $ThemeSet['ForumIcon'];
if ($ForumType=="forum") { $PreForum=$ThemeSet['ForumIcon']; }
<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"> </td>
</tr>
</table></div>
<div class="DivSubForums"> </div>
-<?php } @mysql_free_result($preresult);
+<?php } mysql_free_result($preresult);
$ForumCheck = "skip";
if($CanHaveTopics!="yes") {
$ForumName = $SForumName; }
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") {
$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");
$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"||
$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; }
$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") {
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") {
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>
$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']); }
$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."#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 = " <br /> "; }
if($TimeStamp1==null) { $LastReply = " <br /> "; }
$PreTopic = $ThemeSet['TopicIcon'];
</table></div>
<div class="DivTopics"> </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">
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;
?>
$SmileCRowL = 5 - $SmileCRow;
echo "<td colspan=\"".$SmileCRowL."\"> </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']); ?>">
<div class="DivMkTopics"> </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'];
<?php } }
$_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QUOTES, $Settings['charset']));
//$_POST['TopicName'] = preg_replace("/&#(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("/&#(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("/&#(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("/&#(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 */
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);
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">
</span> </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 />
$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);
$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 />
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") {
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);
$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); }
?>
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") {
// 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";
$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") {
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> © ".$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://"; }
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") {
$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";
$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") {
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> © ".$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://"; }
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');
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; }
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'];
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'];
<?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
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']));
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") {
$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/"; }
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(); }
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);
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") {
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;
$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);
$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'])) {
$_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)); } }
?>
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];
$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']&&
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'];
<?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")
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];
$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";
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'];
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; }
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; }
?>
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
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
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") {
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";
/* Fix The User Info for iDB */
$_POST['NewBoardName'] = stripcslashes(htmlspecialchars($_POST['NewBoardName'], ENT_QUOTES, $Settings['charset']));
//$_POST['NewBoardName'] = preg_replace("/&#(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("/\&#(.*?);/is", "&#$1;", $_POST['AdminPassword']);
$_POST['AdminUser'] = stripcslashes(htmlspecialchars($_POST['AdminUser'], ENT_QUOTES, $Settings['charset']));
//$_POST['AdminUser'] = preg_replace("/&#(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"&&
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") {
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") {
$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; }
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/"; }
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") {
$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"; }
$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);
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');
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');
{ 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; }
?>
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');