Topic: Redirect after sucess page
Redirect after sucess page
In admin panel when I save some page, for examle save settings "index.php?p=setting" hi go to "index.php?p=sucess" and redirect me to home page of admin panel. How to make to redirect me to go page where I been, in that example, redirect me to settings page?
What browser do you use? Usually you go back to the page you came from...
Firefox 8.0 and IE 8 and he do not redirect me back to page. In code index.php in admin part I find:
if ($page == 'success') {
if (!JAK_USERID_CMS) {
jak_redirect(BASE_URL);
exit;
}
$template = 'success';
$c_tpl->assign('JAK_PROVED', 1);
$checkp = 1;
}
maybe is that problem.
Maybe helps, I have on localhost: PHP 5.3.8 and MySQL Version mysqlnd 5.0.8.
JAKCMS works fine under this PHP and MySQL version.
More important for the redirect is the header.html file in the admin/template directory.
Line 10
The code you posted is only a redirect if not logged in! 
Please echo the $HTTP_REFERER var to see what you get when redirecting...
I echo $HTTP_REFERER in header.html in body tag. When I click save redirect me to sucess page and $HTTP_REFERER set to null 
JAKCMS - Content Management System (CMS) PHP, MySQL and HTML







