Changeset 343 in t29-www


Ignore:
Timestamp:
Mar 5, 2013, 3:59:10 PM (6 years ago)
Author:
sven
Message:

Sprachsystem gefixt bei Benutzung von mod_vhost_alias (Bug #32).

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/host.php

    r298 r343  
    2020
    2121        /// Some identifier like a FQDN. Must be overwritten!
    22         public $hostname = "unknown";
     22        public $hostname = "undefined";
    2323
    2424
     
    3838                                $x = self::webroot_local_host_classname;
    3939                                return new $x;
     40                        } else {
     41                                print "Warning: Hostfile $hostfile does not contain class ".self::webroot_local_host_classname."\n";
    4042                        }
    4143                }
     
    6466        }
    6567
     68        public function __toString() {
     69                return 't29v6/host:'.$this->hostname;
     70        }
     71
    6672        abstract function fillup_template_conf(&$template_conf);
    6773}
  • lib/technikum29.php

    r297 r343  
    1212$lib = dirname(__FILE__);
    1313$webroot = realpath("$lib/../");  # file path to root of t29 web installation
     14
     15// early import host specific settings for making low level corrections like Bugfix #32
     16require "$lib/host.php";
     17$host = t29Host::detect();
     18
    1419$file = substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT'])); # e.g.: "/de/page.php"
    1520# Bug when DOCUMENT_ROOT ends with trailing slash: make sure $file begins with /:
     
    2126        $_GET['rl_debug'] = true;
    2227}
    23 
    24 require "$lib/host.php";
    25 $host = t29Host::detect();
    2628
    2729// check for url rewriting neccessarity
  • lib/template.php

    r307 r343  
    143143  <meta name="description" content="Produziert am 08.01.2012">
    144144  <meta name="author" content="technikum29-Team">
    145   <meta name="generator" content="t29v6/<?php print $this->conf['host']->hostname; ?>">
     145  <meta name="generator" content="<?php print $this->conf['host']; ?>">
    146146  <meta name="t29.cachedate" content="<?php print date('r'); ?>">
    147147  <?php
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