summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-10 12:15:35 -0700
committerArun Persaud <arun@nubati.net>2008-05-10 12:35:20 -0700
commit880dfb2e715a3770de56fb525f5c90d28a6ccb4c (patch)
treea96db91d27a2a6e9202902d11a72462192187fca /include/db.php
parent9239ba22c382383cd258ad3f36b2bc0dc99664b2 (diff)
downloade-DoKo-880dfb2e715a3770de56fb525f5c90d28a6ccb4c.tar.gz
e-DoKo-880dfb2e715a3770de56fb525f5c90d28a6ccb4c.tar.bz2
e-DoKo-880dfb2e715a3770de56fb525f5c90d28a6ccb4c.zip
NEW FEATURE: new settings page, user can now change timezone
rewrote the settings page, timezone can now be changed, the user menu shows up on the left on the pref page. Added a link to the pref-page in the left menu. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/db.php b/include/db.php
index a9bdffd..208334f 100644
--- a/include/db.php
+++ b/include/db.php
@@ -95,6 +95,16 @@ function DB_get_passwd_by_name($name)
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".
@@ -673,7 +683,8 @@ function DB_get_PREF($myid)
" 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";