diff --git a/upload/admin/admin_topic_templates.php b/upload/admin/admin_topic_templates.php index b234350b7..412203bfd 100644 --- a/upload/admin/admin_topic_templates.php +++ b/upload/admin/admin_topic_templates.php @@ -15,7 +15,7 @@ $mode = (string) request_var('mode', ''); if ($mode == 'templates') { - $sql = "SELECT * FROM ". BB_TOPIC_TPL ." ORDER BY tpl_name"; + $sql = "SELECT * FROM ". BB_TOPIC_TPL_OLD ." ORDER BY tpl_name"; foreach (DB()->fetch_rowset($sql) as $i => $row) { @@ -40,7 +40,7 @@ else if ($mode == 'add' || $mode == 'edit') { $tpl_id = (int) request_var('tpl', ''); if(!$tpl_id) bb_die(''); - $row = DB()->fetch_row("SELECT * FROM ". BB_TOPIC_TPL ." WHERE tpl_id = $tpl_id"); + $row = DB()->fetch_row("SELECT * FROM ". BB_TOPIC_TPL_OLD ." WHERE tpl_id = $tpl_id"); if(!$row) bb_die(''); $template->assign_vars(array( @@ -67,7 +67,7 @@ else if ($mode == 'add' || $mode == 'edit') if(isset($_POST['submit'])) { if($mode == 'edit') - { DB()->query("UPDATE ". BB_TOPIC_TPL ." SET + { DB()->query("UPDATE ". BB_TOPIC_TPL_OLD ." SET tpl_name = '". DB()->escape($tpl_name) ."', tpl_script = '". DB()->escape($tpl_script) ."', tpl_template = '". DB()->escape($tpl_template) ."', @@ -76,7 +76,7 @@ else if ($mode == 'add' || $mode == 'edit') "); $message = 'изменено'; } else - { DB()->query("INSERT INTO ". BB_TOPIC_TPL ." (tpl_name, tpl_script, tpl_template, tpl_desc) + { DB()->query("INSERT INTO ". BB_TOPIC_TPL_OLD ." (tpl_name, tpl_script, tpl_template, tpl_desc) VALUES ('". DB()->escape($tpl_name) ."', '". DB()->escape($tpl_script) ."', '". DB()->escape($tpl_template) ."', '". DB()->escape($tpl_desc) ."')"); $message = 'добавлено'; } @@ -93,12 +93,12 @@ else if ($mode == 'delete') if (isset($_POST['confirm'])) { - DB()->query("DELETE ". BB_TOPIC_TPL ." WHERE tpl_id IN(". join(',', $tpl_ids) .")"); + DB()->query("DELETE ". BB_TOPIC_TPL_OLD ." WHERE tpl_id IN(". join(',', $tpl_ids) .")"); bb_die('Удалено'); } else { - $names = DB()->fetch_rowset("SELECT tpl_name FROM ". BB_TOPIC_TPL ." WHERE tpl_id IN(". join(',', $tpl_ids) .") ORDER BY tpl_name", 'tpl_name'); + $names = DB()->fetch_rowset("SELECT tpl_name FROM ". BB_TOPIC_TPL_OLD ." WHERE tpl_id IN(". join(',', $tpl_ids) .") ORDER BY tpl_name", 'tpl_name'); print_confirmation(array( 'QUESTION' => 'Вы уверены, что хотите удалить?', @@ -120,7 +120,7 @@ else $available_tpl_id = array(0); $tpl_select = array($lang['TPL_NONE'] => 0); - $sql = "SELECT * FROM ". BB_TOPIC_TPL ." ORDER BY tpl_name"; + $sql = "SELECT * FROM ". BB_TOPIC_TPL_OLD ." ORDER BY tpl_name"; foreach (DB()->fetch_rowset($sql) as $row) { diff --git a/upload/ajax.php b/upload/ajax.php index e51d5b065..b2f5da778 100644 --- a/upload/ajax.php +++ b/upload/ajax.php @@ -70,6 +70,7 @@ class ajax_common 'change_tor_status' => array('mod'), 'mod_action' => array('mod'), + 'topic_tpl' => array('mod'), 'gen_passkey' => array('user'), 'change_torrent' => array('user'), @@ -180,7 +181,6 @@ class ajax_common function init () { $this->request = $_POST; - $this->action =& $this->request['action']; } @@ -493,5 +493,10 @@ class ajax_common { require(AJAX_DIR .'manage_user.php'); } + + function topic_tpl() + { + require(AJAX_DIR .'topic_tpl.php'); + } } diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index 05697399e..d4c4fcc18 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -93,8 +93,9 @@ switch($this->request['type']) case 'view_message': $message = (string) $this->request['message']; if(!trim($message)) $this->ajax_die($lang['EMPTY_MESSAGE']); - $message = bbcode2html($message); - $this->response['message_html'] = $message; + + $this->response['message_html'] = bbcode2html($message); + $this->response['res_id'] = $this->request['res_id']; break; case 'edit': diff --git a/upload/ajax/topic_tpl.php b/upload/ajax/topic_tpl.php new file mode 100644 index 000000000..5b9a0e65c --- /dev/null +++ b/upload/ajax/topic_tpl.php @@ -0,0 +1,172 @@ +ajax_die('not auth'); + +array_deep($this->request, 'trim'); + +$mode = (string) $this->request['mode']; +$sql_error = false; + +// установка / начальная валидация значений +switch ($mode) +{ + case 'load': + case 'save': + if (!$tpl_id = (int) $this->request['tpl_id']) + { + $this->ajax_die('empty tpl_id'); + } + if (!$tpl_data = DB()->fetch_row("SELECT * FROM ". BB_TOPIC_TPL ." WHERE tpl_id = $tpl_id LIMIT 1")) + { + $this->ajax_die("Шаблон [id: $tpl_id] не найден в БД"); + } + break; +} +switch ($mode) +{ + case 'save': + case 'new': + if (!$tpl_name = htmlCHR(str_compact($this->request['tpl_name']))) + { + $this->ajax_die('не заполнено название шаблона'); + } + $tpl_name = substr($tpl_name, 0, 60); + + if (!$tpl_src_form = htmlCHR($this->request['tpl_src_form'])) + { + $this->ajax_die('не заполнен скрипт формы шаблона'); + } + if (!$tpl_src_title = htmlCHR($this->request['tpl_src_title'])) + { + $this->ajax_die('не заполнен формат названия темы'); + } + $tpl_src_title = str_compact($tpl_src_title); + + if (!$tpl_src_msg = htmlCHR($this->request['tpl_src_msg'])) + { + $this->ajax_die('не заполнен формат создания сообщения'); + } + + $tpl_comment = htmlCHR($this->request['tpl_comment']); + + preg_match('#\d+#', (string) $this->request['tpl_rules'], $m); + $tpl_rules_post_id = isset($m[0]) ? (int) $m[0] : 0; + + $sql_args = array( + 'tpl_name' => (string) $tpl_name, + 'tpl_src_form' => (string) $tpl_src_form, + 'tpl_src_title' => (string) $tpl_src_title, + 'tpl_src_msg' => (string) $tpl_src_msg, + 'tpl_comment' => (string) $tpl_comment, + 'tpl_rules_post_id' => (int) $tpl_rules_post_id, + 'tpl_last_edit_tm' => (int) TIMENOW, + 'tpl_last_edit_by' => (int) $userdata['user_id'], + ); + break; +} +// выполнение +switch ($mode) +{ + // загрузка шаблона + case 'load': + $this->response['val']['tpl-name-save'] = $tpl_data['tpl_name']; + $this->response['val']['tpl-src-form'] = $tpl_data['tpl_src_form']; + $this->response['val']['tpl-src-title'] = $tpl_data['tpl_src_title']; + $this->response['val']['tpl-src-msg'] = $tpl_data['tpl_src_msg']; + $this->response['val']['tpl-comment-save'] = $tpl_data['tpl_comment']; + $this->response['val']['tpl-rules-save'] = $tpl_data['tpl_rules_post_id']; + array_deep($this->response['val'], 'html_ent_decode'); + + $this->response['val']['tpl-id-save'] = $tpl_id; + $this->response['val']['tpl-last-edit-tst'] = $tpl_data['tpl_last_edit_tm']; + $this->response['html']['tpl-name-old-save'] = $tpl_data['tpl_name']; + $this->response['html']['tpl-last-edit-time'] = bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i'); + $this->response['html']['tpl-last-edit-by'] = get_username(intval($tpl_data['tpl_last_edit_by'])); + + $this->response['tpl_rules_href'] = POST_URL . $tpl_data['tpl_rules_post_id'] .'#'. $tpl_data['tpl_rules_post_id']; + break; + + // включение / отключение шаблона в форуме + case 'assign': + if (!$tpl_id = (int) $this->request['tpl_id']) + { + $this->ajax_die('empty tpl_id'); + } + if (!$forum_id = (int) $this->request['forum_id']) + { + $this->ajax_die('empty forum_id'); + } + if (!forum_exists($forum_id)) + { + $this->ajax_die("нет такого форума [id: $forum_id]"); + } + // отключение + if ($tpl_id == -1) + { + $new_tpl_id = 0; + $this->response['msg'] = 'Шаблоны в этом форуме отключены'; + } + // включение + else + { + if (!$tpl_name = DB()->fetch_row("SELECT tpl_name FROM ". BB_TOPIC_TPL ." WHERE tpl_id = $tpl_id LIMIT 1", 'tpl_name')) + { + $this->ajax_die("Шаблон [id: $tpl_id] не найден в БД"); + } + $new_tpl_id = $tpl_id; + $this->response['msg'] = "Включен шаблон $tpl_name"; + } + DB()->query("UPDATE ". BB_FORUMS ." SET forum_tpl_id = $new_tpl_id WHERE forum_id = $forum_id LIMIT 1"); + break; + + // сохранение изменений + case 'save': + if ($tpl_data['tpl_last_edit_tm'] > $this->request['tpl_l_ed_tst'] && $tpl_data['tpl_last_edit_by'] != $userdata['user_id']) + { + $last_edit_by_username = get_username(intval($tpl_data['tpl_last_edit_by'])); + $msg = "Изменения не были сохранены!\n\n"; + $msg .= 'Шаблон был отредактирован: '. html_entity_decode($last_edit_by_username) .', '. delta_time($tpl_data['tpl_last_edit_tm']) ." назад\n\n"; + $this->ajax_die($msg); + } + $sql = "UPDATE ". BB_TOPIC_TPL ." SET ". DB()->build_array('UPDATE', $sql_args) ." WHERE tpl_id = $tpl_id LIMIT 1"; + if (!@DB()->query($sql)) + { + $sql_error = DB()->sql_error(); + } + $this->response['tpl_id'] = $tpl_id; + $this->response['tpl_name'] = $tpl_name; + $this->response['html']['tpl-last-edit-time'] = bb_date(TIMENOW, 'd-M-y H:i'); + $this->response['html']['tpl-last-edit-by'] = $userdata['username']; + break; + + // создание нового шаблона + case 'new': + $sql = "INSERT INTO ". BB_TOPIC_TPL . DB()->build_array('INSERT', $sql_args); + if (!@DB()->query($sql)) + { + $sql_error = DB()->sql_error(); + } + break; + + // ошибочный $mode + default: + $this->ajax_die("invalid mode: $mode"); +} + +// возможный дубль названия шаблона +if ($sql_error) +{ + if ($sql_error['code'] == 1062) // Duplicate entry + { + $this->ajax_die('Шаблон с таким названием уже существует, выберите другое название'); + } + $this->ajax_die("db error {$sql_error['code']}: {$sql_error['message']}"); +} + +// выход +$this->response['mode'] = $mode; +$this->response['timestamp'] = TIMENOW; diff --git a/upload/config.php b/upload/config.php index 7c35d9755..7d6322d4d 100644 --- a/upload/config.php +++ b/upload/config.php @@ -53,8 +53,8 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.2 Beta'; -$bb_cfg['tp_release_state'] = 'R305'; -$bb_cfg['tp_release_date'] = '05-11-2011'; +$bb_cfg['tp_release_state'] = 'R306'; +$bb_cfg['tp_release_date'] = '09-11-2011'; // Database $charset = 'utf8'; diff --git a/upload/includes/functions.php b/upload/includes/functions.php index dd064e650..3c5b0bb8d 100644 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -667,6 +667,8 @@ function delta_time ($timestamp_1, $timestamp_2 = TIMENOW, $granularity = 'auto' function get_select ($type) { + global $lang; + $select_ary = array(); switch ($type) @@ -690,6 +692,16 @@ function get_select ($type) } $select_name = POST_GROUPS_URL; break; + + case 'forum_tpl': + $sql = "SELECT tpl_id, tpl_name FROM ". BB_TOPIC_TPL ." ORDER BY tpl_name"; + $select_ary[$lang['SELECT']] = 0; + foreach (DB()->fetch_rowset($sql) as $row) + { + $select_ary[$row['tpl_name']] = $row['tpl_id']; + } + $select_name = 'forum_tpl_select'; + break; } return ($select_ary) ? build_select($select_name, $select_ary) : ''; } diff --git a/upload/includes/init_bb.php b/upload/includes/init_bb.php index c166b5d88..38bd07360 100644 --- a/upload/includes/init_bb.php +++ b/upload/includes/init_bb.php @@ -366,7 +366,8 @@ define('BB_SEARCH_REBUILD', 'bb_search_rebuild'); define('BB_SEARCH', 'bb_search_results'); define('BB_SESSIONS', 'bb_sessions'); define('BB_SMILIES', 'bb_smilies'); -define('BB_TOPIC_TPL', 'bb_topic_templates'); +define('BB_TOPIC_TPL_OLD', 'bb_topic_templates'); +define('BB_TOPIC_TPL', 'bb_topic_tpl'); define('BB_TOPICS', 'bb_topics'); define('BB_TOPICS_WATCH', 'bb_topics_watch'); define('BB_USER_GROUP', 'bb_user_group'); diff --git a/upload/includes/posting_tpl.php b/upload/includes/posting_tpl.php new file mode 100644 index 000000000..bed74b25a --- /dev/null +++ b/upload/includes/posting_tpl.php @@ -0,0 +1,82 @@ +fetch_row($sql)) +{ + bb_die('Форум не найден'); +} +// tpl_data +$tpl_data = array(); +$sql = "SELECT * FROM ". BB_TOPIC_TPL ." WHERE tpl_id = {$f_data['forum_tpl_id']} LIMIT 1"; + +if (!$f_data['forum_tpl_id'] OR !$tpl_data = DB()->fetch_row($sql)) +{ + if (!$edit_tpl_mode) + { + redirect(POSTING_URL. "?mode=newtopic&f=$forum_id"); + } +} + +$template->assign_vars(array( + 'PAGE_TITLE' => 'Новый релиз', + 'FORUM_NAME' => $f_data['forum_name'], + 'FORUM_ID' => $forum_id, + 'TPL_FORM_ACTION' => "posting.php?mode=newtopic&f=$forum_id", + 'REGULAR_TOPIC_HREF' => "posting.php?mode=newtopic&f=$forum_id", + 'TOR_REQUIRED' => $f_data['allow_reg_tracker'], + 'EDIT_TPL' => $edit_tpl_mode, + 'CAN_EDIT_TPL' => $can_edit_tpl, + 'EDIT_TPL_URL' => "posting.php?mode=new_rel&f=$forum_id&edit_tpl=1", +)); + +if ($tpl_data) +{ + // tpl_rules_html + $tpl_rules_html = ''; + + if ($tpl_data['tpl_rules_post_id']) + { + if (!$tpl_rules_html = get_posts_html($tpl_data['tpl_rules_post_id'])) + { + $tpl_data['tpl_rules_post_id'] = 0; + DB()->query("UPDATE ". BB_TOPIC_TPL ." SET tpl_rules_post_id = 0 WHERE tpl_id = {$f_data['forum_tpl_id']} LIMIT 1"); + } + } + + $template->assign_vars(array( + 'TPL_ID' => $tpl_data['tpl_id'], + 'TPL_NAME' => $tpl_data['tpl_name'], + 'TPL_SRC_FORM_VAL' => $tpl_data['tpl_src_form'], + 'TPL_SRC_TITLE_VAL' => $tpl_data['tpl_src_title'], + 'TPL_SRC_MSG_VAL' => $tpl_data['tpl_src_msg'], + 'TPL_RULES_HTML' => $tpl_rules_html, + )); +} + +if ($edit_tpl_mode) +{ + $template->assign_vars(array( + 'NO_TPL_ASSIGNED' => !($f_data['forum_tpl_id']), + 'TPL_SELECT' => get_select('forum_tpl', $f_data['forum_tpl_id']), + )); + if ($tpl_data) + { + $template->assign_vars(array( + 'TPL_COMMENT' => $tpl_data['tpl_comment'], + 'TPL_RULES_POST_ID' => $tpl_data['tpl_rules_post_id'], + 'TPL_LAST_EDIT_TIME' => bb_date($tpl_data['tpl_last_edit_tm'], 'd-M-y H:i'), + 'TPL_LAST_EDIT_USER' => get_username(intval($tpl_data['tpl_last_edit_by'])), + 'TPL_LAST_EDIT_TIMESTAMP' => $tpl_data['tpl_last_edit_tm'], + )); + } +} + +print_page('posting_tpl.tpl'); + diff --git a/upload/includes/topic_templates.php b/upload/includes/topic_templates.php index d0132bef2..c1f1a86cf 100644 --- a/upload/includes/topic_templates.php +++ b/upload/includes/topic_templates.php @@ -56,7 +56,7 @@ function tpl_func_screen_shots ($item, $val) // get tpl data $sql = "SELECT * - FROM ". BB_TOPIC_TPL ." + FROM ". BB_TOPIC_TPL_OLD ." WHERE tpl_id = ". (int) $post_info['topic_tpl_id']; if ($topic_tpl = DB()->fetch_row($sql)) diff --git a/upload/misc/tpl/posting_tpl_common_header.html b/upload/misc/tpl/posting_tpl_common_header.html new file mode 100644 index 000000000..84f7c0d0d --- /dev/null +++ b/upload/misc/tpl/posting_tpl_common_header.html @@ -0,0 +1 @@ +posting_tpl_common_header.html \ No newline at end of file diff --git a/upload/misc/tpl/posting_tpl_el_attr.js b/upload/misc/tpl/posting_tpl_el_attr.js new file mode 100644 index 000000000..399c09685 --- /dev/null +++ b/upload/misc/tpl/posting_tpl_el_attr.js @@ -0,0 +1,175 @@ + +/* + ------------------------------------------------------------------------------------------------- + -- el_attr -------------------------------------------------------------------------------------- + ------------------------------------------------------------------------------------------------- +*/ +TPL.el_attr = { + /* + код_элемента = ID элемента в форме + все элементы имеют class "rel-input" + формат el_attr + код_элемента: [ + [0] - тип + [1] - название + [2] - атрибуты элемента типа size,rows.. по умолчанию (в том же порядке как и опциональные для элемента) + [3] - атрибуты типа HEAD,req.. по умолчанию для формата сообщения + ] + формат элементов в #tpl-src-form (включая все опциональные атрибуты типа maxlength..) + INP - input[name,maxlength,size] + TXT - textarea[name,rows] + SEL - select[name] -- значения для селектов находятся в TPL.selects + */ + + audio_codec : [ 'SEL', 'Аудио кодек', '', '' ], + audio : [ 'INP', 'Аудио', '200,80', '' ], + casting : [ 'TXT', 'В ролях', '3', 'BR' ], + video_codec : [ 'SEL', 'Видео кодек', '', '' ], + video : [ 'INP', 'Видео', '200,80', '' ], + year : [ 'INP', 'Год выпуска', '4,5', 'num' ], + moreinfo : [ 'TXT', 'Доп. информация', '3', 'BR' ], + genre : [ 'INP', 'Жанр', '200,40', '' ], + video_quality : [ 'SEL', 'Качество видео', '', '' ], + title_rus : [ 'INP', 'Название', '90,80', 'HEAD,req' ], + description : [ 'TXT', 'Описание', '6', 'BR' ], + title_eng : [ 'INP', 'Оригинальное название', '90,80', 'HEAD' ], + translation : [ 'SEL', 'Перевод', '', '' ], + poster : [ 'INP', 'Постер', '200,80', 'img,POSTER' ], + playtime : [ 'INP', 'Продолжительность', '200,30', '' ], + director : [ 'INP', 'Режиссер', '200,50', '' ], + rus_sub : [ 'SEL', 'Русские субтитры', '', '' ], + screenshots : [ 'TXT', 'Скриншоты', '3', 'spoiler' ], + country : [ 'INP', 'Страна', '200,50', '' ], + studio : [ 'INP', 'Студия', '200,50', '' ], + video_format : [ 'SEL', 'Формат видео', '', '' ], + + // dummy + dummy : ['',''] +}; + +/* + ------------------------------------------------------------------------------------------------- + -- el_id ---------------------------------------------------------------------------------------- + ------------------------------------------------------------------------------------------------- +*/ +TPL.el_id = { + // ID контейнеров содержащих html элементов + + load_pic_btn : 'Кнопка "Загрузить картинку"', + + // ID элементов, для которых нужно создать скрытые элементы, содержащие аббревиатуры для подстановки в название + // Каждый элемент el_abr должен точно соответствовать el (translation_abr -> translation) + + translation_abr : '[ABR] Перевод', + + + // dummy + dummy : '' +}; + +/* + ------------------------------------------------------------------------------------------------- + -- selects -------------------------------------------------------------------------------------- + ------------------------------------------------------------------------------------------------- +*/ +TPL.selects = { + // [0] всегда имеет value='' и если задан как '' (пустая строка) заменяется на "» Выбрать" + + translation : [ + '', + 'Любительский (одноголосый)', + 'Любительский (двухголосый)', + 'Авторский (одноголосый)', + 'Профессиональный (одноголосый)', + 'Профессиональный (двухголосый)', + 'Профессиональный (многоголосый, закадровый)', + 'Профессиональный (полное дублирование)', + 'Субтитры', + 'Отсутствует', + 'Не требуется' + ], + + translation_abr : [ + ' ', + 'одноголосый (Л)', // 'Любительский (одноголосый)', + 'двухголосый (Л)', // 'Любительский (двухголосый)', + 'авторский', // 'Авторский (одноголосый)', + 'одноголосый', // 'Профессиональный (одноголосый)', + 'двухголосый', // 'Профессиональный (двухголосый)', + 'многоголосый', // 'Профессиональный (многоголосый, закадровый)', + 'дублированный', // 'Профессиональный (полное дублирование)', + 'субтитры', // 'Субтитры', + 'без перевода', // 'Отсутствует', + ' ' // 'Не требуется' + ], + + rus_sub : ['', 'есть', 'нет'], + + rus_sub_abr : ['', 'есть', 'нет'], + + video_quality : [ + '» Качество видео', + 'DVDRip', + 'DVD5', + 'DVD5 (сжатый)', + 'DVD9', + 'HDTV', + 'HDTVRip', + 'TVRip', + 'TeleCine', + 'TeleSynch', + 'CamRip', + 'SATRip', + 'VHSRip', + 'HD-DVDRip', + 'BDRip', + 'DVDScreener' + ], + + video_format : [ + '» Формат видео', + 'AVI', + 'DVD Video', + 'OGM', + 'MKV', + 'WMV', + 'MPEG', + 'MP4', + 'TS', + 'M2TS' + ], + + video_codec : [ + '» Видео кодек', + 'DivX', + 'XviD', + "Другой MPEG4", + 'VPx', + 'MPEG1', + 'MPEG2', + 'Windows Media', + 'QuickTime', + 'H.264', + 'Flash' + ], + + audio_codec : [ + '» Аудио кодек', + 'MP3', + 'APE', + 'FLAC', + 'WAVPack', + 'WMA', + 'OGG Vorbis', + 'DTS', + 'DVD-AUDIO', + 'TTA', + 'AAC', + 'AC3', + 'M4A', + 'M4B' + ], + + // dummy + dummy : [''] +}; diff --git a/upload/misc/tpl/posting_tpl_el_id.html b/upload/misc/tpl/posting_tpl_el_id.html new file mode 100644 index 000000000..1a3f53a3c --- /dev/null +++ b/upload/misc/tpl/posting_tpl_el_id.html @@ -0,0 +1,24 @@ + +
+ + + + + diff --git a/upload/posting.php b/upload/posting.php index 9e4d1e5e5..0d6761a7a 100644 --- a/upload/posting.php +++ b/upload/posting.php @@ -49,6 +49,12 @@ $tracking_forums = get_tracks('forum'); // Start session management $user->session_start(); +if ($mode == 'new_rel') +{ + require(INC_DIR .'posting_tpl.php'); + exit; +} + // What auth type do we need to check? $is_auth = array(); switch ($mode) diff --git a/upload/templates/default/posting_tpl.tpl b/upload/templates/default/posting_tpl.tpl new file mode 100644 index 000000000..c5b723fe0 --- /dev/null +++ b/upload/templates/default/posting_tpl.tpl @@ -0,0 +1,1143 @@ + + + + + +Правила оформления | +
---|
+ {TPL_RULES_HTML}
+
+ |
+
Создание шаблона для релиза | +|||
---|---|---|---|
+
+
+ |
+|||
+
+
|
+|||
+ + | +
+
+
+
+
+ сообщение: [?] + + + |
+||
результат [ скрыть ] | |||
+
+
+
+
+
+
+
+ |
+|||
+ |
+|||
+ [ Инструкция ]
+
+ |
+