Changeset 124 for trunk/coverager/config.php.example
- Timestamp:
- 2006-09-03T04:20:00+02:00 (7 years ago)
- File:
-
- 1 edited
-
trunk/coverager/config.php.example (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coverager/config.php.example
r33 r124 1 1 <?php 2 2 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'; 4 8 5 9 $charset = "UTF-8"; 10 11 // developers only 12 $show_todo_strings = false; 13 6 14 // $include_paths = array("/www/my-php-project/"); 7 15 // $exclude_paths = array("/www/my-php-project/tmp/"); … … 13 21 function ob_filter_path_nicer($o) 14 22 { 23 $o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}/", $o); 24 $xcachedir = realpath(dirname(__FILE__) . "/../"); 25 $o = str_replace($xcachedir . "/", "{XCache}/", $o); 15 26 $o = str_replace("/home/", "{H}/", $o); 16 27 return $o; 17 28 } 18 29 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. 33 function 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 19 56 ?>
Note: See TracChangeset
for help on using the changeset viewer.

