POST '; print_r($_POST); echo ''; echo '
COOKIE '; print_r($_COOKIE); echo 'SHA1 PHPSESSID: '.sha1($_SESSION['no_guests']); echo ''; /* remove when done */ /* Change the following */ $site = 'jardindeamerica.com'; $receiver_email = 'infojardinspanishschool@gmail.com'; // $receiver_email = 'duncansprivateemail@gmail.com'; $mail_server = 'reservations@tropicaltravelassociation.com'; $subject = 'Desde la pagina \'Contact Us\' en www.'.$site; /* End changes */ $self = htmlentities($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8'); $case = ''; function attack($case) { $hack_subject = 'Hack attempt'; $hack_body = 'Hack from '.$_SERVER['REMOTE_ADDR']. $post = print_r($_POST, TRUE); $session = print_r($_SESSION, TRUE); $cookie = print_r($_COOKIE, TRUE); $server = print_r($_SERVER, TRUE); $hack_body = 'HACK: '.$case.' POST '.$post.' SESSION '.$session.' COOKIE '.$cookie.' SERVER '.$server; mail('duncansprivateemail@gmail.com', $hack_subject, $hack_body, 'From: '.$mail_server); unset($_POST); sleep(10); header('Location: http://www.google.com/'); } function generateRandomString($length = 40) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } if(isset($_POST['submit'])) { $_POST['count'] = $_POST['count'] + 1; foreach($_POST as $key => $value) { $clean[$key] = $_POST[$key]; $clean[$key] = trim($clean[$key]); $clean[$key] = htmlentities($clean[$key], ENT_QUOTES, 'UTF-8'); } } $num_1 = 10 * (rand(1, 9)); $num_2 = rand(1, 9); $result = $num_1 + $num_2; if(!isset($_POST['submit'])) { $no_guests = generateRandomString(); $_SESSION['no_guests'] = $no_guests; $submit = sha1($no_guests); $age = sha1(generateRandomString()); $date = sha1(generateRandomString()); $arrivial = sha1($_SESSION['no_guests']); $departure = sha1(generateRandomString()); $show_hide_form = 'show'; $message = 'If you would like to make a reservation please do so here: Reservations.
Please fill out the form below. I will be asking more questions later, but first I want to hear what you think is important. |
My prices start as low as $1000 for a basic site, plus
expenses. Hosting (where the site is stored) is separate and costs
$10 a month or $100.00 a year. I can help you reserve a domain name
(eg. your-url.com) if needed. If you already have a website please include the URL and give me an rough idea of who your clients are and what your business is. I speak both English and Spanish and many of my sites are bilingual, some have even more languages. I have access to native speaking Germans, French, Italians, Portuguese, Russians, Dutch and more. If you need a multilingual site I can make you one at a reasonable price. Making a website doesn't have to be difficult or expensive. Indeed sites that are difficult to make tend to be difficult to use – and that is precisely what we don't want. |