OSDN Git Service

Small update to max size.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Thu, 20 Aug 2009 04:23:41 +0000 (04:23 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Thu, 20 Aug 2009 04:23:41 +0000 (04:23 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@313 2b68903e-0b30-0410-9a39-a2e4f3c5be39

inc/admin/categories.php
inc/admin/forums.php
inc/members.php
inc/profilemain.php
inc/replies.php
inc/topics.php
inc/versioninfo.php
setup/mkconfig.php

index 22d0b08..85fd6b5 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: categories.php - Last Update: 8/12/2009 SVN 305 - Author: cooldude2k $
+    $FileInfo: categories.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="categories.php"||$File3Name=="/categories.php") {
@@ -162,9 +162,9 @@ if($id_check > 0) { $Error="Yes";
 $errorstr = $errorstr."This ID number is already used.<br />\n"; } 
 if($order_check > 0) { $Error="Yes"; 
 $errorstr = $errorstr."This order number is already used.<br />\n"; } 
-if (pre_strlen($_POST['CategoryName'])>="30") { $Error="Yes";
+if (pre_strlen($_POST['CategoryName'])>"150") { $Error="Yes";
 $errorstr = $errorstr."Your category name is too big.<br />\n"; } 
-if (pre_strlen($_POST['CategoryDesc'])>="45") { $Error="Yes";
+if (pre_strlen($_POST['CategoryDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your category description is too big.<br />\n"; } 
 if ($Error!="Yes") {
 @redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
@@ -536,9 +536,9 @@ if($id_check > 0&&$_POST['CategoryID']!=$OldID) { $Error="Yes";
 $errorstr = $errorstr."This ID number is already used.<br />\n"; } 
 if($order_check > 0&&$_POST['OrderID']!=$OldOrder) { $Error="Yes"; 
 $errorstr = $errorstr."This order number is already used.<br />\n"; } 
-if (pre_strlen($_POST['CategoryName'])>="30") { $Error="Yes";
+if (pre_strlen($_POST['CategoryName'])>"150") { $Error="Yes";
 $errorstr = $errorstr."Your category name is too big.<br />\n"; } 
-if (pre_strlen($_POST['CategoryDesc'])>="45") { $Error="Yes";
+if (pre_strlen($_POST['CategoryDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your category description is too big.<br />\n"; } 
 if ($Error!="Yes") {
 @redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
index 60f9846..4557ecb 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: forums.php - Last Update: 8/6/2009 SVN 293 - Author: cooldude2k $
+    $FileInfo: forums.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="forums.php"||$File3Name=="/forums.php") {
@@ -217,9 +217,9 @@ if($id_check > 0) { $Error="Yes";
 $errorstr = $errorstr."This ID number is already used.<br />\n"; } 
 if($order_check > 0) { $Error="Yes"; 
 $errorstr = $errorstr."This order number is already used.<br />\n"; } 
-if (pre_strlen($_POST['ForumName'])>="30") { $Error="Yes";
+if (pre_strlen($_POST['ForumName'])>"150") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Name is too big.<br />\n"; } 
-if (pre_strlen($_POST['ForumDesc'])>="45") { $Error="Yes";
+if (pre_strlen($_POST['ForumDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Description is too big.<br />\n"; } 
 if ($Error!="Yes") {
 @redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
@@ -657,9 +657,9 @@ if($id_check > 0&&$_POST['ForumID']!=$OldID) { $Error="Yes";
 $errorstr = $errorstr."This ID number is already used.<br />\n"; } 
 if($order_check > 0&&$_POST['OrderID']!=$OldOrder) { $Error="Yes"; 
 $errorstr = $errorstr."This order number is already used.<br />\n"; } 
-if (pre_strlen($_POST['ForumName'])>="30") { $Error="Yes";
+if (pre_strlen($_POST['ForumName'])>"150") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Name is too big.<br />\n"; } 
-if (pre_strlen($_POST['ForumDesc'])>="45") { $Error="Yes";
+if (pre_strlen($_POST['ForumDesc'])>"300") { $Error="Yes";
 $errorstr = $errorstr."Your Forum Description is too big.<br />\n"; } 
 if ($Error!="Yes") {
 @redirect("refresh",$basedir.url_maker($exfile['admin'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['admin'],$exqstr['admin'],FALSE),"4");
index 6169f81..b51cf98 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: members.php - Last Update: 8/14/2009 SVN 310 - Author: cooldude2k $
+    $FileInfo: members.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="members.php"||$File3Name=="/members.php") {
@@ -800,13 +800,13 @@ $REFERERurl = null;
 <td class="TableColumn3">
 <table style="width: 100%; height: 25%; text-align: center;">
 <?php
-if (pre_strlen($_POST['userpass'])>="30") { $Error="Yes";  ?>
+if (pre_strlen($_POST['userpass'])>"60") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your password is too big.<br />
        </span>&nbsp;</td>
 </tr>
-<?php } if (pre_strlen($_POST['username'])>="24") { $Error="Yes";  ?>
+<?php } if (pre_strlen($_POST['username'])>"30") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your user name is too big.<br />
@@ -1127,7 +1127,7 @@ require($SettDir['inc']."captcha.php"); }
 <tr class="TableRow3">
 <td class="TableColumn3">
 <table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['Password'])>="30") { $Error="Yes";  ?>
+<?php if (pre_strlen($_POST['Password'])>"60") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your password is too big.<br />
@@ -1139,7 +1139,7 @@ require($SettDir['inc']."captcha.php"); }
        <br />Sorry the referering url dose not match our host name.<br />
        </span>&nbsp;</td>
 </tr>
-<?php } if (pre_strlen($_POST['username'])>="24") { $Error="Yes";  ?>
+<?php } if (pre_strlen($_POST['username'])>"30") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your user name is too big.<br />
index b0c2bf4..72f70bf 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: profilemain.php - Last Update: 8/6/2009 SVN 296 - Author: cooldude2k $
+    $FileInfo: profilemain.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="profilemain.php"||$File3Name=="/profilemain.php") {
@@ -460,6 +460,8 @@ if ($handle = opendir($skindir)) { $dirnum = null;
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="30">30</option>
+<option value="30">35</option>
+<option value="30">40</option>
 </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 40%;"><label class="TextBoxLabel" for="TopicsPerPage">Topics Per Page:</label></td>
@@ -471,6 +473,8 @@ if ($handle = opendir($skindir)) { $dirnum = null;
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="30">30</option>
+<option value="30">35</option>
+<option value="30">40</option>
 </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 40%;"><label class="TextBoxLabel" for="MessagesPerPage">Messages/Members Per Page:</label></td>
@@ -482,6 +486,8 @@ if ($handle = opendir($skindir)) { $dirnum = null;
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="30">30</option>
+<option value="30">35</option>
+<option value="30">40</option>
 </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 40%;"><label class="TextBoxLabel" for="DST">Is <span title="Daylight Savings Time">DST</span> / <span title="Summer Time">ST</span> on or off:</label></td>
@@ -639,6 +645,8 @@ echo "<option value=\"".$showmin."\">0:".$showmin." minutes</option>\n";
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="30">30</option>
+<option value="30">35</option>
+<option value="30">40</option>
 </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 40%;"><label class="TextBoxLabel" for="TopicsPerPage">Topics Per Page:</label></td>
@@ -650,6 +658,8 @@ echo "<option value=\"".$showmin."\">0:".$showmin." minutes</option>\n";
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="30">30</option>
+<option value="30">35</option>
+<option value="30">40</option>
 </select></td>
 </tr><tr style="text-align: left;">
        <td style="width: 40%;"><label class="TextBoxLabel" for="MessagesPerPage">Messages/Members Per Page:</label></td>
@@ -856,9 +866,9 @@ if($OldHashType=="iDBH"&&$UpdateHash!==true) {
        $NewPassword = b64e_hmac($_POST['Password'],$OldJoined,$NewSalt,"sha1"); }
 if($YourPassword!=$OldPassword) { $Error="Yes"; ?>
 <div class="TableMessage" style="text-align: center;">Your old Password did not match.<br />&nbsp;</div>
-<?php } if(pre_strlen($_POST['Password'])=="30") { $Error="Yes"; ?>
+<?php } if(pre_strlen($_POST['Password'])>"60") { $Error="Yes"; ?>
 <div class="TableMessage" style="text-align: center;">Your password is too big.<br />&nbsp;</div>
-<?php } if(pre_strlen($_POST['OldPass'])=="30") { $Error="Yes"; ?>
+<?php } if(pre_strlen($_POST['OldPass'])>"60") { $Error="Yes"; ?>
 <div class="TableMessage" style="text-align: center;">Your old password is too big.<br />&nbsp;</div>
 <?php } if ($_POST['Password']!=$_POST['RePassword']) { $Error="Yes";  ?>
 <div class="TableMessage" style="text-align: center;">Your passwords did not match.<br />&nbsp;</div>
index 57fde10..7e3e8c7 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: replies.php - Last Update: 8/14/2009 SVN 310 - Author: cooldude2k $
+    $FileInfo: replies.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="replies.php"||$File3Name=="/replies.php") {
@@ -673,7 +673,7 @@ require($SettDir['inc']."captcha.php"); }
 <tr class="TableRow3">
 <td class="TableColumn3">
 <table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['ReplyDesc'])>="45") { $Error="Yes";  ?>
+<?php if (pre_strlen($_POST['ReplyDesc'])>"80") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your Reply Description is too big.<br />
@@ -690,7 +690,7 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
        </span>&nbsp;</td>
 </tr>
 <?php } } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       pre_strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
+       pre_strlen($_POST['GuestName'])>"30") { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
        <br />You Guest Name is too big.<br />
@@ -1282,7 +1282,7 @@ if($PermissionInfo['CanEditTopicsClose'][$TopicForumID]=="no"&&$TopicClosed==1)
 <tr class="TableRow3">
 <td class="TableColumn3">
 <table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['ReplyDesc'])>="45") { $Error="Yes";  ?>
+<?php if (pre_strlen($_POST['ReplyDesc'])>"80") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your Reply Description is too big.<br />
@@ -1305,14 +1305,14 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
        </span>&nbsp;</td>
 </tr>
 <?php } } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       pre_strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
+       pre_strlen($_POST['GuestName'])>"30") { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
        <br />You Guest Name is too big.<br />
        </span>&nbsp;</td>
 </tr>
 <?php } if($ShowEditTopic===true&&
-       pre_strlen($_POST['TopicName'])>="30") { $Error="Yes"; ?>
+       pre_strlen($_POST['TopicName'])>"50") { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
        <br />You Topic Name is too big.<br />
index f78ae7f..546d928 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: topics.php - Last Update: 8/14/2009 SVN 310 - Author: cooldude2k $
+    $FileInfo: topics.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="topics.php"||$File3Name=="/topics.php") {
@@ -625,7 +625,7 @@ require($SettDir['inc']."captcha.php"); }
 <tr class="TableRow3">
 <td class="TableColumn3">
 <table style="width: 100%; height: 25%; text-align: center;">
-<?php if (pre_strlen($_POST['TopicName'])>="30") { $Error="Yes";  ?>
+<?php if (pre_strlen($_POST['TopicName'])>"50") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your Topic Name is too big.<br />
@@ -641,7 +641,7 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
        <br />Invalid code entered<br />
        </span>&nbsp;</td>
 </tr>
-<?php } } if (pre_strlen($_POST['TopicDesc'])>="45") { $Error="Yes";  ?>
+<?php } } if (pre_strlen($_POST['TopicDesc'])>"80") { $Error="Yes";  ?>
 <tr>
        <td><span class="TableMessage">
        <br />Your Topic Description is too big.<br />
@@ -654,7 +654,7 @@ if (PhpCaptcha::Validate($_POST['signcode'])) {
        </span>&nbsp;</td>
 </tr>
 <?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
-       pre_strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
+       pre_strlen($_POST['GuestName'])>"30") { $Error="Yes"; ?>
 <tr>
        <td><span class="TableMessage">
        <br />You Guest Name is too big.<br />
index 14cb0d1..d759f40 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2009 iDB Support - http://idb.berlios.de/
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
 
-    $FileInfo: versioninfo.php - Last Update: 8/17/2009 SVN 312 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 8/19/2009 SVN 313 - 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] = 2; $VER1[2] = 9; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 312; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 8; $SVNDay[1] = 17; $SVNDay[2] = 2009; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 313; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 8; $SVNDay[1] = 19; $SVNDay[2] = 2009; $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);
index 999a755..5369e88 100644 (file)
@@ -12,7 +12,7 @@
     Copyright 2004-2009 Game Maker 2k - http://gamemaker2k.org/
     iDB Installer made by Game Maker 2k - http://idb.berlios.net/
 
-    $FileInfo: mkconfig.php - Last Update: 8/10/2009 SVN 302 - Author: cooldude2k $
+    $FileInfo: mkconfig.php - Last Update: 8/19/2009 SVN 313 - Author: cooldude2k $
 */
 $File3Name = basename($_SERVER['SCRIPT_NAME']);
 if ($File3Name=="mkconfig.php"||$File3Name=="/mkconfig.php") {
@@ -51,13 +51,13 @@ $URLsTest = parse_url($_POST['BoardURL']);
 @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";
+if (pre_strlen($_POST['AdminPasswords'])<"3") { $Error="Yes";
 echo "<br />Your password is too small."; }
-if (strlen($_POST['AdminUser'])<="3") { $Error="Yes";
+if (pre_strlen($_POST['AdminUser'])<"3") { $Error="Yes";
 echo "<br />Your user name is too small."; }
-if (strlen($_POST['AdminPasswords'])>="30") { $Error="Yes";
+if (pre_strlen($_POST['AdminPasswords'])>"60") { $Error="Yes";
 echo "<br />Your password is too big."; }
-if (strlen($_POST['AdminUser'])>="20") { $Error="Yes";
+if (pre_strlen($_POST['AdminUser'])>"30") { $Error="Yes";
 echo "<br />Your user name is too big."; }
 if ($_POST['AdminPasswords']!=$_POST['ReaPassword']) { $Error="Yes";
 echo "<br />Your passwords did not match."; }