4RemoteSupport    " . $_SESSION[first_name] . " " . $_SESSION[last_name] . " " ); ?> 
Current IP Address:


Current Date:
Unable to query the database at this time.
Error: ' . mysql_error() . '

'); // @mysql_query($sql,$dbcnx); // ** end update member_last_login_ip ?>

Remote Support Software

 
 
Password Reset    
 
       
   
 
Your password will be reset and an email will be sent to you containing the new one for you to login with. Once you receive the email, go your profile page and enter the new one.
 
   

 

Forgot Your Password?

Just enter the email address that you created your remote support account with. The account will be verified and an email will be sent to that address containing your new password.
 

 

   

"); ?>

 

  

        Please enter a valid email address.
" ); } else{ // ** CHECK IF USER EXISTS IN DB // ** Connect to db server $dbcnx = @mysql_connect("localhost","remotes4_web","web"); if (!$dbcnx) { echo("

Unable to connect to the-" . "database server at this time.

"); exit(); } // ** select the database mysql_select_db ("remotes4_viewerdb", $dbcnx); if (!@mysql_select_db("remotes4_viewerdb")) { echo( "

Unable to locate the db " . "database at this time.

"); exit(); } // ** request data fields for user $result = @mysql_query("SELECT ip_address, port_number, first_name, last_name, email_address, viewer_id, pass_word, member_last_login_ip, access_count, creation_date, expiration_date, is_demo, active_account FROM viewer_info_table WHERE email_address='$form_username' "); // LIMIT 0,1 if (!$result) { // ** First check if blank was entered echo("

Error performaing query: " . mysql_error() . "

"); exit(); } if(mysql_num_rows($result) == 1) // if there is one matching result, then get some data to be displayed on page for the user logged in. { $row = mysql_fetch_array($result); $_SESSION['first_name']=$row["first_name"]; $_SESSION['last_name']=$row["last_name"]; $_SESSION['email_address']=$row["email_address"]; $_SESSION['ip_address']=$row["ip_address"]; $_SESSION['port_number']=$row["port_number"]; $_SESSION['viewer_id']=$row["viewer_id"]; $_SESSION['pass_word']=$row["pass_word"]; $_SESSION['access_count']=$row["access_count"]; $_SESSION['creation_date']=$row["creation_date"]; $_SESSION['expiration_date']=$row["expiration_date"]; $_SESSION['member_last_login_ip']=$row["member_last_login_ip"]; $_SESSION['is_demo']=$row["is_demo"]; $_SESSION['active_account']=$row["active_account"]; $first_name=$_SESSION['first_name']; $last_name=$_SESSION['last_name']; $date=date('m-d-Y'); // ** GENERATE NEW PASSWORD function makeRandomPassword() { $salt = "abchefghjkmnpqrstuvwxyz0123456789"; srand((double)microtime()*1000000); $i = 0; while ($i <= 7) { $num = rand() % 33; $tmp = substr($salt, $num, 1); $pass = $pass . $tmp; $i++; } return $pass; } $random_password = makeRandomPassword(); $db_password = md5($random_password); $sql = mysql_query("UPDATE viewer_info_table SET pass_word='$db_password' WHERE email_address='$form_username'"); // ** SEND EMAILED PASSWORD since a row has matched $subject = "Your 4RemoteSupport.com Account Information."; $message = " Dear $first_name $last_name, Here's the account information you requested on $date: Password: $random_password To login to your account, please click here: http://www.4remotesupport.com/4login/remote_support_memberlogin.html *HINT: You could copy and paste the password shown above into the password field on the login form. You can change your password to something more easy to remember once you have successfuly logged in. Thank You, 4RemoteSupport.com ----------------------------------------------------------------- Logged: Date $date Address $REMOTE_ADDR Browser $HTTP_USER_AGENT "; mail($form_username, $subject, $message, "From: 4RemoteSupport.com <4Support@4remotesupport.com>"); // \n // X-Mailer: PHP/" . phpversion()); echo(" Your password has been sent to your email address - " . $form_username. "
"); // echo(" Please check it and follow the directions!
"); echo("
Important!
"); echo("If you do not receive your email promptly, you may need to:
"); echo(" • Allow a few minutes to receive your email. Delivery speed varies by provider.
"); echo(" • Check your other email folders. Some email settings may filter your password email.
"); echo(" • Update your settings to accept email from 4remotesupport.com. Some email accounts may have restrictions intended for spam.

"); // $_SESSION['$good_id']='1'; unset($form_username); unset($email_address); unset($_SESSION['email_address']); } else { echo(" Please enter a valid ID or Email Address.
" ); unset($form_username); unset($email_address); unset($_SESSION['email_addess']); } } } ?>