aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-16 18:52:27 -0700
committerFriendika <info@friendika.com>2011-05-16 18:52:27 -0700
commitf9444c8be50f91282a81eebc84825813d118bfe4 (patch)
tree2b157c31fd32ab93837680f8e065ef05eb033d59 /boot.php
parent85c6457e6e6c9be6200f76bb12c449f010d4117b (diff)
downloadvolse-hubzilla-f9444c8be50f91282a81eebc84825813d118bfe4.tar.gz
volse-hubzilla-f9444c8be50f91282a81eebc84825813d118bfe4.tar.bz2
volse-hubzilla-f9444c8be50f91282a81eebc84825813d118bfe4.zip
admin directory view
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index a44d8298f..b0c7a6197 100644
--- a/boot.php
+++ b/boot.php
@@ -2736,3 +2736,11 @@ function parse_xml_string($s) {
libxml_clear_errors();
return $x;
}}
+
+if(! function_exists('is_site_admin')) {
+function is_site_admin() {
+ $a = get_app();
+ if(local_user() && x($a->user,'email') && x($a->config,'admin_email') && ($a->user['email'] === $a->config['admin_email']))
+ return true;
+ return false;
+}} \ No newline at end of file