systembox(); } else { if ($subAction == 'outbox') { outbox(); } else { if ($subAction == 'archiv') { archiv(); } else { if ($subAction == 'view') { view(); } else { if ($subAction == 'newpost') { newMessage(); } else { if ($subAction == 'submitpost') { submitMessage(); } else { if ($subAction == 'remove_message') { remove_message(); } } } } } } } } /** functions **/ // inbox function inbox() {
<?php require_once 'admin/includes/init.php'; if (isset($_POST['name'])) { $direct = "thankyou.php"; $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; if ($name === "") { //echo "Nope"; $sendMail = submitMessage($direct, $name, $email, $message); } else { //echo "Yes"; //Send the robot away... } } ?> <!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Mia Salaveria - Portfolio</title> <script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"></script> <link rel="stylesheet" href="css/foundation.css" /> <link rel="stylesheet" href="css/main.css" /> <link rel="stylesheet" href="css/animate.css" /> <link href="https://file.myfontastic.com/n6vo44Re5QaWo8oCKShBs7/icons.css" rel="stylesheet"> </head>
<?php require 'lib/common.php'; include_once 'securimage/securimage.php'; $securimage = new Securimage(); if (isset($_POST['captcha_code'])) { if ($securimage->check($_POST['captcha_code']) == true) { submitMessage($_POST['Question'], $_POST['Message'], $_POST['Name'], $_POST['emailAddress'], $_POST['Website']); $success = "<span class='alert alert-success col-12 text-center'>Your support inquiry was sucessfully sent - we will get back to you asap</span><br /><br />"; $_POST = 0; } else { $error = "<span class='alert alert-danger'>The security code entered was incorrect.</span><br /><br />"; } } require 'inc/blocks/header.php'; require 'inc/blocks/menu.php'; require 'inc/blocks/sidebar.php'; ?> <div class='col-8 col-lg-8 well' style='float:right;'> <?php if (isset($success)) { echo $success; } ?> <form name='submit-form' method='POST'> <fieldset> <legend>Contact Us</legend> <div class="form-group">