$valuefile) { if ((strpos($valuefile, "\$signupcheck") !== false) && (strpos($valuefile, "//") === false)) { $signup_init = explode("=", $valuefile); $firsttwo_init = str_replace(" ","", $signup_init[0]); $signup_sec = explode(";", $signup_init[1]); $signup_check = str_replace(" ","", $signup_sec[0]); break; } } if ($signup_check == 'true') { // Generate a random string to prevent direct access to 'register-user.php' function random_str($length, $keyspace = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') { $pieces = []; $max = mb_strlen($keyspace, '8bit') - 1; for ($i = 0; $i < $length; ++$i) { $pieces []= $keyspace[random_int(0, $max)]; } return implode('', $pieces); } $token = random_str(40); session_start(); $_SESSION['validate_access'] = $token; ?> Roundpin

Log In

Sign Up

Email Address Username Password Repeat Password