Location: PHPKode > scripts > PHPhotoalbum > phphotoalbum/auth.inc.php
<?php
/*************************************************
 * PHPhotoalbum v0.5
 * by: Henning Støverud
 * e-mail: hide@address.com
 * URL: http://www.stoverud.com/PHPhotoalbum/
 *************************************************/

require("config.inc.php");


function login($u, $p)
// check username and password with db
// if yes, return true
// else return false
{
  global $config;
  if($u == $config['admin_username'] && $p == $config['admin_password'])
  	return true;
  else
     return false;
}

?>
Return current item: PHPhotoalbum