diff options
Diffstat (limited to 'mod/cloud.php')
-rw-r--r-- | mod/cloud.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mod/cloud.php b/mod/cloud.php index a72d0f108..29218f84e 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -32,6 +32,21 @@ function cloud_init(&$a) { require_once('include/reddav.php'); + $which = null; + if(argc() > 1) + $which = argv(1); + + $profile = 0; + $channel = $a->get_channel(); + + $a->page['htmlhead'] .= '<link rel="alternate" type="application/atom+xml" href="' . $a->get_baseurl() . '/feed/' . $which .'" />' . "\r\n" ; + + if($which) + profile_load($a,$which,$profile); + + + + $auth = new RedBasicAuth(); $ob_hash = get_observer_hash(); |