mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#950)
This commit is contained in:
parent
9182928273
commit
ca8a8a2036
10 changed files with 119 additions and 81 deletions
|
@ -13,8 +13,13 @@ if (!defined('IN_AJAX')) {
|
|||
|
||||
global $userdata, $lang, $bb_cfg;
|
||||
|
||||
$mode = (string)$this->request['mode'];
|
||||
$user_id = $this->request['user_id'];
|
||||
if (!$mode = (string)$this->request['mode']) {
|
||||
$this->ajax_die('invalid mode (empty)');
|
||||
}
|
||||
|
||||
if (!$user_id = (int)$this->request['user_id']) {
|
||||
$this->ajax_die($lang['NO_USER_ID_SPECIFIED']);
|
||||
}
|
||||
|
||||
switch ($mode) {
|
||||
case 'delete_profile':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue