diff --git a/ChangeLog b/ChangeLog index d858220..b96e882 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ ChangeLog * disassembler: * fixed crash with nested sandbox * improved support for PHP_4 ~ PHP_5_4, adds support for PHP_5_5 + * admin + * make mkpassword.php easier for noob 3.0.4 2013-09-?? ChangeLog diff --git a/htdocs/cacher/mkpassword.php b/htdocs/cacher/mkpassword.php index 88937d5..6d4e361 100644 --- a/htdocs/cacher/mkpassword.php +++ b/htdocs/cacher/mkpassword.php @@ -1,23 +1,37 @@ + Simple MD5 password generator +

Simple MD5 password generator

- md5:
-
- +
+ Password:
+
+
+ The INI settings you need is: + +
$md5_1$md5_2";
+					$username = htmlspecialchars($_POST['username']);
+					echo "xcache.admin.user=\"$username\"\n";
+					echo "xcache.admin.pass=\"$md5_1$md5_2\"\n";
 				}
-				?>
-				
+ ?> +
diff --git a/xcache.ini b/xcache.ini index 1338a39..6e3022f 100644 --- a/xcache.ini +++ b/xcache.ini @@ -7,10 +7,10 @@ extension = xcache.so [xcache.admin] xcache.admin.enable_auth = On + +; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password xcache.admin.user = "mOo" -; set xcache.admin.pass = md5($your_password) -; login use $your_password -xcache.admin.pass = "" +xcache.admin.pass = "md5 encrypted password" [xcache] ; ini only settings, all the values here is default unless explained