Changeset 809 in t29-www


Ignore:
Timestamp:
Jun 29, 2015, 10:30:56 AM (4 years ago)
Author:
sven
Message:

Backend: Bugfixes beim Hosterkennungssystem. Externe Hosts funktionieren jetzt etwas besser.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • index.php

    r706 r809  
    33  * automatical redirection based on user language
    44  */
     5if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
    56 $de = strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'de');
    67 $en = strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'en');
     8} else {
     9 $de = $en = false;
     10}
    711 
    812 // Support web prefixes, aka installation of the homepage in
  • lib/host.php

    r650 r809  
    168168         *   2. if this host is *not* installed in its own virtualhost (i.e. on docroot).
    169169         *
     170         * Note:
     171         * This is only public as it must be able to be overwritten by subclasses.
     172         * This should be a constructor!
     173         *
    170174         * @returns $this for chaining
    171175         **/
    172         private function setup() {
     176        public function setup() {
    173177                $this->is_rewriting_host = isset($_SERVER[self::env_hidesuffix_name]);
    174178               
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License