summaryrefslogtreecommitdiff
path: root/includes/functions/functions_db.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-07-28 18:11:55 +0000
committerfisharebest <fisharebest@gmail.com>2010-07-28 18:11:55 +0000
commit76d3f58b8687f5dba303cfdaae33cff6cfc08b17 (patch)
treef6defb3e1a07f1ce333857c22c6706d2b0876c4d /includes/functions/functions_db.php
parentcab6e1ca9fe87d141a01b22d4922fc76123f6ab1 (diff)
downloadwebtrees-76d3f58b8687f5dba303cfdaae33cff6cfc08b17.tar.gz
webtrees-76d3f58b8687f5dba303cfdaae33cff6cfc08b17.tar.bz2
webtrees-76d3f58b8687f5dba303cfdaae33cff6cfc08b17.zip
Bug #596176 Add account user
Diffstat (limited to 'includes/functions/functions_db.php')
-rw-r--r--includes/functions/functions_db.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php
index 0fcd1c5142..7c8f231b33 100644
--- a/includes/functions/functions_db.php
+++ b/includes/functions/functions_db.php
@@ -2228,6 +2228,13 @@ function get_user_count() {
->fetchOne();
}
+function get_user_by_email($email) {
+ return
+ WT_DB::prepare("SELECT user_id FROM `##user` WHERE email=?")
+ ->execute(array($email))
+ ->fetchOne();
+}
+
function get_admin_user_count() {
return
WT_DB::prepare("SELECT SQL_CACHE COUNT(*) FROM `##user_setting` WHERE setting_name=? AND setting_value=?")