Redirect fonctionnel avec port différent de 80
This commit is contained in:
parent
ca6488677b
commit
d809739961
@ -52,7 +52,12 @@ class UserController extends Zend_Controller_Action
|
||||
|
||||
$refresh = 5;
|
||||
|
||||
$url = 'http://'.$_SERVER['SERVER_NAME'].$this->view->url(array(
|
||||
$baseUrl = 'http://'.$_SERVER['SERVER_NAME'];
|
||||
if ($_SERVER['SERVER_PORT']!='80') {
|
||||
$baseUrl.= ':'.$_SERVER['SERVER_PORT'];
|
||||
}
|
||||
|
||||
$url = $baseUrl.$this->view->url(array(
|
||||
'controller' => 'user',
|
||||
'action' => 'login',
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user