aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorShibu Lijack <shibulijack@gmail.com>2012-04-10 21:46:14 +0530
committerShibu Lijack <shibulijack@gmail.com>2012-04-10 21:46:14 +0530
commitfd55c8664a046258c12e8a207d44340010155627 (patch)
tree1a520b8965b88f39cee72e5ce8bb093fb9c38d35 /phpBB/includes/functions_user.php
parentdaee25340381d4b97119be298a9fc2671e681bb3 (diff)
parent41e03164c19751624968435f31f1b63367cd4eb2 (diff)
downloadforums-fd55c8664a046258c12e8a207d44340010155627.tar
forums-fd55c8664a046258c12e8a207d44340010155627.tar.gz
forums-fd55c8664a046258c12e8a207d44340010155627.tar.bz2
forums-fd55c8664a046258c12e8a207d44340010155627.tar.xz
forums-fd55c8664a046258c12e8a207d44340010155627.zip
Merge remote-tracking branch 'upstream/develop' into ticket/10734
Conflicts: phpBB/styles/prosilver/theme/tweaks.css
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 18452c27e9..5b05c3a78d 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1948,6 +1948,27 @@ function validate_jabber($jid)
}
/**
+* Verifies whether a style ID corresponds to an active style.
+*
+* @param int $style_id The style_id of a style which should be checked if activated or not.
+* @return boolean
+*/
+function phpbb_style_is_active($style_id)
+{
+ global $db;
+
+ $sql = 'SELECT style_active
+ FROM ' . STYLES_TABLE . '
+ WHERE style_id = '. (int) $style_id;
+ $result = $db->sql_query($sql);
+
+ $style_is_active = (bool) $db->sql_fetchfield('style_active');
+ $db->sql_freeresult($result);
+
+ return $style_is_active;
+}
+
+/**
* Remove avatar
*/
function avatar_delete($mode, $row, $clean_db = false)