push changes

This commit is contained in:
Georg Ehrke 2012-05-05 22:54:14 +02:00
parent 6c2fc0cbe8
commit c996600786
7 changed files with 16 additions and 23 deletions

View File

@ -23,6 +23,4 @@ OCP\App::addNavigationEntry( array(
'name' => $l->t('Calendar'))); 'name' => $l->t('Calendar')));
OCP\App::registerPersonal('calendar', 'settings'); OCP\App::registerPersonal('calendar', 'settings');
OC_Search::registerProvider('OC_Search_Provider_Calendar'); OC_Search::registerProvider('OC_Search_Provider_Calendar');
if(!file_exists(OC::$SERVERROOT.'/remote/caldav.php')){ OCP\CONFIG::setAppValue('core', 'caldav', '/apps/calendar/appinfo/remote.php');
file_put_contents(OC::$SERVERROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
}

View File

@ -5,10 +5,6 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
require_once('../lib/base.php');
OCP\App::checkAppEnabled('calendar'); OCP\App::checkAppEnabled('calendar');
// Backends // Backends
@ -24,7 +20,7 @@ $nodes = array(
// Fire up server // Fire up server
$server = new Sabre_DAV_Server($nodes); $server = new Sabre_DAV_Server($nodes);
$server->setBaseUri(OC::$WEBROOT.'/remote/caldav.php'); $server->setBaseUri($baseuri);
// Add plugins // Add plugins
$server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud')); $server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud'));
$server->addPlugin(new Sabre_CalDAV_Plugin()); $server->addPlugin(new Sabre_CalDAV_Plugin());

View File

@ -25,6 +25,4 @@ OCP\App::addNavigationEntry( array(
OCP\App::registerPersonal('contacts','settings'); OCP\App::registerPersonal('contacts','settings');
OCP\Util::addscript('contacts', 'loader'); OCP\Util::addscript('contacts', 'loader');
OC_Search::registerProvider('OC_Search_Provider_Contacts'); OC_Search::registerProvider('OC_Search_Provider_Contacts');
if(!file_exists(OC::$SERVERROOT.'/remote/carddav.php')){ OCP\CONFIG::setAppValue('core', 'carddav', '/apps/contacts/appinfo/remote.php');
file_put_contents(OC::$SERVERROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}

View File

@ -19,9 +19,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
require_once('../lib/base.php');
OCP\App::checkAppEnabled('contacts'); OCP\App::checkAppEnabled('contacts');

View File

@ -1,6 +1,4 @@
<?php <?php
$l=OC_L10N::get('files'); $l=OC_L10N::get('files');
OCP\App::register( array( "order" => 2, "id" => "files", "name" => "Files" )); OCP\App::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
@ -9,6 +7,4 @@ 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") )); 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'); OC_Search::registerProvider('OC_Search_Provider_File');
if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){ OCP\CONFIG::setAppValue('core', 'webdav', '/apps/files/appinfo/remote.php');
file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/remote.php'));
}

View File

@ -23,10 +23,6 @@
* *
*/ */
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
require_once('../lib/base.php');
// only need filesystem apps // only need filesystem apps
$RUNTIME_APPTYPES=array('filesystem','authentication'); $RUNTIME_APPTYPES=array('filesystem','authentication');

12
remote.php Normal file
View File

@ -0,0 +1,12 @@
<?php
$RUNTIME_NOSETUPFS = true;
//$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
$file = OCP\CONFIG::getAppValue('core', $_GET['service']);
if(is_null($file)){
header('HTTP/1.0 404 Not Found');
exit;
}
$baseuri = OC::$WEBROOT . '/remote.php?service=' . $_GET['service'] . '&amp;p=';
parse_str($_GET['p'], $_GET);
require_once(OC::$APPSROOT . $file);