forked from alain91/malleo-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page_bas.php
49 lines (44 loc) · 1.68 KB
/
page_bas.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/*
|------------------------------------------------------------------------------------------------------------
| Software: Malleo ( CMS )
| Contact: SP - http://www.malleo-cms.com
| Support: http://www.malleo-cms.com?module=forum
| Documentation : Support: http://www.malleo-cms.com?module=wiki
|------------------------------------------------------------------------------------------------------------
| Author: Stephane RAJALU
| Copyright (c) 2008-2009, Stephane RAJALU All Rights Reserved
|------------------------------------------------------------------------------------------------------------
| License: Distributed under the CECILL V2 License
| This program is distributed in the hope that it will be useful - WITHOUT
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
| FITNESS FOR A PARTICULAR PURPOSE.
|
| Please read Licence_CeCILL_V2-en.txt
| SVP lisez Licence_CeCILL_V2-fr.txt
|------------------------------------------------------------------------------------------------------------
*/
if ( !defined('PROTECT') )
{
die("Tentative de Hacking");
}
global $c, $startime, $lang;
$tpl->set_filenames(array('PAGE_BAS' => $root . $style_path . $style_name.'/_page_bas.html'));
$tpl->assign_vars(array(
'INFOS_SQL' => ''
));
if (!defined('MESSAGE_DIE') && $user['level'] > 9)
{
// Stats SQL
$excuted_queries = $c->num_queries;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$endtime = $mtime[1] + $mtime[0];
$gentime = round(($endtime - $startime), 4);
$tpl->assign_vars(array(
'INFOS_SQL' => sprintf($lang['INFOS_SQL'],$gentime,$excuted_queries)
));
}
$c->sql_close();
$tpl->pparse('PAGE_BAS');
?>