diff options
author | Friendika <info@friendika.com> | 2011-05-16 18:52:27 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-16 18:52:27 -0700 |
commit | f9444c8be50f91282a81eebc84825813d118bfe4 (patch) | |
tree | 2b157c31fd32ab93837680f8e065ef05eb033d59 /boot.php | |
parent | 85c6457e6e6c9be6200f76bb12c449f010d4117b (diff) | |
download | volse-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.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |