<?php
-use Friendica\Module\Login;
-use Friendica\Util\Emailer;
-
require_once('include/security.php');
function dav_install()
{
$a = get_app();
if (!isset($a->user["uid"]) || $a->user["uid"] == 0) {
- return Login::form();
+ return login();
}
$x = "";
$ret = wdcal_postEditPage("new", "", $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/");
if ($ret["ok"]) notice($ret["msg"]);
else info($ret["msg"]);
- goaway('dav/wdcal/');
+ goaway($a->get_baseurl() . "/dav/wdcal/");
}
$o .= wdcal_getNewPage();
return $o;
$ret = wdcal_postEditPage($a->argv[3], $a->user["uid"], $a->timezone, $a->get_baseurl() . "/dav/wdcal/");
if ($ret["ok"]) notice($ret["msg"]);
else info($ret["msg"]);
- goaway('dav/wdcal/');
+ goaway($a->get_baseurl() . "/dav/wdcal/");
}
$o .= wdcal_getEditPage($calendar_id, $a->argv[3]);
return $o;
'textVersion' => $text_text,
'additionalMailHeader' => "",
);
+ require_once('include/Emailer.php');
Emailer::send($params);
}
break;