$sViweId = __paramInit('string', 'view'); $page = __paramInit('int', 'page', 'page', 1); $log_pp = __paramInit('int', 'log_pp', 'log_pp', 20); $admin_log->setLogPerPage($log_pp); if (!$page) { $page = 1; } elseif ($page < 0) { header_location_exit('/404.php'); exit; } if ($sViweId) { $sLogId = $sViweId; $menu_item = 0; } if ($sLogId) { if (!preg_match('/^[\\d]+$/', $sLogId) || !$admin_log->getLogById($sLogId)) { header_location_exit('/404.php'); } $aUTL = admin_log::getUserToLogInfo($uid, $sLogId); admin_log::setLogCLV($uid, $sLogId); require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/comments/CommentsAdminLog.php'; $maxlevel = 10; $maxwidth = 460; $minus_level_width = 2; $comments = new CommentsAdminLog($sLogId, $aUTL['last_comment_view'], array('maxlevel' => $maxlevel, 'maxwidth' => $maxwidth, 'minus_level_width' => $minus_level_width, 'hidden_threads' => $aUTL['hidden_threads'])); $comments->tpl_path = $_SERVER['DOCUMENT_ROOT'] . '/classes/comments/'; $comments_html = $comments->render(); $css_file[] = 'wysiwyg.css'; $css_file[] = 'hljs.css'; $js_file = array_merge($js_file, array('highlight.min.js', 'highlight.init.js', 'mooeditable.new/MooEditable.ru-RU.js', 'mooeditable.new/rangy-core.js', 'mooeditable.new/MooEditable.js', 'mooeditable.new/MooEditable.Pagebreak.js', 'mooeditable.new/MooEditable.UI.MenuList.js', 'mooeditable.new/MooEditable.Extras.js', 'mooeditable.new/init.js', 'comments.all.js', 'banned.js')); }