'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'));
+}
\ No newline at end of file
+++ /dev/null
-<?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'));
-}
$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'));
}
\ No newline at end of file
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'));
+}
\ No newline at end of file
+++ /dev/null
-<?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'));
-}
+++ /dev/null
-<?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'));
-}
\ No newline at end of file
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'));
+}
\ No newline at end of file
+++ /dev/null
-<?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'));
-}
+++ /dev/null
-<?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'));
-}
\ No newline at end of file