mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r577
Фиксы части косяков новых голосований; забытые папки для файлкеша (cmod 0777); удаление проверки на имя домена в имени торрента (неактуально, файлу при скачивании присваивается имя домена автоматически). git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@577 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
e54f46c76b
commit
0b8f2e56fb
22 changed files with 30 additions and 120 deletions
|
@ -18,8 +18,12 @@
|
||||||
- cache
|
- cache
|
||||||
- cache/filecache
|
- cache/filecache
|
||||||
- cache/filecache/bb_cache
|
- cache/filecache/bb_cache
|
||||||
|
- cache/filecache/bb_cap_sid
|
||||||
|
- cache/filecache/bb_login_err
|
||||||
|
- cache/filecache/bb_poll_data
|
||||||
- cache/filecache/datastore
|
- cache/filecache/datastore
|
||||||
- cache/filecache/session_cache
|
- cache/filecache/session_cache
|
||||||
|
- cache/filecache/tr_cache
|
||||||
- files
|
- files
|
||||||
- files/thumbs
|
- files/thumbs
|
||||||
- images
|
- images
|
||||||
|
|
|
@ -55,8 +55,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||||
$bb_cfg['tp_release_date'] = '30-01-2014';
|
$bb_cfg['tp_release_date'] = '31-01-2014';
|
||||||
$bb_cfg['tp_release_state'] = 'R576';
|
$bb_cfg['tp_release_state'] = 'R577';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
@ -181,7 +181,6 @@ $bb_cfg['show_tor_info_in_dl_list'] = true;
|
||||||
$bb_cfg['allow_dl_list_names_mode'] = true;
|
$bb_cfg['allow_dl_list_names_mode'] = true;
|
||||||
|
|
||||||
// Torrents
|
// Torrents
|
||||||
$bb_cfg['torrent_sign'] = "[{$domain_name}]"; // e.g. [yoursite.com]
|
|
||||||
$bb_cfg['torrent_name_style'] = true; // use torrent name style [yoursite.com].txxx.torrent
|
$bb_cfg['torrent_name_style'] = true; // use torrent name style [yoursite.com].txxx.torrent
|
||||||
$bb_cfg['tor_help_links'] = '';
|
$bb_cfg['tor_help_links'] = '';
|
||||||
|
|
||||||
|
|
|
@ -2409,13 +2409,18 @@ function get_poll_data_items_js ($topic_id)
|
||||||
}
|
}
|
||||||
$items = array();
|
$items = array();
|
||||||
|
|
||||||
$sql = "
|
if (!$poll_data = CACHE('bb_poll_data')->get("poll_$topic_id"))
|
||||||
|
{
|
||||||
|
$poll_data = DB()->fetch_rowset("
|
||||||
SELECT topic_id, vote_id, vote_text, vote_result
|
SELECT topic_id, vote_id, vote_text, vote_result
|
||||||
FROM ". BB_POLL_VOTES ."
|
FROM ". BB_POLL_VOTES ."
|
||||||
WHERE topic_id IN($topic_id_csv)
|
WHERE topic_id IN($topic_id_csv)
|
||||||
ORDER BY topic_id, vote_id
|
ORDER BY topic_id, vote_id
|
||||||
";
|
");
|
||||||
foreach (DB()->fetch_rowset($sql) as $row)
|
CACHE('bb_poll_data')->set("poll_$topic_id", $poll_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($poll_data as $row)
|
||||||
{
|
{
|
||||||
$opt_text_for_js = htmlCHR($row['vote_text']);
|
$opt_text_for_js = htmlCHR($row['vote_text']);
|
||||||
$opt_result_for_js = (int) $row['vote_result'];
|
$opt_result_for_js = (int) $row['vote_result'];
|
||||||
|
|
|
@ -94,8 +94,6 @@ if ($topic_tpl = DB()->fetch_row($sql))
|
||||||
'L_ORIGINAL_TITLE' => $lang['TPL']['ORIGINAL_NAME'],
|
'L_ORIGINAL_TITLE' => $lang['TPL']['ORIGINAL_NAME'],
|
||||||
'L_ORIGINAL_TITLE_DESC' => $lang['TPL']['ORIGINAL_NAME_DESC'],
|
'L_ORIGINAL_TITLE_DESC' => $lang['TPL']['ORIGINAL_NAME_DESC'],
|
||||||
'L_TITLE_EXP' => $lang['TPL']['NAME_EXP'],
|
'L_TITLE_EXP' => $lang['TPL']['NAME_EXP'],
|
||||||
|
|
||||||
'TORRENT_SIGN' => $bb_cfg['torrent_sign'],
|
|
||||||
));
|
));
|
||||||
|
|
||||||
foreach ($lang['TPL'] as $name => $val)
|
foreach ($lang['TPL'] as $name => $val)
|
||||||
|
|
|
@ -3027,7 +3027,6 @@ $lang['TPL']['SYSREQ'] = 'System requirements';
|
||||||
$lang['TPL']['TOR_SIZE_EXP'] = 'Filesize is too big';
|
$lang['TPL']['TOR_SIZE_EXP'] = 'Filesize is too big';
|
||||||
$lang['TPL']['TORRENT'] = 'Torrent';
|
$lang['TPL']['TORRENT'] = 'Torrent';
|
||||||
$lang['TPL']['TORRENT_EXP'] = 'Select torrent file that you want to release';
|
$lang['TPL']['TORRENT_EXP'] = 'Select torrent file that you want to release';
|
||||||
$lang['TPL']['TORRENT_SIGN_EXP'] = 'You should include '. $bb_cfg['torrent_sign'] .' in the name';
|
|
||||||
$lang['TPL']['TRACKLIST'] = 'Tracklist';
|
$lang['TPL']['TRACKLIST'] = 'Tracklist';
|
||||||
$lang['TPL']['TRANSLATION_TYPE'] = 'Translation type';
|
$lang['TPL']['TRANSLATION_TYPE'] = 'Translation type';
|
||||||
$lang['TPL']['UNCOMPRESSED'] = '(uncompressed)';
|
$lang['TPL']['UNCOMPRESSED'] = '(uncompressed)';
|
||||||
|
|
|
@ -3039,7 +3039,6 @@ $lang['TPL']['SYSREQ'] = 'Системные требования';
|
||||||
$lang['TPL']['TOR_SIZE_EXP'] = 'Слишком большой размер торрент-файла. Вам необходимо увеличить размер частей и создать торрент заново';
|
$lang['TPL']['TOR_SIZE_EXP'] = 'Слишком большой размер торрент-файла. Вам необходимо увеличить размер частей и создать торрент заново';
|
||||||
$lang['TPL']['TORRENT'] = 'Торрент';
|
$lang['TPL']['TORRENT'] = 'Торрент';
|
||||||
$lang['TPL']['TORRENT_EXP'] = 'Выберите торрент-файл, который будете использовать для релиза';
|
$lang['TPL']['TORRENT_EXP'] = 'Выберите торрент-файл, который будете использовать для релиза';
|
||||||
$lang['TPL']['TORRENT_SIGN_EXP'] = 'В название файла необходимо добавить '. $bb_cfg['torrent_sign'];
|
|
||||||
$lang['TPL']['TRACKLIST'] = 'Трэклист';
|
$lang['TPL']['TRACKLIST'] = 'Трэклист';
|
||||||
$lang['TPL']['TRANSLATION_TYPE'] = 'Тип перевода';
|
$lang['TPL']['TRANSLATION_TYPE'] = 'Тип перевода';
|
||||||
$lang['TPL']['UNCOMPRESSED'] = '(несжатый)';
|
$lang['TPL']['UNCOMPRESSED'] = '(несжатый)';
|
||||||
|
|
|
@ -43,14 +43,16 @@ if ($mode != 'poll_vote')
|
||||||
}
|
}
|
||||||
|
|
||||||
// проверка на возможность вносить изменения
|
// проверка на возможность вносить изменения
|
||||||
if ($mode != 'poll_delete')
|
if ($mode == 'poll_delete')
|
||||||
{
|
{
|
||||||
if ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days']*86400)
|
if ($t_data['topic_time'] < TIMENOW - $bb_cfg['poll_max_days']*86400)
|
||||||
{
|
{
|
||||||
bb_die("Время для этого опроса ({$bb_cfg['poll_max_days']} дней с момента создания темы) уже закончилось");
|
bb_die("Время для этого опроса ({$bb_cfg['poll_max_days']} дней с момента создания темы) уже закончилось");
|
||||||
}
|
}
|
||||||
if (!IS_ADMIN && ($t_data['topic_vote'] != POLL_FINISHED))
|
if (!IS_ADMIN && ($t_data['topic_vote'] != POLL_FINISHED))
|
||||||
{
bb_die($lang['CANNOT_DELETE_POLL']);
}
|
{
|
||||||
|
bb_die($lang['CANNOT_DELETE_POLL']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
|
@ -75,7 +77,7 @@ switch ($mode)
|
||||||
}
|
}
|
||||||
if (DB()->fetch_row("SELECT 1 FROM ". BB_POLL_USERS ." WHERE topic_id = $topic_id AND user_id = {$userdata['user_id']} LIMIT 1"))
|
if (DB()->fetch_row("SELECT 1 FROM ". BB_POLL_USERS ." WHERE topic_id = $topic_id AND user_id = {$userdata['user_id']} LIMIT 1"))
|
||||||
{
|
{
|
||||||
bb_die($lang['TOPIC_LOCKED_SHORT']);
|
bb_die('Вы уже голосовали');
|
||||||
}
|
}
|
||||||
|
|
||||||
DB()->query("
|
DB()->query("
|
||||||
|
@ -89,10 +91,11 @@ switch ($mode)
|
||||||
{
|
{
|
||||||
bb_die('Вы не выбрали, за что голосуете');
|
bb_die('Вы не выбрали, за что голосуете');
|
||||||
}
|
}
|
||||||
CACHE('bb_poll_data')->rm($topic_id, 'poll_');
|
|
||||||
|
|
||||||
DB()->query("INSERT IGNORE INTO ". BB_POLL_USERS ." (topic_id, user_id, vote_dt) VALUES ($topic_id, {$userdata['user_id']}, ". TIMENOW .")");
|
DB()->query("INSERT IGNORE INTO ". BB_POLL_USERS ." (topic_id, user_id, vote_dt) VALUES ($topic_id, {$userdata['user_id']}, ". TIMENOW .")");
|
||||||
|
|
||||||
|
CACHE('bb_poll_data')->rm("poll_$topic_id");
|
||||||
|
|
||||||
bb_die('Спасибо! Ваш голос учтён');
|
bb_die('Спасибо! Ваш голос учтён');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -153,6 +156,7 @@ switch ($mode)
|
||||||
bb_die($poll->err_msg);
|
bb_die($poll->err_msg);
|
||||||
}
|
}
|
||||||
$poll->insert_votes_into_db($topic_id);
|
$poll->insert_votes_into_db($topic_id);
|
||||||
|
CACHE('bb_poll_data')->rm("poll_$topic_id");
|
||||||
bb_die('Опрос изменён и старые результаты удалены');
|
bb_die('Опрос изменён и старые результаты удалены');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -236,6 +240,6 @@ class bb_poll
|
||||||
{
|
{
|
||||||
DB()->query("DELETE FROM ". BB_POLL_VOTES ." WHERE topic_id = $topic_id");
|
DB()->query("DELETE FROM ". BB_POLL_VOTES ." WHERE topic_id = $topic_id");
|
||||||
DB()->query("DELETE FROM ". BB_POLL_USERS ." WHERE topic_id = $topic_id");
|
DB()->query("DELETE FROM ". BB_POLL_USERS ." WHERE topic_id = $topic_id");
|
||||||
CACHE('bb_poll_data')->rm($topic_id, 'poll_');
|
CACHE('bb_poll_data')->rm("poll_$topic_id");
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var audiobook_type = ['{SEL_AUDIOBOOK_TYPE}'];
|
var audiobook_type = ['{SEL_AUDIOBOOK_TYPE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -47,12 +46,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
else if (f.elements["msg[audio_codec]"].value=='')
|
else if (f.elements["msg[audio_codec]"].value=='')
|
||||||
{
|
{
|
||||||
f.elements["msg[audio_codec]"].focus();
|
f.elements["msg[audio_codec]"].focus();
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var text_formats = ['{SEL_TEXT_FORMATS}'];
|
var text_formats = ['{SEL_TEXT_FORMATS}'];
|
||||||
var text_quality = ['{SEL_TEXT_QUALITY}'];
|
var text_quality = ['{SEL_TEXT_QUALITY}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -47,12 +46,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -3,7 +3,6 @@ var source_type = ['{SEL_SOURCE_TYPE}'];
|
||||||
var localization = ['{SEL_UI_LANG}'];
|
var localization = ['{SEL_UI_LANG}'];
|
||||||
var local_vocie = ['{SEL_UI_LANG}'];
|
var local_vocie = ['{SEL_UI_LANG}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -49,12 +48,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -6,7 +6,6 @@ var source_type = ['{SEL_SOURCE_TYPE}'];
|
||||||
var localization = ['{SEL_UI_LANG_PS}'];
|
var localization = ['{SEL_UI_LANG_PS}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var sel_multiplayer = ['{SEL_MULTIPLAYER}'];
|
var sel_multiplayer = ['{SEL_MULTIPLAYER}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -52,12 +51,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
var sel_translation_type = ['{SEL_TRANSLATION_TYPE}'];
|
var sel_translation_type = ['{SEL_TRANSLATION_TYPE}'];
|
||||||
var localization = ['{SEL_UI_LANG_PS}'];
|
var localization = ['{SEL_UI_LANG_PS}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -48,12 +47,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -3,7 +3,6 @@ var sel_translation_type = ['{SEL_TRANSLATION_TYPE}'];
|
||||||
var source_type = ['{SEL_SOURCE_TYPE}'];
|
var source_type = ['{SEL_SOURCE_TYPE}'];
|
||||||
var localization = ['{SEL_UI_LANG_PS}'];
|
var localization = ['{SEL_UI_LANG_PS}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -49,12 +48,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var audio_bitrate = ['{SEL_BITRATE}'];
|
var audio_bitrate = ['{SEL_BITRATE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -64,12 +63,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
var localization = ['{SEL_UI_LANG}'];
|
var localization = ['{SEL_UI_LANG}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var sel_vista_compatible = ['{SEL_VISTA_COMPATIBLE}'];
|
var sel_vista_compatible = ['{SEL_VISTA_COMPATIBLE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -48,12 +47,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var localization = ['{SEL_UI_LANG}'];
|
var localization = ['{SEL_UI_LANG}'];
|
||||||
var medicine = ['{SEL_MEDICINE}'];
|
var medicine = ['{SEL_MEDICINE}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -47,12 +46,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -4,7 +4,6 @@ var video_codecs = ['{SEL_VIDEO_CODECS}'];
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var quality = ['{SEL_VIDEO_QUALITY}'];
|
var quality = ['{SEL_VIDEO_QUALITY}'];
|
||||||
var translation = ['{SEL_TRANSLATION}'];
|
var translation = ['{SEL_TRANSLATION}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -50,12 +49,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -4,7 +4,6 @@ var video_codecs = ['{SEL_VIDEO_CODECS}'];
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var quality = ['{SEL_VIDEO_QUALITY}'];
|
var quality = ['{SEL_VIDEO_QUALITY}'];
|
||||||
var translation = ['{SEL_TRANSLATION}'];
|
var translation = ['{SEL_TRANSLATION}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -50,12 +49,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -4,7 +4,6 @@ var video_codecs = ['{SEL_VIDEO_CODECS}'];
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var quality = ['{SEL_VIDEO_QUALITY}'];
|
var quality = ['{SEL_VIDEO_QUALITY}'];
|
||||||
var translation = ['{SEL_TRANSLATION}'];
|
var translation = ['{SEL_TRANSLATION}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -50,12 +49,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -5,7 +5,6 @@ var video_codecs = ['{SEL_VIDEO_CODECS}'];
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var quality = ['{SEL_VIDEO_QUALITY}'];
|
var quality = ['{SEL_VIDEO_QUALITY}'];
|
||||||
var translation = ['{SEL_TRANSLATION}'];
|
var translation = ['{SEL_TRANSLATION}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -45,12 +44,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -4,7 +4,6 @@ var video_codecs = ['{SEL_VIDEO_CODECS}'];
|
||||||
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
var audio_codecs = ['{SEL_AUDIO_CODECS}'];
|
||||||
var quality = ['{SEL_VIDEO_QUALITY}'];
|
var quality = ['{SEL_VIDEO_QUALITY}'];
|
||||||
var translation = ['{SEL_TRANSLATION}'];
|
var translation = ['{SEL_TRANSLATION}'];
|
||||||
var torrent_sign = "{TORRENT_SIGN}";
|
|
||||||
|
|
||||||
function make_format_list (what)
|
function make_format_list (what)
|
||||||
{
|
{
|
||||||
|
@ -50,12 +49,6 @@ function form_validate (f)
|
||||||
error='{L_TORRENT}';
|
error='{L_TORRENT}';
|
||||||
msg +='{L_TORRENT_EXP}';
|
msg +='{L_TORRENT_EXP}';
|
||||||
}
|
}
|
||||||
else if (torrent_sign && f.fileupload.value.indexOf(torrent_sign) == -1)
|
|
||||||
{
|
|
||||||
f.fileupload.focus();
|
|
||||||
error='{L_TORRENT}';
|
|
||||||
msg +='{L_TORRENT_SIGN_EXP}';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
alert('{L_ERROR_FORM}: '+error+msg);
|
alert('{L_ERROR_FORM}: '+error+msg);
|
||||||
|
|
|
@ -677,7 +677,7 @@ if ( !DB()->sql_query($sql) )
|
||||||
//
|
//
|
||||||
if ($topic_has_poll)
|
if ($topic_has_poll)
|
||||||
{
|
{
|
||||||
$poll_votes_js = CACHE('bb_poll_data')->get($topic_id, 'get_poll_data_items_js', 'poll_');
|
$poll_votes_js = get_poll_data_items_js($topic_id);
|
||||||
|
|
||||||
if (!$poll_votes_js)
|
if (!$poll_votes_js)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue