Add the admin app

This commit is contained in:
friendica 2014-05-21 21:47:09 -07:00
parent 71a4abe293
commit 4d7fc304ea
3 changed files with 9 additions and 0 deletions

4
app/admin.apd Normal file
View File

@ -0,0 +1,4 @@
url: $baseurl/admin
requires: admin
name: Site Admin
photo: $baseurl/app/admin.png

BIN
app/admin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@ -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'),