projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LAYOUT: repaired the layout for starting a new game
[e-DoKo.git]
/
include
/
db.php
diff --git
a/include/db.php
b/include/db.php
index a9bdffd0d97563734d74c4b3f0994ffc3a546dc2..208334f7772b93049dc1c7328e268758ca09eeec 100644
(file)
--- a/
include/db.php
+++ b/
include/db.php
@@
-95,6
+95,16
@@
function DB_get_passwd_by_name($name)
return "";
}
return "";
}
+function DB_get_passwd_by_userid($id)
+{
+ $r = DB_query_array("SELECT password FROM User WHERE id=".DB_quote_smart($id)."");
+
+ if($r)
+ return $r[0];
+ else
+ return "";
+}
+
function DB_check_recovery_passwords($password,$email)
{
$r = DB_query_array("SELECT User.id FROM User".
function DB_check_recovery_passwords($password,$email)
{
$r = DB_query_array("SELECT User.id FROM User".
@@
-673,7
+683,8
@@
function DB_get_PREF($myid)
" WHERE user_id='$myid' AND pref_key='cardset'" );
if($r)
{
" WHERE user_id='$myid' AND pref_key='cardset'" );
if($r)
{
- if($r[0]=="germancards" && (time()-strtotime( "2009-12-31 23:59:59")<0) ) /* licence only valid until then */
+ /* licence only valid until then */
+ if($r[0]=="altenburg" && (time()-strtotime( "2009-12-31 23:59:59")<0) )
$PREF["cardset"]="altenburg";
else
$PREF["cardset"]="english";
$PREF["cardset"]="altenburg";
else
$PREF["cardset"]="english";