Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
Created October 8, 2010 20:31
Show Gist options
  • Save pbrisbin/617476 to your computer and use it in GitHub Desktop.
Save pbrisbin/617476 to your computer and use it in GitHub Desktop.
<?php require_once('path/to/authentication.php');
$valid_users = array( 'user1' => 'password1'
, 'user2' => 'password2'
);
authenticate($valid_users);
// rest of page logic...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment