From 329c14b0fc8032db55b117d596b2f40770f1ae2b Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Tue, 11 Dec 2007 09:56:20 +0000 Subject: [PATCH] Fixed some style bugs. ^_^ git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@134 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/events.php | 7 +++- inc/members.php | 2 +- inc/pm.php | 59 +++++++++++++++-------------- inc/replys.php | 104 ++++++++++++++++++++++++++++------------------------ inc/topics.php | 47 +++++++++++++----------- inc/versioninfo.php | 8 ++-- 6 files changed, 126 insertions(+), 101 deletions(-) diff --git a/inc/events.php b/inc/events.php index 65902d6..5c3d3fa 100644 --- a/inc/events.php +++ b/inc/events.php @@ -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: events.php - Last Update: 11/20/2007 SVN 129 - Author: cooldude2k $ + $FileInfo: events.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="events.php"||$File3Name=="/events.php") { @@ -241,6 +241,9 @@ $TimeOut = explode("/",$_POST['EventEnd']);  Make Event Message: + + +="30") { $Error="Yes"; ?> +
@@ -442,6 +445,8 @@ mysql_query($query);
+   diff --git a/inc/members.php b/inc/members.php index 129461d..1497b06 100644 --- a/inc/members.php +++ b/inc/members.php @@ -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: members.php - Last Update: 12/05/2007 SVN 131 - Author: cooldude2k $ + $FileInfo: members.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="members.php"||$File3Name=="/members.php") { diff --git a/inc/pm.php b/inc/pm.php index 622fb7f..19871f3 100644 --- a/inc/pm.php +++ b/inc/pm.php @@ -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: pm.php - Last Update: 11/28/2007 SVN 130 - Author: cooldude2k $ + $FileInfo: pm.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="pm.php"||$File3Name=="/pm.php") { @@ -484,41 +484,44 @@ if(!isset($_POST['GuestName'])) { $_POST['GuestName'] = null; }  Make Message: + + +="25") { $Error="Yes"; ?> - - + - - + ="30") { $Error="Yes"; ?> - - + ="45") { $Error="Yes"; ?> - - + ="25") { $Error="Yes"; ?> - - + - - + @@ -555,39 +558,39 @@ if($SendUserCanPM!="yes"&&$SendUserCanPM!="no") { @mysql_free_result($gresult); ++$rei; } @mysql_free_result($reresult); if($renum==0) { $Error="Yes"; ?> - - + - - + - - + - - + - - + - - + @@ -599,13 +602,15 @@ if($_SESSION['UserGroup']==$Settings['GuestGroup']) { $User1Name = $_POST['Guest if($_SESSION['UserGroup']!=$Settings['GuestGroup']) { $User1Name = $_SESSION['MemberName']; } $query = query("INSERT INTO `".$Settings['sqltable']."messenger` VALUES (".$messageid.",%i,%i,'%s','%s','%s','%s',%i,%i)", array($_SESSION['UserID'],$SendMessageToID,$_SESSION['MemberName'],$_POST['MessageName'],$_POST['Message'],$_POST['MessageDesc'],$LastActive,0)); mysql_query($query); -?> - + +
+

Send to user name too big.
+

You need to enter a user name to send message to.
+

Message Name is too big.
+

Message Description is too big.
+

You Guest Name is too big.
+

Sorry the referering url dose not match our host name.
+

Cound not find users name.
+

You need to enter a Message Name.
+

You need to enter a Message Description.
+

User Name enter can not get messages.
+

You need to enter a Message.
+

You need to enter a Guest Name.

+?>

Message sent to user .
Click ">here to go back to index.
 

+   diff --git a/inc/replys.php b/inc/replys.php index abbfadd..e3efc05 100644 --- a/inc/replys.php +++ b/inc/replys.php @@ -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: 11/28/2007 SVN 130 - Author: cooldude2k $ + $FileInfo: replys.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="replys.php"||$File3Name=="/replys.php") { @@ -488,23 +488,26 @@ if(!isset($_POST['GuestName'])) { $_POST['GuestName'] = null; }  Make Reply Message: + + +="45") { $Error="Yes"; ?> - - + ="25") { $Error="Yes"; ?> - - + - - + @@ -520,34 +523,34 @@ $_POST['ReplyPost'] = stripcslashes(htmlspecialchars($_POST['ReplyPost'], ENT_QU //$_POST['ReplyPost'] = @remove_spaces($_POST['ReplyPost']); $_POST['ReplyPost'] = remove_bad_entities($_POST['ReplyPost']); if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?> - - + - - + - - + - - + - - + @@ -598,13 +601,15 @@ $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)."#reply".$MyPostNum,"3"); -?> - + +
+

Your Reply Description is too big.
+

You Guest Name is too big.
+

Sorry the referering url dose not match our host name.
+

You need to enter a Reply Description.
+

You need to enter a Guest Name.
+

You do not have permission to make a reply here.
+

You do not have permission to make a reply here.
+

You need to enter a Reply.

+?>

Reply to Topic was posted.
Click #reply">here to view your reply.
 

+   @@ -653,8 +658,8 @@ mysql_query($queryupd);  Pin/Unpin Topic Message: - -
+ +
Topic was successfully unpinned/pinned.
Click ">here to go back to topic.
 

@@ -704,8 +709,8 @@ mysql_query($queryupd);  Open/Close Topic Message: - -
+ +
Topic was successfully opened/closed.
Click ">here to go back to topic.
 

@@ -804,8 +809,8 @@ mysql_query($queryupd); }  Delete Reply Message: - -
+ +
Reply was deleted successfully.
Click ">here to go back to index.
 

@@ -996,30 +1001,33 @@ if($PermissionInfo['CanEditTopicsClose'][$TopicForumID]=="no"&&$TopicClosed==1)  Edit Reply Message: + + +="45") { $Error="Yes"; ?> - - + ="25") { $Error="Yes"; ?> - - + ="30") { $Error="Yes"; ?> - - + - - + @@ -1038,39 +1046,39 @@ $_POST['TopicName'] = stripcslashes(htmlspecialchars($_POST['TopicName'], ENT_QU //$_POST['TopicName'] = preg_replace("/&#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['TopicName']); $_POST['TopicName'] = @remove_spaces($_POST['TopicName']); } if ($_POST['ReplyDesc']==null) { $Error="Yes"; ?> - - + - - + - - + - - + - - + - - + @@ -1095,12 +1103,14 @@ $queryupd = query("UPDATE `".$Settings['sqltable']."topics` SET `TopicName`='%s' mysql_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)."#post".$_GET['post'],"3"); ?> - - + +
+

Your Reply Description is too big.
+

You Guest Name is too big.
+

You Topic Name is too big.
+

Sorry the referering url dose not match our host name.
+

You need to enter a Reply Description.
+

You need to enter a Guest Name.
+

You do not have permission to edit a reply here.
+

You do not have permission to edit a reply here.
+

You need to enter a Topic Name.
+

You need to enter a Reply.

+

Reply to Topic was edited.
Click ">here to view topic.
 

+   diff --git a/inc/topics.php b/inc/topics.php index 8114574..8c64852 100644 --- a/inc/topics.php +++ b/inc/topics.php @@ -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: 12/10/2007 SVN 133 - Author: cooldude2k $ + $FileInfo: topics.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="topics.php"||$File3Name=="/topics.php") { @@ -365,29 +365,32 @@ if(!isset($_POST['GuestName'])) { $_POST['GuestName'] = null; }  Make Topic Message: + + +="30") { $Error="Yes"; ?> - - + ="45") { $Error="Yes"; ?> - - + ="25") { $Error="Yes"; ?> - - + - - + @@ -406,33 +409,33 @@ $_POST['TopicPost'] = stripcslashes(htmlspecialchars($_POST['TopicPost'], ENT_QU $_POST['TopicPost'] = remove_bad_entities($_POST['TopicPost']); //$_POST['TopicPost'] = @remove_spaces($_POST['TopicPost']); if ($_POST['TopicName']==null) { $Error="Yes"; ?> - - + - - + - - + - - + - - + @@ -472,13 +475,15 @@ $NewNumPosts = $NumberPosts + 1; $NewNumTopics = $NumberTopics + 1; $queryupd = query("UPDATE `".$Settings['sqltable']."forums` SET `NumPosts`=%i,`NumTopics`=%i WHERE `id`=%i", array($NewNumPosts,$NewNumTopics,$ForumID)); mysql_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"); -?> - + +
+

Your Topic Name is too big.
+

Your Topic Description is too big.
+

You Guest Name is too big.
+

Sorry the referering url dose not match our host name.
+

You need to enter a Topic Name.
+

You need to enter a Topic Description.
+

You need to enter a Guest Name.
+

You do not have permission to make a topic here.
+

You need to enter a Topic Post.

+?>

Topic was started.
Click ">here to continue to topic.
 

+   diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 452a1f9..21c9f6a 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -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: 12/10/2007 SVN 133 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 12/11/2007 SVN 134 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -26,9 +26,9 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { if($showsvn!=true&&$showsvn!=null) { $return_var .= " ".$showsvn." ".$svnver; } return $return_var; } // Version number and date stuff. :P -$VER1[0] = 0; $VER1[1] = 2; $VER1[2] = 0; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 133; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 12; $SVNDay[1] = 10; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER1[0] = 0; $VER1[1] = 2; $VER1[2] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 134; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 12; $SVNDay[1] = 11; $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); -- 2.11.0