'') : $conn = MYSQLi_CONNECT($CMhostname,$dbCMloginusername,$dbloginpassword) OR DIE("Unable to connect to database"); @mysqli_select_db($conn, "$dbCustomerMaster") or die("Unable to select database"); $grolusername = strtolower($_POST['pwd_next01']); $query = "SELECT email,username,password FROM $tblCustomers WHERE username = '$grolusername'"; $result = MYSQLi_QUERY($conn, $query); $numberofpasswords = MYSQLi_NUM_ROWS($result); if ($numberofpasswords < 1): print "\nGlobal Resources Online - Password Retrieval"; print ""; print "
"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
"; print "

Global Resources Online

"; print "

Problem Retrieving Password

"; print "
"; print "

There was a problems retrieving your password from our system. Please contact TechSupport via email at techsupport@grol.com , please reference (Error Code 10001) and we will be glad to help you."; print "


"; print "

 "; print "

 "; print "

Need help?  Email techsupport@grol.com

"; print "
"; print ""; exit; endif; if ($numberofpasswords > 1): print "\nGlobal Resources Online - Password Retrieval"; print ""; print "
"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
"; print "

Global Resources Online

"; print "

Problem Retrieving Password

"; print "
"; print "

There was a problems retrieving your password from our system. Please contact TechSupport via email at techsupport@grol.com, please reference (Error Code 10002) and we will be glad to help you."; print "


"; print "

 "; print "

 "; print "

Need help?  Email techsupport@grol.com

"; print "
"; print ""; exit; endif; if ($numberofpasswords = 1): $dbEmail = MYSQLi_RESULT($result, $i, "email"); $dbUsername = MYSQLi_RESULT($result, 0, "username"); $dbPassword = MYSQLi_RESULT($result, 0, "password"); print "\nGlobal Resources Online - Password Retrieval"; print ""; print "
"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
"; print "

Global Resources Online

"; print "

Password Retrieved and Emailed!

"; mail("$dbEmail", "Global Resources Online Account Information", "Thank you for using Global Resources Online!\n\nThe following information has been requested from the IP Address {$_SERVER['REMOTE_ADDR']}. You have requested to receive this email because you do not know your Global Resources Online Account Password. Remeber that this information is case sensitive and need to entered exactly the way it is printed below.\n\nGROL Username: $dbUsername\nGROL Password: $dbPassword \n\nKeep this information in a safe place in case you need it in the future. If you have any problems with using this information please email TechSupport at techsupport@grol.com explaining the problem with as much detail as possible.\n\nPlease check out one of our great products at http://www.grol.com and choose the \"Product Info\" link. \n\nMichael Vunk\nGlobal Resources Online\nhttp://www.grol.com", "From: Registration Server "); ## print "email: $dbEmail"; ## print "username: $dbUsername"; ## print "pass: $dbPassword"; print "
"; print "

We have retrieved your password and have emailed it to the email address you entered in when you registered. If you DO NOT receive the email within 5 to 30 minutes then please contact TechSupport via email at techsupport@grol.com and we will be glad to help you."; print "


"; print "

 "; print "

 "; print "

Need help?  Email techsupport@grol.com

"; print "
"; print ""; print "\n"; exit; endif; else : #print ""; print "\n"; print "\nGlobal Resources Online - Password Retrieval"; print "\n"; print "\n"; print "\n
"; print "\n
"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n
"; print "\n

Global Resources Online

"; print "\n

Account Password Retrieval

"; print "\n
"; print "\n

Please enter your Global Resources Online username in the field below and then click the "Email Password" button.  Our system will then send an email to the email address that you specified when you registered. "; print "\nIf you do not receive the email within a 30 minutes or if you do not remember your Global Resources Online username, please feel free to email TechSupport at techsupport@grol.com and we will be glad to help you."; print "\n


"; print "\n
"; print "\n

Username:  "; print "\n "; print "\n

"; print "\n
"; print "\n

 

"; print "\n

Need help?  Email techsupport@grol.com

"; print "\n
"; print "\n"; endif; ?>