mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Minor improvements (#959)
This commit is contained in:
parent
44512e88b6
commit
ced2cc6fed
5 changed files with 5 additions and 5 deletions
|
@ -30,7 +30,7 @@ if ($mode == 'run' && !$job_id) {
|
|||
}
|
||||
|
||||
if (!IS_SUPER_ADMIN) {
|
||||
bb_die($lang['NOT_ADMIN']);
|
||||
bb_die($lang['ONLY_FOR_SUPER_ADMIN']);
|
||||
}
|
||||
|
||||
$sql = DB()->fetch_rowset('SELECT * FROM ' . BB_CONFIG . " WHERE config_name = 'cron_check_interval'");
|
||||
|
|
|
@ -17,7 +17,7 @@ if (!empty($setmodules)) {
|
|||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
if (!IS_SUPER_ADMIN) {
|
||||
bb_die($lang['NOT_ADMIN']);
|
||||
bb_die($lang['ONLY_FOR_SUPER_ADMIN']);
|
||||
}
|
||||
|
||||
require INC_DIR . '/bbcode.php';
|
||||
|
|
|
@ -213,7 +213,7 @@ switch ($this->request['type']) {
|
|||
|
||||
case 'add':
|
||||
if (!isset($this->request['topic_id'])) {
|
||||
$this->ajax_die('empty topic_id');
|
||||
$this->ajax_die($lang['INVALID_TOPIC_ID']);
|
||||
}
|
||||
|
||||
if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) {
|
||||
|
|
|
@ -14,7 +14,7 @@ if (!defined('IN_AJAX')) {
|
|||
global $userdata, $lang;
|
||||
|
||||
if (!IS_SUPER_ADMIN) {
|
||||
$this->ajax_die($lang['NOT_AUTHORISED']);
|
||||
$this->ajax_die($lang['ONLY_FOR_SUPER_ADMIN']);
|
||||
}
|
||||
|
||||
array_deep($this->request, 'trim');
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
</tr>
|
||||
<!-- ENDIF -->
|
||||
<tr>
|
||||
<td class="prof-title">ICQ:</td>
|
||||
<td class="prof-title">{L_ICQ}:</td>
|
||||
<td><input type="text" name="user_icq" size="30" maxlength="15" value="{USER_ICQ}"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue