ok, next try
i'm trying some modifications with this script.But now i have a questions about this, cause i don't know, if it will be securityhole or something like a fatal coding error.
(yes im a php newbie)
in details.php i modified this line
if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
redirect($url);
with this:
if ($_GET['image_id'] == "37") {
# redirect($url);
header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
}
else {
if (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id) || !$image_row) {
redirect($url);
}
}
I want that normal users write an article, like a blog. But everytime the user will be redirected to the mainpage, without any entry in the db. And the admin will be redirected to the blog-picture with a comment. with the code above the user wount be redirected, and a comment is also written.
i hope you'll unterstand what i mean.