Файловый менеджер - Редактировать - /var/www/zerocorporation/ProcessRequest.php
Назад
<?php include("App_Core/Core.php"); if(isset($_POST['SubmitRequest'])){ $_SESSION['Firstname'] = ucfirst($_POST['Firstname']); $_SESSION['Lastname'] = ucfirst($_POST['Lastname']); $_SESSION['Company'] = ucfirst($_POST['Company']); $_SESSION['Phone'] = $_POST['Phone']; $_SESSION['Email'] = ucfirst($_POST['Email']); //Validate if($_SESSION['Firstname'] == ""){ $error[1] = '1'; } if($_SESSION['Lastname'] == ""){ $error[2] = '1'; } if($_SESSION['Company'] == ""){ $error[3] = '1'; } if($_SESSION['Phone'] == ""){ $error[4] = '1'; } if($_SESSION['Email'] == ""){ $error[5] = '1'; } if(!isset($error)) { $Subject = 'New Demo Request'; $Message = "<head> <title>Zero Corporation | New Demo Request.</title> </head> <body> <table width='650' align='center' style='border: solid 1px #cccccc; margin: 0 auto; padding: 20px 30px 20px 30px; font-family: Calibri; font-size: 95%'> <tr> <td width='420'><div style='height: 25px; font-weight: bold; font-size: 1.3em;'><img src='http://www.zerocorporation.com/images/LogoTransparent2.png' alt='Zero Corporation' name='logo' width='218' align='left'></div></td> <td width='218' align='right' style='color:#ff9933; font-family:Calibri; font-style:italic;'>Date: ".date("d/M/Y")."</td> </tr> <tr> <td colspan='2'> <div style='margin-top: 30px; padding-bottom: 25px;'> <p>We have a new demo request for <strong>".$_POST['Product']."</strong></p> <p> Firstname: <strong>".$_POST['Firstname']."</strong><br> Lastname: <strong>".$_POST['Lastname']."</strong><br> Email: <strong>".$_POST['Email']."</strong><br> Phone: <strong>".$_POST['Phone']."</strong><br> Company: <strong>".$_POST['Company']."</strong><br> </p> <p>Kind Regards,<br> ZeroCorporation Website</p> </div> </td> </tr> <tr> <td colspan='2' align='right'>© ".date('Y')." | ZeroCorporation.com.au </td> </tr> </table> </body> </html>"; if(EmailWebsite(Setting('Email'), $Subject, $Message)) { header("Location: ".$_POST['Product']."?Sent=True"); die; }else{ header("Location: ".$_POST['Product']."?Sent=False"); die; } }else{ header("Location: ".$_POST['Product']."?Message=Please fill out all feilds"); die; } }else{ header("Location: /"); die; } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка