mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Minor LAN and GUI fixes to Admin > Users (mainly Ranks)
This commit is contained in:
@@ -1397,10 +1397,11 @@ class users_admin_ui extends e_admin_ui
|
|||||||
$tmp['data']['gen_user_id'] = varset($_POST['new_calc_pfx'],0);
|
$tmp['data']['gen_user_id'] = varset($_POST['new_calc_pfx'],0);
|
||||||
$tmp['data']['gen_chardata'] = varset($_POST['new_calc_img']);
|
$tmp['data']['gen_chardata'] = varset($_POST['new_calc_img']);
|
||||||
$tmp['data']['gen_intdata'] = varset($_POST['new_calc_lower']);
|
$tmp['data']['gen_intdata'] = varset($_POST['new_calc_lower']);
|
||||||
|
|
||||||
|
e107::getMessage()->addSuccess(LAN_UPDATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
e107::getCache()->clear_sys('nomd5_user_ranks');
|
e107::getCache()->clear_sys('nomd5_user_ranks');
|
||||||
e107::getMessage()->add(USRLAN_217,E_MESSAGE_SUCCESS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function RanksDeleteTrigger($posted)
|
function RanksDeleteTrigger($posted)
|
||||||
@@ -1410,11 +1411,11 @@ class users_admin_ui extends e_admin_ui
|
|||||||
e107::getCache()->clear_sys('nomd5_user_ranks');
|
e107::getCache()->clear_sys('nomd5_user_ranks');
|
||||||
if (e107::getDb()->delete('generic',"gen_id='{$rankId}'"))
|
if (e107::getDb()->delete('generic',"gen_id='{$rankId}'"))
|
||||||
{
|
{
|
||||||
e107::getMessage()->add(USRLAN_218,E_MESSAGE_SUCCESS);
|
e107::getMessage()->addSucces(LAN_DELETED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
e107::getMessage()->add(USRLAN_218,E_MESSAGE_FAIL);
|
e107::getMessage()->addError(LAN_DELETED_FAILED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1519,7 +1520,7 @@ class users_admin_ui extends e_admin_ui
|
|||||||
|
|
||||||
$text .= '</table>
|
$text .= '</table>
|
||||||
<div class="buttons-bar center">
|
<div class="buttons-bar center">
|
||||||
'.$frm->admin_trigger('update', 'no-value', 'update', USRLAN_215).'
|
'.$frm->admin_trigger('update', 'no-value', 'update', LAN_UPDATE).'
|
||||||
</div>
|
</div>
|
||||||
</form>';
|
</form>';
|
||||||
|
|
||||||
|
@@ -220,10 +220,10 @@ define('USRLAN_211', 'Rank Image');
|
|||||||
define('USRLAN_212', 'User Rank');
|
define('USRLAN_212', 'User Rank');
|
||||||
// define('USRLAN_213', 'Are you sure you want to delete this rank'); // use LAN_CONFIRMDEL
|
// define('USRLAN_213', 'Are you sure you want to delete this rank'); // use LAN_CONFIRMDEL
|
||||||
define('USRLAN_214', 'Add New Rank');
|
define('USRLAN_214', 'Add New Rank');
|
||||||
define('USRLAN_215', 'Update Ranks');
|
//define('USRLAN_215', 'Update Ranks');
|
||||||
define('USRLAN_216', '--select image--');
|
define('USRLAN_216', '--select image--');
|
||||||
define('USRLAN_217', 'User Ranks Updated');
|
//define('USRLAN_217', 'User Ranks Updated');
|
||||||
define('USRLAN_218', 'Deletion of User Rank');
|
//define('USRLAN_218', 'Deletion of User Rank');
|
||||||
|
|
||||||
define('USRLAN_219', 'Older than 30 days');
|
define('USRLAN_219', 'Older than 30 days');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user