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: 08/31/2007 SVN 93 - Author: cooldude2k $
+ $FileInfo: events.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="events.php"||$File3Name=="/events.php") {
<tr class="TableRow2">
<th class="TableRow2" style="width: 100%; text-align: left;"> Make Event Message: </th>
</tr>
-<?php if (strlen($_POST['EventName'])=="30") { $Error="Yes"; ?>
+<?php if (strlen($_POST['EventName'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Your Event Name is too big.<br />
</span></td>
</tr>
<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
- strlen($_POST['GuestName'])=="25") { $Error="Yes"; ?>
+ strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Guest Name is too big.<br />
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: 08/31/2007 SVN 93 - Author: cooldude2k $
+ $FileInfo: members.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="members.php"||$File3Name=="/members.php") {
<td class="TableRow3">
<table style="width: 100%; height: 25%; text-align: center;">
<?php
-if (strlen($_POST['userpass'])=="30") { $Error="Yes"; ?>
+if (strlen($_POST['userpass'])>="30") { $Error="Yes"; ?>
<tr>
<td><span class="TableMessage">
<br />Your password is too big.<br />
</span></td>
</tr>
-<?php } if (strlen($_POST['username'])=="20") { $Error="Yes"; ?>
+<?php } if (strlen($_POST['username'])>="20") { $Error="Yes"; ?>
<tr>
<td><span class="TableMessage">
<br />Your user name is too big.<br />
<tr class="TableRow3">
<td class="TableRow3">
<table style="width: 100%; height: 25%; text-align: center;">
-<?php if (strlen($_POST['Password'])=="30") { $Error="Yes"; ?>
+<?php if (strlen($_POST['Password'])>="30") { $Error="Yes"; ?>
<tr>
<td><span class="TableMessage">
<br />Your password is too big.<br />
</span></td>
</tr>
-<?php } if (strlen($_POST['username'])=="20") { $Error="Yes"; ?>
+<?php } if (strlen($_POST['username'])>="20") { $Error="Yes"; ?>
<tr>
<td><span class="TableMessage">
<br />Your user name is too big.<br />
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: 08/31/2007 SVN 93 - Author: cooldude2k $
+ $FileInfo: pm.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="pm.php"||$File3Name=="/pm.php") {
<tr class="TableRow2">
<th class="TableRow2" style="width: 100%; text-align: left;"> Make Message: </th>
</tr>
-<?php if (strlen($_POST['SendMessageTo'])=="25") { $Error="Yes"; ?>
+<?php if (strlen($_POST['SendMessageTo'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Send to user name too big.<br />
<br />You need to enter a user name to send message to.<br />
</span></td>
</tr>
-<?php } if (strlen($_POST['MessageName'])=="30") { $Error="Yes"; ?>
+<?php } if (strlen($_POST['MessageName'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Message Name is too big.<br />
</span></td>
</tr>
-<?php } if (strlen($_POST['MessageDesc'])=="30") { $Error="Yes"; ?>
+<?php } if (strlen($_POST['MessageDesc'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Message Description is too big.<br />
</span></td>
</tr>
<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
- strlen($_POST['GuestName'])=="25") { $Error="Yes"; ?>
+ strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Guest Name is too big.<br />
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: 08/30/2007 SVN 92 - Author: cooldude2k $
+ $FileInfo: replys.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="replys.php"||$File3Name=="/replys.php") {
<tr class="TableRow2">
<th class="TableRow2" style="width: 100%; text-align: left;"> Make Reply Message: </th>
</tr>
-<?php if (strlen($_POST['ReplyDesc'])=="30") { $Error="Yes"; ?>
+<?php if (strlen($_POST['ReplyDesc'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Your Reply Description is too big.<br />
</span></td>
</tr>
<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
- strlen($_POST['GuestName'])=="25") { $Error="Yes"; ?>
+ strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Guest Name is too big.<br />
<tr class="TableRow2">
<th class="TableRow2" style="width: 100%; text-align: left;"> Edit Reply Message: </th>
</tr>
-<?php if (strlen($_POST['ReplyDesc'])=="30") { $Error="Yes"; ?>
+<?php if (strlen($_POST['ReplyDesc'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Your Reply Description is too big.<br />
</span></td>
</tr>
<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
- strlen($_POST['GuestName'])=="25") { $Error="Yes"; ?>
+ strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Guest Name is too big.<br />
</span></td>
</tr>
<?php } if($ShowEditTopic==true&&
- strlen($_POST['TopicName'])=="30") { $Error="Yes"; ?>
+ strlen($_POST['TopicName'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Topic Name is too big.<br />
Copyright 2004-2007 Cool Dude 2k - http://intdb.sourceforge.net/
Copyright 2004-2007 Game Maker 2k - http://upload.idb.s1.jcink.com/
- $FileInfo: searchs.php - Last Update: 08/18/2007 SVN 86 - Author: cooldude2k $
+ $FileInfo: searchs.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="searchs.php"||$File3Name=="/searchs.php") {
<table class="Table1">
<tr class="TableRow1">
<td class="TableRow1"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo url_maker($exfile['search'],$Settings['file_ext'],"act=topics",$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search']); ?>">Topic Search</a>
+<?php echo $ThemeSet['TitleIcon']; ?><a href="<?php echo url_maker($exfile['search'],$Settings['file_ext'],"act=topics",$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search']); ?>">Topic Search</a>
</span><span style="float: right;"> </span></td>
</tr>
<tr class="TableRow2">
<td style="width: 30%;"><label class="TextBoxLabel" for="search">Enter SearchTerm: </label></td>
<td style="width: 70%;"><input class="TextBox" id="search" type="text" name="search" /></td>
</tr><tr>
+ <td style="width: 30%;"><label class="TextBoxLabel" for="msearch">Filter by Member (optional): </label></td>
+ <td style="width: 70%;"><input class="TextBox" id="msearch" type="text" name="msearch" /></td>
+</tr><tr>
<td style="width: 30%;"><label class="TextBoxLabel" title="Wildcard is %" for="type">Search Type: </label></td>
<td style="width: 70%;"><select id="type" name="type" class="TextBox">
<option value="normal">Normal Search</option>
</tr>
</table></div>
<?php } if($_GET['search']!=null&&$_GET['type']!=null) {
+if(strlen($_GET['msearch'])>="25") {
+ $_GET['msearch'] = null; }
+if($_GET['msearch']!=null) {
+$memsiquery = query("SELECT * FROM `".$Settings['sqltable']."members` WHERE `Name`='%s'", array($_GET['msearch']));
+$memsiresult=mysql_query($memsiquery);
+$memsinum=mysql_num_rows($memsiresult);
+$memsi=0;
+if($memsinum==0) { $_GET['msearch'] = null; }
+if($memsinum!=0) {
+$memsid=mysql_result($memsiresult,$memsi,"id");
+@mysql_free_result($memsiresult); } }
+if($_GET['msearch']==null) {
if($_GET['type']!="wildcard") {
$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `TopicName`='%s' ORDER BY `Pinned` DESC, `LastUpdate` DESC", array($_GET['search'])); }
if($_GET['type']=="wildcard") {
-$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `TopicName` LIKE '%s' ORDER BY `Pinned` DESC, `LastUpdate` DESC", array($_GET['search'])); }
+$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `TopicName` LIKE '%s' ORDER BY `Pinned` DESC, `LastUpdate` DESC", array($_GET['search'])); } }
+if($_GET['msearch']!=null) {
+if($_GET['type']!="wildcard") {
+$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `TopicName`='%s' AND `UserID`=%i ORDER BY `Pinned` DESC, `LastUpdate` DESC", array($_GET['search'],$memsid)); }
+if($_GET['type']=="wildcard") {
+$query = query("SELECT * FROM `".$Settings['sqltable']."topics` WHERE `TopicName` LIKE '%s' AND `UserID`=%i ORDER BY `Pinned` DESC, `LastUpdate` DESC", array($_GET['search'],$memsid)); } }
$result=mysql_query($query);
$num=mysql_num_rows($result);
if($num<=0) {
<table class="Table1" id="Search">
<tr id="SearchStart" class="TableRow1">
<td class="TableRow1" colspan="6"><span style="float: left;">
-<?php echo $ThemeSet['TitleIcon'] ?><a href="<?php echo url_maker($exfile['search'],$Settings['file_ext'],"act=topics&search=".$_GET['search']."&type=".$_GET['type'],$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search']); ?>">Searching for <?php echo $_GET['search']; ?></a></span>
+<?php echo $ThemeSet['TitleIcon'];
+if($_GET['msearch']==null) { ?>
+<a href="<?php echo url_maker($exfile['search'],$Settings['file_ext'],"act=topics&search=".$_GET['search']."&type=".$_GET['type'],$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search']); ?>">Searching for <?php echo $_GET['search']; ?></a>
+<?php } if($_GET['msearch']!=null) { ?>
+<a href="<?php echo url_maker($exfile['search'],$Settings['file_ext'],"act=topics&search=".$_GET['search']."&type=".$_GET['type']."&msearch=".$_GET['msearch'],$Settings['qstr'],$Settings['qsep'],$prexqstr['search'],$exqstr['search']); ?>">Searching for <?php echo $_GET['search']; ?> by <?php echo $_GET['msearch']; ?></a>
+<?php } ?></span>
<?php echo "<span style=\"float: right;\"> </span>"; ?></td>
</tr>
<tr id="SearchStatRow" class="TableRow2">
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: 08/18/2007 SVN 87 - Author: cooldude2k $
+ $FileInfo: topics.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="topics.php"||$File3Name=="/topics.php") {
<tr class="TableRow2">
<th class="TableRow2" style="width: 100%; text-align: left;"> Make Topic Message: </th>
</tr>
-<?php if (strlen($_POST['TopicName'])=="30") { $Error="Yes"; ?>
+<?php if (strlen($_POST['TopicName'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Your Topic Name is too big.<br />
</span></td>
</tr>
-<?php } if (strlen($_POST['TopicDesc'])=="30") { $Error="Yes"; ?>
+<?php } if (strlen($_POST['TopicDesc'])>="30") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />Your Topic Description is too big.<br />
</span></td>
</tr>
<?php } if($_SESSION['UserGroup']==$Settings['GuestGroup']&&
- strlen($_POST['GuestName'])=="25") { $Error="Yes"; ?>
+ strlen($_POST['GuestName'])>="25") { $Error="Yes"; ?>
<tr style="text-align: center;">
<td style="text-align: center;"><span class="TableMessage">
<br />You Guest Name is too big.<br />
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: 08/31/2007 SVN 93 - Author: cooldude2k $
+ $FileInfo: versioninfo.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
$File3Name = basename($_SERVER['SCRIPT_NAME']);
if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") {
return $return_var; }
// Version number and date stuff. :P
$VER1[0] = 0; $VER1[1] = 1; $VER1[2] = 9; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2];
-$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 93; $RName = "iDB"; $SFName = "IntDB";
-$SVNDay[0] = 08; $SVNDay[1] = 31; $SVNDay[2] = 2007; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2];
+$VER2[0] = "Pre-Alpha"; $VER2[1] = "PA"; $VER2[2] = "SVN"; $SubVerN = 94; $RName = "iDB"; $SFName = "IntDB";
+$SVNDay[0] = 09; $SVNDay[1] = 01; $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);
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: 07/17/2007 SVN 46 - Author: cooldude2k $
+ $FileInfo: search.php - Last Update: 09/01/2007 SVN 94 - Author: cooldude2k $
*/
require('preindex.php');
$usefileext = $Settings['file_ext'];
if($_GET['act']==null||$_GET['act']=="topic"||
$_POST['act']=="topic"||$_POST['act']=="topics")
{ $_GET['act']="topics"; }
-if($_GET['act']=="topics")
-{ require($SettDir['inc'].'searchs.php'); } }
+if($_GET['act']=="topics") {
+if(!isset($_GET['msearch'])) { $_GET['msearch'] = null; }
+if(!isset($_POST['msearch'])) { $_POST['msearch'] = null; }
+if($_GET['msearch']==null&&
+ $_POST['msearch']!=null) {
+ $_GET['msearch'] = $_POST['msearch']; }
+require($SettDir['inc'].'searchs.php'); } }
require($SettDir['inc'].'endpage.php');
if(!isset($_GET['search'])) { $_GET['search'] = null; }
?>