preetamhegde Posted November 4, 2010 Share Posted November 4, 2010 Hi, i'm trying to redesign the smarty based website . My job is to just change the 'look and feel' of the web site .i have downloaded the server contents and trying out in the local machine. The site has some functionalites for registered users.The function required after login is to show some catagories of the site . i'm using the login page of the site and after entering username and password i'm not able to redirect the page to the 'catagories ' page its redirecting to some file called showcatagories.php but no data is written in it. can anyone please tell me where the code is written for redirection.. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
gizmola Posted November 4, 2010 Share Posted November 4, 2010 Did you look at this code in login.php? if($_SESSION['session_templateselectedfromindex']=="YES"){ Header("location:sitemanager.php"); }else{ Header("location:showcategories.php"); } } else { Quote Link to comment Share on other sites More sharing options...
preetamhegde Posted November 4, 2010 Author Share Posted November 4, 2010 But the page is redirected from 'else' part to 'showcatagories.php'.... Quote Link to comment Share on other sites More sharing options...
gizmola Posted November 4, 2010 Share Posted November 4, 2010 Yes... that is the code that does the redirect. This code is executed inside the code after a login. You asked why it goes to showcategories.php and that is the reason. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.