user_password == md5($pass) && $ob->user_actkey == '') { return true; } else if ($ob->user_actkey != '') { $userid = $ob->user_id; header("Location: verification.html?userid=" . $userid); } else { return false; } } } $secret_word = 'i am a hungarian turnip farmer'; $now = time(); $username=$_REQUEST['user']; if (pc_validate($_REQUEST['user'],$_REQUEST['pass'])) { $r = mysql_query("UPDATE users SET user_lastvisit='$now' WHERE username LIKE '$username';"); if ($_REQUEST['saveme']=='yes') { setcookie("coopslogin",str_rot13($_REQUEST['user']).','.md5(str_rot13($_REQUEST['user']).$secret_word),time()+1209600,"/"); setcookie("saveduser",str_rot13($_REQUEST['user']),time()+441504000); } else { setcookie("coopslogin",str_rot13($_REQUEST['user']).','.md5(str_rot13($_REQUEST['user']).$secret_word),0,"/"); setcookie("saveduser",str_rot13($_REQUEST['user']),time()-441504000); } if ($_REQUEST['url']) { $location = $_REQUEST['url']; if (!strpos($location,'access.html')) { header("Location: $location"); } else{ header("Location: http://www.coopsareopen.com"); } } else { header("Location: http://www.coopsareopen.com"); } } else { $message="Your username/email and password did not match. Please try again."; unset($username); } } if ($_COOKIE['coopslogin']) { unset($username); unset($premium); unset($admin); $secret_word = 'i am a hungarian turnip farmer'; list($c_username,$cookie_hash) = split(',',$_COOKIE['coopslogin']); if (md5($c_username.$secret_word) == $cookie_hash) { $username = str_rot13($c_username); } $username = mysql_real_escape_string($username); $query = "SELECT * FROM users WHERE username LIKE '$username' LIMIT 1;"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); if (strtotime($row['premium_expiry']) > strtotime(date('Y-m-d H:i:s')) || $row['admin_access'] == 'admin') { $premium = 'yes'; } if ($row['admin_access'] == 'admin') { $admin = 'full'; } } ?> Account Access · Truck Weigh Station Scale Guides · Coopsareopen ' . $message . ''; } ?>

Log In to Coopsareopen!


'; ?>



'; echo ''; ?>




I forgot my password / username.

*You can use your Coopsareopen Forum account information here!

Don't have an account yet?

Sign up for a new account here.