<?php /** * ownCloud - Compress plugin * * @author Xavier Beurois * @copyright 2012 Xavier Beurois www.djazz-lab.net * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ $app_id = 'compress'; OC_Util::checkAppEnabled($app_id); OC_App::register(array('order' => 70, 'id' => $app_id, 'name' => ucfirst($app_id))); OC_Util::addScript($app_id, 'actlink.min'); OC_Util::addScript('3rdparty', 'chosen/chosen.jquery.min'); OC_Util::addStyle('3rdparty', 'chosen/chosen'); if (!OC_App::isEnabled('files_sharing')) { OC_Util::addStyle($app_id, 'styles'); }
<?php $l = new OC_L10N('calendar'); OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php'; OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php'; OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php'; OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php'; OC_HOOK::connect('OC_User', 'post_createUser', 'OC_Calendar_Hooks', 'deleteUser'); OC_Util::addScript('calendar', 'loader'); OC_App::register(array('order' => 10, 'id' => 'calendar', 'name' => 'Calendar')); OC_App::addNavigationEntry(array('id' => 'calendar_index', 'order' => 10, 'href' => OC_Helper::linkTo('calendar', 'index.php'), 'icon' => OC_Helper::imagePath('calendar', 'icon.png'), 'name' => $l->t('Calendar'))); OC_App::registerPersonal('calendar', 'settings');
<?php OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'apps/contacts/lib/addressbook.php'; OC::$CLASSPATH['OC_Contacts_VCard'] = 'apps/contacts/lib/vcard.php'; OC::$CLASSPATH['OC_Contacts_Hooks'] = 'apps/contacts/lib/hooks.php'; OC::$CLASSPATH['OC_Connector_Sabre_CardDAV'] = 'apps/contacts/lib/connector_sabre.php'; OC_HOOK::connect('OC_User', 'post_createUser', 'OC_Contacts_Hooks', 'deleteUser'); OC_App::register(array('order' => 10, 'id' => 'contacts', 'name' => 'Contacts')); OC_App::addNavigationEntry(array('id' => 'contacts_index', 'order' => 10, 'href' => OC_Helper::linkTo('contacts', 'index.php'), 'icon' => OC_Helper::imagePath('settings', 'users.svg'), 'name' => 'Contacts')); OC_APP::registerPersonal('contacts', 'settings');
/** * ownCloud - Internal Bookmarks plugin * * @author Xavier Beurois * @copyright 2012 Xavier Beurois www.djazz-lab.net * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ OC::$CLASSPATH['OC_IntBks'] = 'apps/internal_bookmarks/lib/intbks.class.php'; OC_App::register(array('order' => 70, 'id' => 'internal_bookmarks', 'name' => 'Internal Bookmarks')); OC_Util::addScript("internal_bookmarks", "actlink.min"); $i = 0; foreach (OC_IntBks::getAllItemsByUser() as $item) { OC_App::addNavigationEntry(array('id' => 'internal_bookmarks_index_' . $item['bkid'], 'order' => 70 + $item['bkorder'] / 100, 'href' => OC_Helper::linkTo('files', 'index.php?dir=' . $item['bktarget']), 'icon' => OC_Helper::imagePath('internal_bookmarks', 'star_on.png'), 'name' => $item['bktitle'])); $i++; } if ($i > 0) { OC_App::registerPersonal('internal_bookmarks', 'settings'); }
<?php OC_App::register(array('order' => 2, "id" => 'search', 'name' => 'Search'));
<?php $l = new OC_L10N('files'); OC_App::register(array("order" => 2, "id" => "files", "name" => "Files")); OC_App::addNavigationEntry(array("id" => "files_index", "order" => 1, "href" => OC_Helper::linkTo("files", "index.php"), "icon" => OC_Helper::imagePath("core", "places/home.svg"), "name" => $l->t("Files")));
<?php OC_App::register(array("id" => "settings", "name" => "Settings")); OC_App::register(array("order" => 1, "id" => "admin", "name" => "Administration")); OC_App::register(array("order" => 1, "id" => "help", "name" => "Help"));
<?php /** * ownCloud - SVG editor application - http://ocsvg.cbix.de * * @author Florian Hülsmann * @copyright 2012 Florian Hülsmann <*****@*****.**> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ OC_Util::addScript('files_svgedit', 'ocsvg'); OC_App::register(array('order' => 50, 'id' => 'files_svgedit', 'name' => 'SVG Editor'));
<?php OC_App::register(array('order' => 11, 'id' => 'user_webfinger', 'name' => 'Webfinger'));
<?php OC_App::register(array('order' => 10, 'id' => 'remoteStorage', 'name' => 'remoteStorage compatibility')); OC_APP::registerPersonal('remoteStorage', 'settings');
/** * @brief Makes owncloud aware of this app * @brief This call is deprecated and not necessary to use. * @param $data array with all information * @returns true/false * * @deprecated this method is deprecated * Do not call it anymore * It'll remain in our public API for compatibility reasons * */ public static function register($data) { return \OC_App::register($data); }
/** * ownCloud - ocDownloader plugin * * @author Xavier Beurois * @copyright 2012 Xavier Beurois www.djazz-lab.net * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ $app_id = 'ocdownloader'; OC_Util::checkAppEnabled($app_id); OC::$CLASSPATH['OC_ocDownloader'] = 'apps/' . $app_id . '/lib/ocDownloader.class.php'; OC::$CLASSPATH['OC_ocDownloaderFile'] = 'apps/' . $app_id . '/lib/ocDownloaderFile.class.php'; if (OC_ocDownloader::isUpToDate(OC_Appconfig::getValue($app_id, 'installed_version'))) { OC_ocDownloader::initProviders(dirname(__FILE__) . '/providers.xml'); } OC_App::register(array('order' => 30, 'id' => $app_id, 'name' => 'ocDownloader')); OC_App::addNavigationEntry(array('id' => $app_id . '_index', 'order' => 30, 'href' => OC_Helper::linkTo($app_id, 'downloader.php'), 'icon' => OC_Helper::imagePath($app_id, 'dl.png'), 'name' => 'ocDownloader')); OC_App::registerPersonal($app_id, 'personalsettings');
* * @author Xavier Beurois * @copyright 2012 Xavier Beurois www.djazz-lab.net * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ OC_Util::checkAppEnabled('storage_charts'); OC::$CLASSPATH['OC_DLStCharts'] = "apps/storage_charts/lib/db.class.php"; OC::$CLASSPATH['OC_DLStChartsLoader'] = "apps/storage_charts/lib/loader.class.php"; $l = new OC_L10N('storage_charts', OC_L10N::findLanguage(array('en', 'fr'))); OC_App::register(array('order' => 60, 'id' => 'storage_charts', 'name' => 'Storage Charts')); OC_App::addNavigationEntry(array('id' => 'storage_charts', 'order' => 60, 'href' => OC_Helper::linkTo('storage_charts', 'charts.php'), 'icon' => OC_Helper::imagePath('storage_charts', 'chart.png'), 'name' => 'DL Charts')); OC_App::registerPersonal('storage_charts', 'settings'); $data_dir = OC_Config::getValue('datadirectory', ''); if (OC_User::getUser() && strlen($data_dir) != 0) { $used = OC_DLStCharts::getTotalDataSize(OC::$CONFIG_DATADIRECTORY); $total = OC_DLStCharts::getTotalDataSize($data_dir) + OC_Filesystem::free_space(); OC_DLStCharts::update($used, $total); }
<?php /** * ownCloud - media plugin * * @author Robin Appelman * @copyright 2010 Robin Appelman icewind1991@gmail.com * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/ * */ $l = new OC_L10N('media'); require_once 'apps/media/lib_media.php'; OC_Util::addScript('media', 'loader'); OC_APP::registerPersonal('media', 'settings'); OC_App::register(array('order' => 3, 'id' => 'media', 'name' => 'Media')); OC_App::addNavigationEntry(array('id' => 'media_index', 'order' => 2, 'href' => OC_Helper::linkTo('media', 'index.php'), 'icon' => OC_Helper::imagePath('core', 'places/music.svg'), 'name' => $l->t('Music')));
<?php /** * Copyright (c) 2011 Marvin Thomas Rabe <*****@*****.**> * Copyright (c) 2011 Arthur Schiwon <*****@*****.**> * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ OC_App::register(array('order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks')); OC_App::addNavigationEntry(array('id' => 'bookmarks_index', 'order' => 70, 'href' => OC_Helper::linkTo('bookmarks', 'index.php'), 'icon' => OC_Helper::imagePath('bookmarks', 'bookmarks.png'), 'name' => 'Bookmarks')); OC_App::registerPersonal('bookmarks', 'settings');