Jump to content

Hi There Everyone! Have a problem login out of the script??


TRUSTINWEB

Recommended Posts

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

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.