diff --git a/mods/Virtual Keyboard/install.txt b/mods/Virtual Keyboard/install.txt index 4d4630879..3cdba121d 100644 --- a/mods/Virtual Keyboard/install.txt +++ b/mods/Virtual Keyboard/install.txt @@ -124,6 +124,24 @@ $lang['KB_TRANSLIT_OPERA7'] = 'Нажмите здесь для перевода +# +#-----[ OPEN / Открыть ]----------------------------------------- +# + templates/default/posting_editor.tpl + +# +#-----[ FIND / Найти ]------------------------------------------- +# + +class="editor mrg_4" name="message" id="message" rows="18" cols="92" + +# +#-----[ ADD / Добавить]------------------------------ +# + + + onkeypress = "if(use_kb) return decode(event);" + # #-----[ SAVE/CLOSE ALL FILES / Сохранить/Закрыть все файлы]------------------------------------------ diff --git a/upload/ajax/change_torrent.php b/upload/ajax/change_torrent.php index de5de12ed..81009e00b 100644 --- a/upload/ajax/change_torrent.php +++ b/upload/ajax/change_torrent.php @@ -80,11 +80,13 @@ switch($type) break; case 'del_torrent'; + if (empty($this->request['confirmed'])) $this->prompt_for_confirm('Вы уверены, что хотите удалить торрент?'); delete_torrent($attach_id); $url = make_url(TOPIC_URL . $torrent['topic_id']); break; case 'del_torrent_move_topic'; + if (empty($this->request['confirmed'])) $this->prompt_for_confirm('Вы уверены, что хотите удалить и перенести топик?'); delete_torrent($attach_id); $url = make_url("modcp.php?t={$torrent['topic_id']}&mode=move&sid={$userdata['session_id']}"); break; } diff --git a/upload/ajax/posts.php b/upload/ajax/posts.php index 8538babd5..5809bd69e 100644 --- a/upload/ajax/posts.php +++ b/upload/ajax/posts.php @@ -29,21 +29,26 @@ if (!defined('WORD_LIST_OBTAINED')) } switch($this->request['type']) -{ case 'delete'; +{ + case 'delete'; if(!$post) $this->ajax_die('not post'); $is_auth = auth(AUTH_ALL, $post['forum_id'], $userdata, $post); if($post['post_id'] != $post['topic_first_post_id'] && ($is_auth['auth_mod'] || ($userdata['user_id'] == $post['poster_id'] && $is_auth['auth_delete'] && $post['topic_last_post_id'] == $post['post_id'] && $post['post_time'] + 3600*3 > TIMENOW))) - { if (empty($this->request['confirmed'])) + { + if (empty($this->request['confirmed'])) { $this->prompt_for_confirm($lang['CONFIRM_DELETE']); } post_delete($post_id); $this->response['hide'] = true; - $this->response['post_id'] = $post_id; } + $this->response['post_id'] = $post_id; + } else - { $this->ajax_die(sprintf($lang['SORRY_AUTH_DELETE'], strip_tags($is_auth['auth_delete_type']))); } + { + $this->ajax_die(sprintf($lang['SORRY_AUTH_DELETE'], strip_tags($is_auth['auth_delete_type']))); + } break; case 'reply'; @@ -73,7 +78,9 @@ switch($this->request['type']) } if(mb_strlen($message, 'UTF-8') > 1000) - { $this->response['redirect'] = make_url('posting.php?mode=quote&p='. $post_id); } + { + $this->response['redirect'] = make_url('posting.php?mode=quote&p='. $post_id); + } $this->response['quote'] = true; $this->response['message'] = $message; @@ -91,7 +98,9 @@ switch($this->request['type']) if(!$post) $this->ajax_die('not post'); if(mb_strlen($post['post_text'], 'UTF-8') > 1000) - { $this->response['redirect'] = make_url('posting.php?mode=editpost&p='. $post_id); } + { + $this->response['redirect'] = make_url('posting.php?mode=editpost&p='. $post_id); + } else if($this->request['type'] == 'editor') { $text = (string) $this->request['text']; @@ -160,11 +169,14 @@ switch($this->request['type']) } } } + + $hidden_form = ''; + $hidden_form .= ''; + $submit = $this->response['redirect'] = make_url('posting.php?mode=editpost&p='. $post_id); $this->response['text'] = '