| 1 |
<?php
|
| 2 |
/**
|
| 3 |
* File functions:
|
| 4 |
* Frequently asked
|
| 5 |
*
|
| 6 |
* @name : faq.php
|
| 7 |
* @copyright : (C) 207 Orodlin Team based on Gamers-Fusion ver 2.5 and Vallheru Engine
|
| 8 |
* @author :
|
| 9 |
* @version :
|
| 10 |
* @since : 18.05.2007
|
| 11 |
*
|
| 12 |
//
|
| 13 |
// $Id: index.php 835 2006-11-22 17:40:22Z thindil $
|
| 14 |
|
| 15 |
*/ |
| 16 |
require_once ('includes/main/base.php'); |
| 17 |
|
| 18 |
require_once ('includes/getlang.php'); |
| 19 |
GetLang (); |
| 20 |
GetLoc ('mainpage'); |
| 21 |
GetLoc ('faq'); |
| 22 |
|
| 23 |
GameCloseRoutine (); |
| 24 |
|
| 25 |
require_once ('includes/main/record.php'); |
| 26 |
require_once ('includes/main/counter.php'); |
| 27 |
require_once ('includes/main/online.php'); |
| 28 |
require_once ('includes/main/usersever.php'); |
| 29 |
|
| 30 |
require_once ('includes/right.php'); |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
$titles = array(TOPIC1, TOPIC2, TOPIC3, TOPIC4, TOPIC5, TOPIC6, TOPIC7, TOPIC8, TOPIC9, TOPIC10, TOPIC11, TOPIC12, TOPIC13);
|
| 35 |
$count_topics = count($titles);
|
| 36 |
$half_number = ceil($count_topics / 2 );
|
| 37 |
$counter = array();
|
| 38 |
for ( $i=0; $i < $count_topics; $i++)
|
| 39 |
{
|
| 40 |
$counter[$i] = $i + 1 ;
|
| 41 |
}
|
| 42 |
$smarty -> assign( array ('Pagetitle' => FAQ_TITLE,
|
| 43 |
'Titles' => $titles,
|
| 44 |
'Counttopics' => $count_topics,
|
| 45 |
'Halfnumber' => $half_number,
|
| 46 |
'Counter' => $counter));
|
| 47 |
$number_text = $_GET['view'];
|
| 48 |
if (isset ($_GET['view']) && $_GET['view'] == $number_text)
|
| 49 |
{
|
| 50 |
$arrtexts = array(TEXT1, TEXT2, TEXT3, TEXT4, TEXT5, TEXT6, TEXT7, TEXT8, TEXT9, TEXT10,TEXT11, TEXT12, TEXT13);
|
| 51 |
$smarty -> assign( array('Faq_text' => $arrtexts[$number_text-1]));
|
| 52 |
}
|
| 53 |
$smarty -> display('faq.tpl');
|
| 54 |
$db -> Close();
|
| 55 |
?>
|