From f9444c8be50f91282a81eebc84825813d118bfe4 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 16 May 2011 18:52:27 -0700 Subject: admin directory view --- boot.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'boot.php') 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 -- cgit v1.2.3