Location: PHPKode > projects > Wexplorer > weXplorer/StandardAccessManager.php
<?php
/*
 * Created on 25 août 2005
 * @author Matthias Cullmann
 */
require_once('session.php');
require_once('config.inc.php');
 
function authorized($filepath){
 	if(isLogged()|| !preg_match ( AUTH_REQUIRED_ON_URLS, $filepath))
 	 		return true;
 	return false;
}

function validLogin($username, $password) {
	$users = parse_ini_file("users.ini");
	if(isset($users[$username]) && $users[$username]== $password){
		return true;
	}
	$_POST['logon_error'] = "<font color='#FF0000'>Logon failure. Please retry.</font>";
	return false;
}
?>
Return current item: Wexplorer