Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: calendars.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: calendars.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="calendars.php"||$File3Name=="/calendars.php") {
require('index.php');
exit(); }
+if(!isset($_GET['HighligtDay'])) { $_GET['HighligtDay'] = null; }
// Count the Days in this month
$MyTimeStamp = GMTimeStamp();
$CountDays = GMTimeGet("t",$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
else {
$Extra = 'CalTableRow2'; }
if ($Day_i != $_GET['HighligtDay']) {
+if(!isset($EventsName[$Day_i])) { $EventsName[$Day_i] = null; }
if($EventsName[$Day_i]!=null) { $EventsName[$Day_i] = " ( ".$EventsName[$Day_i]." )"; }
if ($Day_i != $MyDay) {
$WeekDays .= '<td class="'.$Extra.'" style="height: 90px; vertical-align: top;">' . $Day_i . $EventsName[$Day_i] . '</td>'."\r\n"; } }
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: filename.php - Last Update: 06/04/2007 SVN 18 - Author: cooldude2k $
+ $FileInfo: filename.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="filename.php"||$File3Name=="/filename.php") {
if($Settings['fixbasedir']!=null&&$Settings['fixbasedir']!="") {
$basedir = $Settings['fixbasedir']; }
$BaseURL = $basedir;
+if(!isset($_SERVER['HTTPS'])) { $_SERVER['HTTPS'] = 'off'; }
if($_SERVER['HTTPS']=="on") { $prehost = "https://"; }
if($_SERVER['HTTPS']!="on") { $prehost = "http://"; }
if($Settings['idburl']=="localhost"||$Settings['idburl']==null) {
if($showsvn!=true&&$showsvn!=null) { $return_var .= " ".$showsvn." ".$svnver; }
return $return_var; }
$VER1[0] = 0; $VER1[1] = 1; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 18; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 6; $SVNDay[1] = 04; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 19; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 6; $SVNDay[1] = 06; $SVNDay[2] = 2007; $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);
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: function.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: function.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="function.php"||$File3Name=="/function.php") {
require('index.php');
exit(); }
require_once($SettDir['misc'].'functions.php');
-/* Change Some PHP Settings Fix the & to & */
+/* Change Some PHP Settings Fix the & to &
if($Settings['use_iniset']==true&&$Settings['qstr']!="/") {
@ini_set("arg_separator.output",htmlentities($Settings['qstr'], ENT_QUOTES));
@ini_set("arg_separator.input",$Settings['qstr']);
@ini_set("arg_separator",htmlentities($Settings['qstr'], ENT_QUOTES)); }
//$basepath = pathinfo($_SERVER['REQUEST_URI']);
-/*if(dirname($_SERVER['REQUEST_URI'])!="."||
+if(dirname($_SERVER['REQUEST_URI'])!="."||
dirname($_SERVER['REQUEST_URI'])!=null) {
$basedir = dirname($_SERVER['REQUEST_URI'])."/"; }*/
if(dirname($_SERVER['SCRIPT_NAME'])!="."||
$basedir = $Settings['fixbasedir']; }
$BaseURL = $basedir;
// Get our Host Name and Referer URL's Host Name
+if(!isset($_SERVER['HTTP_REFERER'])) { $_SERVER['HTTP_REFERER'] = null; }
$REFERERurl = parse_url($_SERVER['HTTP_REFERER']);
+if(!isset($REFERERurl['host'])) { $REFERERurl['host'] = null; }
$URL['REFERER'] = $REFERERurl['host'];
$URL['HOST'] = $_SERVER["SERVER_NAME"];
$REFERERurl = null; unset($REFERERurl);
header("Location: ".$file); }
return true; }
function url_maker($file,$ext,$qvarstr=null,$qstr=";",$qsep="=",$prexqstr=null,$exqstr=null,$fixhtml=true) {
+$fileurl = null;
if($ext==null) { $ext = ".php"; }
if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $ext = null; }
$file = $file.$ext;
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: members.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: members.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="members.php"||$File3Name=="/members.php") {
if($_GET['act']=="list") {
$orderlist = null;
$orderlist = "order by `ID` asc";
+if(!isset($_GET['orderby'])) { $_GET['orderby'] = null; }
+if(!isset($_GET['sorttype'])) { $_GET['sorttype'] = null; }
+if(!isset($_GET['ordertype'])) { $_GET['ordertype'] = null; }
+if(!isset($_GET['orderby'])) { $_GET['orderby'] = null; }
+if(!isset($_GET['sortby'])) { $_GET['sortby'] = null; }
+if(!isset($_GET['gid'])) { $_GET['gid'] = null; }
+if(!isset($_GET['groupid'])) { $_GET['groupid'] = null; }
if($_GET['orderby']==null) {
if($_GET['sortby']!=null) {
$_GET['orderby'] = $_GET['sortby']; } }
$URL['REFERER'] = $REFERERurl['host'];
$URL['HOST'] = $_SERVER["SERVER_NAME"];
$REFERERurl = null; unset($REFERERurl);
+if(!isset($_POST['username'])) { $_POST['username'] = null; }
+if(!isset($_POST['TOS'])) { $_POST['TOS'] = null; }
?>
<div class="Table1Border">
<table class="Table1">
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: setcheck.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: setcheck.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="setcheck.php"||$File3Name=="/setcheck.php") {
require('index.php');
exit(); }
-
+if(!isset($_GET['debug'])) { $_GET['debug'] = false; }
+if(!isset($GZipEncode)) { $GZipEncode = 'none'; }
+if(!isset($preact)) { $preact = null; }
+if(!isset($Settings['hash_type'])) { $Settings['hash_type'] = null; }
+if(!isset($Error)) { $Error = null; }
+if(!isset($passright)) { $passright = null; }
+$oldusername = null; $oldtopicname = null; $ext = null;
if($Settings['DefaultTheme']==null) {
$Settings['DefaultTheme'] = "iDB"; }
if($Settings['DefaultTimeZone']==null) {
$Settings['html_type'] = "html10"; }
/*if($_GET['debug']=="true"||$_GET['debug']=="on") {
output_add_rewrite_var("amp;debug",$_GET['debug']); }*/
+if (!isset($_GET['action'])) { $_GET['action'] = null; }
+if (!isset($_GET['activity'])) { $_GET['activity'] = null; }
+if (!isset($_GET['function'])) { $_GET['function'] = null; }
+if (!isset($_GET['mode'])) { $_GET['mode'] = null; }
+if (!isset($_GET['show'])) { $_GET['show'] = null; }
+if (!isset($_GET['do'])) { $_GET['do'] = null; }
if ($_GET['act']==null&&$_GET['action']!=null) { $_GET['act']=$_GET['action']; }
if ($_GET['act']==null&&$_GET['activity']!=null) { $_GET['act']=$_GET['activity']; }
if ($_GET['act']==null&&$_GET['function']!=null) { $_GET['act']=$_GET['function']; }
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: pm.php - Last Update: 05/27/2007 SVN 16 - Author: cooldude2k $
+ $FileInfo: pm.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="pm.php"||$File3Name=="/pm.php") {
$DateSend=mysql_result($result,$is,"DateSend");
$DateSend=GMTimeChange("F j, Y, g:i a",$DateSend,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
$MessageText=mysql_result($result,$is,"MessageText");
-$MessageDesc=mysql_result($result,$i,"Description");
+$MessageDesc=mysql_result($result,$is,"Description");
$requery = query("select * from ".$Settings['sqltable']."members where ID=%i", array($SenderID));
$reresult=mysql_query($requery);
$renum=mysql_num_rows($reresult);
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: profilemain.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: profilemain.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
require('index.php');
exit(); }
+if(!isset($_POST['update'])) { $_POST['update'] = null; }
?>
<table class="Table3">
<tr style="width: 100%; vertical-align: top;">
$YourID=mysql_result($result,$i,"id");
$Notes=mysql_result($result,$i,"Notes");
$noteact = url_maker($exfile['profile'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['profile'],$exqstr['profile']);
-$profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
+$notepadact = $noteact; $profiletitle = " ".$ThemeSet['TitleDivider']." NotePad";
?>
<div class="Table1Border">
<table class="Table1" style="width: 100%;">
$YourPassword = b64e_hmac($_POST['OldPass'],$OldJoined,$OldSalt,"sha1");
$NewPassword = b64e_hmac($_POST['Password'],$OldJoined,$NewSalt,"sha1"); }
if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
-<div class="TableMessage">Your old Password did not match.<br /> </div>
+<div class="TableMessage" style="text-align: center;">Your old Password did not match.<br /> </div>
<?php } if(strlen($_POST['Password'])=="30") { $Error="Yes"; ?>
-<div class="TableMessage">Your password is too big.<br /> </div>
+<div class="TableMessage" style="text-align: center;">Your password is too big.<br /> </div>
<?php } if(strlen($_POST['OldPass'])=="30") { $Error="Yes"; ?>
-<div class="TableMessage">Your old password is too big.<br /> </div>
+<div class="TableMessage" style="text-align: center;">Your old password is too big.<br /> </div>
<?php } if ($_POST['Password']!=$_POST['RePassword']) { $Error="Yes"; ?>
-<div class="TableMessage">Your passwords did not match.<br /> </div>
+<div class="TableMessage" style="text-align: center;">Your passwords did not match.<br /> </div>
<?php }
$NewDay=GMTimeStamp();
$NewIP=$_SERVER['REMOTE_ADDR'];
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: rss2.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: rss2.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="rssfeed.php"||$File3Name=="/rssfeed.php") {
$basedir = "/"; } $BaseURL = $basedir;
if(isset($Settings['showverinfo'])) { $idbmisc['showverinfo'] = $Settings['showverinfo']; }
if(!isset($Settings['showverinfo'])) { $idbmisc['showverinfo'] = false; }
+if(!isset($_SERVER['HTTPS'])) { $_SERVER['HTTPS'] = 'off'; }
if($_SERVER['HTTPS']=="on") { $prehost = "https://"; }
if($_SERVER['HTTPS']!="on") { $prehost = "http://"; }
if($Settings['idburl']=="localhost"||$Settings['idburl']==null) {
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: stats.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: stats.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="stats.php"||$File3Name=="/stats.php") {
require('index.php');
exit(); }
-if($_GET['act']=="view"||$_GET['act']=="stats") { $toggle = null;
-$togglecode = "<span style=\"float: right;\"> </span>";
-if($ThemeSet['EnableToggle']==true) {
-$toggle = "toggletag('Stats1'),toggletag('Stats2'),toggletag('Stats3');return false;";
-$togglecode = "<span style=\"float: right;\"><a href=\"".$filewpath."#Toggle\" onclick=\"".$toggle."\">".$ThemeSet['Toggle']."</a>".$ThemeSet['ToggleExt']."</span>"; }
-if($ThemeSet['EnableToggle']==false) { $toggle = null;
-$togglecode = "<span style=\"float: right;\"> </span>"; }
+if($_GET['act']=="view"||$_GET['act']=="stats") {
$ntquery = query("select * from ".$Settings['sqltable']."topics", array(null));
$ntresult = mysql_query($ntquery);
$numtopics = mysql_num_rows($ntresult);
<tr class="TableRow1">
<td class="TableRow1" colspan="2"><span style="float: left;">
<?php echo $ThemeSet['TitleIcon']; ?><a id="bstats" href="<?php echo url_maker($exfile['index'],$Settings['file_ext'],"act=stats",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']); ?>#bstats">Board Statistics</a></span>
-<?php echo $togglecode; ?></td>
+<?php echo "<span style=\"float: right;\"> </span>"; ?></td>
</tr>
<tr id="Stats1" class="TableRow2">
<td class="TableRow2" colspan="2" style="width: 100%; font-weight: bold;">Board Stats</td>
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: mysql.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: mysql.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
@error_reporting(E_ALL ^ E_NOTICE);
@ini_set('session.use_trans_sid', false);
if($Settings['fixpathinfo']==true) {
$_SERVER['PATH_INFO'] = $_SERVER['ORIG_PATH_INFO'];
@putenv("PATH_INFO=".$_SERVER['ORIG_PATH_INFO']); }
-if($SettDir['inc']==null) { $SettDir['inc'] = "inc/"; }
-if($SettDir['misc']==null) { $SettDir['misc'] = "inc/misc/"; }
-if($SettDir['admin']==null) { $SettDir['admin'] = "inc/admin/"; }
-if($SettDir['mod']==null) { $SettDir['mod'] = "inc/mod/"; }
-if($SettDir['themes']==null) { $SettDir['themes'] = "themes/"; }
+if(!isset($SettDir['inc'])) { $SettDir['inc'] = "inc/"; }
+if(!isset($SettDir['misc'])) { $SettDir['misc'] = "inc/misc/"; }
+if(!isset($SettDir['admin'])) { $SettDir['admin'] = "inc/admin/"; }
+if(!isset($SettDir['mod'])) { $SettDir['mod'] = "inc/mod/"; }
+if(!isset($SettDir['themes'])) { $SettDir['themes'] = "themes/"; }
+if(!isset($Settings['use_iniset'])) { $Settings['use_iniset'] = null; }
+if(!isset($_SERVER['PATH_INFO'])) { $_SERVER['PATH_INFO'] = null; }
+if(!isset($_GET['page'])) { $_GET['page'] = null; }
+if(!isset($_GET['act'])) { $_GET['act'] = null; }
+if(!isset($_POST['act'])) { $_POST['act'] = null; }
+if(!isset($_GET['id'])) { $_GET['id'] = null; }
require_once($SettDir['inc'].'filename.php');
require_once($SettDir['inc'].'function.php');
@mrstring(); // Change Path info to Get Vars :P
@ConnectMysql($Settings['sqlhost'],$Settings['sqluser'],$Settings['sqlpass'],$Settings['sqldb']); }
if(CheckFiles("install.php")==true) {
$Settings['board_name'] = "Installing iDB"; }
+if(isset($_SESSION['CheckCookie'])) {
if($_SESSION['CheckCookie']!="done") {
if($_COOKIE['SessPass']!=null&&
$_COOKIE['MemberName']!=null) {
-require('inc/prelogin.php'); } }
+require('inc/prelogin.php'); } } }
+if(!isset($_SESSION['UserGroup'])) { $_SESSION['UserGroup'] = null; }
if($_SESSION['UserGroup']==null) {
$_SESSION['UserGroup']=$Settings['GuestGroup']; }
//Time Zone Set
+if(!isset($_SESSION['UserTimeZone'])) { $_SESSION['UserTimeZone'] = null; }
if($_SESSION['UserTimeZone']==null||
!is_numeric($_SESSION['UserTimeZone'])) {
if($Settings['DefaultTimeZone']!=null&&
$_SESSION['UserTimeZone'] = SeverOffSet(); }
if(!is_numeric($Settings['DefaultTimeZone'])) {
$_SESSION['UserTimeZone'] = SeverOffSet(); } }
+if(!isset($_SESSION['UserDST'])) { $_SESSION['UserDST'] = null; }
if($_SESSION['UserDST']==null) {
if($Settings['DefaultDST']=="off") {
$_SESSION['UserDST'] = "off"; }
if($Settings['DefaultDST']=="on") {
$_SESSION['UserDST'] = "on"; } }
// Skin Stuff
+if(!isset($_SESSION['Theme'])) { $_SESSION['Theme'] = null; }
+if(!isset($_GET['theme'])) { $_GET['theme'] = null; }
+if(!isset($_POST['theme'])) { $_POST['theme'] = null; }
+if(!isset($_GET['skin'])) { $_GET['skin'] = null; }
+if(!isset($_POST['skin'])) { $_POST['skin'] = null; }
+if(!isset($_GET['style'])) { $_GET['style'] = null; }
+if(!isset($_POST['style'])) { $_POST['style'] = null; }
+if(!isset($_GET['css'])) { $_GET['css'] = null; }
+if(!isset($_POST['css'])) { $_POST['css'] = null; }
if($_GET['theme']==null) {
if($_POST['theme']!=null) {
$_GET['theme'] = $_POST['theme']; }
$PreSkin['skindir1'] = $_SESSION['Theme'];
$PreSkin['skindir2'] = $SettDir['themes'].$_SESSION['Theme'];
require($SettDir['themes'].$_GET['theme']."/settings.php");
+if(!isset($_SESSION['DBName'])) { $_SESSION['DBName'] = null; }
if($_SESSION['DBName']==null) {
$_SESSION['DBName'] = $Settings['sqldb']; }
if($_SESSION['DBName']!=null) {
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: preindex.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: preindex.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="preindex.php"||$File3Name=="/preindex.php") {
exit(); }
require('mysql.php');
if($Settings['enable_rss']==true) {
+if(!isset($_GET['feed'])) { $_GET['feed'] = null; }
if($_GET['feed']=="rss"||$_GET['act']=="Feed"||$_GET['feed']=="atom") {
require($SettDir['inc'].'rssfeed.php'); } }
if($Settings['output_type']=="htm") {
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: search.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $
+ $FileInfo: search.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $
*/
require('preindex.php');
$usefileext = $Settings['file_ext'];
<body>
<?php require($SettDir['inc'].'navbar.php');
+if(!isset($_GET['search'])) { $_GET['search'] = null; }
+if(!isset($_POST['search'])) { $_POST['search'] = null; }
if($_GET['search']==null&&
$_POST['search']!=null) {
$_GET['search'] = $_POST['search']; }
+if(!isset($_GET['type'])) { $_GET['type'] = null; }
+if(!isset($_POST['type'])) { $_POST['type'] = null; }
if($_GET['type']==null&&
$_POST['type']!=null) {
$_GET['type'] = $_POST['type']; }
+if(!isset($_POST['act'])) { $_POST['act'] = null; }
if($_GET['act']==null||$_GET['act']=="topic"||
$_POST['act']=="topic"||$_POST['act']=="topics")
{ $_GET['act']="topics"; }