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

Global Resources Online

"; print "

Problem Retrieving Username

"; 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 - Username Retrieval"; print ""; print "
"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
"; print "

Global Resources Online

"; print "

Username 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 Username. Remeber that this information is case sensitive and need to entered exactly the way it is printed below.\n\nYour GROL Username is: $dbUsername\n\nIf you do not know the password to your account you will need to use the Password Retrieval program located at http://www.grol.com/grol/grol-password-retrieval.php\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 Username and is has been emailed to the email address you provided. 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 - Username 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 Usernamed Retrieval

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

Please enter your email in the field below and then click the "Email Username" button.  Our system will then send an email to you with your Global Resources Online username that you created 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

Email Address:  "; print "\n "; print "\n

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

 

"; print "\n

Need help?  Email techsupport@grol.com

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