GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Password protect script Needed (https://gfy.com/showthread.php?t=531054)

frtaz 10-22-2005 06:48 AM

Password protect script Needed
 
I need a Members Login/Registration Password protect .htaccess and .htpasswd script. does anyone know of a good one that is FREE I am on A Unix server and do have MySQL

johnnyhey 10-22-2005 06:50 AM

you get what you pay for, contact ray @ strongbox you nOOb

frtaz 10-22-2005 10:39 AM

Thank I will look into them

adultseo 10-23-2005 08:23 AM

Include in your headers:


PHP Code:

 
include('authenticate.php'); 



File authenticate.php:


PHP Code:

 
<?php 

function authenticate() { 
    
header('WWW-Authenticate: Basic realm="Admin"'); 
    
header('HTTP/1.0 401 Unauthorized'); 
    print 
"NOT AUTHORIZED"
    exit; 
  } 


if (!isset(
$_SERVER['PHP_AUTH_USER'])) { authenticate(); } else { 
$result mysql_query("SELECT * FROM user_table WHERE username='$_SERVER[PHP_AUTH_USER]' and password='$_SERVER[PHP_AUTH_PW]' LIMIT 1"); 
if (
mysql_num_rows($result)) { 
$user mysql_fetch_array($resultMYSQL_ASSOC); 
} else { 
authenticate(); 
}} 

?>



Best Regards,
Adult SEO

Dalai lama 10-23-2005 09:29 AM

Just use strongbox, costs you $100 but you get some good stuff.

ghood 10-23-2005 10:52 AM

adultseo: haha91;? WTF?


All times are GMT -7. The time now is 12:18 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123