Пример #1
0
<?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');
Пример #2
0
<?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'));
Пример #3
0
<?php

OCP\App::register(array('order' => 11, 'id' => 'user_webfinger', 'name' => 'Webfinger'));
OCP\CONFIG::setAppValue('core', 'public_host-meta', '/apps/user_webfinger/host-meta.php');
OCP\CONFIG::setAppValue('core', 'public_webfinger', '/apps/user_webfinger/webfinger.php');
Пример #4
0
* 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_Gallery_Album'] = 'apps/gallery/lib/album.php';
OC::$CLASSPATH['OC_Gallery_Photo'] = 'apps/gallery/lib/photo.php';
OC::$CLASSPATH['OC_Gallery_Scanner'] = 'apps/gallery/lib/scanner.php';
OC::$CLASSPATH['OC_Gallery_Sharing'] = 'apps/gallery/lib/sharing.php';
OC::$CLASSPATH['OC_Gallery_Hooks_Handlers'] = 'apps/gallery/lib/hooks_handlers.php';
OC::$CLASSPATH['Pictures_Managers'] = 'apps/gallery/lib/managers.php';
OC::$CLASSPATH['Pictures_Tiles'] = 'apps/gallery/lib/tiles.php';
$l = OC_L10N::get('gallery');
OCP\App::register(array('order' => 20, 'id' => 'gallery', 'name' => 'Pictures'));
OCP\App::addNavigationEntry(array('id' => 'gallery_index', 'order' => 20, 'href' => OCP\Util::linkTo('gallery', 'index.php'), 'icon' => OCP\Util::imagePath('core', 'places/picture.svg'), 'name' => $l->t('Pictures')));
class OC_GallerySearchProvider extends OC_Search_Provider
{
    function search($query)
    {
        $stmt = OCP\DB::prepare('SELECT * FROM *PREFIX*gallery_albums WHERE uid_owner = ? AND album_name LIKE ?');
        $result = $stmt->execute(array(OCP\USER::getUser(), '%' . $query . '%'));
        $results = array();
        while ($row = $result->fetchRow()) {
            $results[] = new OC_Search_Result($row['album_name'], '', OCP\Util::linkTo('gallery', 'index.php') . '?view=' . $row['album_name'], 'Galleries');
        }
        return $results;
    }
}
//OC_Search::registerProvider('OC_GallerySearchProvider');
Пример #5
0
 * 
 * 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\App::register(array('order' => 70, 'id' => 'documents', 'name' => 'Documents'));
