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] Link to comment https://forums.phpfreaks.com/topic/217722-login-page-which-is-redirection-unchangable/ 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 { Link to comment https://forums.phpfreaks.com/topic/217722-login-page-which-is-redirection-unchangable/#findComment-1130147 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'.... Link to comment https://forums.phpfreaks.com/topic/217722-login-page-which-is-redirection-unchangable/#findComment-1130150 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. Link to comment https://forums.phpfreaks.com/topic/217722-login-page-which-is-redirection-unchangable/#findComment-1130152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.