PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Deseroka
Client


Joined: Apr 15, 2003
Posts: 454
Location: FL

PostPosted: Sat Sep 11, 2004 8:59 pm Reply with quote Back to top

There is so much I watn to learn.....
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Sep 11, 2004 9:03 pm Reply with quote Back to top

Smile Thanks! You might want this thread
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
GeekyGuy
Client


Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Sat Sep 11, 2004 9:07 pm Reply with quote Back to top

I am at the point that I can hack on someone elses code, but I don't think I could write anything major. What I've been messing with now was taking someone else code and adapting it to fit my purpose.

Now I have to find those snippets of code so I can finish this User Guide. I'm looking for volunteers to install it and check it for errors.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
GeekyGuy
Client


Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Sat Sep 11, 2004 9:09 pm Reply with quote Back to top

You da man Raven, that's the snippet of code I was looking for. I wrote down the thread number, but threw the paper away Laughing
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Deseroka
Client


Joined: Apr 15, 2003
Posts: 454
Location: FL

PostPosted: Sat Sep 11, 2004 9:09 pm Reply with quote Back to top

My heroes have always killed cowboys--
Ooops--
My heroes have always been coders....
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Sep 15, 2004 6:41 am Reply with quote Back to top

I came across this and I need those with CGI to test it. If this works then we have a MUCH simpler solution. Place this line of code in your .htaccess (temporarily replacing the code fix in the above thread)
Code:
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

Let me know just ASAP. Thanks!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Sep 15, 2004 6:52 am Reply with quote Back to top

Do you mean to replace
Code:
<Files admin.php>
   <Limit GET POST PUT>
      require valid-user
   </Limit>
   AuthName "Restricted"
   AuthType Basic
   AuthUserFile REAL_PATH_TO_ID_PASS_FILE
</Files>

with:
Code:
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

?

EDIT: When I tried that, NukeSentinel still reports that admin HTTP authentication is not available.


Last edited by kguske on Wed Sep 15, 2004 7:06 am; edited 1 time in total
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Sep 15, 2004 6:58 am Reply with quote Back to top

Yes, although there will be more to it in NukeSentinel. Hold off and let me create a test script. I'll post back.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Sep 15, 2004 7:41 am Reply with quote Back to top

Okay. Save this code to testauth.php. Change the USERNAME and USERPASS to whatever you want to test with. Remove that other code so there is nothing to stop this.
Code:
<?
$username = 'USERNAME';
$userpass = 'USERPASS';
if (!($_SERVER['PHP_AUTH_USER']==$username && $_SERVER['PHP_AUTH_PW']==$userpass)) {
   header("WWW-Authenticate: Basic realm=Restricted");
   header("HTTP/1.0 401 Unauthorized");
   die('Authorization is required for this function.');
}
?>

Assuming that did not work, add this line to your .htaccess
Code:
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
and try it again. If it does not prompt you then just restore this code to .htaccess
Code:
<Files admin.php>
   <Limit GET POST PUT>
      require valid-user
   </Limit>
   AuthName "Restricted"
   AuthType Basic
   AuthUserFile REAL_PATH_TO_ID_PASS_FILE
</Files>

Let me know.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Sep 15, 2004 8:12 am Reply with quote Back to top

The testauth.php prompted for user ID and password, both with and without the .htaccess. However, it did not accept the USERNAME and USERPASS. Does the userpass need to be encrypted?
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Sep 15, 2004 8:18 am Reply with quote Back to top

Nope. The protocol encrypts it. Oh well, just thought I'd try what someone else recommended. Thanks for trying.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum