| [Top level directory] [Classes] [Functions] [Constants] [Variables] |
XMB Open Source Forum Software - PHP Cross Reference |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * eXtreme Message Board 4 * XMB 1.9.11 5 * 6 * Developed And Maintained By The XMB Group 7 * Copyright (c) 2001-2010, The XMB Group 8 * http://www.xmbforum.com 9 * 10 * Sponsored By iEntry, Inc. 11 * http://www.ientry.com 12 * 13 * This program is free software; you can redistribute it and/or 14 * modify it under the terms of the GNU General Public License 15 * as published by the Free Software Foundation; either version 2 16 * of the License, or (at your option) any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * You should have received a copy of the GNU General Public License 24 * along with this program. If not, see <http://www.gnu.org/licenses/>. 25 * 26 **/ 27 28 define('X_SCRIPT', 'faq.php'); 29 30 require 'header.php'; 31 32 $page = postedVar('page', '', FALSE, FALSE, FALSE, 'g'); 33 34 if ($SETTINGS['faqstatus'] == 'off' && $page != 'forumrules') { 35 header('HTTP/1.0 403 Forbidden'); 36 loadtemplates('misc_feature_notavailable'); 37 eval('$css = "'.template('css').'";'); 38 nav('<a href="faq.php">'.$lang['textfaq']. '</a>'); 39 eval('$header = "'.template('header').'";'); 40 eval('$featureoff = "'.template('misc_feature_notavailable').'";'); 41 end_time(); 42 eval('$footer = "'.template('footer').'";'); 43 echo stripslashes($header.$featureoff.$footer); 44 exit(); 45 } 46 47 nav('<a href="faq.php">'.$lang['textfaq'].'</a>'); 48 49 switch($page) { 50 case 'usermaint': 51 setCanonicalLink("faq.php?page=$page"); 52 loadtemplates('faq_usermaint'); 53 nav($lang['textuserman']); 54 eval('$faq = "'.template('faq_usermaint').'";'); 55 break; 56 case 'using': 57 setCanonicalLink("faq.php?page=$page"); 58 loadtemplates('faq_using_rankrow', 'faq_using'); 59 nav($lang['textuseboa']); 60 $stars = $rankrows = ''; 61 $query = $db->query("SELECT * FROM ".X_PREFIX."ranks WHERE title !='Moderator' AND title !='Super Moderator' AND title !='Super Administrator' AND title !='Administrator' ORDER BY posts ASC"); 62 while($ranks = $db->fetch_array($query)) { 63 $stars = str_repeat('<img src="'.$imgdir.'/star.gif" alt="*" border="0" />', $ranks['stars']); 64 eval('$rankrows .= "'.template('faq_using_rankrow').'";'); 65 $stars = ''; 66 } 67 $db->free_result($query); 68 eval('$faq = "'.template('faq_using').'";'); 69 break; 70 case 'messages': 71 setCanonicalLink("faq.php?page=$page"); 72 loadtemplates('faq_messages_smilierow', 'faq_messages'); 73 $smilierows = NULL; 74 nav($lang['textpostread']); 75 $querysmilie = $db->query("SELECT * FROM `" .X_PREFIX. "smilies` WHERE type = 'smiley'"); 76 while($smilie = $db->fetch_array($querysmilie)) { 77 eval('$smilierows .= "'.template('faq_messages_smilierow').'";'); 78 } 79 $db->free_result($querysmilie); 80 eval('$faq = "'.template('faq_messages').'";'); 81 break; 82 case 'forumrules': 83 setCanonicalLink("faq.php?page=$page"); 84 loadtemplates('faq_forumrules'); 85 nav(); 86 nav($lang['textbbrules']); 87 if (empty($SETTINGS['bbrulestxt'])) { 88 $SETTINGS['bbrulestxt'] = $lang['textnone']; 89 } else { 90 $SETTINGS['bbrulestxt'] = nl2br(stripslashes($SETTINGS['bbrulestxt'])); 91 } 92 eval('$faq = "'.template('faq_forumrules').'";'); 93 break; 94 default: 95 setCanonicalLink('faq.php'); 96 loadtemplates('faq'); 97 eval('$faq = "'.template('faq').'";'); 98 break; 99 } 100 101 eval('$css = "'.template('css').'";'); 102 eval('$header = "'.template('header').'";'); 103 end_time(); 104 eval('$footer = "'.template('footer').'";'); 105 echo $header, $faq, $footer; 106 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Jan 26 20:11:23 2010 | Home | Forum | Download | SVN | Bug Tracker | Documentation | Cross-referenced by PHPXref 0.7 |