2 // NOTE: The ADOdb and PEAR directories MUST be in your PHP include_path!
3 require_once "Auth/Auth.php";
5 function loginFunction() {
7 <form method
="post" action
="<?php echo $_SERVER['PHP_SELF'] ?>">
8 <input type
="text" name
="username">
9 <input type
="password" name
="password">
15 $dsn = 'mysql://username:password@hostname/database';
16 // To use encrypted passwords, change cryptType to 'md5'
17 $params = array('dsn' => $dsn, 'table' => 'auth', 'cryptType' => 'none',
18 'usernamecol' => 'username', 'passwordcol' => 'password');
19 $a = new Auth("ADOdb", $params, "loginFunction");
24 // * The output of your site goes here.