2010-10-29 Miguel de Dios <miguel.dedios@artica.es>
* godmode/massive/massive_delete_profiles.php: fixed result message of operation. And cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3479 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b4b42cdd94
commit
ca2b11c3ec
|
@ -1,3 +1,8 @@
|
||||||
|
2010-10-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/massive/massive_delete_profiles.php: fixed result message of
|
||||||
|
operation. And cleaned source code style.
|
||||||
|
|
||||||
2010-10-28 Miguel de Dios <miguel.dedios@artica.es>
|
2010-10-28 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/alerts/alert_list.php,
|
* godmode/alerts/alert_list.php,
|
||||||
|
|
|
@ -44,23 +44,24 @@ if (is_ajax ()) {
|
||||||
|
|
||||||
$delete_profiles = (int) get_parameter ('delete_profiles');
|
$delete_profiles = (int) get_parameter ('delete_profiles');
|
||||||
|
|
||||||
if($delete_profiles) {
|
if ($delete_profiles) {
|
||||||
$profiles_id = get_parameter ('profiles_id', -1);
|
$profiles_id = get_parameter ('profiles_id', -1);
|
||||||
$groups_id = get_parameter ('groups_id', -1);
|
$groups_id = get_parameter ('groups_id', -1);
|
||||||
$users_id = get_parameter ('users_id', -1);
|
$users_id = get_parameter ('users_id', -1);
|
||||||
|
|
||||||
if($profiles_id == -1 || $groups_id == -1 || $users_id == -1){
|
if($profiles_id == -1 || $groups_id == -1 || $users_id == -1){
|
||||||
$result = false;
|
$result = false;
|
||||||
}else{
|
}
|
||||||
foreach($profiles_id as $profile){
|
else {
|
||||||
foreach($groups_id as $group){
|
foreach($profiles_id as $profile) {
|
||||||
foreach($users_id as $id_up){
|
foreach($groups_id as $group) {
|
||||||
|
foreach($users_id as $id_up) {
|
||||||
$user = (string) get_db_value_filter ('id_usuario', 'tusuario_perfil', array('id_up' => $id_up));
|
$user = (string) get_db_value_filter ('id_usuario', 'tusuario_perfil', array('id_up' => $id_up));
|
||||||
|
|
||||||
pandora_audit("User management",
|
pandora_audit("User management",
|
||||||
"Deleted profile for user ".safe_input($user));
|
"Deleted profile for user ".safe_input($user));
|
||||||
|
|
||||||
$return = delete_user_profile ($user, $id_up);
|
$result = delete_user_profile ($user, $id_up);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue