From f4c498edba5a9c85163c8a3ef8d33bdcf9242f85 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Wed, 24 Aug 2011 11:21:27 +0200 Subject: [PATCH] Full path for carddav path --- apps/contacts/templates/index.php | 2 +- apps/contacts/temporaryupdate.php | 33 ------------------------------- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 apps/contacts/temporaryupdate.php diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index ffcca50b34d..46e85a09d11 100644 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -13,5 +13,5 @@ OC_Util::addStyle('contacts','styles'); inc("part.details"); ?> - t('The path to this addressbook is %s', array(OC::$WEBROOT.'/apps/contacts/carddav.php/addressbooks/'.OC_User::getUser().'/'.$_['addressbooks'][0]['uri'])); ?> + t('The path to this addressbook is %s', array(((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/apps/contacts/carddav.php/addressbooks/'.OC_User::getUser().'/'.$_['addressbooks'][0]['uri'])); ?> diff --git a/apps/contacts/temporaryupdate.php b/apps/contacts/temporaryupdate.php deleted file mode 100644 index 4b6453364e3..00000000000 --- a/apps/contacts/temporaryupdate.php +++ /dev/null @@ -1,33 +0,0 @@ -. - * - */ -// 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 -- 2.39.5