вопрос
Нужно убрать новости, которые находятся на проверке из профиля. Если возможно как перенести это всё на отдельную страницу?
engine/engine.php
Убрать совсем
Оставить админам и гл. редакторам
Убрать совсем
if( $member_id['name'] == $user or $user_group[$member_id['user_group']]['allow_all_edit'] ) {
/*
if( isset ( $_SESSION['dle_sort_userinfo'] ) ) $news_sort_by = $_SESSION['dle_sort_userinfo'];
if( isset ( $_SESSION['dle_direction_userinfo'] ) ) $news_direction_by = $_SESSION['dle_direction_userinfo'];
$sql_select = "SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as full_story, p.xfields, p.title, p.category, p.alt_name, p.comm_num, p.allow_comm, p.fixed, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.view_edit, e.editdate, e.editor, e.reason FROM " . PREFIX . "_post p LEFT JOIN " . PREFIX . "_post_extras e ON (p.id=e.news_id) WHERE autor = '{$user}' AND approve=0 ORDER BY " . $news_sort_by . " " . $news_direction_by . " LIMIT " . $cstart . "," . $config['news_number'];
$sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_post WHERE autor = '$user' AND approve=0";
*/
$allow_active_news = false;
} else {
$allow_active_news = false;
}
Оставить админам и гл. редакторам
if( $user_group[$member_id['user_group']]['allow_all_edit'] ) {
if( isset ( $_SESSION['dle_sort_userinfo'] ) ) $news_sort_by = $_SESSION['dle_sort_userinfo'];
if( isset ( $_SESSION['dle_direction_userinfo'] ) ) $news_direction_by = $_SESSION['dle_direction_userinfo'];
$sql_select = "SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as full_story, p.xfields, p.title, p.category, p.alt_name, p.comm_num, p.allow_comm, p.fixed, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.view_edit, e.editdate, e.editor, e.reason FROM " . PREFIX . "_post p LEFT JOIN " . PREFIX . "_post_extras e ON (p.id=e.news_id) WHERE autor = '{$user}' AND approve=0 ORDER BY " . $news_sort_by . " " . $news_direction_by . " LIMIT " . $cstart . "," . $config['news_number'];
$sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_post WHERE autor = '$user' AND approve=0";
$allow_active_news = true;
} else {
$allow_active_news = false;
}