X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fdb.php;h=11a83e6dbfff214bf25ede25f438f33def4e4fc3;hp=1f02169f91cc589a408c6f3e0b4ad42e7801e3f3;hb=0336b5b95349ba50004217c385a5f15a5421fece;hpb=5d1647f138763213a32e3e1ba426e3f86157f018 diff --git a/include/db.php b/include/db.php index 1f02169..11a83e6 100644 --- a/include/db.php +++ b/include/db.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Arun Persaud * * This file is part of e-DoKo. * @@ -30,7 +30,7 @@ if(!isset($HOST)) function DB_open() { - $version_needed = 4; + $version_needed = 5; global $DB,$DB_user,$DB_host,$DB_database,$DB_password; $DB = @mysql_connect($DB_host,$DB_user, $DB_password); @@ -951,6 +951,12 @@ function DB_set_recovery_password($user,$newpw) return; } +function DB_delete_recovery_passwords($userid) +{ + DB_query("DELETE FROM Recovery WHERE user_id=".DB_quote_smart($userid)); + return; +} + function DB_get_card_name($card) { if($card==0)