Fork 0
XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.0 KiB

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
<title>Simple MD5 password generator</title>
<style stype="text/css">
code pre { display: block; border: 1px dashed black; padding: 10px; }
<h1>Simple MD5 password generator</h1>
<form method="post">
Name:<br />
<input type="text" name="username"><br />
Password:<br />
<input type="password" name="password"><br />
<input type="submit"><br />
The INI settings you need is:
$md5 = md5(@ $_POST['password']);
$offs = mt_rand(0 + 1, 31 - 1);
$md5_1 = substr($md5, 0, $offs);
$md5_2 = substr($md5, $offs);
$username = htmlspecialchars($_POST['username']);
echo "xcache.admin.user=\"$username\"\n";
echo "xcache.admin.pass=\"<span>$md5_1</span><span>$md5_2</span>\"\n";