" if="" ($user="verify_active_user("populate"))" {="" if(isset($_post["email"])){="" $departmentemail="strip_tags($_POST["email"]);" $message="strip_tags($_POST["message"]);" $insert_message="\str_replace("'"," "\'",="" $message);="" ($user-="">email){
$sender = $user->email;
$first = $user->first_name;
}
$query2 = "INSERT INTO contact_form (`UserName`, `Department`, `Message`, `Email`) VALUES ('$user->user_id', '$departmentemail', '$first', '$insert_message')";
$dbi->query($query2);
$to = $departmentemail.'@thefreesoftwarecenter.com';
$subject = 'Contact form: '.$departmentemail;
$email_message = $first.' ('.$user->user_name.') sent you the following correspondance on TheFreeSoftwareCenter.com Website:'."\r\n\r\n".$message;
$headers = 'From: '.$sender."\r\n".
'Reply-To: '.$sender."\r\n";
//.'X-Mailer: PHP/'.phpversion()
mail($to, $subject, $email_message, $headers);
$set_output = '
We will review it as soon as possible and, if necessary, we will send a response to you at your registered email address: '.$sender.'
';
$message = "Message Sent: $message";
}
else {
$set_output = '';
}
//if (!$user->membership){$user->membership="Basic membership";$user->renewal_date="N/A";}
//get membership level and return software packages that match the users preferences
//check to see if the visitor is the develop of any of the software packages, if so highlight and give them a link to the admin panel
$content .= '
';
}
//otherwise clear session and show login form
else {
$content .= '
If you are having issues logging into your account please
direct message us on one of our social media platform accounts.
';
$content .= $body_login_form;
}
$content .= "
";
$_POST = array();
//echo $logged.$user1name.$user_id;
$header = get_header();
$footer = get_footer();
////////////////////////////
//SCRIPT TO SHOW PASSWORD //
////////////////////////////
$test_footer = <<