function getStandardImage() { //OCP\Response::setExpiresHeader('P10D'); OCP\Response::enableCaching(); OCP\Response::redirect(OCP\Util::imagePath('contacts', 'person_large.png')); exit; }
<?php /** * ownCloud - Reveal Application for ownCloud * * @author Raghu Nayyar and Frank Karlitschek * @copyright 2011 Frank Karlitschek karlitschek@kde.org * * 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/>. * */ OCP\Util::addStyle('reveal', 'style'); OCP\App::register(array('order' => 70, 'id' => 'reveal', 'name' => 'Reveal')); OCP\App::addNavigationEntry(array('id' => 'reveal_index', 'order' => 80, 'href' => OCP\Util::linkTo('reveal', 'index.php'), 'icon' => OCP\Util::imagePath('reveal', 'impress.png'), 'name' => 'Reveal'));
* * 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 Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ /* ### CONFIG ### ----------------------------------------------------- */ /* Allow that users can delete own posts, admin can delete all */ define('USER_CONVERSATIONS_CAN_DELETE', true); /* Allow messages to a single user */ define('UC_SINGLE_USER_MSG', true); /* FILE ATACHMENTS This is a beta feature with some known bugs. It could changed in a future release without backward compatibility! */ define('USER_CONVERSATIONS_ATTACHMENTS', true); /* end of configration ------------------------------ */ // register model-file OC::$CLASSPATH['OC_Conversations'] = 'conversations/lib/conversations.php'; // add update script to change the app-icon even when app is not active, TODO: find app-not-active function...! OCP\Util::addscript('conversations', 'updateCheck'); // register HOOK change user group OC_HOOK::connect('OC_User', 'post_addToGroup', 'OC_Conversations', 'changeUserGroup'); OC_HOOK::connect('OC_User', 'post_removeFromGroup', 'OC_Conversations', 'changeUserGroup'); $l = OC_L10N::get('conversations'); OCP\App::addNavigationEntry(array('id' => 'conversations', 'order' => 5, 'href' => OCP\Util::linkTo('conversations', 'index.php'), 'icon' => OCP\Util::imagePath('conversations', 'conversations.png'), 'name' => $l->t('Conversation')));
<?php /** * Copyright (c) 2014 - Arno van Rossum <*****@*****.**> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ OCP\App::checkAppEnabled('ocusagecharts'); OCP\App::setActiveNavigationEntry('ocusagecharts'); OCP\App::addNavigationEntry(array('id' => 'ocusagecharts', 'order' => 60, 'href' => \OCP\Util::linkToRoute('ocusagecharts.chart.frontpage'), 'icon' => OCP\Util::imagePath('ocusagecharts', 'iconchart.png'), 'name' => \OC_L10N::get('ocusagecharts')->t('ocUsageCharts'))); \OCP\Util::addStyle('ocusagecharts', 'style'); \OCP\Backgroundjob::registerJob('OCA\\ocUsageCharts\\Command\\UpdateChartsCommand');
" target="_blank"> <img src="<?php print_unescaped(OCP\Util::imagePath('core', 'googleplay.png')); ?> " alt="<?php p($l->t('Android app')); ?> " /> </a> <a href="<?php p($_['clients']['ios']); ?> " target="_blank"> <img src="<?php print_unescaped(OCP\Util::imagePath('core', 'appstore.png')); ?> " alt="<?php p($l->t('iOS app')); ?> " /> </a> <?php if (OC_Util::getEditionString() === '') { ?> <p class="center"> <?php print_unescaped($l->t('If you want to support the project <a href="https://owncloud.org/contribute"
" /> <small><?php echo $l->t('Currently the display name field needs to be the same you matched %%uid against in the filter above, because ownCloud doesn\'t distinguish between user id and user name.'); ?> </small></p> <p><label for="ldap_quota_attr">Quota Attribute</label><input type="text" id="ldap_quota_attr" name="ldap_quota_attr" value="<?php echo $_['ldap_quota_attr']; ?> " /> <label for="ldap_quota_def">Quota Default</label><input type="text" id="ldap_quota_def" name="ldap_quota_def" value="<?php if (isset($_['ldap_quota_def'])) { echo $_['ldap_quota_def']; } ?> " />bytes</p> <p><label for="ldap_email_attr">Email Attribute</label><input type="text" id="ldap_email_attr" name="ldap_email_attr" value="<?php echo $_['ldap_email_attr']; ?> " /></p> </fieldset> <input type="submit" value="Save" /> <a href="http://owncloud.org/support/ldap-backend/" target="_blank"><img src="<?php echo OCP\Util::imagePath('', 'actions/info.png'); ?> " style="height:1.75ex" /> <?php echo $l->t('Help'); ?> </a> </div> </form>
<?php /** * ownCloud - facefinder * * @author Aaron Messner * @copyright 2012 Aaron Messner aaron.messner@stuudent.uibk.ac.at * * 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/>. * */ // OCP\Share::registerBackend('photo', new OC_Share_Backend_Photo()); //$l = OC_L10N::get('gallery'); OCP\App::addNavigationEntry(array('id' => 'facefinder', 'order' => 20, 'href' => OCP\Util::linkTo('facefinder', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/picture.svg'), 'name' => "FaceFinder"));
<!-- begin of qrcode dialog --> <div id="dialog-qrcode" style="display:none;"> <fieldset class=""> <legend><?php p(OC_Shorty_L10n::t("Shorty as QRCode")); ?>:</legend> <input id="qrcode-ref" type="hidden" value="<?php p($_['qrcode-ref']); ?>"> <div class='qrcode-img'> <div class="usage-explanation"> <?php p(OC_Shorty_L10n::t("This 2d barcode encodes the url pointing to this Shorty")); ?>. <br> <?php p(OC_Shorty_L10n::t("Use it in web pages by referencing or embedding")); ?>, <?php p(OC_Shorty_L10n::t("or simpy print or download it for off-line usage")); ?>! </div> <div style="text-align:center;"> <img style="width:154px;" class="usage-qrcode" alt="<?php p(OC_Shorty_L10n::t("QRCode")); ?>" src="<?php p(OCP\Util::imagePath('shorty','loading-disk.gif')); ?>" > <div class="usage-instruction"> <?php p(OC_Shorty_L10n::t("Click for embedding details")); ?>… </div> </div> </div> <div class='qrcode-ref' style="display:none;"> <div class="usage-explanation"> <?php p(OC_Shorty_L10n::t("This is the url referencing the QRCode shown before")); ?>. <br> <?php p(OC_Shorty_L10n::t("Embed the QRCode as an image into some web page using this url")); ?>. </div> <input class="payload" readonly="true"> <div class="usage-instruction"> <?php p(OC_Shorty_L10n::t("Copy to clipboard")); ?>:<span class="usage-token"><?php p(OC_Shorty_L10n::t("Ctrl-C")); ?></span> <br>
<?php require_once \OC_App::getAppPath('news') . '/lib/feedtypes.php'; $l = new OC_l10n('news'); $feed = isset($_['feed']) ? $_['feed'] : null; $feedTitle = $feed->getTitle(); $feedId = $feed->getId(); $unreadItemsCount = isset($_['unreadItemsCount']) ? $_['unreadItemsCount'] : null; $favicon = $feed->getFavicon(); if ($favicon == null) { $favicon = OCP\Util::imagePath('core', 'actions/public.svg'); } $lastViewedFeedId = isset($_['lastViewedFeedId']) ? $_['lastViewedFeedId'] : null; $lastViewedFeedType = isset($_['lastViewedFeedType']) ? $_['lastViewedFeedType'] : null; if ($lastViewedFeedType == OCA\News\FeedType::FEED && $lastViewedFeedId == $feedId) { $activeClass = 'active'; } else { $activeClass = ''; } echo '<li class="feed ' . $activeClass . '" data-id="' . $feedId . '">'; echo '<a style="background-image: url(' . $favicon . ');" href="#" class="title">' . $feedTitle . '</a>'; echo '<span class="unread_items_counter">' . $unreadItemsCount . '</span>'; echo '<span class="buttons">'; echo '<button class="svg action feeds_delete" title="' . $l->t('Delete feed') . '"></button>'; echo '<button class="svg action feeds_markread" title="' . $l->t('Mark all read') . '"></button>'; echo '</span>'; echo '</li>';
<?php $l = OC_L10N::get('files'); OCP\App::registerAdmin('files', 'admin'); OCP\App::addNavigationEntry(array("id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo("files", "index.php"), "icon" => OCP\Util::imagePath("core", "places/files.png"), "name" => $l->t("Files"))); OC_Search::registerProvider('OC_Search_Provider_File'); // cache hooks must be connected before all other apps. // since 'files' is always loaded first the hooks need to be connected here \OC_Hook::connect('OC_Filesystem', 'post_write', '\\OC\\Files\\Cache\\Updater', 'writeHook'); \OC_Hook::connect('OC_Filesystem', 'post_touch', '\\OC\\Files\\Cache\\Updater', 'touchHook'); \OC_Hook::connect('OC_Filesystem', 'post_delete', '\\OC\\Files\\Cache\\Updater', 'deleteHook'); \OC_Hook::connect('OC_Filesystem', 'post_rename', '\\OC\\Files\\Cache\\Updater', 'renameHook'); \OCP\BackgroundJob::addRegularTask('\\OC\\Files\\Cache\\BackgroundWatcher', 'checkNext'); $templateManager = OC_Helper::getFileTemplateManager(); $templateManager->registerTemplate('text/html', 'core/templates/filetemplates/template.html'); $templateManager->registerTemplate('application/vnd.oasis.opendocument.presentation', 'core/templates/filetemplates/template.odp'); $templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt'); $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods');
<?php $l = OC_L10N::get('calendar'); OC::$CLASSPATH['OC_Calendar_App'] = 'apps/calendar/lib/app.php'; 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::$CLASSPATH['OC_Calendar_Share'] = 'apps/calendar/lib/share.php'; OC::$CLASSPATH['OC_Search_Provider_Calendar'] = 'apps/calendar/lib/search.php'; OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Calendar_Hooks', 'deleteUser'); OCP\Util::addscript('calendar', 'loader'); OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min"); OCP\Util::addStyle("3rdparty", "chosen/chosen"); OCP\App::register(array('order' => 10, 'id' => 'calendar', 'name' => 'Calendar')); OCP\App::addNavigationEntry(array('id' => 'calendar_index', 'order' => 10, 'href' => OCP\Util::linkTo('calendar', 'index.php'), 'icon' => OCP\Util::imagePath('calendar', 'icon.svg'), 'name' => $l->t('Calendar'))); OCP\App::registerPersonal('calendar', 'settings'); OC_Search::registerProvider('OC_Search_Provider_Calendar');
* in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ OCP\App::checkAppEnabled('ocusagecharts'); OCP\App::setActiveNavigationEntry('ocusagecharts'); OCP\App::addNavigationEntry(Array( 'id' => 'ocusagecharts', 'order' => 60, 'href' => \OCP\Util::linkToRoute('ocusagecharts.chart.frontpage'), 'icon' => OCP\Util::imagePath('ocusagecharts', 'iconchart.png'), 'name' => \OC_L10N::get('ocusagecharts')->t('ocUsageCharts') )); \OCP\Util::addStyle('ocusagecharts', 'style'); \OCP\Backgroundjob::registerJob('OCA\ocUsageCharts\Command\UpdateUserStorageCommand');
<p><?php p($_['error']['hint']); ?> </p> <?php } ?> <button id="exportbtn"><?php p($l->t('Export')); ?> <img class="loadingexport" src="<?php print_unescaped(OCP\Util::imagePath('core', 'loading.gif')); ?> " /></button><br/> <form id="import" action="#" method="post" enctype="multipart/form-data"> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']); ?> " id="requesttoken"> <input type="file" id="import_input" name="owncloud_import"> </form> <button id="importbtn"><?php p($l->t('Import')); ?> <img class="loadingimport" src="<?php print_unescaped(OCP\Util::imagePath('core', 'loading.gif')); ?> " /></button> </div>
* */ /** * @file appinfo/app.php * @brief Basic registration of plugin at ownCloud * @author Christian Reiner */ OC::$CLASSPATH['OC_Shorty_Backend'] = 'shorty/lib/backend.php'; OC::$CLASSPATH['OC_Shorty_Exception'] = 'shorty/lib/exception.php'; OC::$CLASSPATH['OC_Shorty_Hooks'] = 'shorty/lib/hooks.php'; OC::$CLASSPATH['OC_Shorty_HttpException'] = 'shorty/lib/exception.php'; OC::$CLASSPATH['OC_Shorty_L10n'] = 'shorty/lib/l10n.php'; OC::$CLASSPATH['OC_Shorty_Meta'] = 'shorty/lib/meta.php'; OC::$CLASSPATH['OC_Shorty_Query'] = 'shorty/lib/query.php'; OC::$CLASSPATH['OC_Shorty_Tools'] = 'shorty/lib/tools.php'; OC::$CLASSPATH['OC_Shorty_Type'] = 'shorty/lib/type.php'; OCP\App::registerAdmin ( 'shorty', 'settings' ); OCP\App::addNavigationEntry ( array ( 'id' => 'shorty_index', 'order' => 71, 'href' => OCP\Util::linkTo ( 'shorty', 'index.php' ), 'icon' => OCP\Util::imagePath( 'shorty', 'shorty-light.svg' ), 'name' => 'Shorty' ) ); OCP\Util::connectHook ( 'OCP\User', 'post_deleteUser', 'OC_Shorty_Hooks', 'deleteUser'); OCP\Util::connectHook ( 'OC_Shorty', 'registerQueries', 'OC_Shorty_Hooks', 'registerQueries'); ?>
<form> <div id="view"> <input type="button" value="<?php echo $l->t('Week'); ?> " id="oneweekview_radio"/> <input type="button" value="<?php echo $l->t('Month'); ?> " id="onemonthview_radio"/> <input type="button" value="<?php echo $l->t('List'); ?> " id="listview_radio"/> <img id="loading" src="<?php echo OCP\Util::imagePath('core', 'loading.gif'); ?> " /> </div> </form> <form> <div id="choosecalendar"> <input type="button" id="today_input" value="<?php echo $l->t("Today"); ?> "/> <input type="button" id="choosecalendar_input" value="<?php echo $l->t("Calendars"); ?> " onclick="Calendar.UI.Calendar.overview();" /> </div>
$sc_sort_title = 'Current ratio free space / used space'; } elseif (strcmp($sc_sort, 'clines_usse') == 0) { $sc_sort_title = 'Daily Used Space Evolution'; } else { $sc_sort_title = 'Monthly Used Space Evolution'; } if ($_['c_disp'][$sc_sort]) { ?> <div id="<?php print $sc_sort; ?> " class="personalblock"> <h3> <img src="<?php print OCP\Util::imagePath('storagecharts2', 'move.png'); ?> " /> <?php print $l->t($sc_sort_title) . ' ' . $l->t('for'); ?> "<?php print OC_Group::inGroup(OCP\User::getUser(), 'admin') ? $l->t('all users') : OCP\User::getDisplayName(); ?> " </h3> <div id="<?php print substr($sc_sort, 1); ?> " style="max-width: 100%; height: 400px; margin: 0 auto"></div>
$param = array ( ':user' => OCP\User::getUser ( ), ':sort' => $p_sort, // ':offset' => $p_offset, // ':limit' => PAGE_SIZE, ); $query = OCP\DB::prepare ( OC_Shorty_Query::URL_LIST ); $result = $query->execute($param); $reply = $result->fetchAll(); foreach (array_keys($reply) as $key) { if (isset($reply[$key]['id'])) { // enhance all entries with the relay url $reply[$key]['relay']=OC_Shorty_Tools::relayUrl ( $reply[$key]['id'] ); // make sure there is _any_ favicon contained, otherwise layout in MS-IE browser is broken... if (empty($reply[$key]['favicon'])) $reply[$key]['favicon'] = OCP\Util::imagePath('shorty', 'blank.png'); } } // foreach // swallow any accidential output generated by php notices and stuff to preserve a clean JSON reply structure OC_Shorty_Tools::ob_control ( FALSE ); OCP\Util::writeLog( 'shorty', sprintf("Constructed list of defined shortys holding %s entries.",sizeof($reply)), OCP\Util::DEBUG ); OCP\JSON::success ( array ( 'data' => $reply, 'level' => 'debug', 'count' => sizeof($reply), 'message' => OC_Shorty_L10n::t("Number of entries: %s", count($reply)) ) ); } catch ( Exception $e ) { OC_Shorty_Exception::JSONerror($e); } ?>
* 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['OCA\\Gallery\\Thumbnail'] = 'gallery/lib/thumbnail.php'; OC::$CLASSPATH['OCA\\Gallery\\AlbumThumbnail'] = 'gallery/lib/thumbnail.php'; OC::$CLASSPATH['OCA\\Gallery\\Share\\Picture'] = 'gallery/lib/share.php'; OC::$CLASSPATH['OCA\\Gallery\\Share\\Gallery'] = 'gallery/lib/share.php'; $l = OCP\Util::getL10N('gallery'); OCP\App::addNavigationEntry(array('id' => 'gallery_index', 'order' => 3, 'href' => OCP\Util::linkTo('gallery', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/picture.svg'), 'name' => $l->t('Pictures'))); // make slideshow available in files and public shares OCP\Util::addScript('gallery', 'jquery.mousewheel-3.1.1'); OCP\Util::addScript('gallery', 'slideshow'); OCP\Util::addScript('gallery', 'public'); OCP\Util::addStyle('gallery', 'slideshow'); // register filesystem hooks to update thumbnails OCP\Util::connectHook('OC_Filesystem', 'post_write', 'OCA\\Gallery\\Thumbnail', 'writeHook'); OCP\Util::connectHook('OC_Filesystem', 'post_delete', 'OCA\\Gallery\\Thumbnail', 'removeHook'); // register share backend OCP\Share::registerBackend('picture', 'OCA\\Gallery\\Share\\Picture', null, array('gif', 'jpeg', 'jpg', 'png', 'svg', 'svgz')); OCP\Share::registerBackend('gallery', 'OCA\\Gallery\\Share\\Gallery', 'picture');
<?php /** * @file templates/tmpl_settings.php * Dialog to change app settings, to be included in the clouds settings page. * @access public * @author Christian Reiner */ ?> <!-- settings of app 'imprint' --> <form id="imprint"> <div class="section"> <h2> <span id="title" class="title"> <img class="" src="<?php p(OCP\Util::imagePath("imprint", "imprint-dusky.svg")); ?> "> <?php p($l->t("Imprint")); ?> </span> </h2> <div id="imprint-options" class="imprint-option"> <label for="imprint-option-position" class="imprint-option"><?php p($l->t("Placement") . ": "); ?> </label> <select id="imprint-option-position" class="imprint-option" type="select" name="position"> <option value="standalone"><?php p($l->t("Standalone app"));
* 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 = OC_L10N::get('media'); OC::$CLASSPATH['OCA\\Media\\Media'] = 'media/lib/media.php'; OC::$CLASSPATH['OCA\\Media\\Ampache'] = 'media/lib/ampache.php'; OC::$CLASSPATH['OCA\\Media\\SearchProvider'] = 'media/lib/media.php'; OC::$CLASSPATH['OCA\\Media\\Collection'] = 'media/lib/collection.php'; OC::$CLASSPATH['OCA\\Media\\Scanner'] = 'media/lib/scanner.php'; OC::$CLASSPATH['OCA\\Media\\Extractor'] = 'media/lib/extractor.php'; OC::$CLASSPATH['OCA\\Media\\Extractor_GetID3'] = 'media/lib/extractor.php'; OC::$CLASSPATH['OCA\\Media\\Extractable'] = 'media/lib/track.php'; OC::$CLASSPATH['OCA\\Media\\Track'] = 'media/lib/track.php'; //we need to have the sha256 hash of passwords for ampache OCP\Util::connectHook('OC_User', 'post_login', 'OCA\\Media\\Media', 'loginListener'); OCP\Util::connectHook('OC_User', 'post_setPassword', 'OCA\\Media\\Media', 'passwordChangeListener'); //connect to the filesystem for auto updating OCP\Util::connectHook('OC_Filesystem', 'post_write', 'OCA\\Media\\Media', 'updateFile'); //listen for file deletions to clean the database if a song is deleted OCP\Util::connectHook('OC_Filesystem', 'post_delete', 'OCA\\Media\\Media', 'deleteFile'); //list for file moves to update the database OCP\Util::connectHook('OC_Filesystem', 'post_rename', 'OCA\\Media\\Media', 'moveFile'); OCP\App::registerPersonal('media', 'settings'); OCP\App::addNavigationEntry(array('id' => 'media_index', 'order' => 2, 'href' => OCP\Util::linkTo('media', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/music.svg'), 'name' => $l->t('Music'))); OC_Search::registerProvider('OCA\\Media\\SearchProvider');
<?php /** * ownCloud - Impressionist & Impress App * * @author Raghu Nayyar & Frank Karlitschek * @copyright 2012 me@iraghu.com Frank Karlitschek karlitschek@kde.org * * 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/>. * */ OCP\Util::addStyle('impressionist', 'style'); // Basic layout of the page. OCP\App::addNavigationEntry(array('id' => 'impressionist_index', 'order' => 74, 'href' => OCP\Util::linkTo('impressionist', 'index.php'), 'icon' => OCP\Util::imagePath('impressionist', 'impress.png'), 'name' => 'Impressionist'));
<?php /** * ownCloud - External plugin * * @author Frank Karlitschek * @copyright 2011 Frank Karlitschek karlitschek@kde.org * * 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_External'] = 'apps/external/lib/external.php'; OCP\Util::addStyle('external', 'style'); OCP\App::registerAdmin('external', 'settings'); OCP\App::register(array('order' => 70, 'id' => 'external', 'name' => 'External')); $sites = OC_External::getSites(); for ($i = 0; $i < sizeof($sites); $i++) { OCP\App::addNavigationEntry(array('id' => 'external_index' . ($i + 1), 'order' => 80 + $i, 'href' => OCP\Util::linkTo('external', 'index.php') . '?id=' . ($i + 1), 'icon' => OCP\Util::imagePath('external', 'external.png'), 'name' => $sites[$i][0])); }
<?php /** * ownCloud - RainLoop mail plugin * * @author RainLoop Team * @copyright 2015 RainLoop Team * * https://github.com/RainLoop/owncloud */ OC::$CLASSPATH['OC_RainLoop_Helper'] = OC_App::getAppPath('rainloop') . '/lib/RainLoopHelper.php'; OCP\App::registerAdmin('rainloop', 'admin'); OCP\App::registerPersonal('rainloop', 'personal'); if (OCP\Config::getAppValue('rainloop', 'rainloop-autologin', false)) { OCP\Util::connectHook('OC_User', 'post_login', 'OC_RainLoop_Helper', 'login'); OCP\Util::connectHook('OC_User', 'post_setPassword', 'OC_RainLoop_Helper', 'changePassword'); } OCP\Util::connectHook('OC_User', 'logout', 'OC_RainLoop_Helper', 'logout'); OCP\Util::addScript('rainloop', 'rainloop'); OCP\App::addNavigationEntry(array('id' => 'rainloop_index', 'order' => 10, 'href' => OCP\Util::linkToRoute('rainloop_index'), 'icon' => OCP\Util::imagePath('rainloop', 'mail.png'), 'name' => 'Email'));
<div class="ldapSettingControls"> <input class="ldap_submit" value="<?php p($l->t('Save')); ?> " type="submit"> <button type="button" class="ldap_action_test_connection" name="ldap_action_test_connection"> <?php p($l->t('Test Configuration')); ?> </button> <a href="<?php p(\OC_Helper::linkToDocs('admin-ldap')); ?> " target="_blank"> <img src="<?php print_unescaped(OCP\Util::imagePath('', 'actions/info.png')); ?> " style="height:1.75ex" /> <?php p($l->t('Help')); ?> </a> </div>
<?php require_once __DIR__ . '/bootstrap.php'; OCP\App::addNavigationEntry(array('id' => 'contacts_index', 'order' => 10, 'href' => OCP\Util::linkTo('contacts', 'index.php'), 'icon' => OCP\Util::imagePath('contacts', 'contacts.svg'), 'name' => OC_L10N::get('contacts')->t('Contacts'))); OCP\Util::addscript('contacts', 'loader'); OC_Search::registerProvider('OCA\\Contacts\\SearchProvider'); if (OCP\User::isLoggedIn()) { foreach (OCA\Contacts\Addressbook::all(OCP\USER::getUser()) as $addressbook) { OCP\Contacts::registerAddressBook(new OCA\Contacts\AddressbookProvider($addressbook['id'])); } }
/** * * @brief showing up roundcube iFrame * * @param * roundcube host $rcHost * @param * roundcube port $rcPort * @param * path to roundcube installation, Note: The first parameter is the URL-path of the RC inst * NOT the file-system path http://host.com/path/to/roundcube/ --> "/path/to/roundcube" $maildir * */ public static function showMailFrame($rcHost, $rcPort, $maildir) { $ocUser = OCP\User::getUser(); $rcLogin = self::getSessionVariable(self::SESSION_ATTR_RCUSER); $returnObject = new OC_Mail_Object(); $enableDebug = OCP\Config::getAppValue('roundcube', 'enableDebug', true); $enableAutologin = OCP\Config::getAppValue('roundcube', 'autoLogin', false); try { if (!self::refresh($rcHost, $rcPort, $maildir)) { // If the login fails, display an error message in the logs OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): There were login errors', OCP\Util::ERROR); throw new OC_Mail_LoginException("Unable to login to roundcube"); } OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): Preparing iFrame for roundcube.', OCP\Util::DEBUG); // loader image $loader_image = OCP\Util::imagePath('roundcube', 'loader.gif'); $disable_header_nav = OCP\Config::getAppValue('roundcube', 'removeHeaderNav', 'false'); $disable_control_nav = OCP\Config::getAppValue('roundcube', 'removeControlNav', 'false'); $returnObject->setDisplayName($rcLogin); // create iFrame begin $returnObject->appendHtmlOutput('<div id="roundcubeLoaderContainer"><img src="' . $loader_image . '" id="roundcubeLoader"></div>'); $returnObject->appendHtmlOutput('<iframe src="' . self::getRedirectPath($rcHost, $rcPort, $maildir) . '" id="roundcubeFrame" name="roundcube" width="100%" style="display:none;"> </iframe>'); $returnObject->appendHtmlOutput('<input type="hidden" id="disable_header_nav" value="' . $disable_header_nav . '"/>'); $returnObject->appendHtmlOutput('<input type="hidden" id="disable_control_nav" value="' . $disable_control_nav . '"/>'); // create iFrame end } catch (OC_Mail_NetworkingException $ex_net) { $returnObject->setErrorOccurred(true); $returnObject->setErrorCode(OC_Mail_Object::ERROR_CODE_NETWORK); $returnObject->setHtmlOutput(''); $returnObject->setErrorDetails("ERROR: Technical problem during trying to connect to roundcube server, " . $ex_net->getMessage()); OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): RoundCube can not login to roundcube due to a network connection exception to roundcube', OCP\Util::ERROR); } catch (OC_Mail_LoginException $ex_login) { $returnObject->setErrorOccurred(true); if ($enableAutologin) { OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): Autologin is enabled. Seems that the owncloud and roundcube login details do not match', OCP\Util::ERROR); $returnObject->setErrorCode(OC_Mail_Object::ERROR_CODE_AUTOLOGIN); } else { $returnObject->setErrorCode(OC_Mail_Object::ERROR_CODE_LOGIN); } $returnObject->setHtmlOutput(''); $returnObject->setErrorDetails("ERROR: Technical problem, " . $ex_login->getMessage()); OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): RoundCube can not login to roundcube due to a login exception to roundcube', OCP\Util::ERROR); } catch (OC_Mail_RC_InstallNotFoundException $ex_login) { $returnObject->setErrorOccurred(true); $returnObject->setErrorCode(OC_Mail_Object::ERROR_CODE_RC_NOT_FOUND); $returnObject->setHtmlOutput(''); $returnObject->setErrorDetails("ERROR: Technical problem, " . $ex_login->getMessage()); OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): RoundCube can nott be found on the given path.', OCP\Util::ERROR); } catch (Exception $ex_login) { $returnObject->setErrorOccurred(true); $returnObject->setErrorCode(OC_Mail_Object::ERROR_CODE_GENERAL); $returnObject->setHtmlOutput(''); $returnObject->setErrorDetails("ERROR: Technical problem, " . $ex_login->getMessage()); OCP\Util::writeLog('roundcube', 'OC_RoundCube_App.class.php->showMailFrame(): RoundCube can not login to roundcube due to a unkown exception to roundcube', OCP\Util::ERROR); } return $returnObject; }
$shared = true; } else { $shared = false; } $tmpl->assign('shared', $shared); $tmpl->printpage(); print_unescaped("</li>"); } ?> <li id="caldav_url_entry"> <input style="display:none;width: 78%;float: left;" type="text" id="caldav_url" title="<?php p($l->t("CalDav Link")); ?> "> <img id="caldav_url_close" style="float:right;height: 16px;padding:7px;margin-top:3px;cursor:pointer;vertical-align: middle;display: none;" src="<?php p(OCP\Util::imagePath('core', 'actions/delete.svg')); ?> " alt="close"/> </li> </ul> <!-- Start of settings --> <div id="app-settings"> <div id="app-settings-header"> <button class="settings-button generalsettings" tabindex="0"></button> </div> <div id="app-settings-content"> <ul> <li> <label for="timezone" class="bold"><?php p($l->t('Timezone'));
print_unescaped(OCP\Util::imagePath('settings', 'help.svg')); ?> " /> <?php p($l->t('Documentation')); ?> </a> <?php } ?> <a target="_blank" class="button" href="<?php p(link_to_docs('user-webdav')); ?> "> <img class="appsmall svg" alt="" src="<?php print_unescaped(OCP\Util::imagePath('files', 'folder.svg')); ?> " /> <?php p($l->t('Access files via WebDAV')); ?> </a> <p class="footnote"> <?php if ($_['edition'] === '') { print_unescaped($l->t('There’s more information in the <a target="_blank" href="%s">documentation</a> and on our <a target="_blank" href="http://owncloud.org">website</a>.', array(link_to_docs('user_manual')))); ?> <br> <?php print_unescaped($l->t('If you like ownCloud,
<?php OC::$CLASSPATH['OCA\\Mail\\App'] = 'apps/mail/lib/mail.php'; OC::$CLASSPATH['OCA\\Mail\\Account'] = 'apps/mail/lib/account.php'; OC::$CLASSPATH['OCA\\Mail\\Mailbox'] = 'apps/mail/lib/mailbox.php'; OC::$CLASSPATH['OCA\\Mail\\Message'] = 'apps/mail/lib/message.php'; OC::$CLASSPATH['OC_Translation_Handler'] = 'apps/mail/lib/OC_Translation_Handler.php'; OCP\App::addNavigationEntry(array('id' => 'mail_index', 'order' => 1, 'href' => OCP\Util::linkTo('mail', 'index.php'), 'icon' => OCP\Util::imagePath('mail', 'icon.png'), 'name' => 'Mail')); OCP\App::registerPersonal('mail', 'settings');
<div class="personalblock topblock titleblock"> <span><?php print($l->t('Drag\'N\'Drop on the chart title to re-order')); ?></span> </div> </div> <div id="stc_frame"> <div id="stc_sortable"> <?php foreach($_['sc_sort'] as $sc_sort){ if(strcmp($sc_sort, 'cpie_rfsus') == 0){ $sc_sort_title = 'Current ratio free space / used space'; }elseif(strcmp($sc_sort, 'clines_usse') == 0){ $sc_sort_title = 'Daily Used Space Evolution'; }else{ $sc_sort_title = 'Monthly Used Space Evolution'; } if($_['c_disp'][$sc_sort]){ ?> <div id="<?php print($sc_sort); ?>" class="personalblock"> <h3> <img src="<?php print(OCP\Util::imagePath('storagecharts2', 'move.png')); ?>" /> <?php print($l->t($sc_sort_title).' '.$l->t('for')); ?> "<?php print(OC_Group::inGroup(OCP\User::getUser(), 'admin')?$l->t('all users'):OCP\User::getDisplayName()); ?>" </h3> <div id="<?php print(substr($sc_sort, 1)); ?>" style="max-width: 100%; height: 400px; margin: 0 auto"> </div> </div> <?php } } ?> </div> </div>