Index: trunk/htdocs/coverager/config.example.php
===================================================================
--- trunk/htdocs/coverager/config.php.example	(revision 605)
+++ trunk/htdocs/coverager/config.example.php	(revision 1053)
@@ -1,59 +1,19 @@
 <?php
 
-// this is an example only
-// write your own config and name it as config.php
+// DO NOT rename/delete/modify example file which will be overwritten when upgrade
+// How To Custom Config:
+// 1. copy config.example.php config.php; edit config.php
+// 2. upgrading your config.php when config.example.php were upgraded
+// XCache will load
+// 1. ../config.default.php
+// 2. ./config.default.php
+// 3. ../config.php
+// 4. ./config.php
 
-// detected by browser
-// $lang = 'en-us';
+// $config['include_paths = array("/www/my-php-project/");
+// $config['exclude_paths = array("/www/my-php-project/tmp/");
+$config['syntax_higlight'] = true;
+$config['use_cache'] = false;
+//// $config['datadir'] is default to ini_get("xcache.coveragedump_directory")
+// $config['datadir'] = '';
 
-$charset = "UTF-8";
-
-// developers only
-$show_todo_strings = false;
-
-// $include_paths = array("/www/my-php-project/");
-// $exclude_paths = array("/www/my-php-project/tmp/");
-$syntaxhiglight = true;
-$usecache = false;
-//// $datadir is default to ini_get("xcache.coveragedump_directory")
-// $datadir = '';
-
-function ob_filter_path_nicer($o)
-{
-	$sep = DIRECTORY_SEPARATOR;
-	$o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}" . (substr($d, -1) == $sep ? $sep : ""), $o);
-	$xcachedir = realpath(dirname(__FILE__) . "$sep..$sep");
-	$o = str_replace($xcachedir . $sep, "{XCache}$sep", $o);
-	if ($sep == '/') {
-		$o = str_replace("/home/", "{H}/", $o);
-	}
-	return $o;
-}
-
-// implement your auth here if needed
-// {{{ home made login example
-// this is an example only, it's won't work for you without your implemention.
-function check_admin_auth()
-{
-	require("/path/to/user-login-and-permission-lib.php");
-	session_start();
-
-	if (!user_logined()) {
-		if (!ask_the_user_to_login()) {
-			exit;
-		}
-	}
-
-	user_load_permissions();
-	if (!user_is_admin()) {
-		die("Permission denied");
-	}
-
-	return true;
-}
-
-// uncomment:
-// check_admin_auth()
-// }}}
-
-?>
