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
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-08-07 01:09:55 +0400
committerJakob Sack <kde@jakobsack.de>2011-08-07 01:09:55 +0400
commit77fccc9d0054b1748a05e25f2e57d64cf462b8f6 (patch)
treeff55bb96b4c457378cf761217f5b007ec0a23ae3 /apps/contacts
parent42a65497295aeba95163af89802989701aea30ca (diff)
TEMPORARY update path for carddav testers
Diffstat (limited to 'apps/contacts')
-rw-r--r--apps/contacts/temporaryupdate.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/contacts/temporaryupdate.php b/apps/contacts/temporaryupdate.php
new file mode 100644
index 00000000000..bb5ff7604f3
--- /dev/null
+++ b/apps/contacts/temporaryupdate.php
@@ -0,0 +1,13 @@
+<?php
+// Init owncloud
+require_once('../../lib/base.php');
+$connector = new OC_Connector_Sabre_Principal;
+$users = OC_User::getUsers();
+
+foreach($users as $user){
+ $foo = $connector->getPrincipalByPath('principals/'.$user);
+ if(!isset($foo)){
+ OC_Connector_Sabre_Principal::addPrincipal(array('uid'=>$user));
+ }
+}
+echo "done"; \ No newline at end of file