|
@@ 163-168 (lines=6) @@
|
| 160 |
|
} |
| 161 |
|
$link .= $_SERVER['SERVER_NAME']; |
| 162 |
|
$relPath = dirname(dirname($_SERVER['SCRIPT_NAME'])); |
| 163 |
|
if (substr($relPath, -1) == '/') { |
| 164 |
|
$relPath = substr($relPath, 0, -1); |
| 165 |
|
if ($relPath === FALSE) { |
| 166 |
|
throw new Exception("Uh. Something went seriously wrong with URL path mangling."); |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
$link = $link . $relPath; |
| 170 |
|
|
| 171 |
|
if (preg_match('/admin$/', $link)) { |
|
@@ 171-176 (lines=6) @@
|
| 168 |
|
} |
| 169 |
|
$link = $link . $relPath; |
| 170 |
|
|
| 171 |
|
if (preg_match('/admin$/', $link)) { |
| 172 |
|
$link = substr($link, 0, -6); |
| 173 |
|
if ($link === FALSE) { |
| 174 |
|
throw new Exception("Impossible: the string ends with '/admin' but it's not possible to cut six characters from the end?!"); |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
return $link . '/accountstatus/accountstatus.php?token=' . $this->invitationTokenString; |
| 179 |
|
} |