View file www/index.php

File size: 590B
<?php

/**
 * @date 29.7
 * @author iceman12
 * @copyright 2010
 */

include 'system32/core.php';
if (isset($_REQUEST['no_file']))
    $tpl->display($style . '/no_file.tpl');
if (empty($_SESSION['hash']))
    $_SESSION['hash'] = mdQ(mt_rand(1, 999999));
$tpl->assign('count_all', result('SELECT count(id)  FROM `files` WHERE `time`<' .
    mktime(0, 0, 0, date('m'), date('d'), date('Y'))));
$tpl->assign('count_day', result('SELECT count(id)  FROM `files` WHERE `time`>' .
    mktime(0, 0, 0, date('m'), date('d'), date('Y'))));
$tpl->display($style . '/index.tpl');

?>