Changeset 902 for trunk/admin/config.default.php
- Timestamp:
- 2012-05-29T04:25:41+02:00 (12 months ago)
- File:
-
- 1 moved
-
trunk/admin/config.default.php (moved) (moved from trunk/admin/config.php.example) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/config.default.php
r900 r902 1 1 <?php 2 2 3 // this is an example only4 // write your own config and name it as config.php3 // this is default config, DO NOT modify this file 4 // copy this file and write your own config and name it as config.php 5 5 6 6 // detected by browser 7 // $ lang= 'en-us';7 // $config['lang'] = 'en-us'; 8 8 9 $c harset= "UTF-8";9 $config['charset'] = "UTF-8"; 10 10 11 // developers only12 $ show_todo_strings= false;11 // translators only 12 $config['show_todo_strings'] = false; 13 13 14 14 // width of graph for free or usage blocks 15 $usage_graph_width = 120; 16 // do not define both with 17 // $free_graph_width = 120; 15 $config['percent_graph_width'] = 120; 16 $config['percent_graph_type'] = 'used'; // either 'used' or 'free' 18 17 19 18 // only enable if you have password protection for admin page 20 19 // enabling this option will cause user to eval() whatever code they want 21 $ enable_eval= false;20 $config['enable_eval'] = false; 22 21 23 // this function is detected by xcache.tpl.php, and enabled if function_exists24 22 // this ob filter is applied for the cache list, not the whole page 25 function ob_filter_path_nicer($o) 23 $config['path_nicer'] = 'ob_filter_path_nicer_default'; 24 25 /* 26 function custom_ob_filter_path_nicer($list_html) 26 27 { 27 $sep = DIRECTORY_SEPARATOR; 28 $d = $_SERVER['DOCUMENT_ROOT']; 29 $o = str_replace($d, "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o); 30 $xcachedir = realpath(dirname(__FILE__) . "$sep..$sep"); 31 $o = str_replace($xcachedir . $sep, "{XCache}$sep", $o); 32 if ($sep == '/') { 33 $o = str_replace("/home/", "{H}/", $o); 34 } 35 return $o; 28 $list_html = ob_filter_path_nicer_default($list_html); // this function is from common.php 29 return $list_html; 36 30 } 31 $config['path_nicer'] = 'custom_ob_filter_path_nicer'; 32 */ 37 33 38 34 // you can simply let xcache to do the http auth … … 40 36 // {{{ home made login example 41 37 // this is an example only, it's won't work for you without your implemention. 38 /* 42 39 function check_admin_and_by_pass_xcache_http_auth() 43 40 { … … 63 60 } 64 61 65 // uncomment: 66 // check_admin_and_by_pass_xcache_http_auth(); 62 check_admin_and_by_pass_xcache_http_auth(); 63 */ 67 64 // }}} 68 65 66 /* by pass XCache http auth 67 $_SERVER["PHP_AUTH_USER"] = "moo"; 68 $_SERVER["PHP_AUTH_PW"] = "your-xcache-password"; 69 */ 70 69 71 ?>
Note: See TracChangeset
for help on using the changeset viewer.

