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

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.