Phpvoter 0 6 > Phpvoter 0.6 / Data / Htaccess Auth.inc.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Phpvoter 0 6

Download:
phpvoter-0-6.zip

Category:
Polls And Voting

Archive Content:

Phpvoter 0.6

Phpvoter 0.6 > Data

Phpvoter 0.6

Phpvoter 0.6 > Includes

Phpvoter 0.6

Phpvoter 0.6 > Languages

Phpvoter 0.6

Phpvoter 0.6 > Templates > Default

Phpvoter 0.6 > Templates > Wrnu

Phpvoter 0.6

Htaccess Auth.inc.php:


<?php
/* htaccess authentication script */

/* Uses Apaches builtin .htaccess authentication */

// Authenticate user by username and password.
function authenticate($user,  $pass) {
    if (
$user && $pass) {
        return 
true;
    } else {
        return 
false;
    }
}

// Returns an array with username and password.
// Shamelessly stolen from PHP manual comment by dylan <at> capebyronimports.com <dot> au
function getUser() {
        
$headers getallheaders();
        
$auth explode" ",  $headers['Authorization'] );
    if (
$auth == '') {
       
$auth explode" " ,  $headers[authorization] );
    }

        
$authdec base64_decode$auth[1] );
        
$autharray explode":",  $authdec );
        return(
$autharray);
}

// Shows a login box
function login() {
    
}

?>



Other Polls And Voting Scripts:

WebMaster Resources Home

©RingsWorld.com