Register on our site is free!

I look forward to have you as a member here on JAKCMS. It will give you a lot of advantages like: get forum support, report bugs or requests to our software, post comments to faq, downloads, blog, gallery and tutorials.

Kind regards
Jérôme 

Member Login

Lost your password?

Lost my Password

Stop, try again!

Not a member yet? Sign Up!

human

next Questions, Problems and Troubleshooting next Redirect after sucess page

Topic: Redirect after sucess page

kuki85
kuki85

Total Posts: 5
Registered since:
15.12.2011

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?

 

Jerome
Jerome

Total Posts: 682
Registered since:
25.02.2010

What browser do you use? Usually you go back to the page you came from...

kuki85
kuki85

Total Posts: 5
Registered since:
15.12.2011

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.

kuki85
kuki85

Total Posts: 5
Registered since:
15.12.2011

Maybe helps, I have on localhost: PHP 5.3.8 and MySQL Version mysqlnd 5.0.8.

Jerome
Jerome

Total Posts: 682
Registered since:
25.02.2010

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! wink

Please echo the $HTTP_REFERER var to see what you get when redirecting...

kuki85
kuki85

Total Posts: 5
Registered since:
15.12.2011

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 frown

Tag, Info and Rules
Tags:
admin, sucess, redirect
Info:
Topic is not locked, Topic is not sticky
Rules:
You may not post new threads and replies, You may not edit your thread and reply, You may not delete your reply, You may not moderate this forum

Social Bookmarking: