forked from OpenCorpora/opencorpora
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhistory.php
28 lines (26 loc) · 781 Bytes
/
history.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
<?php
require('lib/header.php');
require('lib/lib_history.php');
if (isset($_GET['sent_id']))
$sent_id = (int)$_GET['sent_id'];
else $sent_id = 0;
if (isset($_GET['set_id']))
$set_id = (int)$_GET['set_id'];
else $set_id = 0;
if (isset($_GET['skip']))
$skip = (int)$_GET['skip'];
else $skip = 0;
if (isset ($_GET['maa']))
$maa = $_GET['maa'] ? 1 : 0;
else $maa = 0;
$smarty->setCaching(Smarty::CACHING_LIFETIME_SAVED);
$smarty->setCacheLifetime(90);
$cache_id = "$sent_id@$set_id@$skip@$maa";
if (!is_cached('history.tpl', $cache_id)) {
$smarty->assign('history', main_history($sent_id, $set_id, $skip, $maa));
$smarty->assign('skip', $skip);
$smarty->assign('maa', $maa);
}
$smarty->display('history.tpl', $cache_id);
log_timing();
?>