//OCP\App::registerAdmin('documents', 'settings');
OCP\App::registerPersonal('documents', 'personal');
OCP\App::addNavigationEntry(array('id' => 'documents_index', 'order' => 2, 'href' => OCP\Util::linkTo('documents', 'index.php'), 'icon' => OCP\Util::imagePath('documents', 'documents.svg'), 'name' => OCA\Documents\Config::getL10n()->t('Documents')));
OC::$CLASSPATH['OCA\\Documents\\Controller'] = 'documents/ajax/controller.php';
OC::$CLASSPATH['OCA\\Documents\\DocumentController'] = 'documents/ajax/documentController.php';
OC::$CLASSPATH['OCA\\Documents\\SessionController'] = 'documents/ajax/sessionController.php';
OC::$CLASSPATH['OCA\\Documents\\UserController'] = 'documents/ajax/userController.php';
OC::$CLASSPATH['OCA\\Documents\\Download_Simple'] = 'documents/lib/download/simple.php';
OC::$CLASSPATH['OCA\\Documents\\Download_Range'] = 'documents/lib/download/range.php';
OC::$CLASSPATH['OCA\\Documents\\Db_Session'] = 'documents/lib/db/session.php';
OC::$CLASSPATH['OCA\\Documents\\Db_Member'] = 'documents/lib/db/member.php';
OC::$CLASSPATH['OCA\\Documents\\Db_Op'] = 'documents/lib/db/op.php';
//Script for registering file actions
OCP\Util::addScript('documents', 'viewer/viewer');
//Listen to delete file signal
Пример #6
0
*
*/
$app_path = OC_APP::getAppPath('user_wordpress');
require_once $app_path . '/lib/wordpress.class.php';
require_once $app_path . '/user_wordpress.php';
require_once $app_path . '/group_wordpress.php';
OC::$CLASSPATH['OC_wordpress_images_menu_sites_icon'] = $app_path . '/img/wordpress.svg';
$normalize_path = str_replace('\\', '/', OC_APP::getAppPath('user_wordpress'));
$path_array = explode('/', $normalize_path);
array_pop($path_array);
$app_folder = array_pop($path_array);
OC::$CLASSPATH['OC_wordpress'] = $app_folder . '/lib/wordpress.class.php';
OC::$CLASSPATH['OC_wordpress_site_list'] = $app_path . '/wordpress.php';
OCP\Util::addStyle('user_wordpress', 'wordpress');
OCP\Util::addScript('user_wordpress', 'wordpress');
OCP\App::register(array('order' => 29, 'id' => 'cloudpress', 'name' => 'Cloudpress'));
OCP\App::registerAdmin('user_wordpress', 'settings');
OCP\App::registerPersonal('user_wordpress', 'persopress');
$wp_instance = new OC_wordpress();
if (isset($_POST['wordpress_settings_post'])) {
    foreach ($wp_instance->params as $param => $value) {
        if (isset($_POST[$param])) {
            OC_Appconfig::setValue('user_wordpress', $param, $_POST[$param]);
            $wp_instance->params[$param] = $_POST[$param];
        } else {
            OC_Appconfig::setValue('user_wordpress', $param, '');
            $wp_instance->params[$param] = '';
        }
    }
}
if ($wp_instance->params['wordpress_add_button'] == 1) {
Пример #7
0
<?php

OCP\App::register(array('order' => 10, 'id' => 'remoteStorage', 'name' => 'remoteStorage compatibility'));
OCP\App::registerPersonal('remoteStorage', 'settings');
Пример #8
0
<?php

$l = new OC_L10N('tasks');
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
OC::$CLASSPATH['OC_Task_App'] = 'apps/tasks/lib/app.php';
OCP\App::register(array('order' => 11, 'id' => 'tasks', 'name' => 'Tasks'));
OCP\App::addNavigationEntry(array('id' => 'tasks_index', 'order' => 11, 'href' => OCP\Util::linkTo('tasks', 'index.php'), 'icon' => OCP\Util::imagePath('tasks', 'icon.png'), 'name' => $l->t('Tasks')));
Пример #9
0
<?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::$CLASSPATH['OC_Bookmarks_Bookmarks'] = 'apps/bookmarks/lib/bookmarks.php';
OC::$CLASSPATH['OC_Search_Provider_Bookmarks'] = 'apps/bookmarks/lib/search.php';
OCP\App::register(array('order' => 70, 'id' => 'bookmark', 'name' => 'Bookmarks'));
$l = new OC_l10n('bookmarks');
OCP\App::addNavigationEntry(array('id' => 'bookmarks_index', 'order' => 70, 'href' => OCP\Util::linkTo('bookmarks', 'index.php'), 'icon' => OCP\Util::imagePath('bookmarks', 'bookmarks.png'), 'name' => $l->t('Bookmarks')));
OCP\App::registerPersonal('bookmarks', 'settings');
OCP\Util::addscript('bookmarks', 'bookmarksearch');
OC_Search::registerProvider('OC_Search_Provider_Bookmarks');
Пример #10
0
* 
*/

OCP\App::checkAppEnabled('ocdownloader');

OC::$CLASSPATH['OC_ocDownloader'] = 'apps/ocdownloader/lib/ocDownloader.class.php';

$l = OC_L10N::get('ocdownloader');

if(!OC_ocDownloader::isUpToDate(OCP\Config::getAppValue('ocdownloader', 'installed_version'))){
	OC_ocDownloader::initProviders(dirname(__FILE__) . '/providers.xml');
}

OCP\App::register(Array(
	'order' => 30,
	'id' => 'ocdownloader',
	'name' => 'ocDownloader'
));

OCP\App::addNavigationEntry(Array(
	'id' => 'ocdownloader_index',
	'order' => 30,
	'href' => OCP\Util::linkTo('ocdownloader', 'downloader.php'),
	'icon' => OCP\Util::imagePath('ocdownloader', 'dl.png'),
	'name' => 'ocDownloader'
));

OCP\App::registerPersonal('ocdownloader', 'personalsettings');

$data_dir = OCP\Config::getSystemValue('datadirectory', '');
if(OCP\User::getUser() && strlen($data_dir) != 0){
Пример #11
0
<?php

require_once 'apps/files_versions/versions.php';
// Add an entry in the app list
OCP\App::register(array('order' => 10, 'id' => 'files_versions', 'name' => 'Versioning'));
OCP\App::registerAdmin('files_versions', 'settings');
OCP\Util::addscript('files_versions', 'versions');
// Listen to write signals
OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OCA_Versions\\Storage", "write_hook");
Пример #12
0
<?php

OC::$CLASSPATH['OC_ReaderSearchProvider'] = 'apps/reader/lib/search.php';
OCP\App::register(array('order' => 20, 'id' => 'reader', 'name' => 'reader'));
OCP\App::addNavigationEntry(array('id' => 'reader_index', 'order' => 20, 'href' => OCP\Util::linkTo('reader', 'index.php'), 'icon' => OCP\Util::imagePath('reader', 'reader.png'), 'name' => 'Reader'));
OC_Search::registerProvider('OC_ReaderSearchProvider');
Пример #13
0
<?php

OC::$CLASSPATH['OC_Contacts_App'] = 'apps/contacts/lib/app.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::$CLASSPATH['OC_Search_Provider_Contacts'] = 'apps/contacts/lib/search.php';
OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Contacts_Hooks', 'deleteUser');
OCP\Util::connectHook('OC_Calendar', 'getEvents', 'OC_Contacts_Hooks', 'getBirthdayEvents');
OCP\Util::connectHook('OC_Calendar', 'getSources', 'OC_Contacts_Hooks', 'getCalenderSources');
OCP\App::register(array('order' => 10, 'id' => 'contacts', 'name' => 'Contacts'));
OCP\App::addNavigationEntry(array('id' => 'contacts_index', 'order' => 10, 'href' => OCP\Util::linkTo('contacts', 'index.php'), 'icon' => OCP\Util::imagePath('settings', 'users.svg'), 'name' => OC_L10N::get('contacts')->t('Contacts')));
OCP\App::registerPersonal('contacts', 'settings');
OCP\Util::addscript('contacts', 'loader');
OC_Search::registerProvider('OC_Search_Provider_Contacts');
Пример #14
0
<?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 = OC_L10N::get('media');
require_once 'apps/media/lib_media.php';
OCP\Util::addscript('media', 'loader');
OCP\App::registerPersonal('media', 'settings');
OCP\App::register(array('order' => 3, 'id' => 'media', 'name' => 'Media'));
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('OC_MediaSearchProvider');
Пример #15
0
<?php

/**
 * ownCloud - Impress App
 *
 * @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/>.
 * 
 */
OCP\Util::addStyle('impress', 'style');
OCP\App::register(array('order' => 70, 'id' => 'impress', 'name' => 'Impress'));
OCP\App::addNavigationEntry(array('id' => 'impress_index', 'order' => 80, 'href' => OCP\Util::linkTo('impress', 'index.php'), 'icon' => OCP\Util::imagePath('impress', 'impress.png'), 'name' => 'Impress'));
Пример #16
0
<?php

$l = OC_L10N::get('files');
OCP\App::register(array("order" => 2, "id" => "files", "name" => "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/home.svg"), "name" => $l->t("Files")));
OC_Search::registerProvider('OC_Search_Provider_File');
Пример #17
0
<?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]));
}
Пример #18
0
<?php

$l = OC_L10N::get('admin_dependencies_chk');
OCP\App::register(array('order' => 14, 'id' => 'admin_dependencies_chk', 'name' => 'Owncloud Install Info'));
OCP\App::registerAdmin('admin_dependencies_chk', 'settings');