Password protect script Needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • frtaz
    Registered User
    • Oct 2005
    • 12

    #1

    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
    Confirmed User
    • Jan 2004
    • 1172

    #2
    you get what you pay for, contact ray @ strongbox you nOOb
    CandyDreams.com



    shooter for hire

    info[at]candydreams.com
    ICQ:96563638
    AIM: johnnyhey

    Comment

    • frtaz
      Registered User
      • Oct 2005
      • 12

      #3
      Thank I will look into them

      Comment

      • adultseo
        Confirmed User
        • Jun 2005
        • 365

        #4
        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($result, MYSQL_ASSOC); 
        } else { 
        authenticate(); 
        }} 
        
        ?>


        Best Regards,
        Adult SEO
        The key to get ranked one in Google is to provide the best.

        Comment

        • Dalai lama
          Strength and Honor
          • Jul 2004
          • 16540

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

          A program you can trust.
          Gallerybooster Run multiply TGPs of 1 script

          Comment

          • ghood
            Registered User
            • Nov 2004
            • 69

            #6
            adultseo: haha91;? WTF?
            Adult Sponsors Directory

            Comment

            Working...