-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.php
More file actions
33 lines (32 loc) · 787 Bytes
/
Copy pathabout.php
File metadata and controls
33 lines (32 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
require_once('includes/allreputation.php');
$smarty->config_load($conf_file, 'about');
global $page;
$page = array(
'Mapper' => false,
'Book' => false,
'Title' => 'About',
'tab' => 0,
'type' => 0,
'typeid' => '',
'username' => $_SESSION['username'],
'path' => path(2,0)
);
$smarty->assign('page', $page);
// --Передаем данные шаблонизатору--
// Количество MySQL запросов
$smarty->assign('mysql', $DB->getStatistics());
$smarty->assign('reputation', getreputation($page['username']));
switch($_REQUEST['about'])
{
case 'privacy':
$smarty->display('about_privacy.tpl');
break;
case 'tos':
$smarty->display('about_tos.tpl');
break;
default:
$smarty->display('about.tpl');
break;
}
?>