mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r28
Экспорт. Коммит №26. Мелочи. _Xz_. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@28 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
eb40e707cb
commit
6695cd988f
5 changed files with 9 additions and 10 deletions
|
@ -58,8 +58,7 @@ $submit = (isset($_POST['submit'])) ? TRUE : FALSE;
|
||||||
// Get Attachment Config
|
// Get Attachment Config
|
||||||
$attach_config = array();
|
$attach_config = array();
|
||||||
|
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT * FROM '. BB_ATTACH_CONFIG;
|
||||||
FROM ' . bb_ATTACH_CONFIG;
|
|
||||||
|
|
||||||
if ( !($result = DB()->sql_query($sql)) )
|
if ( !($result = DB()->sql_query($sql)) )
|
||||||
{
|
{
|
||||||
|
|
|
@ -275,7 +275,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
||||||
print_confirmation(array(
|
print_confirmation(array(
|
||||||
'CONFIRM_TITLE' => $lang['DELETE_REASON'],
|
'CONFIRM_TITLE' => $lang['DELETE_REASON'],
|
||||||
'QUESTION' => $lang['DELETE_REPORT_REASON_EXPLAIN'],
|
'QUESTION' => $lang['DELETE_REPORT_REASON_EXPLAIN'],
|
||||||
'FORM_ACTION' => "admin_reports.php",,
|
'FORM_ACTION' => "admin_reports.php",
|
||||||
'HIDDEN_FIELDS' => $hidden_fields,
|
'HIDDEN_FIELDS' => $hidden_fields,
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
|
@ -430,7 +430,7 @@ else if (isset($_POST[POST_CAT_URL]) || isset($_GET[POST_CAT_URL]))
|
||||||
print_confirmation(array(
|
print_confirmation(array(
|
||||||
'CONFIRM_TITLE' => $lang['UNINSTALL_REPORT_MODULE'],
|
'CONFIRM_TITLE' => $lang['UNINSTALL_REPORT_MODULE'],
|
||||||
'QUESTION' => $lang['UNINSTALL_REPORT_MODULE_EXPLAIN'],
|
'QUESTION' => $lang['UNINSTALL_REPORT_MODULE_EXPLAIN'],
|
||||||
'FORM_ACTION' => "admin_reports.php",,
|
'FORM_ACTION' => "admin_reports.php",
|
||||||
'HIDDEN_FIELDS' => $hidden_fields,
|
'HIDDEN_FIELDS' => $hidden_fields,
|
||||||
));
|
));
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -32,12 +32,12 @@ if ($profiledata['user_id'] != $userdata['user_id'] && !IS_ADMIN)
|
||||||
}
|
}
|
||||||
|
|
||||||
$language = $bb_cfg['default_lang'];
|
$language = $bb_cfg['default_lang'];
|
||||||
if (!file_exists(LANG_ROOT_DIR ."lang_$language/lang_admin_attach.php";))
|
if (!file_exists(LANG_ROOT_DIR ."lang_$language/lang_admin_attach.php"))
|
||||||
{
|
{
|
||||||
$language = $attach_config['board_lang'];
|
$language = $attach_config['board_lang'];
|
||||||
}
|
}
|
||||||
|
|
||||||
include(LANG_ROOT_DIR ."lang_$language/lang_admin_attach.php";);
|
include(LANG_ROOT_DIR ."lang_$language/lang_admin_attach.php");
|
||||||
|
|
||||||
$start = request_var('start', 0);
|
$start = request_var('start', 0);
|
||||||
$sort_order = request_var('order', 'ASC');
|
$sort_order = request_var('order', 'ASC');
|
||||||
|
|
|
@ -84,14 +84,14 @@ if (isset($_POST['login']))
|
||||||
}
|
}
|
||||||
if ($login_username == '' || $login_password == '')
|
if ($login_username == '' || $login_password == '')
|
||||||
{
|
{
|
||||||
$login_errors[] = 'Вы должны ввести имя и пароль';
|
$login_errors[] = $lang['ENTER_PASSWORD'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Captcha
|
// Captcha
|
||||||
if ($need_captcha && !CAPTCHA()->verify_code())
|
if ($need_captcha && !CAPTCHA()->verify_code())
|
||||||
{
|
{
|
||||||
$login_errors[] = 'Вы должны правильно ввести код подтверждения';
|
$login_errors[] = $lang['CONFIRM_CODE_WRONG'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$login_errors)
|
if (!$login_errors)
|
||||||
|
@ -102,7 +102,7 @@ if (isset($_POST['login']))
|
||||||
redirect($redirect_url);
|
redirect($redirect_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
$login_errors[] = 'Вы ввели неверное/неактивное имя пользователя или неверный пароль';
|
$login_errors[] = $lang['ERROR_LOGIN'];
|
||||||
|
|
||||||
$need_captcha = (!$mod_admin_login) ? CACHE('bb_login_err')->set('l_err_'. USER_IP, 1, 3600) : false;
|
$need_captcha = (!$mod_admin_login) ? CACHE('bb_login_err')->set('l_err_'. USER_IP, 1, 3600) : false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -386,7 +386,7 @@ else
|
||||||
print_confirmation(array(
|
print_confirmation(array(
|
||||||
'CONFIRM_TITLE' => ($single_report) ? $lang['DELETE_REPORT'] : $lang['DELETE_REPORTS'],
|
'CONFIRM_TITLE' => ($single_report) ? $lang['DELETE_REPORT'] : $lang['DELETE_REPORTS'],
|
||||||
'QUESTION' => ($single_report) ? $lang['DELETE_REPORT_EXPLAIN'] : $lang['DELETE_REPORTS_EXPLAIN'],
|
'QUESTION' => ($single_report) ? $lang['DELETE_REPORT_EXPLAIN'] : $lang['DELETE_REPORTS_EXPLAIN'],
|
||||||
'FORM_ACTION' => "report.php",,
|
'FORM_ACTION' => "report.php",
|
||||||
'HIDDEN_FIELDS' => $hidden_fields,
|
'HIDDEN_FIELDS' => $hidden_fields,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue