diff --git a/install/index.php b/install/index.php index 07be630..8782547 100644 --- a/install/index.php +++ b/install/index.php @@ -38,17 +38,17 @@ function checkconnect($connect){ } } -function random($length, $numeric = 0) { - $seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); - $seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed)); - $hash = ''; - $max = strlen($seed) - 1; - for($i = 0; $i < $length; $i++) { - $hash .= $seed[mt_rand(0, $max)]; - } - return $hash; -} -$ver = '1.1.1' +// function random($length, $numeric = 0) { +// $seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); +// $seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed)); +// $hash = ''; +// $max = strlen($seed) - 1; +// for($i = 0; $i < $length; $i++) { +// $hash .= $seed[mt_rand(0, $max)]; +// } +// return $hash; +// } +$ver = '1.1.2' ?>
@@ -101,18 +101,29 @@ $_SESSION['checksession']=1;