aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2007-11-18 19:59:33 +0000
committervdigital <vdigital@piwigo.org>2007-11-18 19:59:33 +0000
commit51e3d211c85f413fbce8d78cbe172bf1e7f1829f (patch)
treec6192e4cb9543cbbcb827f3133df1fd193077036 /include/functions_user.inc.php
parentee4fbd7cec24f0b57a3924e9af7aed9ba2759cb7 (diff)
New: Language Switch plugin support
git-svn-id: http://piwigo.org/svn/trunk@2161 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index a73e968ca..262b11d8b 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -1152,6 +1152,14 @@ function check_status($access_type, $user_status = '')
}
/*
+ * Return if user is generic
+ * @return bool
+*/
+ function is_generic($user_status = '')
+{
+ return get_user_status($user_status) == 'generic';
+}
+/*
* Return if user is, at least, a classic user
* @return bool
*/