Contact The Free Software Center '; //closes
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 = '

Thank you for your message!

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 = '

Please complete the form below to contact us:

'; } //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 .= '

'.$set_output.'
Contact A Team Member Regarding:

'; } //otherwise clear session and show login form else { $content .= '

Please login to your account to contact us directly

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 = <<