mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
r190
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@190 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
bcaf494ee9
commit
4c8f853874
14 changed files with 73 additions and 60 deletions
|
@ -69,4 +69,4 @@ if ($tor['tor_status'] != TOR_NOT_APPROVED && $tor['checked_user_id'] != $userda
|
||||||
change_tor_status($attach_id, $new_status);
|
change_tor_status($attach_id, $new_status);
|
||||||
|
|
||||||
$this->response['attach_id'] = $attach_id;
|
$this->response['attach_id'] = $attach_id;
|
||||||
$this->response['status'] = $bb_cfg['tor_icons'][$new_status] .' <b> '. $lang['TOR_STATUS_NAME'][$new_status]. '</b> · <a class="med" href='. PROFILE_URL . $tor['checked_user_id'] . '>' . get_username($tor['checked_user_id']) . '</a> · <i>'. delta_time(time()) . $lang['BACK']. '</i>';
|
$this->response['status'] = $bb_cfg['tor_icons'][$new_status] .' <b> '. $lang['TOR_STATUS_NAME'][$new_status]. '</b> · <a class="med" href='. PROFILE_URL . $userdata['user_id'] . '>' . get_username($userdata['user_id']) . '</a> · <i>'. delta_time(time()) . $lang['BACK']. '</i>';
|
|
@ -21,11 +21,11 @@ if (($file_contents = @file_get_contents($filename)) === false)
|
||||||
{
|
{
|
||||||
if(IS_AM)
|
if(IS_AM)
|
||||||
{
|
{
|
||||||
$this->ajax_die($lang['TOR_NOT_FOUND'] ."\n\n". htmlCHR($filename));
|
$this->ajax_die($lang['ERROR_NO_ATTACHMENT'] ."\n\n". htmlCHR($filename));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->ajax_die($lang['TOR_NOT_FOUND']);
|
$this->ajax_die($lang['ERROR_NO_ATTACHMENT']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ function topic_info($topic_id)
|
||||||
return $t;
|
return $t;
|
||||||
}
|
}
|
||||||
|
|
||||||
function send_pm($topic_id, $t_info, $to_user_id)
|
function call_seed($topic_id, $t_info, $to_user_id)
|
||||||
{
|
{
|
||||||
global $userdata, $lang, $msg_error;
|
global $userdata, $lang, $msg_error;
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ function send_pm($topic_id, $t_info, $to_user_id)
|
||||||
{
|
{
|
||||||
if ($msg_error != "OK") break;
|
if ($msg_error != "OK") break;
|
||||||
|
|
||||||
send_pm($topic_id, $t_info, $user_id);
|
call_seed($topic_id, $t_info, $user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
|
@ -57,8 +57,8 @@ $bb_cfg['css_ver'] = 1;
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.0.2';
|
$bb_cfg['tp_version'] = '2.0.2';
|
||||||
$bb_cfg['tp_release_state'] = 'TP II r189';
|
$bb_cfg['tp_release_state'] = 'TP II r190';
|
||||||
$bb_cfg['tp_release_date'] = '3-08-2011';
|
$bb_cfg['tp_release_date'] = '4-08-2011';
|
||||||
|
|
||||||
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
||||||
$bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут";
|
$bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут";
|
||||||
|
|
|
@ -28,7 +28,7 @@ function send_file_to_browser($attachment, $upload_dir)
|
||||||
{
|
{
|
||||||
if (@!file_exists(@amod_realpath($filename)))
|
if (@!file_exists(@amod_realpath($filename)))
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br /><b>404 File Not Found:</b> The File <i>" . $filename . "</i> does not exist.");
|
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ function send_file_to_browser($attachment, $upload_dir)
|
||||||
|
|
||||||
if (!$result)
|
if (!$result)
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br /><b>404 File Not Found:</b> The File <i>" . $filename . "</i> does not exist.");
|
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ftp_quit($conn_id);
|
@ftp_quit($conn_id);
|
||||||
|
@ -166,7 +166,7 @@ function send_file_to_browser($attachment, $upload_dir)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br /><b>404 File Not Found:</b> The File <i>" . $filename . "</i> does not exist.");
|
message_die(GENERAL_ERROR, $lang['ERROR_NO_ATTACHMENT'] . "<br /><br />" . $filename. "<br /><br />" .$lang['TOR_NOT_FOUND']);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit;
|
exit;
|
||||||
|
|
|
@ -2734,7 +2734,7 @@ function get_path_from_id ($id, $ext_id, $base_path, $first_div, $sec_div)
|
||||||
return ($base_path ? "$base_path/" : '') . ($id % $sec_div) .'/'. $id . ($ext ? ".$ext" : '');
|
return ($base_path ? "$base_path/" : '') . ($id % $sec_div) .'/'. $id . ($ext ? ".$ext" : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*function send_pm($user_id, $subject, $message)
|
function send_pm($user_id, $subject, $message)
|
||||||
{
global $userdata;
|
{
global $userdata;
|
||||||
|
|
||||||
$subject = DB()->escape($subject);
|
$subject = DB()->escape($subject);
|
||||||
|
@ -2752,4 +2752,4 @@ function get_path_from_id ($id, $ext_id, $base_path, $first_div, $sec_div)
|
||||||
user_last_privmsg = ". TIMENOW .",
|
user_last_privmsg = ". TIMENOW .",
|
||||||
user_newest_pm_id = $pm_id
|
user_newest_pm_id = $pm_id
|
||||||
WHERE user_id = $user_id");
|
WHERE user_id = $user_id");
|
||||||
}*/
|
}
|
|
@ -1175,6 +1175,11 @@ $lang['BT_GEN_PASSKEY_NEW'] = 'Are you sure you want to create a new passkey?';
|
||||||
$lang['BT_GEN_PASSKEY_OK'] = 'New personal identifier generated';
|
$lang['BT_GEN_PASSKEY_OK'] = 'New personal identifier generated';
|
||||||
$lang['BT_NO_SEARCHABLE_FORUMS'] = 'No searchable forums found';
|
$lang['BT_NO_SEARCHABLE_FORUMS'] = 'No searchable forums found';
|
||||||
|
|
||||||
|
$lang['SEEDS'] = 'Seed';
|
||||||
|
$lang['LEECHS'] = 'Leech';
|
||||||
|
$lang['SPEED_UP'] = 'Speed Up';
|
||||||
|
$lang['SPEED_DOWN'] = 'Speed Down';
|
||||||
|
|
||||||
$lang['SEEDERS'] = 'Seeders';
|
$lang['SEEDERS'] = 'Seeders';
|
||||||
$lang['LEECHERS'] = 'Leechers';
|
$lang['LEECHERS'] = 'Leechers';
|
||||||
$lang['RELEASING'] = 'Self';
|
$lang['RELEASING'] = 'Self';
|
||||||
|
@ -1212,7 +1217,8 @@ $lang['INVALID_ATTACH_ID'] = 'Missing file identifier!';
|
||||||
$lang['CHANGE_TOR_TYPE'] = 'Type the torrent successfully changed';
|
$lang['CHANGE_TOR_TYPE'] = 'Type the torrent successfully changed';
|
||||||
$lang['DEL_TORRENT'] = 'Are you sure you want to delete the torrent?';
|
$lang['DEL_TORRENT'] = 'Are you sure you want to delete the torrent?';
|
||||||
$lang['DEL_MOVE_TORRENT'] = 'Are you sure you want to delete and move the topic?';
|
$lang['DEL_MOVE_TORRENT'] = 'Are you sure you want to delete and move the topic?';
|
||||||
|
$lang['UNEXECUTED_RELEASE'] = 'Do you have a shapeless release before creating a new fix his unformed!';
|
||||||
|
$lang['STATUS_DOES_EXIST'] = 'Such status does not exist: ';
|
||||||
//end torrent status mod
|
//end torrent status mod
|
||||||
|
|
||||||
$lang['BT_TOPIC_TITLE'] = 'Topic title';
|
$lang['BT_TOPIC_TITLE'] = 'Topic title';
|
||||||
|
@ -1577,4 +1583,10 @@ $lang['SEC'] = 'sec';
|
||||||
$lang['ON'] = 'on';
|
$lang['ON'] = 'on';
|
||||||
$lang['OFF'] = 'off';
|
$lang['OFF'] = 'off';
|
||||||
$lang['MEMORY'] = 'Mem: ';
|
$lang['MEMORY'] = 'Mem: ';
|
||||||
$lang['QUERIES'] = 'queries';
|
$lang['QUERIES'] = 'queries';
|
||||||
|
|
||||||
|
// Attach Guest
|
||||||
|
$lang['DOWNLOAD_INFO'] = 'Download free and at maximum speed!';
|
||||||
|
$lang['HOW_TO_DOWNLOAD'] = 'How to Download?';
|
||||||
|
$lang['WHAT_IS_A_TORRENT'] = 'What is a torrent?';
|
||||||
|
$lang['RATINGS_AND_LIMITATIONS'] = 'Ratings and Limitations';
|
|
@ -151,7 +151,7 @@ $lang['NEWEST_USER'] = 'Последний зарегистрированный
|
||||||
|
|
||||||
// Tracker stats
|
// Tracker stats
|
||||||
$lang['TORRENTS_STAT'] = 'Раздач: <b style="color: blue;">%s</b>, общий размер: <b>%s</b>'; // first %s = number of torrents, second %s is the total size.
|
$lang['TORRENTS_STAT'] = 'Раздач: <b style="color: blue;">%s</b>, общий размер: <b>%s</b>'; // first %s = number of torrents, second %s is the total size.
|
||||||
$lang['PEERS_STAT'] = 'Пиров: <b>%s</b>, сидеров: <b class="seedmed">%s</b>, личеров: <b class="leechmed">%s</b>'; // first %s = number of peers, second %s = number of seeders, third %s = number of leechers.
|
$lang['PEERS_STAT'] = 'Пиров: <b>%s</b>, Сидов: <b class="seedmed">%s</b>, Личеров: <b class="leechmed">%s</b>'; // first %s = number of peers, second %s = number of seeders, third %s = number of leechers.
|
||||||
$lang['SPEED_STAT'] = 'Скорость обмена: <b>%s</b> '; // %s = total speed.
|
$lang['SPEED_STAT'] = 'Скорость обмена: <b>%s</b> '; // %s = total speed.
|
||||||
|
|
||||||
$lang['NO_NEW_POSTS_LAST_VISIT'] = 'Нет новых сообщений с последнего посещения';
|
$lang['NO_NEW_POSTS_LAST_VISIT'] = 'Нет новых сообщений с последнего посещения';
|
||||||
|
@ -328,7 +328,7 @@ $lang['OPTIONS'] = 'Настройки';
|
||||||
$lang['POST_ANNOUNCEMENT'] = 'Объявление';
|
$lang['POST_ANNOUNCEMENT'] = 'Объявление';
|
||||||
$lang['POST_STICKY'] = 'Прилепленная';
|
$lang['POST_STICKY'] = 'Прилепленная';
|
||||||
$lang['POST_NORMAL'] = 'Обычная';
|
$lang['POST_NORMAL'] = 'Обычная';
|
||||||
$lang['POST_DOWNLOAD'] = 'Download';
|
$lang['POST_DOWNLOAD'] = 'Скачиваемая';
|
||||||
|
|
||||||
$lang['CONFIRM_DELETE'] = 'Вы уверены, что хотите удалить это сообщение?';
|
$lang['CONFIRM_DELETE'] = 'Вы уверены, что хотите удалить это сообщение?';
|
||||||
$lang['CONFIRM_DELETE_POLL'] = 'Вы уверены, что хотите удалить этот опрос?';
|
$lang['CONFIRM_DELETE_POLL'] = 'Вы уверены, что хотите удалить этот опрос?';
|
||||||
|
@ -1067,7 +1067,7 @@ $lang['DOWNLOAD'] = 'Скачать'; // this Language Variable is defined in la
|
||||||
$lang['FILESIZE'] = 'Размер';
|
$lang['FILESIZE'] = 'Размер';
|
||||||
$lang['VIEWED'] = 'Просмотров';
|
$lang['VIEWED'] = 'Просмотров';
|
||||||
$lang['DOWNLOAD_NUMBER'] = '%d раз'; // replace %d with count
|
$lang['DOWNLOAD_NUMBER'] = '%d раз'; // replace %d with count
|
||||||
$lang['EXTENSION_DISABLED_AFTER_POSTING'] = 'The Extension \'%s\' was deactivated by an board admin, therefore this Attachment is not displayed.'; // used in Posts and PM's, replace %s with mime type
|
$lang['EXTENSION_DISABLED_AFTER_POSTING'] = 'Расширение \'%s\' было деактивировано администратором, поэтому это приложение не отображается.'; // used in Posts and PM's, replace %s with mime type
|
||||||
|
|
||||||
$lang['ATTACHMENT'] = 'Вложения';
|
$lang['ATTACHMENT'] = 'Вложения';
|
||||||
$lang['ATTACHMENT_THUMBNAIL'] = 'Вложение Миниатюра';
|
$lang['ATTACHMENT_THUMBNAIL'] = 'Вложение Миниатюра';
|
||||||
|
@ -1182,6 +1182,11 @@ $lang['BT_GEN_PASSKEY_NEW'] = 'Вы уверены, что хотите созд
|
||||||
$lang['BT_GEN_PASSKEY_OK'] = 'Новый персональный идентификатор сгенеририван';
|
$lang['BT_GEN_PASSKEY_OK'] = 'Новый персональный идентификатор сгенеририван';
|
||||||
$lang['BT_NO_SEARCHABLE_FORUMS'] = 'Доступных для поиска форумов не найдено';
|
$lang['BT_NO_SEARCHABLE_FORUMS'] = 'Доступных для поиска форумов не найдено';
|
||||||
|
|
||||||
|
$lang['SEEDS'] = 'Сидам';
|
||||||
|
$lang['LEECHS'] = 'Личерам';
|
||||||
|
$lang['SPEED_UP'] = 'Скорость отдачи';
|
||||||
|
$lang['SPEED_DOWN'] = 'Скорость скачивания';
|
||||||
|
|
||||||
$lang['SEEDERS'] = 'Сидов';
|
$lang['SEEDERS'] = 'Сидов';
|
||||||
$lang['LEECHERS'] = 'Личеров';
|
$lang['LEECHERS'] = 'Личеров';
|
||||||
$lang['RELEASING'] = 'Свои';
|
$lang['RELEASING'] = 'Свои';
|
||||||
|
@ -1219,13 +1224,12 @@ $lang['INVALID_ATTACH_ID'] = 'Отсутствует идентификатор
|
||||||
$lang['CHANGE_TOR_TYPE'] = 'Тип торрента успешно изменён';
|
$lang['CHANGE_TOR_TYPE'] = 'Тип торрента успешно изменён';
|
||||||
$lang['DEL_TORRENT'] = 'Вы уверены, что хотите удалить торрент?';
|
$lang['DEL_TORRENT'] = 'Вы уверены, что хотите удалить торрент?';
|
||||||
$lang['DEL_MOVE_TORRENT'] = 'Вы уверены, что хотите удалить и перенести топик?';
|
$lang['DEL_MOVE_TORRENT'] = 'Вы уверены, что хотите удалить и перенести топик?';
|
||||||
|
$lang['UNEXECUTED_RELEASE'] = 'У вас есть неоформленный релиз, прежде чем создавать новый исправьте свой неоформленный!';
|
||||||
$lang['STATUS_DOES_EXIST'] = 'Такого статуса не существует: ';
|
$lang['STATUS_DOES_EXIST'] = 'Такого статуса не существует: ';
|
||||||
|
|
||||||
//end torrent status mod
|
//end torrent status mod
|
||||||
|
|
||||||
$lang['BT_TOPIC_TITLE'] = 'Название темы';
|
$lang['BT_TOPIC_TITLE'] = 'Название темы';
|
||||||
$lang['BT_SEEDER_LAST_SEEN'] = 'Последний seeder';
|
$lang['BT_SEEDER_LAST_SEEN'] = 'Последний Сид';
|
||||||
$lang['BT_SORT_FORUM'] = 'Форум';
|
$lang['BT_SORT_FORUM'] = 'Форум';
|
||||||
$lang['SIZE'] = 'Размер';
|
$lang['SIZE'] = 'Размер';
|
||||||
$lang['PIECE_LENGTH'] = 'Размер блока';
|
$lang['PIECE_LENGTH'] = 'Размер блока';
|
||||||
|
@ -1257,9 +1261,9 @@ $lang['TORRENTS_FROM'] = 'Торенты за';
|
||||||
$lang['SHOW_ONLY'] = 'Показывать только';
|
$lang['SHOW_ONLY'] = 'Показывать только';
|
||||||
$lang['SHOW_COLUMN'] = 'Показывать колонку';
|
$lang['SHOW_COLUMN'] = 'Показывать колонку';
|
||||||
|
|
||||||
$lang['BT_ONLY_ACTIVE'] = 'Активные (есть seeder или leecher)';
|
$lang['BT_ONLY_ACTIVE'] = 'Активные (есть сидер или личер)';
|
||||||
$lang['BT_ONLY_MY'] = 'Мои раздачи';
|
$lang['BT_ONLY_MY'] = 'Мои раздачи';
|
||||||
$lang['BT_SEED_EXIST'] = 'Есть seeder (полный источник)';
|
$lang['BT_SEED_EXIST'] = 'Есть Сид (полный источник)';
|
||||||
$lang['BT_ONLY_NEW'] = 'Новые с последнего посещения';
|
$lang['BT_ONLY_NEW'] = 'Новые с последнего посещения';
|
||||||
$lang['BT_SHOW_CAT'] = 'Категория';
|
$lang['BT_SHOW_CAT'] = 'Категория';
|
||||||
$lang['BT_SHOW_FORUM'] = 'Форум';
|
$lang['BT_SHOW_FORUM'] = 'Форум';
|
||||||
|
@ -1298,10 +1302,10 @@ $lang['DLCANCEL_2'] = 'Отмена';
|
||||||
$lang['DL_LIST_DEL'] = 'Очистить DL-List';
|
$lang['DL_LIST_DEL'] = 'Очистить DL-List';
|
||||||
$lang['DL_LIST_DEL_CONFIRM'] = 'Вы уверены, что хотите удалить DL-List для этого топика?';
|
$lang['DL_LIST_DEL_CONFIRM'] = 'Вы уверены, что хотите удалить DL-List для этого топика?';
|
||||||
$lang['SHOW_DL_LIST'] = 'Список скачавших';
|
$lang['SHOW_DL_LIST'] = 'Список скачавших';
|
||||||
$lang['SET_DL_STATUS'] = 'Download';
|
$lang['SET_DL_STATUS'] = 'Разрешить скачивание';
|
||||||
$lang['UNSET_DL_STATUS'] = 'Not Download';
|
$lang['UNSET_DL_STATUS'] = 'Запретить скачивание';
|
||||||
$lang['TOPICS_DOWN_SETS'] = 'Выбранные темы изменили статус на: <b>Download</b>';
|
$lang['TOPICS_DOWN_SETS'] = 'Выбранные темы изменили статус на: <b>Скачиваемые</b>';
|
||||||
$lang['TOPICS_DOWN_UNSETS'] = 'Выбранные темы перестали быть <b>Download</b>';
|
$lang['TOPICS_DOWN_UNSETS'] = 'Выбранные темы перестали быть <b>Скачиваемыми</b>';
|
||||||
|
|
||||||
$lang['TOPIC_DL'] = 'DL';
|
$lang['TOPIC_DL'] = 'DL';
|
||||||
|
|
||||||
|
@ -1325,8 +1329,8 @@ $lang['ALREADY_REG'] = 'Торрент уже зарегистрирован';
|
||||||
$lang['NOT_TORRENT'] = 'Это не торрент-файл';
|
$lang['NOT_TORRENT'] = 'Это не торрент-файл';
|
||||||
$lang['ONLY_1_TOR_PER_POST'] = 'Вы не можете зарегистрировать еще один торрент для этого сообщения';
|
$lang['ONLY_1_TOR_PER_POST'] = 'Вы не можете зарегистрировать еще один торрент для этого сообщения';
|
||||||
$lang['ONLY_1_TOR_PER_TOPIC'] = 'Вы не можете зарегистрировать еще один торрент для этого топика';
|
$lang['ONLY_1_TOR_PER_TOPIC'] = 'Вы не можете зарегистрировать еще один торрент для этого топика';
|
||||||
$lang['VIEWING_USER_BT_PROFILE'] = 'Torrent-профиль пользователя %s'; // %s is username
|
$lang['VIEWING_USER_BT_PROFILE'] = 'Торрент-профиль пользователя %s'; // %s is username
|
||||||
$lang['CUR_ACTIVE_DLS'] = 'Текущие активные torrent\'ы';
|
$lang['CUR_ACTIVE_DLS'] = 'Текущие активные торренты';
|
||||||
|
|
||||||
$lang['UP_TOTAL'] = 'Всего отдано';
|
$lang['UP_TOTAL'] = 'Всего отдано';
|
||||||
$lang['DOWN_TOTAL'] = 'Всего скачано';
|
$lang['DOWN_TOTAL'] = 'Всего скачано';
|
||||||
|
@ -1343,8 +1347,8 @@ $lang['BT_RATIO'] = 'Рейтинг';
|
||||||
$lang['YOUR_RATIO'] = 'Ваш рейтинг';
|
$lang['YOUR_RATIO'] = 'Ваш рейтинг';
|
||||||
$lang['DOWNLOADED'] = 'Скачано';
|
$lang['DOWNLOADED'] = 'Скачано';
|
||||||
$lang['UPLOADED'] = 'Отдано';
|
$lang['UPLOADED'] = 'Отдано';
|
||||||
$lang['RELEASED'] = 'на своих';
|
$lang['RELEASED'] = 'На своих';
|
||||||
$lang['BT_BONUS_UP'] = 'бонус';
|
$lang['BT_BONUS_UP'] = 'Бонус';
|
||||||
|
|
||||||
$lang['TRACKER'] = 'Трекер';
|
$lang['TRACKER'] = 'Трекер';
|
||||||
$lang['GALLERY'] = 'Галерея';
|
$lang['GALLERY'] = 'Галерея';
|
||||||
|
@ -1593,3 +1597,8 @@ $lang['OFF'] = 'выкл';
|
||||||
$lang['MEMORY'] = 'Память: ';
|
$lang['MEMORY'] = 'Память: ';
|
||||||
$lang['QUERIES'] = 'запр.';
|
$lang['QUERIES'] = 'запр.';
|
||||||
|
|
||||||
|
// Attach Guest
|
||||||
|
$lang['DOWNLOAD_INFO'] = 'Скачать бесплатно и на максимальной скорости!';
|
||||||
|
$lang['HOW_TO_DOWNLOAD'] = 'Как скачивать?';
|
||||||
|
$lang['WHAT_IS_A_TORRENT'] = 'Что такое торрент?';
|
||||||
|
$lang['RATINGS_AND_LIMITATIONS'] = 'Рейтинг и ограничения';
|
||||||
|
|
|
@ -306,7 +306,7 @@ if ($mode == 'newtopic' && $topic_tpl && $post_info['topic_tpl_id'])
|
||||||
{
|
{
|
||||||
$topics .= $bb_cfg['tor_icons'][$row['tor_status']] .'<a href="'. TOPIC_URL . $row['topic_id'] .'">'. $row['topic_title'] .'</a><div class="spacer_12"></div>';
|
$topics .= $bb_cfg['tor_icons'][$row['tor_status']] .'<a href="'. TOPIC_URL . $row['topic_id'] .'">'. $row['topic_title'] .'</a><div class="spacer_12"></div>';
|
||||||
}
|
}
|
||||||
if ($topics) bb_die($topics .'У вас есть неоформленный релиз, прежде чем создавать новый исправьте свой неоформленный.');
|
if ($topics) bb_die($topics . $lang['UNEXECUTED_RELEASE']);
|
||||||
}
|
}
|
||||||
require(INC_DIR .'topic_templates.php');
|
require(INC_DIR .'topic_templates.php');
|
||||||
}
|
}
|
||||||
|
@ -755,7 +755,7 @@ if ($topic_dl_type || $post_info['allow_dl_topic'] || $is_auth['auth_mod'])
|
||||||
|
|
||||||
$dl_ch = ($mode == 'editpost' && $post_data['first_post'] && $topic_dl_type) ? ' checked="checked" ' : '';
|
$dl_ch = ($mode == 'editpost' && $post_data['first_post'] && $topic_dl_type) ? ' checked="checked" ' : '';
|
||||||
|
|
||||||
$topic_type_toggle .= '<nobr><input type="checkbox" name="'. $dl_type_name .'" id="topic_dl_type_id" '. $dl_ds . $dl_ch .' /><label for="topic_dl_type_id"> Download</label></nobr>';
|
$topic_type_toggle .= '<nobr><input type="checkbox" name="'. $dl_type_name .'" id="topic_dl_type_id" '. $dl_ds . $dl_ch .' /><label for="topic_dl_type_id"> '.$lang['POST_DOWNLOAD'].'</label></nobr>';
|
||||||
$topic_type_toggle .= $dl_hid;
|
$topic_type_toggle .= $dl_hid;
|
||||||
}
|
}
|
||||||
//bt end
|
//bt end
|
||||||
|
|
|
@ -18,13 +18,7 @@ $page_cfg['load_tpl_vars'] = array(
|
||||||
//
|
//
|
||||||
// Is PM disabled?
|
// Is PM disabled?
|
||||||
//
|
//
|
||||||
if ( !empty($bb_cfg['privmsg_disable']) )
|
if ($bb_cfg['privmsg_disable']) bb_die('PM_DISABLED');
|
||||||
{
|
|
||||||
message_die(GENERAL_MESSAGE, 'PM_disabled');
|
|
||||||
}
|
|
||||||
|
|
||||||
$html_entities_match = array('#&(?!(\#[0-9]+;))#', '#<#', '#>#', '#"#');
|
|
||||||
$html_entities_replace = array('&', '<', '>', '"');
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Parameters
|
// Parameters
|
||||||
|
@ -1305,9 +1299,8 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
$replacement_word = array();
|
$replacement_word = array();
|
||||||
obtain_word_list($orig_word, $replacement_word);
|
obtain_word_list($orig_word, $replacement_word);
|
||||||
|
|
||||||
$preview_message = stripslashes(bbcode2html($privmsg_message));
|
$preview_message = htmlCHR($privmsg_message, false, ENT_NOQUOTES);
|
||||||
$privmsg_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $privmsg_message));
|
$preview_message = bbcode2html($privmsg_message);
|
||||||
|
|
||||||
|
|
||||||
if ( count($orig_word) )
|
if ( count($orig_word) )
|
||||||
{
|
{
|
||||||
|
@ -1388,8 +1381,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
//
|
//
|
||||||
generate_smilies('inline');
|
generate_smilies('inline');
|
||||||
|
|
||||||
$privmsg_subject = preg_replace($html_entities_match, $html_entities_replace, $privmsg_subject);
|
$privmsg_subject = clean_title($privmsg_subject);
|
||||||
$privmsg_subject = str_replace('"', '"', $privmsg_subject);
|
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'SUBJECT' => htmlCHR($privmsg_subject),
|
'SUBJECT' => htmlCHR($privmsg_subject),
|
||||||
|
|
|
@ -455,7 +455,7 @@ if ($post_mode)
|
||||||
if ($text_match_sql)
|
if ($text_match_sql)
|
||||||
{
|
{
|
||||||
$search_match_topics_csv = '';
|
$search_match_topics_csv = '';
|
||||||
if(!$forum_selected[0]) $forum_selected = array();
|
if(!is_array($forum_selected)) $forum_selected = array();
|
||||||
$title_match_topics = get_title_match_topics($text_match_sql, 500, $forum_selected);
|
$title_match_topics = get_title_match_topics($text_match_sql, 500, $forum_selected);
|
||||||
|
|
||||||
if (!$search_match_topics_csv = join(',', $title_match_topics))
|
if (!$search_match_topics_csv = join(',', $title_match_topics))
|
||||||
|
@ -627,7 +627,7 @@ else
|
||||||
if ($text_match_sql)
|
if ($text_match_sql)
|
||||||
{
|
{
|
||||||
$search_match_topics_csv = '';
|
$search_match_topics_csv = '';
|
||||||
if(!$forum_selected[0]) $forum_selected = array();
|
if(!is_array($forum_selected)) $forum_selected = array();
|
||||||
$title_match_topics = get_title_match_topics($text_match_sql, 500, $forum_selected);
|
$title_match_topics = get_title_match_topics($text_match_sql, 500, $forum_selected);
|
||||||
|
|
||||||
if (!$search_match_topics_csv = join(',', $title_match_topics))
|
if (!$search_match_topics_csv = join(',', $title_match_topics))
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<!-- IF postrow.IS_FIRST_POST -->
|
<!-- IF postrow.IS_FIRST_POST -->
|
||||||
<div>
|
<div>
|
||||||
<fieldset class="attach">
|
<fieldset class="attach">
|
||||||
<legend>Download</legend>
|
<legend>{L_DOWNLOAD}</legend>
|
||||||
<h1 class="attach_link"><a href="profile.php?mode=register" style="color: brown;">Скачать (бесплатно и на максимальной скорости)!</a></h1>
|
<h1 class="attach_link"><a href="profile.php?mode=register" style="color: brown;">{L_DOWNLOAD_INFO}</a></h1>
|
||||||
<p id="guest-dl-tip" class="attach_comment med">
|
<p id="guest-dl-tip" class="attach_comment med">
|
||||||
<a href="{$bb_cfg['how_to_download_url_help']}"><b>Как скачивать</b></a> ·
|
<a href="{$bb_cfg['how_to_download_url_help']}" class="med"><b>{L_HOW_TO_DOWNLOAD}</b></a> ·
|
||||||
<a href="{$bb_cfg['what_is_torrent_url_help']}"><b>Что такое torrent (торрент)</b></a> ·
|
<a href="{$bb_cfg['what_is_torrent_url_help']}" class="med"><b>{L_WHAT_IS_A_TORRENT}</b></a> ·
|
||||||
<a href="{$bb_cfg['ratio_url_help']}"><b>Рейтинг и ограничения</b></a><br />
|
<a href="{$bb_cfg['ratio_url_help']}" class="med"><b>{L_RATINGS_AND_LIMITATIONS}</b></a><br />
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -92,19 +92,19 @@ $order_opt = array(
|
||||||
'sql' => 'tor.complete_count',
|
'sql' => 'tor.complete_count',
|
||||||
),
|
),
|
||||||
$ord_seeders => array(
|
$ord_seeders => array(
|
||||||
'lang' => 'Seeders',
|
'lang' => $lang['SEEDS'],
|
||||||
'sql' => 'sn.seeders',
|
'sql' => 'sn.seeders',
|
||||||
),
|
),
|
||||||
$ord_leechers => array(
|
$ord_leechers => array(
|
||||||
'lang' => 'Leechers',
|
'lang' => $lang['LEECHS'],
|
||||||
'sql' => 'sn.leechers',
|
'sql' => 'sn.leechers',
|
||||||
),
|
),
|
||||||
$ord_sp_up => array(
|
$ord_sp_up => array(
|
||||||
'lang' => 'Speed UP',
|
'lang' => $lang['SPEED_UP'],
|
||||||
'sql' => 'sn.speed_up',
|
'sql' => 'sn.speed_up',
|
||||||
),
|
),
|
||||||
$ord_sp_down => array(
|
$ord_sp_down => array(
|
||||||
'lang' => 'Speed DOWN',
|
'lang' => $lang['SPEED_DOWN'],
|
||||||
'sql' => 'sn.speed_down',
|
'sql' => 'sn.speed_down',
|
||||||
),
|
),
|
||||||
$ord_repl => array(
|
$ord_repl => array(
|
||||||
|
@ -733,11 +733,11 @@ if ($allowed_forums)
|
||||||
{
|
{
|
||||||
if ($tor['tor_type'] == TOR_TYPE_GOLD)
|
if ($tor['tor_type'] == TOR_TYPE_GOLD)
|
||||||
{
|
{
|
||||||
$is_gold = '<img src="images/tor_gold.gif" width="16" height="15" title="'.$lang['GOLD'].'" /> ';
|
$is_gold = '<img src="images/tor_gold.gif" width="16" height="15" title="'.$lang['GOLD'].'" alt="" /> ';
|
||||||
}
|
}
|
||||||
elseif ($tor['tor_type'] == TOR_TYPE_SILVER)
|
elseif ($tor['tor_type'] == TOR_TYPE_SILVER)
|
||||||
{
|
{
|
||||||
$is_gold = '<img src="images/tor_silver.gif" width="16" height="15" title="'.$lang['SILVER'].'" /> ';
|
$is_gold = '<img src="images/tor_silver.gif" width="16" height="15" title="'.$lang['SILVER'].'" alt="" /> ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// END Gold/Silver releases mod
|
// END Gold/Silver releases mod
|
||||||
|
@ -773,7 +773,7 @@ if ($allowed_forums)
|
||||||
'UL_SPEED' => $ul_sp,
|
'UL_SPEED' => $ul_sp,
|
||||||
'DL_SPEED' => $dl_sp,
|
'DL_SPEED' => $dl_sp,
|
||||||
'SEEDS' => ($seeds) ? $seeds : 0,
|
'SEEDS' => ($seeds) ? $seeds : 0,
|
||||||
'SEEDS_TITLE' => ($seeds) ? 'Seeders' : (" Last seen: \n ". (($s_last) ? bb_date($s_last, $date_format) : 'Never')),
|
'SEEDS_TITLE' => ($seeds) ? $lang['SEEDERS'] : ($lang['SEED_NOT_SEEN']. ":\n ". (($s_last) ? bb_date($s_last, $date_format) : $lang['NEVER'])),
|
||||||
'LEECHS' => ($leechs) ? $leechs : 0,
|
'LEECHS' => ($leechs) ? $leechs : 0,
|
||||||
'COMPLETED' => ($compl) ? $compl : 0,
|
'COMPLETED' => ($compl) ? $compl : 0,
|
||||||
'REPLIES' => $tor['topic_replies'],
|
'REPLIES' => $tor['topic_replies'],
|
||||||
|
|
|
@ -519,11 +519,11 @@ foreach ($topic_rowset as $topic)
|
||||||
{
|
{
|
||||||
if ($topic['tor_type'] == TOR_TYPE_GOLD)
|
if ($topic['tor_type'] == TOR_TYPE_GOLD)
|
||||||
{
|
{
|
||||||
$is_gold = '<img src="images/tor_gold.gif" width="16" height="15" title="'.$lang['GOLD'].'" /> ';
|
$is_gold = '<img src="images/tor_gold.gif" width="16" height="15" title="'.$lang['GOLD'].'" alt="" /> ';
|
||||||
}
|
}
|
||||||
elseif ($topic['tor_type'] == TOR_TYPE_SILVER)
|
elseif ($topic['tor_type'] == TOR_TYPE_SILVER)
|
||||||
{
|
{
|
||||||
$is_gold = '<img src="images/tor_silver.gif" width="16" height="15" title="'.$lang['SILVER'].'" /> ';
|
$is_gold = '<img src="images/tor_silver.gif" width="16" height="15" title="'.$lang['SILVER'].'" alt="" /> ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// END Gold/Silver releases mod
|
// END Gold/Silver releases mod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue