Авторизуйтесь по паролю
enterlive 01.04.2014 комментарии Общие вопросы по PHP, Хаки 2213
dj-avtosh - 2014-04-011 апреля 2014 08:14 - #26011
enterlive - 2014-04-011 апреля 2014 15:32 - #26017
Gopr - 2014-04-011 апреля 2014 16:39 - #26019
[my-com]Комментарии может оставлять только автор новости![/my-com][not-my-com]{addcomments}[/not-my-com]
if ( $comments_num ) { $tpl->set( '[comments]', "" ); $tpl->set( '[/comments]', "" ); $tpl->set_block( "'\\[not-comments\\](.*?)\\[/not-comments\\]'si", "" ); } else { $tpl->set( '[not-comments]', "" ); $tpl->set( '[/not-comments]', "" ); $tpl->set_block( "'\\[comments\\](.*?)\\[/comments\\]'si", "" ); }
/* Комменты от автора */if ( $member_id['user_id'] != $row['user_id'] ) {$tpl->set( '[my-com]', "" );$tpl->set( '[/my-com]', "" );$tpl->set_block( "'\\[not-my-com\\](.*?)\\[/not-my-com\\]'si", "" );} else {$tpl->set( '[not-my-com]', "" );$tpl->set( '[/not-my-com]', "" );$tpl->set_block( "'\\[my-com\\](.*?)\\[/my-com\\]'si", "" );}/* Комменты от автора */
dj-avtosh - 2014-04-011 апреля 2014 17:23 - #26022
CREATE TABLE `dle_views` ( `id` int(11) NOT NULL, `news_id` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;