query("SELECT ID FROM users_main WHERE Username='".db_string($User)."'"); list($AuthorID) = $DB->next_record(); } else { $User = ''; } // Are we looking in individual forums? if(isset($_GET['forums']) && is_array($_GET['forums'])) { $ForumArray = array(); foreach($_GET['forums'] as $Forum) { if(is_number($Forum)) { $ForumArray[]=$Forum; } } if(count($ForumArray)>0) { $SearchForums = implode(', ',$ForumArray); } } // Searching for posts in a specific thread if(!empty($_GET['threadid'])) { $ThreadID = db_string($_GET['threadid']); $Type='body'; $SQL = "SELECT Title FROM forums_topics AS t JOIN forums AS f ON f.ID=t.ForumID WHERE f.MinClassRead <= '$LoggedUser[Class]' AND t.ID=$ThreadID"; if(!empty($RestrictedForums)) { $SQL .= " AND f.ID NOT IN ('".$RestrictedForums."')"; } $DB->query($SQL); if (list($Title) = $DB->next_record()) { $Title = " > $Title"; } else { $Title = ''; $ThreadID = ''; } } else { $ThreadID = ''; } // Let's hope we got some results - start printing out the content. View::show_header('Forums'.' > '.'Search', 'bbcode'); ?>

Forums > Search

Search for:
Search in: /> />
Forums:
/>
Username:
record_count() == 0) { ?> next_record()) { $Row = ($Row == 'a') ? 'b' : 'a'; // Print results ?>
Forum Time
Nothing found!
(show)