mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 13:55:43 +02:00
2011-08-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/users/configure_user.php: Now action state is showed when update user action is performed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4853 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2a8bc97958
commit
41fb24f6fb
@ -1,3 +1,8 @@
|
|||||||
|
2011-08-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* godmode/users/configure_user.php: Now action state is showed
|
||||||
|
when update user action is performed.
|
||||||
|
|
||||||
2011-08-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2011-08-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* godmode/users/configure_user.php: Reload page to update skin.
|
* godmode/users/configure_user.php: Reload page to update skin.
|
||||||
|
@ -73,7 +73,12 @@ $create_user = (bool) get_parameter ('create_user');
|
|||||||
$add_profile = (bool) get_parameter ('add_profile');
|
$add_profile = (bool) get_parameter ('add_profile');
|
||||||
$delete_profile = (bool) get_parameter ('delete_profile');
|
$delete_profile = (bool) get_parameter ('delete_profile');
|
||||||
$update_user = (bool) get_parameter ('update_user');
|
$update_user = (bool) get_parameter ('update_user');
|
||||||
|
$status = get_parameter ('status', -1);
|
||||||
|
|
||||||
|
// Reset status var if current action is not update_user
|
||||||
|
if ($new_user || $create_user || $add_profile || $delete_profile || $update_user){
|
||||||
|
$status = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if ($new_user && $config['admin_can_add_user']) {
|
if ($new_user && $config['admin_can_add_user']) {
|
||||||
$user_info = array ();
|
$user_info = array ();
|
||||||
@ -202,9 +207,6 @@ if ($update_user) {
|
|||||||
|
|
||||||
$res1 = update_user ($id, $values);
|
$res1 = update_user ($id, $values);
|
||||||
|
|
||||||
// Reload page to update skin
|
|
||||||
header ('location:' . $config['homeurl'] . '/index.php?sec=gusuarios&sec2=godmode/users/configure_user&id=' . $id);
|
|
||||||
|
|
||||||
if ($config['user_can_update_password']) {
|
if ($config['user_can_update_password']) {
|
||||||
$password_new = (string) get_parameter ('password_new', '');
|
$password_new = (string) get_parameter ('password_new', '');
|
||||||
$password_confirm = (string) get_parameter ('password_confirm', '');
|
$password_confirm = (string) get_parameter ('password_confirm', '');
|
||||||
@ -246,6 +248,20 @@ if ($update_user) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$user_info = $values;
|
$user_info = $values;
|
||||||
|
|
||||||
|
// Reload page to update skin
|
||||||
|
if ($res1){
|
||||||
|
header ('location:' . $config['homeurl'] . '/index.php?sec=gusuarios&sec2=godmode/users/configure_user&id=' . $id . "&status=1");
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
header ('location:' . $config['homeurl'] . '/index.php?sec=gusuarios&sec2=godmode/users/configure_user&id=' . $id . "&status=0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($status != -1){
|
||||||
|
ui_print_result_message ($status,
|
||||||
|
__('User info successfully updated'),
|
||||||
|
__('Error updating user info (no change?)'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($add_profile) {
|
if ($add_profile) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user