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

Chinese translation for coverager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/config.php.example

    r33 r124  
    11<?php 
    22 
    3 // should be named as config.php 
     3// this is an example only 
     4// write your own config and name it as config.php 
     5 
     6// detected by browser 
     7// $lang = 'en-us'; 
    48 
    59$charset = "UTF-8"; 
     10 
     11// developers only 
     12$show_todo_strings = false; 
     13 
    614// $include_paths = array("/www/my-php-project/"); 
    715// $exclude_paths = array("/www/my-php-project/tmp/"); 
     
    1321function ob_filter_path_nicer($o) 
    1422{ 
     23    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}/", $o); 
     24    $xcachedir = realpath(dirname(__FILE__) . "/../"); 
     25    $o = str_replace($xcachedir . "/", "{XCache}/", $o); 
    1526    $o = str_replace("/home/", "{H}/", $o); 
    1627    return $o; 
    1728} 
    1829 
     30// implement your auth here if needed 
     31// {{{ home made login example 
     32// this is an example only, it's won't work for you without your implemention. 
     33function check_admin_auth() 
     34{ 
     35    require("/path/to/user-login-and-permission-lib.php"); 
     36    session_start(); 
     37 
     38    if (!user_logined()) { 
     39        if (!ask_the_user_to_login()) { 
     40            exit; 
     41        } 
     42    } 
     43 
     44    user_load_permissions(); 
     45    if (!user_is_admin()) { 
     46        die("Permission denied"); 
     47    } 
     48 
     49    return true; 
     50} 
     51 
     52// uncomment: 
     53// check_admin_auth() 
     54// }}} 
     55 
    1956?> 
Note: See TracChangeset for help on using the changeset viewer.