mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
fb18e4e799
Remove VERSION file dependence. Small fixes
33 lines
759 B
PHP
33 lines
759 B
PHP
<?php
|
|
|
|
/**
|
|
* ownCloud - RainLoop mail plugin
|
|
*
|
|
* @author RainLoop Team
|
|
* @copyright 2014 RainLoop Team
|
|
*
|
|
* https://github.com/RainLoop/owncloud
|
|
*/
|
|
|
|
OCP\App::registerPersonal('rainloop', 'personal');
|
|
|
|
OCP\Util::addScript('rainloop', 'rainloop');
|
|
|
|
OCP\App::addNavigationEntry(array(
|
|
'id' => 'rainloop_index',
|
|
'order' => 20,
|
|
'href' => OCP\Util::linkTo('rainloop', 'index.php'),
|
|
'icon' => OCP\Util::imagePath('rainloop', 'mail.png'),
|
|
'name' => 'RainLoop'
|
|
));
|
|
|
|
if(OC_User::isAdminUser(OCP\User::getUser()))
|
|
{
|
|
OCP\App::addNavigationEntry(array(
|
|
'id' => 'rainloop_index_admin',
|
|
'order' => 21,
|
|
'href' => OCP\Util::linkTo('rainloop', 'index-admin.php'),
|
|
'icon' => OCP\Util::imagePath('rainloop', 'mail.png'),
|
|
'name' => 'RainLoop (Admin)'
|
|
));
|
|
}
|