1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

TEMPORARY update path for carddav testers

This commit is contained in:
Jakob Sack 2011-08-06 23:09:55 +02:00
parent 629c53353d
commit b1b2b190d8

13
temporaryupdate.php Normal file
View File

@ -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";