OSDN Git Service

Added "edit by..." to replys that have been edited.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 29 May 2007 03:14:07 +0000 (03:14 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Tue, 29 May 2007 03:14:07 +0000 (03:14 +0000)
Also edited TimeChange function and added .EditReply to css.

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

13 files changed:
inc/filename.php
inc/misc/functions.php
inc/replys.php
setup/mkconfig.php
themes/Gray/css.css
themes/Gray/index.php
themes/Gray/info.php
themes/Gray/settings.php
themes/iDB/css.css
themes/iDB/index.php
themes/iDB/info.php
themes/iDB/settings.php
themes/index.php

index 1cb3fb1..aefb24e 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
 \r
-    $FileInfo: filename.php - Last Update: 05/27/2007 SVN 16 - Author: cooldude2k $\r
+    $FileInfo: filename.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $File3Name = basename($_SERVER['SCRIPT_NAME']);\r
 if ($File3Name=="filename.php"||$File3Name=="/filename.php") {\r
@@ -43,8 +43,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) {
        if($showsvn!=true&&$showsvn!=null) { $return_var .= " ".$showsvn." ".$svnver; }\r
        return $return_var; }\r
 $VER1[0] = 0; $VER1[1] = 1; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];\r
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 16; $RName = "iDB"; $SFName = "IntDB";\r
-$SVNDay[0] = 5; $SVNDay[1] = 27; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];\r
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 17; $RName = "iDB"; $SFName = "IntDB";\r
+$SVNDay[0] = 5; $SVNDay[1] = 28; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];\r
 $VerInfo['iDB_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,false);\r
 $VerInfo['iDB_Ver_SVN'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[1],$SubVerN,true);\r
 $VerInfo['iDB_Full_Ver'] = version_info($RName,$VER1[0],$VER1[1],$VER1[2],$VER2[0],$SubVerN,false);\r
index 54d7352..c6ef521 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
 \r
-    $FileInfo: functions.php - Last Update: 05/26/2007 SVN 15 - Author: cooldude2k $\r
+    $FileInfo: functions.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $File3Name = basename($_SERVER['SCRIPT_NAME']);\r
 if ($File3Name=="functions.php"||$File3Name=="/functions.php") {\r
@@ -212,26 +212,7 @@ $TCHour = $TCHour + $offset;
 $TCMinute = $TCMinute + $minoffset;\r
 return date($format,mktime($TCHour,$TCMinute,$TCSecond,$TCMonth,$TCDay,$TCYear)); }\r
 function TimeChange($format,$timestamp,$offset,$minoffset=null,$dst=null) {\r
-$TCHour = date("H",$timestamp);\r
-$TCMinute = date("i",$timestamp);\r
-$TCSecond = date("s",$timestamp);\r
-$TCMonth = date("n",$timestamp);\r
-$TCDay = date("d",$timestamp);\r
-$TCYear = date("Y",$timestamp);\r
-unset($dstake); $dstake = null;\r
-if(!is_numeric($offset)) { $offset = 0; }\r
-if(!is_numeric($minoffset)) { $minoffset = 0; }\r
-if($dst!="on"&&$dst!="off") { $dst = "off"; }\r
-if($dst=="on") { \r
-if($dstake!="done") {\r
-if($offset>=0) { $dstake = "done";\r
-       $offset = $offset-1; } }\r
-if($dstake!="done") {\r
-if($offset<0) { $dstake = "done";\r
-       $offset = $offset+1; } } }\r
-$TCHour = $TCHour + $offset;\r
-$TCMinute = $TCMinute + $minoffset;\r
-return date($format,mktime($TCHour,$TCMinute,$TCSecond,$TCMonth,$TCDay,$TCYear)); }\r
+return GMTimeChange($format,$timestamp,$offset,$minoffset,$dst); }\r
 function GMTimeStamp() {\r
 $GMTHour = gmdate("H");\r
 $GMTMinute = gmdate("i");\r
index 1343302..6e2658b 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: 05/27/2007 SVN 16 - Author: cooldude2k $
+    $FileInfo: replys.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replys.php"||$File3Name=="/replys.php") {
@@ -65,6 +65,8 @@ $MyCategoryID=mysql_result($result,$i,"CategoryID");
 $MyUserID=mysql_result($result,$i,"UserID");
 $MyGuestName=mysql_result($result,$i,"GuestName");
 $MyTimeStamp=mysql_result($result,$i,"TimeStamp");
+$MyEditTime=mysql_result($result,$i,"LastUpdate");
+$MyEditUserID=mysql_result($result,$i,"EditUser");
 $MyTimeStamp=GMTimeChange("M j, Y, g:i a",$MyTimeStamp,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
 $MyPost=mysql_result($result,$i,"Post");
 $MyDescription=mysql_result($result,$i,"Description");
@@ -98,7 +100,19 @@ $User1IP=mysql_result($reresult,$rei,"IP");
 ++$rei; } @mysql_free_result($reresult);
 if($User1Name=="Guest") { $User1Name=$GuestName;
 if($User1Name==null) { $User1Name="Guest"; } }
+$MySubPost = null;
+if($MyEditTime!=$MyTimeStamp&&$MyEditUserID!=0) {
+$euquery = query("select * from ".$Settings['sqltable']."members where ID=%i", array($MyEditUserID));
+$euresult = mysql_query($euquery);
+$eunum = mysql_num_rows($euresult);
+$eui=0; while ($eui < $eunum) {
+       $EditUserID = $MyEditUserID;
+       $EditUserName = mysql_result($euresult,$eui,"Name");
+       ++$eui; }
+       $MyEditTime = GMTimeChange("M j, Y, g:i a",$MyEditTime,$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']);
+       $MySubPost = "<div class=\"EditReply\"><br />This post has been edited by <b>".$EditUserName."</b> on ".$MyEditTime."</div>"; }
 $MyPost = text2icons($MyPost,$Settings['sqltable']);
+if($MySubPost!=null) { $MyPost = $MyPost."\n".$MySubPost; }
 $User1Signature = text2icons($User1Signature,$Settings['sqltable']);
 ?>
 <div class="Table1Border">
index 4371352..85bc012 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: 05/26/2007 SVN 15 - Author: cooldude2k $
+    $FileInfo: mkconfig.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
@@ -60,6 +60,7 @@ if($_POST['WebURL']=="https://localhost/"||$_POST['WebURL']=="https://localhost"
        $_POST['WebURL'] = "localhost"; }
 $_POST['BoardURL'] = addslashes($_POST['BoardURL']);
 $YourDate = GMTimeStamp();
+$YourEditDate = $YourDate + 100;
 $GSalt = salt_hmac(); $YourSalt = salt_hmac();
 /* Fix The User Info for iDB */
 $_POST['NewBoardName'] = htmlentities($_POST['NewBoardName'], ENT_QUOTES);
@@ -96,7 +97,7 @@ $query = "INSERT INTO ".$_POST['tableprefix']."forums VALUES (1,1,'Test/Spam','y
 mysql_query($query);
 $query = "INSERT INTO ".$_POST['tableprefix']."topics VALUES (1,1,1,-1,'Cool Dude 2k',".$YourDate.",".$YourDate.",'Welcome','Install was successful',0,0,1,1)";
 mysql_query($query);
-$query = "INSERT INTO ".$_POST['tableprefix']."posts VALUES (1,1,1,1,-1,'Cool Dude 2k',".$YourDate.",".$YourDate.",0,'Welcome to Your Message Board. :) ','Install was successful','127.0.0.1')"; 
+$query = "INSERT INTO ".$_POST['tableprefix']."posts VALUES (1,1,1,1,-1,'Cool Dude 2k',".$YourDate.",".$YourEditDate.",1,'Welcome to Your Message Board. :) ','Install was successful','127.0.0.1')"; 
 mysql_query($query);
 $NewPassword = b64e_hmac($_POST['AdminPasswords'],$YourDate,$YourSalt,"sha1");
 //$Name = stripcslashes(htmlspecialchars($AdminUser, ENT_QUOTES));
index 52ea917..34c6e99 100644 (file)
@@ -10,7 +10,7 @@
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Gray - Author: cooldude2k $\r
-    $FileInfo: css.css - Last Update: 05/19/2007 SVN 10 - Author: cooldude2k $\r
+    $FileInfo: css.css - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 html {\r
        font-family: verdana, arial, sans-serif;\r
@@ -202,6 +202,10 @@ font-weight: bold;
 cursor: pointer;\r
 font-size: 10px;\r
 }\r
+.EditReply {\r
+color: #000000;\r
+font-size: 9px; \r
+}\r
 .TableMessage {\r
 color: #000000;\r
 font-weight: bold; \r
index e8bc9ca..ee1884d 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/
     $ThemeInfo - Name: iDB Gray - Author: cooldude2k $
-    $FileInfo: index.php - Last Update: 05/17/2007 SVN 7 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $
 */
 header('Location: ../../index.php');
 ?>
\ No newline at end of file
index 3f80f54..09ee715 100644 (file)
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Gray - Author: cooldude2k $\r
-    $FileInfo: info.php - Last Update: 05/22/2007 SVN 11 - Author: cooldude2k $\r
+    $FileInfo: info.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $ThemeInfo = array();\r
 $ThemeInfo['ThemeName'] = "iDB Gray Theme";\r
 $ThemeInfo['ThemeMaker'] = "Cool Dude 2k";\r
 $ThemeInfo['ThemeVersion'] = "0.1.5";\r
 $ThemeInfo['ThemeVersionType'] = "Pre-Alpha";\r
-$ThemeInfo['ThemeSubVersion'] = "SVN 11";\r
+$ThemeInfo['ThemeSubVersion'] = "SVN 17";\r
 $ThemeInfo['MakerURL'] = "http://upload.idb.s1.jcink.com/";\r
 $ThemeInfo['CopyRight'] = $ThemeInfo['ThemeName']." was made by <a href=\"".$ThemeInfo['MakerURL']."\" title=\"".$ThemeInfo['ThemeMaker']."\">".$ThemeInfo['ThemeMaker']."</a>";\r
 ?>
\ No newline at end of file
index 19909ac..cece4d8 100644 (file)
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Gray - Author: cooldude2k $\r
-    $FileInfo: settings.php - Last Update: 05/22/2007 SVN 11 - Author: cooldude2k $\r
+    $FileInfo: settings.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $ThemeSet = array();\r
 $ThemeSet['ThemeName'] = "iDB Gray Theme";\r
 $ThemeSet['ThemeMaker'] = "Cool Dude 2k";\r
 $ThemeSet['ThemeVersion'] = "0.1.5";\r
 $ThemeSet['ThemeVersionType'] = "Pre-Alpha";\r
-$ThemeSet['ThemeSubVersion'] = "SVN 11";\r
+$ThemeSet['ThemeSubVersion'] = "SVN 17";\r
 $ThemeSet['MakerURL'] = "http://upload.idb.s1.jcink.com/";\r
 $ThemeSet['CopyRight'] = $ThemeSet['ThemeName']." was made by <a href=\"".$ThemeSet['MakerURL']."\" title=\"".$ThemeSet['ThemeMaker']."\">".$ThemeSet['ThemeMaker']."</a>";\r
 $ThemeSet['CSS'] = "themes/Gray/css.css";\r
index 143dc3a..42d777c 100644 (file)
@@ -10,7 +10,7 @@
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Theme - Author: cooldude2k $\r
-    $FileInfo: css.css - Last Update: 05/19/2007 SVN 10 - Author: cooldude2k $\r
+    $FileInfo: css.css - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 html {\r
        font-family: verdana, arial, sans-serif;\r
@@ -203,6 +203,10 @@ font-weight: bold;
 cursor: pointer;\r
 font-size: 10px;\r
 }\r
+.EditReply {\r
+color: #000000;\r
+font-size: 9px; \r
+}\r
 .TableMessage {\r
 color: #000000;\r
 font-weight: bold; \r
index 2e0a7e9..7747640 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/
     $ThemeInfo - Name: iDB Theme - Author: cooldude2k $
-    $FileInfo: index.php - Last Update: 05/17/2007 SVN 7 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $
 */
 header('Location: ../../index.php');
 ?>
\ No newline at end of file
index 04317a8..e06c339 100644 (file)
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Theme - Author: cooldude2k $\r
-    $FileInfo: info.php - Last Update: 05/22/2007 SVN 11 - Author: cooldude2k $\r
+    $FileInfo: info.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $ThemeInfo = array();\r
 $ThemeInfo['ThemeName'] = "iDB Theme";\r
 $ThemeInfo['ThemeMaker'] = "Cool Dude 2k";\r
 $ThemeInfo['ThemeVersion'] = "0.1.5";\r
 $ThemeInfo['ThemeVersionType'] = "Pre-Alpha";\r
-$ThemeInfo['ThemeSubVersion'] = "SVN 11";\r
+$ThemeInfo['ThemeSubVersion'] = "SVN 17";\r
 $ThemeInfo['MakerURL'] = "http://upload.idb.s1.jcink.com/";\r
 $ThemeInfo['CopyRight'] = $ThemeInfo['ThemeName']." was made by <a href=\"".$ThemeInfo['MakerURL']."\" title=\"".$ThemeInfo['ThemeMaker']."\">".$ThemeInfo['ThemeMaker']."</a>";\r
 ?>
\ No newline at end of file
index 7e7f009..5abc2f1 100644 (file)
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/\r
     Copyright 2004-2006 Game Maker 2k - http://upload.idb.s1.jcink.com/\r
     $ThemeInfo - Name: iDB Theme - Author: cooldude2k $\r
-    $FileInfo: settings.php - Last Update: 05/22/2007 SVN 11 - Author: cooldude2k $\r
+    $FileInfo: settings.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $\r
 */\r
 $ThemeSet = array();\r
 $ThemeSet['ThemeName'] = "iDB Theme";\r
 $ThemeSet['ThemeMaker'] = "Cool Dude 2k";\r
 $ThemeSet['ThemeVersion'] = "0.1.5";\r
 $ThemeSet['ThemeVersionType'] = "Pre-Alpha";\r
-$ThemeSet['ThemeSubVersion'] = "SVN 11";\r
+$ThemeSet['ThemeSubVersion'] = "SVN 17";\r
 $ThemeSet['MakerURL'] = "http://upload.idb.s1.jcink.com/";\r
 $ThemeSet['CopyRight'] = $ThemeSet['ThemeName']." was made by <a href=\"".$ThemeSet['MakerURL']."\" title=\"".$ThemeSet['ThemeMaker']."\">".$ThemeSet['ThemeMaker']."</a>";\r
 $ThemeSet['CSS'] = "themes/iDB/css.css";\r
index 99f8940..96102b3 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2006 Cool Dude 2k - http://intdb.sourceforge.net/
     Copyright 2004-2006 Game Maker 2k - http://cooldude2k.co.funpic.org/
 
-    $FileInfo: index.php - Last Update: 05/22/2007 SVN 11 - Author: cooldude2k $
+    $FileInfo: index.php - Last Update: 05/28/2007 SVN 17 - Author: cooldude2k $
 */
 header('Location: ../index.php');
 ?>
\ No newline at end of file