Changeset 124 for trunk/coverager/coverager.php
- Timestamp:
- 09/03/2006 04:20:00 AM (7 years ago)
- Files:
-
- 1 modified
-
trunk/coverager/coverager.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager/coverager.php
r33 r124 1 1 <?php 2 2 3 error_reporting(E_ALL); 4 define('REQUEST_TIME', time()); 3 include("./common.php"); 5 4 6 5 class Cycle … … 41 40 var $exclude_paths = array(); 42 41 var $charset = 'UTF-8'; 42 var $lang = 'en-us'; 43 var $datadir = null; 44 var $datadir_len = null; 45 var $path = null; 46 var $outpath = null; 43 47 44 48 function XcacheCoverageViewer() … … 47 51 48 52 // copy config 49 foreach (array('charset', 'include_paths', 'exclude_paths', 'syntaxhiglight', 'usecache', 'datadir' ) as $k) {50 if (isset($GLOBALS[ 'usecache'])) {51 $this->{$k} = $GLOBALS[ 'usecache'];53 foreach (array('charset', 'include_paths', 'exclude_paths', 'syntaxhiglight', 'usecache', 'datadir', 'lang') as $k) { 54 if (isset($GLOBALS[$k])) { 55 $this->{$k} = $GLOBALS[$k]; 52 56 } 53 57 } 54 58 55 59 $this->datadir = preg_replace('!/$!', '', $this->datadir); 56 $this->datadir_len = strlen($this->datadir);60 $this->datadir_len = strlen($this->datadir); 57 61 58 62 $this->path = isset($_GET['path']) ? $_GET['path'] : ''; … … 125 129 } 126 130 131 $xcache_version = XCACHE_VERSION; 127 132 include("coverager.tpl.php"); 128 133 } … … 304 309 } 305 310 306 if (file_exists("config.php")) {307 include("config.php");308 }309 310 311 $app = new XcacheCoverageViewer(); 311 312 $app->main();

