aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 0320230a7d..530638c56b 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1239,6 +1239,24 @@ function style_select($default = '', $all = false)
}
/**
+* Check if style is activated
+*/
+function style_verify($style_id = 0)
+{
+ global $db;
+
+ $sql = 'SELECT style_id, style_active
+ FROM ' . STYLES_TABLE . "
+ WHERE style_id = $style_id";
+ $result = $db->sql_query($sql);
+
+ $style_verified = $db->sql_fetchrow($result);
+ $db->sql_freeresult($result);
+
+ return $style_verified['style_active'];
+}
+
+/**
* Pick a timezone
*/
function tz_select($default = '', $truncate = false)