aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-21 21:47:09 -0700
committerfriendica <info@friendica.com>2014-05-21 21:47:09 -0700
commit4d7fc304ea9dd9b756aba406601739652c54f72d (patch)
tree6b92351e24190e747a9ca81ff054e3e5079e34c2
parent71a4abe293c12bed82f18a8118c7d0530009d369 (diff)
downloadvolse-hubzilla-4d7fc304ea9dd9b756aba406601739652c54f72d.tar.gz
volse-hubzilla-4d7fc304ea9dd9b756aba406601739652c54f72d.tar.bz2
volse-hubzilla-4d7fc304ea9dd9b756aba406601739652c54f72d.zip
Add the admin app
-rw-r--r--app/admin.apd4
-rw-r--r--app/admin.pngbin0 -> 8449 bytes
-rw-r--r--include/apps.php5
3 files changed, 9 insertions, 0 deletions
diff --git a/app/admin.apd b/app/admin.apd
new file mode 100644
index 000000000..dbd2f6971
--- /dev/null
+++ b/app/admin.apd
@@ -0,0 +1,4 @@
+url: $baseurl/admin
+requires: admin
+name: Site Admin
+photo: $baseurl/app/admin.png
diff --git a/app/admin.png b/app/admin.png
new file mode 100644
index 000000000..f1954e52a
--- /dev/null
+++ b/app/admin.png
Binary files differ
diff --git a/include/apps.php b/include/apps.php
index e632ae3d6..bf5b292d0 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -79,6 +79,10 @@ function parse_app_description($f) {
if(local_user())
unset($ret);
break;
+ case 'admin':
+ if(! is_site_admin())
+ unset($ret);
+ break;
case 'local_user':
if(! local_user())
unset($ret);
@@ -105,6 +109,7 @@ function parse_app_description($f) {
function translate_system_apps(&$arr) {
$apps = array(
+ 'Site Admin' => t('Site Admin'),
'Bookmarks' => t('Bookmarks'),
'Address Book' => t('Address Book'),
'Login' => t('Login'),