|
Revision 269, 1.0 kB
(checked in by Nafania, 2 years ago)
|
Большое обновление всякого разного.
Новые запросы к базе начинаются с 390-393 строк.
Новая система bbcode, добавлены теги раздач (настройки в админке).
Чуть изменен режим работы заливки.
Подходим к вопросу об использовании xbtt.
Итд итп.
|
| Line | |
|---|
| 1 |
<?php</span> |
|---|
| 2 |
<span class="code-lang">$root_path = './'; |
|---|
| 3 |
require ($root_path . 'include/config.php'); |
|---|
| 4 |
require ($root_path . 'include/functions_selects.php'); |
|---|
| 5 |
require ($root_path . 'include/bbcode/bbcode.lib.php'); |
|---|
| 6 |
require ($root_path . 'include/functions_check.php'); |
|---|
| 7 |
require ($root_path . 'languages/lang_' . $config['default_lang'] . '/lang_modcomment_log.php'); |
|---|
| 8 |
|
|---|
| 9 |
$userdata = session_pagestart($user_ip); |
|---|
| 10 |
init_userprefs($userdata); |
|---|
| 11 |
loggedinorreturn();</span> |
|---|
| 12 |
<span class="code-lang"> |
|---|
| 13 |
if ( $userdata['class'] < UC_MODERATOR ) { |
|---|
| 14 |
trigger_error($lang['access_denied']); |
|---|
| 15 |
} |
|---|
| 16 |
|
|---|
| 17 |
$action = request_var('action', ''); |
|---|
| 18 |
|
|---|
| 19 |
$files = array();</span> |
|---|
| 20 |
<span class="code-lang">if ( $dir = opendir($root_path . 'include/modtask/') ) { |
|---|
| 21 |
while ( false !== ($file = readdir($dir)) ) { |
|---|
| 22 |
if ( $file != '.' && $file != '..' ) { |
|---|
| 23 |
$file = substr($file, 0, strpos($file, '.php')); |
|---|
| 24 |
$files[] = $file; |
|---|
| 25 |
} |
|---|
| 26 |
} |
|---|
| 27 |
} |
|---|
| 28 |
|
|---|
| 29 |
if ( $action ) { |
|---|
| 30 |
if ( in_array($action, $files) ) { |
|---|
| 31 |
require_once($root_path . 'include/modtask/' . $action . '.php'); |
|---|
| 32 |
} |
|---|
| 33 |
else { |
|---|
| 34 |
trigger_error('invalid_action'); |
|---|
| 35 |
} |
|---|
| 36 |
} |
|---|
| 37 |
?> |
|---|
| 38 |
|
|---|