summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-11-09 23:07:50 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-11-09 23:07:50 +0100
commit50c24f38f25d312ed37c56a307e31be50e39c3f5 (patch)
treef7955f85d182a69f566dd8f9b0d9083510598b4f /application/controllers/file.php
parentd9540210f6baaad022220762412673d80f9843bb (diff)
Rework file/client page
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index bd56c92df..435cc409a 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -320,6 +320,12 @@ class File extends CI_Controller {
$this->data['client_link_deb'] = base_url().'data/client/deb/';
$this->data['client_link_slackware'] = base_url().'data/client/slackware/';
+ if(preg_match('#^https?://(.*?)/.*$#', site_url(), $matches) === 1) {
+ $this->data["domain"] = $matches[1];
+ } else {
+ $this->data["domain"] = "unknown domain";
+ }
+
if (!is_cli_client()) {
$this->load->view('header', $this->data);
}