Changeset 343 in t29-www
- Timestamp:
- Mar 5, 2013, 3:59:10 PM (11 years ago)
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/host.php
r298 r343 20 20 21 21 /// Some identifier like a FQDN. Must be overwritten! 22 public $hostname = "un known";22 public $hostname = "undefined"; 23 23 24 24 … … 38 38 $x = self::webroot_local_host_classname; 39 39 return new $x; 40 } else { 41 print "Warning: Hostfile $hostfile does not contain class ".self::webroot_local_host_classname."\n"; 40 42 } 41 43 } … … 64 66 } 65 67 68 public function __toString() { 69 return 't29v6/host:'.$this->hostname; 70 } 71 66 72 abstract function fillup_template_conf(&$template_conf); 67 73 } -
lib/technikum29.php
r297 r343 12 12 $lib = dirname(__FILE__); 13 13 $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 16 require "$lib/host.php"; 17 $host = t29Host::detect(); 18 14 19 $file = substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT'])); # e.g.: "/de/page.php" 15 20 # Bug when DOCUMENT_ROOT ends with trailing slash: make sure $file begins with /: … … 21 26 $_GET['rl_debug'] = true; 22 27 } 23 24 require "$lib/host.php";25 $host = t29Host::detect();26 28 27 29 // check for url rewriting neccessarity -
lib/template.php
r307 r343 143 143 <meta name="description" content="Produziert am 08.01.2012"> 144 144 <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']; ?>"> 146 146 <meta name="t29.cachedate" content="<?php print date('r'); ?>"> 147 147 <?php
Note: See TracChangeset
for help on using the changeset viewer.