CONACT_US.HTM                SOURCE CODE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">
<TITLE>SwiftProductions.com.au Australian website and graphic design specialist</TITLE>
<BASE href="http://www.swiftproductions.com.au">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- <LINK HREF="style.css" TYPE="text/css" REL="stylesheet"> -->
<style>
td, table{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
vertical-align:top;
line-height:12px;
color:#7F7F7F;

}


form { margin:0px; padding:0px}
body { margin:0px; padding:0px; background-color: #FFFFFF}

a { color:#E93400; text-decoration:none}
a:hover{ text-decoration:underline}

span a { color:#E93400; text-decoration:underline}
span a:hover{ text-decoration:none}

.list ul{margin:0px; padding:0px; list-style:none; line-height:19px;}
.list ul li{ background:url(images/list_marker.gif) no-repeat left top; padding:0 0 0 10px}
.list ul li a{ color:#E93400; text-decoration:underline}
.list ul li a:hover{text-decoration:none}

.policy{ color:#7F7F7F}
.policy a{ color:#000000; text-decoration:none}
.policy a:hover{ text-decoration:underline}

span{ color:#000000}

strong a{ font-size:10px}

strong{ font-size:10px}
b{ color:#000000}

.datain {
width:191px;
height:21px;
font-family:verdana;
font-size:9px;
color: #7F7F7F;
padding:2 0 0 6px;
border-color:#D5D5D5;
border-style:solid;
border-width:1px;
background-color:#F8F8F8
}

.messagebox {
width:191px;
height:102px;
font-family:verdana;
font-size:9px;
color:#7F7F7F;
overflow:hidden;
padding:2 0 0 6px;
border-color:#D5D5D5;
border-style:solid;
border-width:1px;
background-color:#F8F8F8
}
.buttons{
font-family:verdana;
font-size:9px;
color: #E93400;
}
.checkboxes {
position:relative;
width:191px;
height:21px;
font-family:verdana;
font-size:9px;
color: #7F7F7F;
}

</style>
<script type="text/javascript" src="gradualfader.js">

/***********************************************
* Gradual Element Fader- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>

<script type="text/javascript">
function test () {

var success;

success=1; // set it to TRUE

if (((document.feedback.name.value).length == 0) || ((document.feedback.name.value) == "your name*: "))
success = -1; // not good!!!
if (((document.feedback.email.value).length == 0) || ((document.feedback.email.value) == "e-mail*: "))
success = -1; // not good!!!
if (((document.feedback.telephone.value).length == 0) || ((document.feedback.telephone.value) == "telephone*: "))
success = -1; // not good!!!

if (success == -1) {
alert("At LEAST one REQUIRED field was blank. Please provide us the information requested.")
return false;
} else
return true;
}

</script>
</HEAD><br>
<script type="text/javascript">
gradualFader.init() //activate gradual fader
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1334413-3";
urchinTracker();
</script>

<BODY>

<table cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="width:766px; height:780px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:42px; ">
<p align="center">
<br>
&nbsp;</td>
<td style="width:676px; height:780px">
<table cellspacing="0" cellpadding="0">

<tr>
<td style="width:676px; height:119px; background-image: url(images/grey_bg.gif); background-repeat:no-repeat">
<img src="http://www.swiftproductions.com.au/images/c_name.jpg" alt="" hspace="3" width="675" height="180"></td>
</tr>
<tr>
<td style="width:676px; background-image: url('images/grey_bg.gif'); background-repeat:no-repeat">
<a href="index.html">
<img src="http://www.swiftproductions.com.au/images/link.gif" alt="" style="margin-right:18px" border="0" width="13" height="15"></a></td>
</tr>

<tr>
<td style="width:676px; height:563px">
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:226px; height:563px">
<a href="services.html">
<img src="http://www.swiftproductions.com.au/images/back.gif" class="gradualfader" alt="" border="0" width="113" height="113"></a><img src="http://www.swiftproductions.com.au/images/pic5_1.gif" alt="" width="113" height="113"><br>
<img src="http://www.swiftproductions.com.au/images/pic5_2.gif" alt="" width="226" height="226"><br>
<a href="about_us.html">

<img src="http://www.swiftproductions.com.au/images/comp.gif" class="gradualfader" alt="" border="0" width="113" height="113"></a><a href="website_design.html"><img src="http://www.swiftproductions.com.au/images/srv.gif" class="gradualfader" alt="" border="0" width="113" height="113"></a><br>
<a href="recent_work.html">
<img src="http://www.swiftproductions.com.au/images/sol.gif" class="gradualfader" alt="" border="0" width="113" height="111"></a><a href="contact_us.html"><img src="http://www.swiftproductions.com.au/images/cont.gif" class="gradualfader" alt="" border="0" width="113" height="111"></a><br> </td>
<td style="width:450px; height:563px; background-color:#EBEBEB; background-image:url(images/top.gif); background-repeat:no-repeat">
<table cellspacing="0" cellpadding="0" width="455">
<tr>
<td style="width:455px; height:563px; background-image:url('images/bottom.gif'); background-repeat:no-repeat; background-position: left bottom" class="list">
<div align="center">

<table border="0" style="border-collapse: collapse" id="table1" width="431">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<img border="0" src="http://www.swiftproductions.com.au/images/title5_1.gif" width="211" height="23"></td>
</tr>
<tr>

<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="120">
<img border="0" src="http://www.swiftproductions.com.au/images/pic5_3.gif" width="110" height="72"></td>
<td width="307">
<span style="font-weight: 700">
<font size="2" color="#7F7F7F">
SwiftProductions.com.au<br>

ABN: </font></span><b>
<span id="_ctl1_ABNLabel">
<font color="#7F7F7F" size="2">
84&nbsp;723&nbsp;182&nbsp;610</font></span></b><span style="font-weight: 700"><font size="2" color="#7F7F7F"><br>
<br>
Postage Address:</font></span><font size="2"><span lang="EN-AU" style="font-size: 10pt; font-weight: 700"><font color="#7F7F7F"><br>

PO Box 242<br>
Mitchell, ACT 2911</font></span></font></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">

Contact us today for an
obligation free quote. Just
complete the short form
below and one of our
customer service
representatives will contact
you shortly. Alternatively,
give us a call and speak
directly to our friendly
sales team and arrange an
appointment today</td>
</tr>
<tr>
<td colspan="2">
&nbsp;</td>
</tr>
<tr>
<td colspan="2">

<strong>
<font style="font-size: 9pt">Customer Service:</font></strong><font style="font-size: 9pt"><br>
Phone:&nbsp;1300 55 85 86<br>
Fax: +61 2 62622619<br>
E-mail:&nbsp;&nbsp;<a href="mailto:sales@swiftproductions.com.au">sales@swiftproductions.com.au</a></font></td>
</tr>
<tr>
<td colspan="2">

&nbsp;</td>
</tr>
<tr>
<td colspan="2">

<font color="#7F7F7F" style="font-size: 9pt">
<span style="font-size: 9pt; font-weight:700">
<font color="#7F7F7F">Customer Support:</strong><br>
</font></span></font>
<font style="font-size: 9pt">
Phone: 0422 180 555 (24
hours)<br>
E-mail
<a href="mailto:support@swiftproductions.com.au">
support@swiftproductions.com.au</a></font></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>

<td colspan="2">
<table cellspacing="0" cellpadding="0" id="table2">
<form onFocus="this.value=''" onSubmit="return test()" action="mailer.php" name="feedback" method="post">
<tr>
<td style="width:198px; height:128px">
<table cellspacing="0" cellpadding="0" id="table3">
<tr>
<td style="width:198px; height:27px">
<input class="datain" name="name" type="text" value="your name: (Field Mandatory)" size="20"></td>
</tr>
<tr>
<td style="width:198px; height:27px">
<input class="datain" name="company" type="text" value="your company: " size="20"></td>
</tr>
<tr>
<td style="width:198px; height:27px">
<input class="datain" name="telephone" type="text" value="contact : (Field Mandatory)" size="20"></td>
</tr>
<tr>
<td style="width:198px; height:27px">
<input class="datain" name="email" type="text" value="e-mail: (Field Mandatory)" size="20"></td>
</tr>
</table>
</td>
<td style="width:202px; height:128px">
<table cellspacing="0" cellpadding="0" id="table4">
<tr>
<td style="width:202px; height:109px">
<textarea class="messagebox" name="messagebox" cols="0" rows="0">message:</textarea></td>
</tr>
</table>
<tr>
<td class="checkboxes">

<input type="checkbox" name="web">Web Design&nbsp;&nbsp;
<input type="checkbox" name="graphic">Graphic Design</td>
<td class="checkboxes">

<input type="checkbox" name="updates">Web Updates
<input type="checkbox" name="general">General Enquiry
<br /></td>
</tr>

<tr>
<td class="checkboxes">

<input type="checkbox" name="print">Print Work&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="hosting">Hosting&nbsp;&nbsp;&nbsp;</td>
<td class="checkboxes">

<input type="checkbox" name="seo">SEO Work</td>
</tr>

<tr>
<td class="checkboxes" style="vertical-align: middle">

<strong>
<input class="buttons" type="reset" name="reset" value="Reset" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input class="buttons" type="submit" name="submit" value="Submit">
</strong>
<td class="checkboxes" rowspan="2">

&nbsp;<img src="CaptchaSecurityImages.php?width=100&amp;height=40&amp;characters=5" alt="Security Code" /><br />
<input id="sCode" name="security_code" type="text" size="33.5" /><br />
</td>
</tr>

<tr>
<td class="checkboxes">

&nbsp;</td>
</tr>

</table>
</td>
</tr>
</table>
</td>
</tr>

</table>
</form>
</div>

</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>

</table>
<p align="center">&nbsp;<a href="privacy_policy.html"><font color="#7F7F7F">Privacy Policy</font></a>&nbsp;&nbsp; <img src="images/img.gif" alt="">&nbsp;
<a href="testimonials.html"><font color="#7F7F7F">Testimonials</font></a>&nbsp;&nbsp; <img src="images/img.gif" alt="">&nbsp;&nbsp;
<a href="links.html"><font color="#7F7F7F">Links</font></a><br>

<br>
SwiftProductions.com.au © 2005-2008</td>
<td style="width:48px; height:780px"></td>
</tr>
</table>

</td>
</tr>
</table>
<script type="text/javascript">
gradualFader.init() //activate gradual fader
</script>
</BODY>
</HTML>

 

 

MAILER.PHP                    SOURCE CODE:

<?php
session_start();

// remember to set permissions for this script! If not, you
// may not get the email.....

$to = 'danny@swiftproductions.com.au'; //Your Email ADDRESS!!!!!!!!!!!!!!
$subj = 'Swiftproductions Contact Form';
$cr = "\n";

$name = $_POST['name'];
$company = $_POST['company'];
$telephone = $_POST['telephone'];
$email = $_POST['email'];
$messagebox = $_POST['messagebox'];
$web = $_POST['web'];
$graphic = $_POST['graphic'];
$print = $_POST['print'];
$updates = $_POST['updates'];
$general = $_POST['general'];
$seo = $_POST['seo'];


if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {
$body .= 'Name: ' . $name . $cr . 'Company: ' . $company . $cr . 'Telephone: ' . $telephone . $cr;
$body .= $body . 'email: ' . $email . $cr . 'Message Box: ' . $messagebox . $cr . $cr;
$body .= $body . 'Web: ' . $web . $cr . 'Graphic: ' . $graphic . $cr . 'Print: ' . $print . $cr;
$body .= $body . 'Updates: ' . $updates . $cr . 'General: ' . $general . $cr . 'seo: ' . $seo;

mail($to, $subj, $body);
unset($_SESSION['security_code']);
} else {
die('<p>The security image was wrong... please go back and try again.</p>'."\n");
}
?>

<script type="text/javascript">
gradualFader.init() //activate gradual fader
</script>

 

 

CAPTCHASECURITYIMAGE.PHP                   SOURCE CODE:

<?php
session_start();

/*
* File: CaptchaSecurityImages.php
* Author: Simon Jarvis
* Copyright: 2006 Simon Jarvis
* Date: 03/08/06
* Updated: 07/02/07
* Requirements: PHP 4/5 with GD and FreeType libraries
* Link: http://www.white-hat-web-design.co.uk/articles/php-captcha.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details:
* http://www.gnu.org/licenses/gpl.html
*
*/

class CaptchaSecurityImages {

var $font = 'monofont.ttf';

function generateCode($characters) {
/* list all possible characters, similar looking characters and vowels have been removed */
$possible = '23456789bcdfghjkmnpqrstvwxyz';
$code = '';
$i = 0;
while ($i < $characters) {
$code .= substr($possible, mt_rand(0, strlen($possible)-1), 1);
$i++;
}
return $code;
}

function CaptchaSecurityImages($width='120',$height='40',$characters='6') {
$code = $this->generateCode($characters);
/* font size will be 75% of the image height */
$font_size = $height * 0.75;
$image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream');
/* set the colours */
$background_color = imagecolorallocate($image, 255, 255, 255);
$text_color = imagecolorallocate($image, 20, 40, 100);
$noise_color = imagecolorallocate($image, 100, 120, 180);
/* generate random dots in background */
for( $i=0; $i<($width*$height)/3; $i++ ) {
imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color);
}
/* generate random lines in background */
for( $i=0; $i<($width*$height)/150; $i++ ) {
imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color);
}
/* create textbox and add text */
$textbox = imagettfbbox($font_size, 0, $this->font, $code) or die('Error in imagettfbbox function');
$x = ($width - $textbox[4])/2;
$y = ($height - $textbox[5])/2;
imagettftext($image, $font_size, 0, $x, $y, $text_color, $this->font , $code) or die('Error in imagettftext function');
/* output captcha image to browser */
header('Content-Type: image/jpeg');
imagejpeg($image);
imagedestroy($image);
$_SESSION['security_code'] = $code;
}

}

$width = isset($_GET['width']) ? $_GET['width'] : '120';
$height = isset($_GET['height']) ? $_GET['height'] : '40';
$characters = isset($_GET['characters']) && $_GET['characters'] > 1 ? $_GET['characters'] : '6';

$captcha = new CaptchaSecurityImages($width,$height,$characters);


?>