PHP 8.2.30
Preview: mkpassword.php Size: 1.03 KB
//opt/cloudlinux/alt-php54/root/usr/share/xcache_3/cacher/mkpassword.php

<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
?>
<html>
	<head>
		<title>Simple MD5 password generator</title>
		<style stype="text/css">
			code pre { display: block; border: 1px dashed black; padding: 10px; }
		</style>
	</head>
	<body>
		<h1>Simple MD5 password generator</h1>
		<form method="post">
			<fieldset>
				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:
				<code>
				<pre><?php
				if ($_SERVER['REQUEST_METHOD'] == 'POST') {
					$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";
				}
				?></pre>
				</code>
			</fieldset>
		</form>
	</body>
</html>

Directory Contents

Dirs: 2 × Files: 9

Name Size Perms Modified Actions
lang DIR
- drwxr-xr-x 2024-03-03 22:51:43
Edit Download
sub DIR
- drwxr-xr-x 2024-03-03 22:51:43
Edit Download
1.18 KB lrw-r--r-- 2013-09-26 13:30:39
Edit Download
103 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download
461 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download
783 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download
698 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download
7.22 KB lrw-r--r-- 2013-09-26 13:30:39
Edit Download
656 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download
1.03 KB lrw-r--r-- 2013-11-09 16:38:00
Edit Download
245 B lrw-r--r-- 2013-09-26 13:30:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).