aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2014-09-16 09:34:13 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2014-09-16 09:34:13 +0000
commit9a041dbac782566ff5a7ddb1f472e587cd6663f2 (patch)
tree5754879e041bb7e226d1f1df7e1d3e6789b2e3c0 /h-source/Application/Controllers
parent11972639df8315753123ebccdadee1f596807ad0 (diff)
Enabled SSL
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/IssuesController.php3
-rw-r--r--h-source/Application/Controllers/UsersController.php3
-rw-r--r--h-source/Application/Controllers/WikiController.php15
3 files changed, 14 insertions, 7 deletions
diff --git a/h-source/Application/Controllers/IssuesController.php b/h-source/Application/Controllers/IssuesController.php
index 87b10d0..9c7b799 100644
--- a/h-source/Application/Controllers/IssuesController.php
+++ b/h-source/Application/Controllers/IssuesController.php
@@ -151,7 +151,8 @@ class IssuesController extends BaseController
$this->m['IssuesModel']->values = array('update_date' => date('Y-m-d H:i:s'));
$this->m['IssuesModel']->update($clean['id_issue']);
- header('Refresh: 0;url=http://'.DOMAIN_NAME.$_SERVER['REQUEST_URI']);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Refresh: 0;url='.$domainName.$_SERVER['REQUEST_URI']);
exit;
}
}
diff --git a/h-source/Application/Controllers/UsersController.php b/h-source/Application/Controllers/UsersController.php
index 3c3520c..c324804 100644
--- a/h-source/Application/Controllers/UsersController.php
+++ b/h-source/Application/Controllers/UsersController.php
@@ -70,7 +70,8 @@ class UsersController extends BaseController
if (strcmp($redirect,'') !== 0)
{
$redirect = html_entity_decode($redirect,ENT_QUOTES,DEFAULT_CHARSET);
- header('Location: http://'.DOMAIN_NAME."/".$redirect);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location:'.$domainName."/".$redirect);
}
else
{
diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php
index 698519b..5dc05b8 100644
--- a/h-source/Application/Controllers/WikiController.php
+++ b/h-source/Application/Controllers/WikiController.php
@@ -62,7 +62,8 @@ class WikiController extends BaseController
if ($this->m['WikiModel']->queryResult)
{
- header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location: '.$domainName.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
die();
}
}
@@ -126,7 +127,8 @@ class WikiController extends BaseController
if ($this->m['WikiModel']->queryResult)
{
- header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location: '.$domainName.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
die();
}
}
@@ -149,7 +151,8 @@ class WikiController extends BaseController
}
else
{
- header('Location: http://'.DOMAIN_NAME."/users/login/".$this->lang."?redirect=".$this->controller."/page/".$this->lang."/".titleForRedirect($title));
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location: '.$domainName."/users/login/".$this->lang."?redirect=".$this->controller."/page/".$this->lang."/".titleForRedirect($title));
die();
}
}
@@ -213,7 +216,8 @@ class WikiController extends BaseController
$clean['idWiki'] = $rev->getIdPage($res_rev[0]['wiki_revisions']['id_rev']);
$newTitle = $this->m['WikiModel']->getTheModelName($clean['idWiki']);
$n = titleForRedirect($newTitle);
- header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$n);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location: '.$domainName.'/wiki/page/'.$this->lang.'/'.$n);
die();
}
else
@@ -439,7 +443,8 @@ class WikiController extends BaseController
if ($this->m['WikiModel']->queryResult)
{
- header('Location: http://'.DOMAIN_NAME.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
+ $domainName = rtrim(Url::getRoot(),"/");
+ header('Location: '.$domainName.'/wiki/page/'.$this->lang.'/'.$this->m['WikiModel']->lastTitleClean);
die();
}