X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Fdb%2Fanydb.php;h=1094365eb42a6201d99bdd0e851427d096e60977;hp=596561cbc9027c15f89cbaf51aae9b1b000046b6;hb=939514b912738c5784b04a0d207db1afd918eb69;hpb=3c74920cb66b4e6c47c7e8a0eaeed40ffb7e8544 diff --git a/inc/db/anydb.php b/inc/db/anydb.php index 596561c..1094365 100644 --- a/inc/db/anydb.php +++ b/inc/db/anydb.php @@ -94,12 +94,15 @@ interface anydbConnection { public function create_items_table(); /* - * set password $pwd for user $usrname. - * If $usrname does not exist: - * - if $create_if_not_exists is true: create user. - * - if $create_if_not_exists is false: throws an err_query error. + * returns true if $usrname is name of an existing user, false otherwise. */ - public function setpwd($usrname, $pwd, $create_if_not_exists); + public function user_exists ($usrname); + + /* + * set password $pwd for user $usrname. If $usrname does not exist, create + * it + */ + public function setpwd($usrname, $pwd); /* * check that $pwd_md5 is md5 for $username password.