Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-05-05 20:29:02 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-05-05 20:29:26 +0400
commit101406eba7b8c3aed56f80519ef81d76e681d209 (patch)
treef96974b98dc4cae35f3edf0e248280bf1797a5c3 /apps
parent2facf509cc172ab822f573f3b582caef59995dc1 (diff)
fix writing in remote folder
Diffstat (limited to 'apps')
-rwxr-xr-xapps/calendar/appinfo/app.php3
-rw-r--r--apps/calendar/appinfo/install.php4
-rwxr-xr-xapps/calendar/appinfo/update.php3
-rwxr-xr-xapps/contacts/appinfo/app.php3
-rw-r--r--apps/contacts/appinfo/install.php4
-rw-r--r--apps/contacts/appinfo/update.php4
-rwxr-xr-xapps/files/appinfo/app.php3
-rw-r--r--apps/files/appinfo/install.php4
-rw-r--r--apps/files/appinfo/update.php4
9 files changed, 9 insertions, 23 deletions
diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php
index b02fc602c6b..055066de0df 100755
--- a/apps/calendar/appinfo/app.php
+++ b/apps/calendar/appinfo/app.php
@@ -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'));
+} \ No newline at end of file
diff --git a/apps/calendar/appinfo/install.php b/apps/calendar/appinfo/install.php
deleted file mode 100644
index fc5cd892394..00000000000
--- a/apps/calendar/appinfo/install.php
+++ /dev/null
@@ -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'));
-}
diff --git a/apps/calendar/appinfo/update.php b/apps/calendar/appinfo/update.php
index 13d711b84cb..ce7f304a499 100755
--- a/apps/calendar/appinfo/update.php
+++ b/apps/calendar/appinfo/update.php
@@ -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'));
} \ No newline at end of file
diff --git a/apps/contacts/appinfo/app.php b/apps/contacts/appinfo/app.php
index e5e1d572f2d..c8c1d779dae 100755
--- a/apps/contacts/appinfo/app.php
+++ b/apps/contacts/appinfo/app.php
@@ -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'));
+} \ No newline at end of file
diff --git a/apps/contacts/appinfo/install.php b/apps/contacts/appinfo/install.php
deleted file mode 100644
index 172ace5b1a6..00000000000
--- a/apps/contacts/appinfo/install.php
+++ /dev/null
@@ -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'));
-}
diff --git a/apps/contacts/appinfo/update.php b/apps/contacts/appinfo/update.php
deleted file mode 100644
index 29bde6c052f..00000000000
--- a/apps/contacts/appinfo/update.php
+++ /dev/null
@@ -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'));
-} \ No newline at end of file
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php
index 355b77d5e7e..5611acd2abc 100755
--- a/apps/files/appinfo/app.php
+++ b/apps/files/appinfo/app.php
@@ -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'));
+} \ No newline at end of file
diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php
deleted file mode 100644
index 8c1430900ae..00000000000
--- a/apps/files/appinfo/install.php
+++ /dev/null
@@ -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'));
-}
diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php
deleted file mode 100644
index f7ad31f6517..00000000000
--- a/apps/files/appinfo/update.php
+++ /dev/null
@@ -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'));
-} \ No newline at end of file