Changeset 124 in svn for trunk/coverager/coverager.php


Ignore:
Timestamp:
2006-09-03T04:20:00+02:00 (9 years ago)
Author:
Xuefer
Message:

Chinese translation for coverager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/coverager.php

    r33 r124  
    11<?php
    22
    3 error_reporting(E_ALL);
    4 define('REQUEST_TIME', time());
     3include("./common.php");
    54
    65class Cycle
     
    4140    var $exclude_paths = array();
    4241    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;
    4347
    4448    function XcacheCoverageViewer()
     
    4751
    4852        // 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];
    5256            }
    5357        }
    5458
    5559        $this->datadir = preg_replace('!/$!', '', $this->datadir);
    56         $this->datadir_len =  strlen($this->datadir);
     60        $this->datadir_len = strlen($this->datadir);
    5761
    5862        $this->path = isset($_GET['path']) ? $_GET['path'] : '';
     
    125129        }
    126130
     131        $xcache_version = XCACHE_VERSION;
    127132        include("coverager.tpl.php");
    128133    }
     
    304309}
    305310
    306 if (file_exists("config.php")) {
    307     include("config.php");
    308 }
    309 
    310311$app = new XcacheCoverageViewer();
    311312$app->main();
Note: See TracChangeset for help on using the changeset viewer.