From 28880740ff6f5801b2bab9d12ffcede82ff9c82c Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Thu, 7 Jun 2007 08:10:43 +0000 Subject: [PATCH] Fixed some more runtime errors. (PHP Notice errors) git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@20 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- category.php | 3 ++- event.php | 3 ++- forum.php | 3 ++- inc/filename.php | 6 +++--- inc/members.php | 8 ++++---- member.php | 4 +++- messenger.php | 6 ++++-- profile.php | 6 ++++-- rss.php | 13 ++++--------- search.php | 3 ++- subcategory.php | 3 ++- subforum.php | 3 ++- topic.php | 3 ++- 13 files changed, 36 insertions(+), 28 deletions(-) diff --git a/category.php b/category.php index 4b35f69..508d02a 100644 --- a/category.php +++ b/category.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: category.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: category.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -32,6 +32,7 @@ if(!is_numeric($_GET['id'])) if($_GET['act']=="view") { require($SettDir['inc'].'categories.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($CategoryName)) { $CategoryName = null; } ?> diff --git a/event.php b/event.php index bdcf09e..c2f452c 100644 --- a/event.php +++ b/event.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: event.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: event.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -34,6 +34,7 @@ $_GET['act']="view"; require($SettDir['inc'].'events.php'); } ?>
 
diff --git a/forum.php b/forum.php index d7f8e43..33263bf 100644 --- a/forum.php +++ b/forum.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: forum.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: forum.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -36,6 +36,7 @@ if(!is_numeric($_GET['id'])) if($_GET['act']=="view") { require($SettDir['inc'].'topics.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($ForumName)) { $ForumName = null; } ?> diff --git a/inc/filename.php b/inc/filename.php index aa3047f..34ccf0a 100644 --- a/inc/filename.php +++ b/inc/filename.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: filename.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $ + $FileInfo: filename.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="filename.php"||$File3Name=="/filename.php") { @@ -44,8 +44,8 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { if($showsvn!=true&&$showsvn!=null) { $return_var .= " ".$showsvn." ".$svnver; } return $return_var; } $VER1[0] = 0; $VER1[1] = 1; $VER1[2] = 5; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 19; $RName = "iDB"; $SFName = "IntDB"; -$SVNDay[0] = 6; $SVNDay[1] = 06; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; +$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 20; $RName = "iDB"; $SFName = "IntDB"; +$SVNDay[0] = 6; $SVNDay[1] = 07; $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); diff --git a/inc/members.php b/inc/members.php index d1c223e..a1c1161 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: 06/06/2007 SVN 19 - Author: cooldude2k $ + $FileInfo: members.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="members.php"||$File3Name=="/members.php") { @@ -142,9 +142,9 @@ $i=0; if($num==0||$_GET['id']=="-1") { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } $ViewMem['ID']=mysql_result($result,$i,"id"); $ViewMem['Name']=mysql_result($result,$i,"Name"); -$ViewMem['Signature']=mysql_result($result,$rei,"Signature"); -$ViewMem['Avatar']=mysql_result($result,$rei,"Avatar"); -$ViewMem['AvatarSize']=mysql_result($result,$rei,"AvatarSize"); +$ViewMem['Signature']=mysql_result($result,$i,"Signature"); +$ViewMem['Avatar']=mysql_result($result,$i,"Avatar"); +$ViewMem['AvatarSize']=mysql_result($result,$i,"AvatarSize"); $ViewMem['Email']=mysql_result($result,$i,"Email"); $ViewMem['GroupID']=mysql_result($result,$i,"GroupID"); $ViewMem['WarnLevel']=mysql_result($result,$i,"WarnLevel"); diff --git a/member.php b/member.php index dc3acf4..5521973 100644 --- a/member.php +++ b/member.php @@ -11,13 +11,14 @@ Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/ Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/ - $FileInfo: member.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: member.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; if($ext=="noext"||$ext=="no ext"||$ext=="no+ext") { $usefileext = ""; } $filewpath = $exfile['member'].$Settings['file_ext'].$_SERVER['PATH_INFO']; if($_GET['act']==null) { $_GET['act'] = "login"; } +if(!isset($_GET['view'])) { $_GET['view'] = null; } ?> <?php echo $Settings['board_name'].$idbpowertitle; ?> @@ -41,6 +42,7 @@ if($_POST['act']=="makemembers") { require($SettDir['inc'].'members.php'); } } ?>
 
diff --git a/messenger.php b/messenger.php index 8b021d7..ff103ce 100644 --- a/messenger.php +++ b/messenger.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: messenger.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: messenger.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -36,7 +36,9 @@ if($_GET['act']=="read") { require($SettDir['inc'].'pm.php'); } ?>
 
- + diff --git a/profile.php b/profile.php index 760bfc3..c245a68 100644 --- a/profile.php +++ b/profile.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: profile.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: profile.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -35,7 +35,9 @@ $_GET['act']=="profile"|| $_GET['act']=="userinfo") { require($SettDir['inc'].'profilemain.php'); } ?>
 
- + diff --git a/rss.php b/rss.php index 388498f..fd177b7 100644 --- a/rss.php +++ b/rss.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: rss.php - Last Update: 05/09/2007 SVN 1 - Author: cooldude2k $ + $FileInfo: rss.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ @error_reporting(E_ALL ^ E_NOTICE); if(@ini_get("register_globals")) { @@ -24,13 +24,8 @@ if($SettDir['mod']==null) { $SettDir['mod'] = "inc/mod/"; } if($SettDir['themes']==null) { $SettDir['themes'] = "themes/"; } if($Settings['enable_rss']==false) { redirect("location",$basedir.url_maker($exfile['index'],$Settings['file_ext'],"act=view",$Settings['qstr'],$Settings['qsep'],$prexqstr['index'],$exqstr['index'],false)); } -if($_GET['feed']!="rss"&&$_GET['feed']!="atom") { - $_GET['feed'] = "rss"; } -if($_GET['feedtype']!="rss"&&$_GET['feedtype']!="atom") { - if($_GET['feed']=="rss"||$_GET['feed']=="atom") { $_GET['feedtype'] = $_GET['feed']; } - if($_GET['act']=="rss"||$_GET['act']=="atom") { $_GET['feedtype'] = $_GET['act']; } - if($_GET['feedtype']!="rss"&&$_GET['feedtype']!="atom") { $_GET['feedtype'] = "rss"; } } -if($_GET['feed']=="rss"||$_GET['act']=="Feed"||$_GET['feed']=="atom") { - $_GET['feedtype'] = $_GET['feed']; $Feed['Feed']="Done"; +if($_GET['act']==null) { $_GET['act'] = "rss"; } +if($_GET['act']=="rss"||$_GET['act']=="atom") { + $_GET['feedtype'] = $_GET['act']; $Feed['Feed']="Done"; require($SettDir['inc'].'rssfeed.php'); } ?> \ No newline at end of file diff --git a/search.php b/search.php index c343750..65be3b2 100644 --- a/search.php +++ b/search.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: search.php - Last Update: 06/06/2007 SVN 19 - Author: cooldude2k $ + $FileInfo: search.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -41,6 +41,7 @@ if($_GET['act']==null||$_GET['act']=="topic"|| if($_GET['act']=="topics") { require($SettDir['inc'].'searchs.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($_GET['search'])) { $_GET['search'] = null; } ?> diff --git a/subcategory.php b/subcategory.php index 3c62e17..d282145 100644 --- a/subcategory.php +++ b/subcategory.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: subcategory.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: subcategory.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -32,6 +32,7 @@ if(!is_numeric($_GET['id'])) if($_GET['act']=="view") { require($SettDir['inc'].'subcategories.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($CategoryName)) { $CategoryName = null; } ?> diff --git a/subforum.php b/subforum.php index b2e48de..b550b79 100644 --- a/subforum.php +++ b/subforum.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: subforum.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: subforum.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -36,6 +36,7 @@ if(!is_numeric($_GET['id'])) if($_GET['act']=="view") { require($SettDir['inc'].'subforums.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($ForumName)) { $ForumName = null; } ?> diff --git a/topic.php b/topic.php index 2dbfa47..d35ed64 100644 --- a/topic.php +++ b/topic.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: topic.php - Last Update: 05/14/2007 SVN 4 - Author: cooldude2k $ + $FileInfo: topic.php - Last Update: 06/07/2007 SVN 20 - Author: cooldude2k $ */ require('preindex.php'); $usefileext = $Settings['file_ext']; @@ -30,6 +30,7 @@ if(!is_numeric($_GET['id'])) if($_GET['act']=="view") { require($SettDir['inc'].'replys.php'); } require($SettDir['inc'].'endpage.php'); +if(!isset($TopicName)) { $TopicName = null; } ?> -- 2.11.0