Changeset 816 for trunk/Modules/Redirection
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Redirection/Redirection.php
r812 r816 17 17 function Start() 18 18 { 19 19 $this->System->OnPageNotFound = array($this, 'ShowRedirect'); 20 20 } 21 21 22 22 function Redirect($Location) 23 23 { 24 24 Header($_SERVER['SERVER_PROTOCOL'].' 301 Moved Permanently'); 25 25 Header('Location: '.$Location); 26 26 return('<h3 align="center">Požadovaná stránka byla přesunuta do nového umístění.</h3>'); … … 32 32 if(count($this->System->PathItems) > 0) 33 33 { 34 34 if($this->System->PathItems[0] == 'team.php') $Output = $this->Redirect($this->System->Link('/team/')); 35 35 if($this->System->PathItems[0] == 'version.php') $Output = $this->Redirect($this->System->Link('/client-version/')); 36 36 if($this->System->PathItems[0] == 'phpBB3') $Output = $this->Redirect($this->System->Link('/forum/'));
Note:
See TracChangeset
for help on using the changeset viewer.