[feladat @ 120]
Fixed a bug reported by Techwolf. When editing or deleting an user the user was redirected to a non existing page. This probably happened when BASE_URL and/or BASE_PATH was set wrong in the config.inc.php.
--- a/delete_user.php Sun Feb 03 16:50:06 2008 +0000
+++ b/delete_user.php Mon Feb 11 18:42:04 2008 +0000
@@ -49,7 +49,7 @@
}
delete_user($id);
- clean_page($BASE_URL . $BASE_PATH . "users.php");
+ clean_page("users.php");
}
include_once("inc/header.inc.php");
?>
--- a/edit_user.php Sun Feb 03 16:50:06 2008 +0000
+++ b/edit_user.php Mon Feb 11 18:42:04 2008 +0000
@@ -35,7 +35,7 @@
}
if(edit_user($_POST["number"], $_POST["username"], $_POST["fullname"], $_POST["email"], $_POST["level"], $_POST["description"], $active, $_POST["password"]))
{
- clean_page($BASE_URL . $BASE_PATH . "users.php");
+ clean_page("users.php");
}
else
{