git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
login/list: profile class to access user data
[minimedit.git]
/
auth.inc.php
diff --git
a/auth.inc.php
b/auth.inc.php
index 030a394e0b7904db90320b5643d5f274ddbeda4f..e4e8bb9b30dc4fb078b9907f15557a9505e1f9f0 100644
(file)
--- a/
auth.inc.php
+++ b/
auth.inc.php
@@
-1,6
+1,15
@@
<?php
date_default_timezone_set('Europe/Amsterdam');
+class User
+{
+ function __construct($dir)
+ {
+ $this->dir = $dir;
+ $this->login = basename($dir);
+ }
+}
+
function login_password_verify($input, $test)
{
if (substr($test, 0, 1) != '$') {