<?php
final class Url {
public function http($route) {
return HTTP_SERVER . '/index.php?c=' . str_replace('&', '&', $route);
}
public function https($route) {
if (HTTPS_SERVER != '') {
$link = HTTPS_SERVER . '/index.php?c=' . str_replace('&', '&', $route);
} else {
$link = HTTP_SERVER . '/index.php?c=' . str_replace('&', '&', $route);
}
return $link;
}
}
?>