OSDN Git Service

Updated copyright info and added checkdate.
authorKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 10 Mar 2008 20:40:50 +0000 (20:40 +0000)
committerKazuki Przyborowski <kazuki.przyborowski@gmail.com>
Mon, 10 Mar 2008 20:40:50 +0000 (20:40 +0000)
git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@152 2b68903e-0b30-0410-9a39-a2e4f3c5be39

README
inc/events.php
inc/profilemain.php
inc/versioninfo.php

diff --git a/README b/README
index 4a6db84..a82551b 100644 (file)
--- a/README
+++ b/README
 //                      ||    SeanJ ( http://seanj.jcink.com/ )    ||
 //                      ||            Jonathan ( unknown )         ||
 //                      ||            czambran ( unknown )         ||
-//                      \\       (c) 2004-2007 Game Maker 2k      //
+//                      \\       (c) 2004-2008 Game Maker 2k      //
 //                       """"""""""""""""""""""""""""""""""""""""""
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-//        $FileInfo: README - Last Update: 01/01/2008 SVN 144 - Author: cooldude2k $            
+//        $FileInfo: README - Last Update: 03/10/2008 SVN 152 - Author: cooldude2k $            
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-// Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ http://idb.berlios.net/
-// Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ 
+// Copyright 2004-2008 Cool Dude 2k - http://intdb.sourceforge.net/ http://idb.berlios.net/
+// Copyright 2004-2008 Game Maker 2k - http://upload.idb.s1.jcink.com/ 
 // http://s1.jcink.com/s/host/idb/  http://idb.everywebhost.com/  http://cooldude2k.id.funpic.org/
 //             Game Maker 2k Copyright 2000-2008 Cool Dude 2k (RenĂ© Johnson)
 // Emoticons made by Jcink for TextfileBB (https://launchpad.net/tfbb) Under GPL License
@@ -42,7 +42,7 @@
 //                        ||Website:http://quickarcade.jcink.com ||
 //                        || Website:https://launchpad.net/tfbb  ||
 //                        ||   by: Jcink ( http://jcink.com/ )   ||
-//                        ||         (c) 2007 Jcink              ||
+//                        ||         (c) 2008 Jcink              ||
 //                        \\                                    //
 //                         """"""""""""""""""""""""""""""""""""""
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
index e5172b1..30bd28f 100644 (file)
@@ -323,6 +323,18 @@ $TimeOut = explode("/",$_POST['EventEnd']);
        <br />Event End Year is too big.<br />
        </span>&nbsp;</td>
 </tr>
+<?php } if (checkdate($TimeIn[0],$TimeIn[1],$TimeIn[2])==false) { $Error="Yes";  ?>
+<tr style="text-align: center;">
+       <td style="text-align: center;"><span class="TableMessage">
+       <br />Sorry the event start date is not valid.<br />
+       </span>&nbsp;</td>
+</tr>
+<?php } if (checkdate($TimeOut[0],$TimeOut[1],$TimeOut[2])==false) { $Error="Yes";  ?>
+<tr style="text-align: center;">
+       <td style="text-align: center;"><span class="TableMessage">
+       <br />Sorry the event end date is not valid.<br />
+       </span>&nbsp;</td>
+</tr>
 <?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
        pre_strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
 <tr style="text-align: center;">
index b0864ac..c48a399 100644 (file)
@@ -452,6 +452,8 @@ if($BirthMonth!=null&&$BirthDay!=null&&$BirthYear!=null) {
        if($BirthMonth=="0") { $BirthMonth = "MM"; }
        if(pre_strlen($BirthMonth)=="1") { $BirthMonth = "0".$BirthMonth; }
        if(pre_strlen($BirthDay)=="1") { $BirthDay = "0".$BirthDay; }
+    if(checkdate($BirthMonth,$BirthDay,$BirthYear)==false) {
+       $BirthMonth = "MM"; $BirthDay = "DD"; $BirthYear = "YYYY"; }
        $User1Birthday = $BirthMonth."/".$BirthDay."/".$BirthYear; }
 $tsa_mem = explode(":",$User1TimeZone);
 $TimeZoneArray = array("offset" => $User1TimeZone, "hour" => $tsa_mem[0], "minute" => $tsa_mem[1]);
@@ -593,7 +595,7 @@ if($_POST['act']=="profile"&&
        if(!isset($_POST['EventDay'])) { $_POST['EventDay'] = null; }
        if($_POST['EventDay']!=null) {
        $BirthExpl = explode("/",$_POST['EventDay']);
-       if(count($BirthExpl)=="3") {
+       if(count($BirthExpl)=="3"&&checkdate($BirthExpl[0],$BirthExpl[1],$BirthExpl[2])==true) {
        if(is_numeric($BirthExpl[0])&&is_numeric($BirthExpl[1])&&is_numeric($BirthExpl[2])) {
        if(pre_strlen($BirthExpl[0])=="1") { $BirthExpl[0] = "0".$BirthExpl[0]; }
        if(pre_strlen($BirthExpl[1])=="1") { $BirthExpl[1] = "0".$BirthExpl[1]; }
@@ -606,6 +608,9 @@ if($_POST['act']=="profile"&&
                $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
        if (!is_numeric($BirthExpl[0])||!is_numeric($BirthExpl[1])||!is_numeric($BirthExpl[2])) { 
                $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
+       if(count($BirthExpl)=="3"&&
+       checkdate($BirthExpl[0],$BirthExpl[1],$BirthExpl[2])==false) {
+       $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; }
        if(count($BirthExpl)!="3") { $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; } }
        if($_POST['EventDay']==null) { $BirthMonth="0"; $BirthDay="0"; $BirthYear="0"; }
        if(!is_numeric($_POST['YourOffSet'])) { $_POST['YourOffSet'] = "0"; }
index bf7729c..c47f529 100644 (file)
@@ -11,7 +11,7 @@
     Copyright 2004-2008 Cool Dude 2k - http://idb.berlios.de/
     Copyright 2004-2008 Game Maker 2k - http://intdb.sourceforge.net/
 
-    $FileInfo: versioninfo.php - Last Update: 02/25/2008 SVN 151 - Author: cooldude2k $
+    $FileInfo: versioninfo.php - Last Update: 03/10/2008 SVN 152 - 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] = 1; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 151; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 02; $SVNDay[1] = 25; $SVNDay[2] = 2008; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 152; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 03; $SVNDay[1] = 10; $SVNDay[2] = 2008; $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);