TRUSTINWEB Posted April 4, 2008 Share Posted April 4, 2008 I set this script up on the main site and it works fine, but I want to put in a subdirectory and that's where I have the problem?? There is a admin area that has a configuration file and I set the parameter http://www.website.com/Subdirectory so I thought this would switch everything over but it hasn['t]. ??? Can you give me some sugguestions?? TRUSTINWEB Link to comment https://forums.phpfreaks.com/topic/99467-hi-there-everyone-have-a-problem-login-out-of-the-script/ Share on other sites More sharing options...
stuffradio Posted April 4, 2008 Share Posted April 4, 2008 Eww IIS, can you post some code so we can help you better? Link to comment https://forums.phpfreaks.com/topic/99467-hi-there-everyone-have-a-problem-login-out-of-the-script/#findComment-508935 Share on other sites More sharing options...
TRUSTINWEB Posted April 4, 2008 Author Share Posted April 4, 2008 Here's the admin login: <?php ob_start("ob_gzhandler"); session_start(); include ("../includes/config.php"); include ("../includes/sessions.php"); if ($userStatus == '1' && $userGroup == '2' && isset($_SESSION['userid'])) { header ("Location: index.php"); exit(); } ?> <html> <head> <title> Administration</title> </head> <link rel="stylesheet" type="text/css" href="style.css"> <body bgcolor="#36648B" background="images/bg_body_blue.jpg"> <center> <br /><br /><br /><br /> <table style="border: 2px solid #CCCCCC; font-size: 12px; font-family: Arial; background-color: #FFFFFF;"> <tr> <td align="center"> <br /><b>Administration</b> <div style="padding: 10px;"> <form action="<?php echo $siteurl; ?>/index.php?action=login" method="post"> Username: <br /><input type="text" name="username" style="width: 150px; margin: 2px; border: 1px solid #A9A9A9;" maxlength="20"><br /> Password: <br /><input type="password" name="password" style="width: 150px; margin: 2px; border: 1px solid #A9A9A9;" maxlength="20"><br /> <input type="submit" name="submit" value="Log In" style="margin: 2px; border: 1px solid #A9A9A9; background-color: #FFFFFF;"> </form> </div> </td> </tr> </table> </center> </body> </html> Link to comment https://forums.phpfreaks.com/topic/99467-hi-there-everyone-have-a-problem-login-out-of-the-script/#findComment-508958 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.