OSDN Git Service

Small bug fixes also added link to goto last reply in topic view. :P
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sun, 12 Aug 2007 23:27:33 +0000 (23:27 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Sun, 12 Aug 2007 23:27:33 +0000 (23:27 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@77 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/replys.php
inc/rssfeed.php
inc/searchs.php
inc/topics.php
inc/versioninfo.php
inc/xhtml10.php
inc/xhtml11.php
install.php
setup/mkconfig.php

index ec75b26..653c73f 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -163,7 +163,7 @@ $ReplyNum = $i + 1;
 <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;">&nbsp;</span></td>
 </tr>
 <tr class="TableRow2">
@@ -753,7 +753,7 @@ if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?>
        </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);
@@ -770,11 +770,12 @@ mysql_query($queryupd);
 if($ShowEditTopic==true) {
 $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `TopicName`='%s',`Description`='%s' WHERE `id`=%i", array($_POST['TopicName'],$_POST['ReplyDesc'],$TopicID));
 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 />&nbsp;
+       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 />&nbsp;
        </span><br /></td>
 </tr>
 <tr class="TableRow4">
index fd02075..795f688 100644 (file)
@@ -11,7 +11,7 @@
     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") {
index d7b588d..7560f95 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -143,35 +143,41 @@ if($UsersName1==null) { $UsersName1="Guest"; } }
 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 = "&nbsp;<br />&nbsp;"; }
 $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">
index a3aaf33..5d9782e 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -155,35 +155,42 @@ if($UsersName1==null) { $UsersName1="Guest"; } }
 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 = "&nbsp;<br />&nbsp;"; }
 $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">
index c211d94..8c49416 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -27,8 +27,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        return $return_var; }
 // Version number and date stuff. :P
 $VER1[0] = 0; $VER1[1] = 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);
@@ -48,10 +48,10 @@ if($OSType=="WINNT") { $OSType="Windows NT"; } if($OSType=="WIN32") { $OSType="W
 $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
index 687e565..8990017 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -54,7 +54,7 @@ if($Settings['showverinfo']==true) {
 $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> &copy; ".$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> &copy; ".$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
index c27e001..42a5b24 100644 (file)
@@ -11,7 +11,7 @@
     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") {
@@ -56,7 +56,7 @@ if($Settings['showverinfo']==true) {
 $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> &copy; ".$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> &copy; ".$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
index f581ebd..7d83c4a 100644 (file)
     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; }
index a4ce62e..df97d1d 100644 (file)
@@ -12,7 +12,7 @@
     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") {
@@ -39,8 +39,13 @@ if (!is_writable($checkfile)) {
    @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."; }