Размер файла: 1Kb
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$locate = 'in_share';
$share_id = abs(intval($_GET['share_id']));
$share_t = $db->query("SELECT * FROM `share_files` WHERE `id` = '". $share_id ."'")->fetch();
$title = $lang->word('comments') .' | '. $share_t['name'] .' | '.$lang->word('share');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('comments') .' | '. $share_t['name']);
if(isset($user)) {
$tpl->div('menu', '<a href="/share/add_comment/?share_id='. $share_id .'">'. $lang->word('add_comment') .'</a>');
}
$comments = new Comments('share', $share_id);
$comments->view();
$tpl->div('block', NAV .'<a href="/share/file/'. $share_id .'/">'. $lang->word('back') .'</a><br/>' . SHARE_ICON .' <a href="/share/">'. $lang->word('share') .'</a><br/>' . HICO .' <a href="/">'. $lang->word('home').'</a>');
require_once(SYS.'/view/footer.php');
?>