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:
mdtrooper 2010-10-29 11:55:17 +00:00
parent eda131de78
commit 501f4d10a7
2 changed files with 12 additions and 6 deletions

View File

@ -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>
* godmode/alerts/alert_list.php,

View File

@ -44,23 +44,24 @@ if (is_ajax ()) {
$delete_profiles = (int) get_parameter ('delete_profiles');
if($delete_profiles) {
if ($delete_profiles) {
$profiles_id = get_parameter ('profiles_id', -1);
$groups_id = get_parameter ('groups_id', -1);
$users_id = get_parameter ('users_id', -1);
if($profiles_id == -1 || $groups_id == -1 || $users_id == -1){
$result = false;
}else{
foreach($profiles_id as $profile){
foreach($groups_id as $group){
foreach($users_id as $id_up){
}
else {
foreach($profiles_id as $profile) {
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));
pandora_audit("User management",
"Deleted profile for user ".safe_input($user));
$return = delete_user_profile ($user, $id_up);
$result = delete_user_profile ($user, $id_up);
}
}
}