forked from abelcaballero210890/rigaaowow
-
Notifications
You must be signed in to change notification settings - Fork 1
/
events.php
33 lines (29 loc) · 933 Bytes
/
events.php
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/allevents.php');
$smarty->config_load($conf_file, 'event');
@list($category) = extract_values($podrazdel);
/// Warning: Cache is disabled here because dates are recalculated every time.
//$cache_key = cache_key($category);
//if(!$events = load_cache(EVENTS_LISTING, $cache_key))
{
$events = array();
$events['data'] = event_infoline(event_find());
//save_cache(EVENTS_LISTING, $cache_key, $events);
}
global $page;
$page = array(
'Mapper' => false,
'Book' => false,
'Title' => ($events['category']?($events['category'].' - '):'').$smarty->get_config_vars('Events'),
'tab' => 0,
'type' => 11,
'typeid' => 0,
'path' => path(0, 11)
);
$smarty->assign('page', $page);
// Статистика выполнения mysql запросов
$smarty->assign('mysql', $DB->getStatistics());
$smarty->assign('events', $events);
// Загружаем страницу
$smarty->display('events.tpl');
?>