Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / libs / admins_functions.php
index 5f3c4a5d5dc7a73b1a59e04f2f6c246c64663265..71e179e00e7c052c8896e2309ac183ae252b80fc 100644 (file)
@@ -145,7 +145,7 @@ WHERE email='%s'".$locked." LIMIT 1",
                        list($uid) = SQL_FETCHROW($result);
 
                        // Rewrite email address to contact link
-                       $email = "{!URL!}/modules.php?module=".$mod."&what=user_contct&u_id=".bigintval($uid);
+                       $email = "{!URL!}/modules.php?module=".$mod."&what=user_contct&uid=".bigintval($uid);
                }
 
                // Free memory
@@ -250,7 +250,7 @@ WHERE id=%s LIMIT 1",
        }
 
        // Remove cache file
-       RUN_FILTER('post_admin_edited', $_POST);
+       RUN_FILTER('post_admin_edited', REQUEST_POST_ARRAY());
 }
 
 // Make admin accounts editable
@@ -364,7 +364,7 @@ function ADMINS_REMOVE_ADMIN_ACCOUNTS ($POST) {
        }
 
        // Remove cache if cache system is activated
-       RUN_FILTER('post_admin_deleted', $_POST);
+       RUN_FILTER('post_admin_deleted', REQUEST_POST_ARRAY());
 }
 
 // List all admin accounts