summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0d9f10d)
Similar to contact mailer.
if (!file_put_contents("profile/$found/.token", $token))
throw new Exception("could not store token for $found");
if (!file_put_contents("profile/$found/.token", $token))
throw new Exception("could not store token for $found");
- $sitename = $_SERVER['HTTP_HOST'];
+ $sitename = preg_replace('/^www\./', '', $_SERVER['HTTP_HOST']);
$sitelink = 'https://'.$sitename;
$rep = [
'[[user]]' => $user->name ?: $found,
$sitelink = 'https://'.$sitename;
$rep = [
'[[user]]' => $user->name ?: $found,