芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/lugarcollectibles.com/system/library/url.php
url = $url; $this->ssl = $ssl; } /** * * * @param object $rewrite */ public function addRewrite($rewrite) { $this->rewrite[] = $rewrite; } /** * * * @param string $route * @param mixed $args * @param bool $secure * * @return string */ public function link($route, $args = '', $secure = false) { if ($this->ssl && $secure) { $url = $this->ssl . 'index.php?route=' . $route; } else { $url = $this->url . 'index.php?route=' . $route; } if ($args) { if (is_array($args)) { $url .= '&' . http_build_query($args); } else { $url .= str_replace('&', '&', '&' . ltrim($args, '&')); } } foreach ($this->rewrite as $rewrite) { $url = $rewrite->rewrite($url); } return $url; } }