first commit

This commit is contained in:
BACHIR SOULDI
2025-09-28 08:49:37 +01:00
commit 2794e62571
16819 changed files with 2664196 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
// NOTE: The ADOdb and PEAR directories MUST be in your PHP include_path!
require_once "Auth/Auth.php";
function loginFunction() {
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit">
</form>
<?php
}
$dsn = 'mysql://username:password@hostname/database';
// To use encrypted passwords, change cryptType to 'md5'
$params = array('dsn' => $dsn, 'table' => 'auth', 'cryptType' => 'none',
'usernamecol' => 'username', 'passwordcol' => 'password');
$a = new Auth("ADOdb", $params, "loginFunction");
$a->start();
if ($a->getAuth()) {
echo "Success";
// * The output of your site goes here.
}