Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Tools

Development::Tools 3rd Party Tools for EQEMu (DB management tools, front ends, etc...)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 07-02-2008, 05:34 PM
ndnet
Hill Giant
 
Join Date: Oct 2003
Posts: 105
Default

Spiffy looking tool I must say. I'm poking through it currently and encountered a problem with logging in, myself.

You see, I set the EQ Profile Editor up in a subdirectory of a folder that already has Apache basic authentication. When my browser hits the Profile Editor, it then passes the credentials for the previous authentication which don't match the editor.

I removed the auth check in search.php and modified the check in header.php to this simple login form that uses sessions:

Code:
<?php
include("includes/global.php"); // This already existed, to give an idea of where I added this..

session_start();

if( isset($_REQUEST["user"]) && isset($_REQUEST["pass"])){
	$_SESSION["username"] = $_REQUEST["user"];
	$_SESSION["password"] = $_REQUEST["pass"];
}

if( $_SESSION["username"] != $cfg['login']['username'] || $_SESSION["password"] != $cfg['login']['password']): ?>
<html>
<title>EQ Editor: Login</title>
<body>
<form action="" method="POST">
<label>Name:</label><input type="text" name="user" value="Username" onFocus="javascript:this.value=null;"><br/>
<label>Pass:</label><input type="text" name="pass" value="Password" onFocus="javascript:this.value=null;"><br/>
<input type="submit" value="Submit">
</form>
<?php die(); endif;
Works for me, feel free to take and modify for your needs.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:40 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3