По инструкции дошёл до 8го пункта , вставляю код и редактор обнаруживает ошибку . Помогите решить проблему, в PHP не разбираюсь. Вот код: Код (Text): <?php /* ===================================================== DataLife Engine - by SoftNews Media Group ----------------------------------------------------- http://dle-news.ru/ ----------------------------------------------------- Copyright (c) 2004,2014 SoftNews Media Group ===================================================== Данный код защищен авторскими правами ===================================================== Файл: usergroup.php ----------------------------------------------------- Назначение: Настройка групп пользователей ===================================================== */ if( !defined( 'DATALIFEENGINE' ) OR !defined( 'LOGGED_IN' ) ) { die( "Hacking attempt!" ); } if( $member_id['user_group'] != 1 ) { msg( "error", $lang['addnews_denied'], $lang['db_denied'] ); } function clear_html( $txt ) { if(!$txt) return; $find = array ('/data:/i', '/about:/i', '/vbscript:/i', '/onclick/i', '/onload/i', '/onunload/i', '/onabort/i', '/onerror/i', '/onblur/i', '/onchange/i', '/onfocus/i', '/onreset/i', '/onsubmit/i', '/ondblclick/i', '/onkeydown/i', '/onkeypress/i', '/onkeyup/i', '/onmousedown/i', '/onmouseup/i', '/onmouseover/i', '/onmouseout/i', '/onselect/i', '/javascript/i', '/javascript/i' ); $replace = array ("data:", "about:", "vbscript<b></b>:", "onclick", "onload", "onunload", "onabort", "onerror", "onblur", "onchange", "onfocus", "onreset", "onsubmit", "ondblclick", "onkeydown", "onkeypress", "onkeyup", "onmousedown", "onmouseup", "onmouseover", "onmouseout", "onselect", "javascript" ); $txt = preg_replace( $find, $replace, $txt ); $txt = preg_replace( "#<iframe#i", "<iframe", $txt ); $txt = preg_replace( "#<script#i", "<script", $txt ); $txt = str_replace( "<?", "<?", $txt ); $txt = str_replace( "?>", "?>", $txt ); return $txt; } if( $action == "del" ) { if( $_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash ) { die( "Hacking attempt! User not found" ); } $id = intval( $_REQUEST['id'] ); $grouplevel = intval( $_REQUEST['grouplevel'] ); if( $id < 6 ) msg( "error", $lang['addnews_error'], $lang['group_notdel'], "$PHP_SELF?mod=usergroup" ); $db->query( "INSERT INTO " . USERPREFIX . "_admin_logs (name, date, ip, action, extras) values ('".$db->safesql($member_id['name'])."', '{$_TIME}', '{$_IP}', '75', '{$id}')" ); $row = $db->super_query( "SELECT count(*) as count FROM " . USERPREFIX . "_users WHERE user_group='{$id}'" ); if( ! $row['count'] ) { ########### Start. LogicBoard (DLE Edition) - ShapeShifter ########### $action_logicboard['group_edit'] = 2; include ENGINE_DIR . '/modules/logicboard/group_edit.php'; ########### End. LogicBoard (DLE Edition) - ShapeShifter ########### $db->query( "DELETE FROM " . USERPREFIX . "_usergroups WHERE id = '{$id}'" ); @unlink( ENGINE_DIR . '/cache/system/usergroup.php' ); clear_cache(); msg( "info", $lang['all_info'], $lang['group_del'], "$PHP_SELF?mod=usergroup" ); } else { if( $grouplevel and $grouplevel != $id ) { ########### Start. LogicBoard (DLE Edition) - ShapeShifter ########### $action_logicboard['group_edit'] = 2; include ENGINE_DIR . '/modules/logicboard/group_edit.php'; ########### End. LogicBoard (DLE Edition) - ShapeShifter ########### $db->query( "UPDATE " . USERPREFIX . "_users set user_group='{$grouplevel}' WHERE user_group='{$id}'" ); $db->query( "DELETE FROM " . USERPREFIX . "_usergroups WHERE id = '{$id}'" ); @unlink( ENGINE_DIR . '/cache/system/usergroup.php' ); clear_cache(); msg( "info", $lang['all_info'], $lang['group_del'], "$PHP_SELF?mod=usergroup" ); } else msg( "info", $lang['all_info'], "<form action=\"\" method=\"post\">{$lang['group_move']} <select class=\"uniform\" name=\"grouplevel\">" . get_groups( 4 ) . "</select> <input class=\"btn btn-blue\" type=\"submit\" value=\"{$lang['b_start']}\"></form>", "$PHP_SELF?mod=usergroup" ); } } elseif( $action == "selectgroup" ) { msg( "info", $lang['all_info'], "<form action=\"\" method=\"get\"><input type=\"hidden\" name=\"mod\" value=\"usergroup\"><input type=\"hidden\" name=\"action\" value=\"add\">{$lang['group_select']} <select class=\"uniform\" name=\"id\">" . get_groups( 4 ) . "</select> <input class=\"btn btn-blue\" type=\"submit\" value=\"{$lang['b_start']}\"></form>", "$PHP_SELF?mod=usergroup" ); } elseif( $action == "doadd" OR $action == "doedit" ) { if( $_REQUEST['user_hash'] == "" or $_REQUEST['user_hash'] != $dle_login_hash ) { die( "Hacking attempt! User not found" ); } if( ! count( $_REQUEST['allow_cats'] ) ) $_REQUEST['allow_cats'][] = "all"; if( ! count( $_REQUEST['cat_add'] ) ) $_REQUEST['cat_add'][] = "all"; if( ! count( $_REQUEST['cat_allow_addnews'] ) ) $_REQUEST['cat_allow_addnews'][] = "all"; $group_name = $db->safesql( strip_tags( clear_html($_REQUEST['group_name']) ) ); $group_icon = $db->safesql( strip_tags( clear_html($_REQUEST['group_icon']) ) ); $files_type = $db->safesql( strip_tags( clear_html($_REQUEST['files_type']) ) ); $group_prefix = $db->safesql( trim( clear_html($_REQUEST['group_prefix']) ) ); $group_suffix = $db->safesql( trim( clear_html($_REQUEST['group_suffix']) ) ); $allow_cats = $db->safesql( clear_html(implode( ',', $_REQUEST['allow_cats']) ) ); $cat_add = $db->safesql( clear_html(implode( ',', $_REQUEST['cat_add']) ) ); $cat_allow_addnews = $db->safesql( clear_html(implode( ',', $_REQUEST['cat_allow_addnews']) ) ); $allow_admin = intval( $_REQUEST['allow_admin'] ); $allow_offline = intval( $_REQUEST['allow_offline'] ); $allow_main = intval( $_REQUEST['allow_main'] ); $allow_adds = intval( $_REQUEST['allow_adds'] ); $moderation = intval( $_REQUEST['moderation'] ); $allow_edit = intval( $_REQUEST['allow_edit'] ); $allow_all_edit = intval( $_REQUEST['allow_all_edit'] ); $allow_addc = intval( $_REQUEST['allow_addc'] ); $allow_editc = intval( $_REQUEST['allow_editc'] ); $allow_delc = intval( $_REQUEST['allow_delc'] ); $edit_allc = intval( $_REQUEST['edit_allc'] ); $del_allc = intval( $_REQUEST['del_allc'] ); $allow_hide = intval( $_REQUEST['allow_hide'] ); $allow_pm = intval( $_REQUEST['allow_pm'] ); $allow_vote = intval( $_REQUEST['allow_vote'] ); $allow_files = intval( $_REQUEST['allow_files'] ); $allow_feed = intval( $_REQUEST['allow_feed'] ); $allow_search = intval( $_REQUEST['allow_search'] ); $allow_rating = intval( $_REQUEST['allow_rating'] ); $max_pm = intval( $_REQUEST['max_pm'] ); $max_foto = $db->safesql( $_REQUEST['max_foto'] ); $allow_short = intval( $_REQUEST['allow_short'] ); $time_limit = intval( $_REQUEST['time_limit'] ); $rid = intval( $_REQUEST['rid'] ); $allow_fixed = intval( $_REQUEST['allow_fixed'] ); $allow_poll = intval( $_REQUEST['allow_poll'] ); $captcha = intval( $_REQUEST['captcha'] ); $allow_modc = intval( $_REQUEST['allow_modc'] ); $max_signature = intval( $_REQUEST['max_signature'] ); $max_info = intval( $_REQUEST['max_info'] ); $admin_addnews = intval( $_REQUEST['admin_addnews'] ); $admin_editnews = intval( $_REQUEST['admin_editnews'] ); $admin_comments = intval( $_REQUEST['admin_comments'] ); $admin_categories = intval( $_REQUEST['admin_categories'] ); $admin_editusers = intval( $_REQUEST['admin_editusers'] ); $admin_wordfilter = intval( $_REQUEST['admin_wordfilter'] ); $admin_xfields = intval( $_REQUEST['admin_xfields'] ); $admin_userfields = intval( $_REQUEST['admin_userfields'] ); $admin_static = intval( $_REQUEST['admin_static'] ); $admin_editvote = intval( $_REQUEST['admin_editvote'] ); $admin_newsletter = intval( $_REQUEST['admin_newsletter'] ); $admin_blockip = intval( $_REQUEST['admin_blockip'] ); $admin_banners = intval( $_REQUEST['admin_banners'] ); $admin_rss = intval( $_REQUEST['admin_rss'] ); $admin_iptools = intval( $_REQUEST['admin_iptools'] ); $admin_rssinform = intval( $_REQUEST['admin_rssinform'] ); $admin_googlemap = intval( $_REQUEST['admin_googlemap'] ); $admin_tagscloud = intval( $_REQUEST['admin_tagscloud'] ); $admin_complaint = intval( $_REQUEST['admin_complaint'] ); $allow_html = intval( $_REQUEST['allow_html'] ); $allow_image_size = intval( $_REQUEST['allow_image_size'] ); $allow_image_upload = intval( $_REQUEST['allow_image_upload'] ); $allow_file_upload = intval( $_REQUEST['allow_file_upload'] ); $allow_signature = intval( $_REQUEST['allow_signature'] ); $allow_url = intval( $_REQUEST['allow_url'] ); $allow_image = intval( $_REQUEST['allow_image'] ); $news_sec_code = intval( $_REQUEST['news_sec_code'] ); $allow_subscribe = intval( $_REQUEST['allow_subscribe'] ); $flood_news = intval( $_REQUEST['flood_news'] ); $max_day_news = intval( $_REQUEST['max_day_news'] ); $force_leech = intval( $_REQUEST['force_leech'] ); $edit_limit = intval( $_REQUEST['edit_limit'] ); $captcha_pm = intval( $_REQUEST['captcha_pm'] ); $max_pm_day = intval( $_REQUEST['max_pm_day'] ); $max_comment_day = intval( $_REQUEST['max_comment_day'] ); $max_mail_day = intval( $_REQUEST['max_mail_day'] ); $comments_question = intval( $_REQUEST['comments_question'] ); $news_question = intval( $_REQUEST['news_question'] ); $max_images = intval( $_REQUEST['max_images'] ); $max_files = intval( $_REQUEST['max_files'] ); $disable_news_captcha = intval( $_REQUEST['disable_news_captcha'] ); $disable_comments_captcha = intval( $_REQUEST['disable_comments_captcha'] ); $pm_question = intval( $_REQUEST['pm_question'] ); $captcha_feedback = intval( $_REQUEST['captcha_feedback'] ); $feedback_question = intval( $_REQUEST['feedback_question'] ); $max_file_size = intval( $_REQUEST['max_file_size'] ); $files_max_speed = intval( $_REQUEST['files_max_speed'] ); $allow_lostpassword = intval( $_REQUEST['allow_lostpassword'] ); $spamfilter = intval( $_REQUEST['spamfilter'] ); if( $group_name == "" ) msg( "error", $lang['addnews_error'], $lang['group_err1'], "$PHP_SELF?mod=usergroup&action=add" ); @unlink( ENGINE_DIR . '/cache/system/usergroup.php' ); if( $action == "doadd" ) { $db->query( "INSERT INTO " . USERPREFIX . "_usergroups (group_name, allow_cats, allow_adds, cat_add, allow_admin, allow_addc, allow_editc, allow_delc, edit_allc, del_allc, moderation, allow_all_edit, allow_edit, allow_pm, max_pm, max_foto, allow_files, allow_hide, allow_short, time_limit, rid, allow_fixed, allow_feed, allow_search, allow_poll, allow_main, captcha, icon, allow_modc, allow_rating, allow_offline, allow_image_upload, allow_file_upload, allow_signature, allow_url, news_sec_code, allow_image, max_signature, max_info, admin_addnews, admin_editnews, admin_comments, admin_categories, admin_editusers, admin_wordfilter, admin_xfields, admin_userfields, admin_static, admin_editvote, admin_newsletter, admin_blockip, admin_banners, admin_rss, admin_iptools, admin_rssinform, admin_googlemap, allow_html, group_prefix, group_suffix, allow_subscribe, allow_image_size, cat_allow_addnews, flood_news, max_day_news, force_leech, edit_limit, captcha_pm, max_pm_day, max_mail_day, admin_tagscloud, allow_vote, admin_complaint, news_question, comments_question, max_comment_day, max_images, max_files, disable_news_captcha, disable_comments_captcha, pm_question, captcha_feedback, feedback_question, files_type, max_file_size, files_max_speed, allow_lostpassword, spamfilter) values ('$group_name', '$allow_cats', '$allow_adds', '$cat_add', '$allow_admin', '$allow_addc', '$allow_editc', '$allow_delc', '$edit_allc', '$del_allc', '$moderation', '$allow_all_edit', '$allow_edit', '$allow_pm', '$max_pm', '$max_foto', '$allow_files', '$allow_hide', '$allow_short', '$time_limit', '$rid', '$allow_fixed', '$allow_feed', '$allow_search', '$allow_poll', '$allow_main', '$captcha', '$group_icon', '$allow_modc', '$allow_rating', '$allow_offline', '$allow_image_upload', '$allow_file_upload', '$allow_signature', '$allow_url', '$news_sec_code', '$allow_image', '$max_signature', '$max_info', '$admin_addnews', '$admin_editnews', '$admin_comments', '$admin_categories', '$admin_editusers', '$admin_wordfilter', '$admin_xfields', '$admin_userfields', '$admin_static', '$admin_editvote', '$admin_newsletter', '$admin_blockip', '$admin_banners', '$admin_rss', '$admin_iptools', '$admin_rssinform', '$admin_googlemap', '$allow_html', '$group_prefix', '$group_suffix', '$allow_subscribe', '$allow_image_size', '$cat_allow_addnews', '$flood_news', '$max_day_news', '$force_leech', '$edit_limit', '$captcha_pm', '$max_pm_day', '$max_mail_day', '$admin_tagscloud', '$allow_vote', '$admin_complaint', '$news_question', '$comments_question', '$max_comment_day', '$max_images', '$max_files', '$disable_news_captcha', '$disable_comments_captcha', '$pm_question', '$captcha_feedback', '$feedback_question', '$files_type', '$max_file_size', '$files_max_speed', '$allow_lostpassword', '$spamfilter')" ); ########### Start. LogicBoard (DLE Edition) - ShapeShifter ########### $new_group = $db->insert_id(); $action_logicboard['group_edit'] = 1; include ENGINE_DIR . '/modules/logicboard/group_edit.php'; ########### End. LogicBoard (DLE Edition) - ShapeShifter ########### $db->query( "INSERT INTO " . USERPREFIX . "_admin_logs (name, date, ip, action, extras) values ('".$db->safesql($member_id['name'])."', '{$_TIME}', '{$_IP}', '76', '{$group_name}')" ); msg( "info", $lang['all_info'], $lang['group_ok1'], "$PHP_SELF?mod=usergroup" ); } else { $id = intval( $_REQUEST['id'] ); if( $id == 1 ) $allow_admin = 1; if( $id == 4 OR $id == 5) $allow_admin = 0; $db->query( "UPDATE " . USERPREFIX . "_usergroups SET group_name='$group_name', allow_cats='$allow_cats', allow_adds='$allow_adds', cat_add='$cat_add', allow_admin='$allow_admin', allow_addc='$allow_addc', allow_editc='$allow_editc', allow_delc='$allow_delc', edit_allc='$edit_allc', del_allc='$del_allc', moderation='$moderation', allow_all_edit='$allow_all_edit', allow_edit='$allow_edit', allow_pm='$allow_pm', max_pm='$max_pm', max_foto='$max_foto', allow_files='$allow_files', allow_hide='$allow_hide', allow_short='$allow_short', time_limit='$time_limit', rid='$rid', allow_fixed='$allow_fixed', allow_feed='$allow_feed', allow_search='$allow_search', allow_poll='$allow_poll', allow_main='$allow_main', captcha='$captcha', icon='$group_icon', allow_modc='$allow_modc', allow_rating='$allow_rating', allow_offline='$allow_offline', allow_image_upload='$allow_image_upload', allow_file_upload='$allow_file_upload', allow_signature='$allow_signature', allow_url='$allow_url', news_sec_code='$news_sec_code', allow_image='$allow_image', max_signature='$max_signature', max_info='$max_info', admin_addnews='$admin_addnews', admin_editnews='$admin_editnews', admin_comments='$admin_comments', admin_categories='$admin_categories', admin_editusers='$admin_editusers', admin_wordfilter='$admin_wordfilter', admin_xfields='$admin_xfields', admin_userfields='$admin_userfields', admin_static='$admin_static', admin_editvote='$admin_editvote', admin_newsletter='$admin_newsletter', admin_blockip='$admin_blockip', admin_banners='$admin_banners', admin_rss='$admin_rss', admin_iptools='$admin_iptools', admin_rssinform='$admin_rssinform', admin_googlemap='$admin_googlemap', allow_html='$allow_html', group_prefix='$group_prefix', group_suffix='$group_suffix', allow_subscribe='$allow_subscribe', allow_image_size='$allow_image_size', cat_allow_addnews='$cat_allow_addnews', flood_news='$flood_news', max_day_news='$max_day_news', force_leech='$force_leech', edit_limit='$edit_limit', captcha_pm='$captcha_pm', max_pm_day='$max_pm_day', max_mail_day='$max_mail_day', admin_tagscloud='$admin_tagscloud', allow_vote='$allow_vote', admin_complaint='$admin_complaint', news_question='$news_question', comments_question='$comments_question', max_comment_day='$max_comment_day', max_images='$max_images', max_files='$max_files', disable_news_captcha='$disable_news_captcha', disable_comments_captcha='$disable_comments_captcha', pm_question='$pm_question', captcha_feedback='$captcha_feedback', feedback_question='$feedback_question', files_type='$files_type', max_file_size='$max_file_size', files_max_speed='$files_max_speed', allow_lostpassword='$allow_lostpassword', spamfilter='$spamfilter' WHERE id='{$id}'" ); $db->query( "INSERT INTO " . USERPREFIX . "_admin_logs (name, date, ip, action, extras) values ('".$db->safesql($member_id['name'])."', '{$_TIME}', '{$_IP}', '77', '{$group_name}')" ); msg( "info", $lang['all_info'], $lang['group_ok2'], "$PHP_SELF?mod=usergroup" ); } clear_cache(); } elseif( $action == "add" or $action == "edit" ) { $id = intval( $_REQUEST['id'] ); if (!$user_group[$id]['group_name']) { msg( "error", $lang['addnews_error'], $lang['group_err2'], "javascript:history.go(-1)" ); } echoheader( "<i class=\"icon-user\"></i>".$lang['header_groups'], $lang['header_groups_1'] ); if( ! $config['allow_cmod'] ) $warning = "<br /><font color=\"red\">" . $lang['modul_offline'] . "</font>"; else $warning = ""; if( ! $config['allow_subscribe'] ) $warning_1 = "<br /><font color=\"red\">" . $lang['modul_offline_1'] . "</font>"; else $warning_1 = ""; $group_prefix_value = htmlspecialchars( stripslashes( $user_group[$id]['group_prefix'] ), ENT_QUOTES, $config['charset'] ); $group_suffix_value = htmlspecialchars( stripslashes( $user_group[$id]['group_suffix'] ), ENT_QUOTES, $config['charset'] ); $files_type_value = htmlspecialchars( stripslashes( $user_group[$id]['files_type'] ), ENT_QUOTES, $config['charset'] ); if( $user_group[$id]['allow_offline'] ) $allow_offline = "checked"; if( $user_group[$id]['allow_admin'] ) $allow_admin = "checked"; if( $user_group[$id]['allow_adds'] ) $allow_adds = "checked"; if( $user_group[$id]['moderation'] ) $moderation = "checked"; if( $user_group[$id]['allow_edit'] ) $allow_edit = "checked"; if( $user_group[$id]['allow_all_edit'] ) $allow_all_edit = "checked"; if( $user_group[$id]['allow_addc'] ) $allow_addc = "checked"; if( $user_group[$id]['allow_editc'] ) $allow_editc = "checked"; if( $user_group[$id]['allow_delc'] ) $allow_delc = "checked"; if( $user_group[$id]['edit_allc'] ) $edit_allc = "checked"; if( $user_group[$id]['del_allc'] ) $del_allc = "checked"; if( $user_group[$id]['allow_hide'] ) $allow_hide = "checked"; if( $user_group[$id]['allow_pm'] ) $allow_pm = "checked"; if( $user_group[$id]['allow_vote'] ) $allow_vote = "checked"; if( $user_group[$id]['allow_files'] ) $allow_files = "checked"; if( $user_group[$id]['allow_feed'] ) $allow_feed = "checked"; if( $user_group[$id]['allow_search'] ) $allow_search = "checked"; if( $user_group[$id]['allow_rating'] ) $allow_rating = "checked"; if( $user_group[$id]['allow_short'] ) $allow_short = "checked"; if( $user_group[$id]['time_limit'] ) $time_limit = "checked"; if( $user_group[$id]['allow_fixed'] ) $allow_fixed = "checked"; if( $user_group[$id]['allow_poll'] ) $allow_poll = "checked"; if( $user_group[$id]['allow_main'] ) $allow_main = "checked"; if( $user_group[$id]['captcha'] ) $allow_captcha = "checked"; if( $user_group[$id]['captcha_pm'] ) $allow_captcha_pm = "checked"; if( $user_group[$id]['allow_modc'] ) $allow_modc = "checked"; if( $user_group[$id]['allow_image_upload'] ) $allow_image_upload = "checked"; if( $user_group[$id]['allow_file_upload'] ) $allow_file_upload = "checked"; if( $user_group[$id]['allow_signature'] ) $allow_signature = "checked"; if( $user_group[$id]['allow_url'] ) $allow_url = "checked"; if( $user_group[$id]['allow_image'] ) $allow_image = "checked"; if( $user_group[$id]['news_sec_code'] ) $news_sec_code = "checked"; if( $user_group[$id]['admin_addnews'] ) $admin_addnews = "checked"; if( $user_group[$id]['admin_editnews'] ) $admin_editnews = "checked"; if( $user_group[$id]['admin_comments'] ) $admin_comments = "checked"; if( $user_group[$id]['admin_categories'] ) $admin_categories = "checked"; if( $user_group[$id]['admin_editusers'] ) $admin_editusers = "checked"; if( $user_group[$id]['admin_wordfilter'] ) $admin_wordfilter = "checked"; if( $user_group[$id]['admin_xfields'] ) $admin_xfields = "checked"; if( $user_group[$id]['admin_userfields'] ) $admin_userfields = "checked"; if( $user_group[$id]['admin_static'] ) $admin_static = "checked"; if( $user_group[$id]['admin_editvote'] ) $admin_editvote = "checked"; if( $user_group[$id]['admin_newsletter'] ) $admin_newsletter = "checked"; if( $user_group[$id]['admin_blockip'] ) $admin_blockip = "checked"; if( $user_group[$id]['admin_banners'] ) $admin_banners = "checked"; if( $user_group[$id]['admin_rss'] ) $admin_rss = "checked"; if( $user_group[$id]['admin_iptools'] ) $admin_iptools = "checked"; if( $user_group[$id]['admin_rssinform'] ) $admin_rssinform = "checked"; if( $user_group[$id]['admin_googlemap'] ) $admin_googlemap = "checked"; if( $user_group[$id]['allow_html'] ) $allow_html = "checked"; if( $user_group[$id]['allow_subscribe'] ) $allow_subscribe = "checked"; if( $user_group[$id]['allow_image_size'] ) $allow_image_size = "checked"; if( $user_group[$id]['force_leech'] ) $force_leech = "checked"; if( $user_group[$id]['admin_tagscloud'] ) $admin_tagscloud = "checked"; if( $user_group[$id]['admin_complaint'] ) $admin_complaint = "checked"; if( $user_group[$id]['comments_question'] ) $comments_question = "checked"; if( $user_group[$id]['news_question'] ) $news_question = "checked"; if( $user_group[$id]['pm_question'] ) $pm_question = "checked"; if( $user_group[$id]['captcha_feedback'] ) $captcha_feedback = "checked"; if( $user_group[$id]['feedback_question'] ) $feedback_question = "checked"; if( $user_group[$id]['allow_lostpassword'] ) $allow_lostpassword = "checked"; if( $id == 1 ) $admingroup = "disabled"; if( $id == 5 ) $gastgroup = "disabled"; $group_list = get_groups( $user_group[$id]['rid'] ); $spamfilter_sel = array ('0' => '', '1' => '', '2' => '', '3' => '' ); $spamfilter_sel[$user_group[$id]['spamfilter']] = 'selected="selected"'; if( $user_group[$id]['allow_cats'] == "all" ) $allow_cats_value = "selected"; $categories_list = CategoryNewsSelection( explode( ',', $user_group[$id]['allow_cats'] ), 0, false ); if( $user_group[$id]['cat_add'] == "all" ) $cat_add_value = "selected"; if( $user_group[$id]['cat_allow_addnews'] == "all" ) $cat_allow_addnews_value = "selected"; $cat_add_list = CategoryNewsSelection( explode( ',', $user_group[$id]['cat_add'] ), 0, false ); $cat_allow_addnews_list = CategoryNewsSelection( explode( ',', $user_group[$id]['cat_allow_addnews'] ), 0, false ); $max_pm_value = $user_group[$id]['max_pm']; $max_foto_value = $user_group[$id]['max_foto']; $max_signature_value = $user_group[$id]['max_signature']; $max_info_value = $user_group[$id]['max_info']; $max_pm_day_value = $user_group[$id]['max_pm_day']; $max_comment_day_value = $user_group[$id]['max_comment_day']; $max_mail_day_value = $user_group[$id]['max_mail_day']; $flood_news_value = $user_group[$id]['flood_news']; $max_images_value = $user_group[$id]['max_images']; $max_files_value = $user_group[$id]['max_files']; $max_day_news_value = $user_group[$id]['max_day_news']; $edit_limit_value = $user_group[$id]['edit_limit']; $disable_comments_captcha_value = $user_group[$id]['disable_comments_captcha']; $disable_news_captcha_value = $user_group[$id]['disable_news_captcha']; $max_file_size_value = $user_group[$id]['max_file_size']; $files_max_speed_value = $user_group[$id]['files_max_speed']; if( $action == "add" ) { $submit_value = $lang['group_new']; $form_title = $lang['group_new1']; $form_action = "$PHP_SELF?mod=usergroup&action=doadd"; $group_name_value = ""; $group_icon_value = ""; } else { $group_name_value = htmlspecialchars( stripslashes( $user_group[$id]['group_name'] ), ENT_QUOTES, $config['charset'] ); $group_icon_value = htmlspecialchars( stripslashes( $user_group[$id]['icon'] ), ENT_QUOTES, $config['charset'] ); $form_title = $lang['group_edit1'] . $group_name_value; $form_action = "$PHP_SELF?mod=usergroup&action=doedit&id=" . $id; $submit_value = $lang['group_edit']; } echo <<<HTML <script type="text/javascript"> $(function(){ $('[data-toggle="tab"]').on('shown.bs.tab', function(e) { var id; id = $(e.target).attr("href"); $(id).find(".cat_select").chosen({allow_single_deselect:true, no_results_text: '{$lang['addnews_cat_fault']}'}); }); }); </script> <form action="{$form_action}" method="post"> <input type="hidden" name="user_hash" value="{$dle_login_hash}" /> <div class="box"> <div class="box-header"> <ul class="nav nav-tabs nav-tabs-left"> <li class="active"><a href="#tabhome" data-toggle="tab"><i class="icon-home"></i> {$lang['tabs_gr_all']}</a></li> <li><a href="#tabnews" data-toggle="tab"><i class="icon-file-alt"></i> {$lang['tabs_gr_news']}</a></li> <li><a href="#tabcomments" data-toggle="tab"><i class="icon-pencil"></i> {$lang['tabs_gr_comments']}</a></li> <li><a href="#tabcaptcha" data-toggle="tab"><i class="icon-lock"></i> {$lang['tabs_gr_cap']}</a></li> <li><a href="#tabadmin" data-toggle="tab"><i class="icon-dashboard"></i> {$lang['tabs_gr_admin']}</a></li> </ul> <ul class="box-toolbar"> <li class="toolbar-link"> <a href="#"><i class="icon-info-sign"></i> {$form_title}</a> </li> </ul> </div> <div class="box-content"> <div class="tab-content"> <div class="tab-pane active" id="tabhome"> <table class="table table-normal table-hover settingsgr"> <tr> <td class="col-xs-10 col-sm-6 col-md-7"><h6>{$lang['group_name']}</h6><span class="note large">{$lang[hint_gtitle]}</span></td> <td class="col-xs-2 col-md-5"><input type="text" style="width:100%;" name="group_name" value="{$group_name_value}"></td> HTML; ########### Start. LogicBoard (DLE Edition) - ShapeShifter ########### if( $action == "add" ) { $lb_list = ""; foreach ($user_group as $value) { if ($value['id'] == "4") $lb_list .= "<option value=\"".$value['id']."\" selected>".$value['group_name']."</option>"; else $lb_list .= "<option value=\"".$value['id']."\">".$value['group_name']."</option>"; } echo <<<HTML <tr><td background="engine/skins/images/mline.gif" height=1 colspan=2></td></tr> <tr> <td style="padding:4px;" class="option"><b>Маска группы:</b><br /><span class="small">Выберите группу, на основе которой новой группе будут присвоены такие же права на форуме.</span></td> <td style="padding-top:2px;padding-bottom:2px;"><select name="group_mask">{$lb_list}</select></td> </tr> HTML; } ########### End. LogicBoard (DLE Edition) - ShapeShifter ########### echo <<<HTML </tr>