fix writing in remote folder

This commit is contained in:
Georg Ehrke 2012-05-05 18:29:02 +02:00
parent 2facf509cc
commit 101406eba7
9 changed files with 9 additions and 23 deletions

View File

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

View File

@ -1,4 +0,0 @@
<?php
if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
}

View File

@ -14,7 +14,4 @@ if (version_compare($installedVersion, '0.2.1', '<')) {
$stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' );
$r = $stmt->execute(array($color,$id));
}
}
if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
}

View File

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

View File

@ -1,4 +0,0 @@
<?php
if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}

View File

@ -1,4 +0,0 @@
<?php
if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
}

View File

@ -9,3 +9,6 @@ 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');
if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){
file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}

View File

@ -1,4 +0,0 @@
<?php
if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){
file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}

View File

@ -1,4 +0,0 @@
<?php
if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){
file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php'));
}