Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: replys.php - Last Update: 08/11/2007 SVN 75 - Author: cooldude2k $
+ $FileInfo: replys.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="replys.php"||$File3Name=="/replys.php") {
<div class="Table1Border">
<table class="Table1">
<tr class="TableRow1">
-<td class="TableRow1" colspan="2"><span style="font-weight: bold; float: left;"><?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id']."#reply".$ReplyNum,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>"><?php echo $TopicName; ?></a> ( <?php echo $MyDescription; ?> )</span>
+<td class="TableRow1" colspan="2"><span style="font-weight: bold; float: left;"><?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$_GET['id'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#reply".$ReplyNum; ?>"><?php echo $TopicName; ?></a> ( <?php echo $MyDescription; ?> )</span>
<span style="float: right;"> </span></td>
</tr>
<tr class="TableRow2">
</span></td>
</tr>
<?php } if ($Error=="Yes") {
-@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."#post".$_GET['post'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false),"4"); }
+@redirect("refresh",$basedir.url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],false)."#post".$_GET['post'],"4"); }
if ($Error!="Yes") { $LastActive = GMTimeStamp();
$requery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `id`=%i", array($_SESSION['UserID']));
$reresult=mysql_query($requery);
if($ShowEditTopic==true) {
$queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `TopicName`='%s',`Description`='%s' WHERE `id`=%i", array($_POST['TopicName'],$_POST['ReplyDesc'],$TopicID));
mysql_query($queryupd); } }
+@redirect(url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."#post".$_GET['post'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'],FALSE)."#post".$_GET['post'],"3");
?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage"><br />
Reply to Topic <?php echo $TopicName; ?> was edited.<br />
- Click <a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID."#post".$_GET['post'],$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic']); ?>">here</a> to view topic.<br />
+ Click <a href="<?php echo url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#post".$_GET['post']; ?>">here</a> to view topic.<br />
</span><br /></td>
</tr>
<tr class="TableRow4">
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: 08/09/2007 SVN 73 - Author: cooldude2k $
+ $FileInfo: rss2.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="rssfeed.php"||$File3Name=="/rssfeed.php") {
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: searchs.php - Last Update: 08/09/2007 SVN 73 - Author: cooldude2k $
+ $FileInfo: searchs.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="searchs.php"||$File3Name=="/searchs.php") {
if($TimeStamp1!=null) { $lul = null;
if($UsersID1!="-1") {
$lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID1,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']);
-$LastReply = "User: <a href=\"".$lul."\">".$UsersName1."</a><br />\nTime: ".$TimeStamp1; }
+$luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#post".$ReplyID1;
+$LastReply = "User: <a href=\"".$lul."\">".$UsersName1."</a><br />\nTime: <a href=\"".$luln."\">".$TimeStamp1."</a>"; }
if($UsersID1=="-1") {
$lul = url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index']);
-$LastReply = "User: <span>".$UsersName1."</span><br />\nTime: ".$TimeStamp1; } }
+$luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#post".$ReplyID1;
+$LastReply = "User: <span>".$UsersName1."</span><br />\nTime: <a href=\"".$luln."\">".$TimeStamp1."</a>"; } }
@mysql_free_result($glrresult);
if($TimeStamp1==null) { $LastReply = " <br /> "; }
$PreTopic = $ThemeSet['TopicIcon'];
-if ($PinnedTopic==1) {
+if ($PinnedTopic>1) { $PinnedTopic = 1; }
+if ($PinnedTopic<0) { $PinnedTopic = 0; }
+if(!is_numeric($PinnedTopic)) { $PinnedTopic = 0; }
+if ($TopicStat>1) { $TopicStat = 1; }
+if ($TopicStat<0) { $TopicStat = 0; }
+if(!is_numeric($TopicStat)) { $TopicStat = 1; }
+if ($PinnedTopic==1&&$TopicStat==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotPinTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['PinTopic']; } }
-if ($TopicStat==1) {
+if ($TopicStat==1&&$PinnedTopic==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotClosedTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['ClosedTopic']; } }
-if ($PinnedTopic==0) {
- if ($TopicStat==0) {
+if ($PinnedTopic==0&&$TopicStat==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
- $PreTopic=$ThemeSet['TopicIcon']; } } }
-if ($PinnedTopic==1) {
- if ($TopicStat==1) {
+ $PreTopic=$ThemeSet['TopicIcon']; } }
+if ($PinnedTopic==1&&$TopicStat==1) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotPinClosedTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
- $PreTopic=$ThemeSet['PinClosedTopic']; } } }
+ $PreTopic=$ThemeSet['PinClosedTopic']; } }
?>
<tr class="TableRow3" id="Topic<?php echo $TopicID; ?>">
<td class="TableRow3"><div class="topicstate">
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: topics.php - Last Update: 08/09/2007 SVN 73 - Author: cooldude2k $
+ $FileInfo: topics.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="topics.php"||$File3Name=="/topics.php") {
if($TimeStamp1!=null) { $lul = null;
if($UsersID1!="-1") {
$lul = url_maker($exfile['member'],$Settings['file_ext'],"act=view&id=".$UsersID1,$Settings['qstr'],$Settings['qsep'],$prexqstr['member'],$exqstr['member']);
-$LastReply = "User: <a href=\"".$lul."\">".$UsersName1."</a><br />\nTime: ".$TimeStamp1; }
+$luln = url_maker($exfile['topic'],$Settings['file_ext'],"act=view&id=".$TopicID,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#post".$ReplyID1;
+$LastReply = "User: <a href=\"".$lul."\">".$UsersName1."</a><br />\nTime: <a href=\"".$luln."\">".$TimeStamp1."</a>"; }
if($UsersID1=="-1") {
-$LastReply = "User: <span>".$UsersName1."</span><br />\nTime: ".$TimeStamp1; } }
+$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,$Settings['qstr'],$Settings['qsep'],$prexqstr['topic'],$exqstr['topic'])."#post".$ReplyID1;
+$LastReply = "User: <span>".$UsersName1."</span><br />\nTime: <a href=\"".$luln."\">".$TimeStamp1."</a>"; } }
@mysql_free_result($glrresult);
if(!isset($TimeStamp1)) { $TimeStamp1 = null; } if(!isset($LastReply)) { $LastReply = null; }
if($TimeStamp1==null) { $LastReply = " <br /> "; }
$PreTopic = $ThemeSet['TopicIcon'];
-if ($PinnedTopic==1) {
+if ($PinnedTopic>1) { $PinnedTopic = 1; }
+if ($PinnedTopic<0) { $PinnedTopic = 0; }
+if(!is_numeric($PinnedTopic)) { $PinnedTopic = 0; }
+if ($TopicStat>1) { $TopicStat = 1; }
+if ($TopicStat<0) { $TopicStat = 0; }
+if(!is_numeric($TopicStat)) { $TopicStat = 1; }
+if ($PinnedTopic==1&&$TopicStat==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotPinTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['PinTopic']; } }
-if ($TopicStat==1) {
+if ($TopicStat==1&&$PinnedTopic==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotClosedTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['ClosedTopic']; } }
-if ($PinnedTopic==0) {
- if ($TopicStat==0) {
+if ($PinnedTopic==0&&$TopicStat==0) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
- $PreTopic=$ThemeSet['TopicIcon']; } } }
-if ($PinnedTopic==1) {
- if ($TopicStat==1) {
+ $PreTopic=$ThemeSet['TopicIcon']; } }
+if ($PinnedTopic==1&&$TopicStat==1) {
if($NumReply>=$Settings['hot_topic_num']) {
$PreTopic=$ThemeSet['HotPinClosedTopic']; }
if($NumReply<$Settings['hot_topic_num']) {
- $PreTopic=$ThemeSet['PinClosedTopic']; } } }
+ $PreTopic=$ThemeSet['PinClosedTopic']; } }
?>
<tr class="TableRow3" id="Topic<?php echo $TopicID; ?>">
<td class="TableRow3"><div class="topicstate">
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: versioninfo.php - Last Update: 08/11/2007 SVN 76 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 08/12/2007 SVN 77 - 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] = 1; $VER1[2] = 8; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 76; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 08; $SVNDay[1] = 11; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 77; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 08; $SVNDay[1] = 12; $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);
$OSType2 = $PHPV2." / ".$OSType; $ZENDV1 = @zend_version(); $ZENDV2 = "Zend engine ".$ZENDV1;
// Show or hide the version number
if($idbmisc['showverinfo']==true) {
-@header("X-iDB-Powered-By: ".$VerInfo['iDB_Ver_Show']);
+@header("X-".$RName."-Powered-By: ".$VerInfo['iDB_Ver_Show']);
@header("Generator: ".$VerInfo['iDB_Ver_Show']); }
if($idbmisc['showverinfo']!=true) {
-@header("X-iDB-Powered-By: iDB");
+@header("X-".$RName."-Powered-By: ".$RName);
//@header("X-Powered-By: PHP");
-@header("Generator: iDB"); }
+@header("Generator: ".$iDB); }
?>
\ No newline at end of file
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: xhtml10.php - Last Update: 07/10/2007 SVN 39 - Author: cooldude2k $
+ $FileInfo: xhtml10.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="xhtml10.php"||$File3Name=="/xhtml10.php") {
$iDBURL1 = "<a href=\"http://intdb.sourceforge.net/\" title=\"".$VerInfo['iDB_Ver_Show']."\" onclick=\"window.open(this.href);return false;\">"; }
$GM2kURL = "<a href=\"http://upload.idb.s1.jcink.com/\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
$csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
-$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1."iDB</a> © ".$GM2kURL." @ ".$csryear." - ".$cryear." <a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"iDB is licensed under the Revised BSD License\">BSDL</a> <br />\n".$ThemeSet['CopyRight'];
+$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> © ".$GM2kURL." @ ".$csryear." - ".$cryear." <a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"".$RName." is licensed under the Revised BSD License\">BSDL</a> <br />\n".$ThemeSet['CopyRight'];
@header("Content-Language: en");
@header("Vary: Accept");
// Check if we are on a secure HTTP connection
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: xhtml11.php - Last Update: 07/10/2007 SVN 39 - Author: cooldude2k $
+ $FileInfo: xhtml11.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="xhtml11.php"||$File3Name=="/xhtml11.php") {
$iDBURL1 = "<a href=\"http://intdb.sourceforge.net/\" title=\"".$VerInfo['iDB_Ver_Show']."\" onclick=\"window.open(this.href);return false;\">"; }
$GM2kURL = "<a href=\"http://upload.idb.s1.jcink.com/\" title=\"".$GM2k."\" onclick=\"window.open(this.href);return false;\">".$GM2k."</a>";
$csryear = "2004"; $cryear = date("Y"); if($cryear<=2004) { $cryear = "2005"; }
-$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1."iDB</a> © ".$GM2kURL." @ ".$csryear." - ".$cryear." <a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"iDB is licensed under the Revised BSD License\">BSDL</a> <br />\n".$ThemeSet['CopyRight'];
+$endpagevar = "<div class=\"copyright\">Powered by ".$iDBURL1.$RName."</a> © ".$GM2kURL." @ ".$csryear." - ".$cryear." <a href=\"".url_maker($exfile['index'],$Settings['file_ext'],"act=bsd",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'])."\" title=\"iDB is licensed under the Revised BSD License\">BSDL</a> <br />\n".$ThemeSet['CopyRight'];
@header("Content-Language: en");
@header("Vary: Accept");
// Check if we are on a secure HTTP connection
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
iDB Installer made by Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: install.php - Last Update: 07/01/2007 SVN 35 - Author: cooldude2k $
+ $FileInfo: install.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
@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; }
if(!isset($_GET['act'])) { $_GET['act'] = null; }
if(!isset($_POST['act'])) { $_POST['act'] = null; }
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
iDB Installer made by Game Maker 2k - http://idb.berlios.net/
- $FileInfo: mkconfig.php - Last Update: 08/11/2007 SVN 76 - Author: cooldude2k $
+ $FileInfo: mkconfig.php - Last Update: 08/12/2007 SVN 77 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
@chmod("settingsbak.php",0755);
} else { /* settings.php is writable install iDB. ^_^ */ }
@session_name($_POST['tableprefix']."sess");
-@session_set_cookie_params(0, $basedir);
+@session_set_cookie_params(0, $this_dir);
@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 (strlen($_POST['AdminPasswords'])<="3") { $Error="Yes";
echo "<br />Your password is too small."; }