'Leftside', 'before_widget' => '', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', )); register_sidebars(1,array('name'=>'Rightside', 'before_widget' => '', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', )); #################my hits counter addition ################## function my_hits () { $file = "counter.txt"; if ( !file_exists($file)){ touch ($file); $handle = fopen ($file, 'r+'); // Let's open for read and write $count = 0; } else{ $handle = fopen ($file, 'r+'); // Let's open for read and write $count = fread ($handle, filesize ($file)); settype ($count,"integer"); } rewind ($handle); fwrite ($handle, ++$count); // Don't forget to increment the counter fclose ($handle); // Done echo '

'.$count.' pageviews
logged since July 2008

'; } ######################contact processor############## function kirimsurat($aksi) { global $_POST; $nom = $_POST['kunci']; $vers = $_POST['verifikasi']; $kunci[901] = "CINT4"; $kunci[902] = "ONGI5"; $kunci[903] = "N6OPI"; $kunci[904] = "IDR3K"; $kunci[905] = "4PPLE"; $betul = $kunci[$nom]; if ($aksi=='1') { if (empty($_POST['nama']) || empty($_POST['telp']) || empty($_POST['email']) || empty($_POST['pesan']) || empty($_POST['verifikasi'])) { echo "

Sorry, your message can't be sent. Your name, phone number, email, and message, can't be left empty.

Click here to repeat.

"; } elseif ($betul!=$vers) { echo "

Sorry, your message can't be sent... The verification code entered isn't the same as displayed.

Click here to repeat.

"; } else { $_POST['nama'] = stripslashes(trim($_POST['nama'])); $_POST['email'] = stripslashes(trim($_POST['email'])); $_POST['telp'] = stripslashes(trim($_POST['telp'])); $_POST['pesan'] = stripslashes(trim($_POST['pesan'])); $recipient = get_bloginfo('admin_email'); $ip_addr = $_SERVER["REMOTE_ADDR"]; $browser = $_SERVER['HTTP_USER_AGENT']; $nama = $_POST['nama']; $lembaga = $_POST['lembaga']; $telp = $_POST['telp']; $email = $_POST['email']; $judul = "Pesan dari $nama Melalui ". get_bloginfo('name') .""; $msg = $_POST['pesan']; $headers .= "From: ".$nama."<".$email.">\n"; $headers .= "Reply-To: ".$nama."<".$email.">\n"; $headers .= "Return-Path: ".$nama."<".$email.">\n"; // these two to set reply address $headers .= "Message-ID: <".time()."-".$email.">\n"; $headers .= "X-Mailer: PHP v".phpversion()."\n"; // These two to help avoid spam-filters # Boundry for marking the split & Multitype Headers $headers .= "MIME-Version: 1.0\n\n"; $headers .= "Content-Type: multipart/mixed; boundary=\"".$mime_boundary."\"\n"; $fullmsg .= wordwrap($msg, 76, "\n") . "\n\n"; $fullmsg .= "\n----------------------------------------------------------------------------\n"; $fullmsg .= "Sender info:\n\n"; $fullmsg .= "IP: " .$ip_addr. " \n"; $fullmsg .= "Browser/OS: " . wordwrap($browser, 76, "\n\t ") . "\n"; $fullmsg .= "----------------------------------------------------------------------------\n"; mail($recipient, $judul, $fullmsg, $headers); echo "

Thank You.
Your message, with these details has been sent
We would soon reply to your message below.

Name:
$nama
Organization:
$lembaga
Phone number:
$telp
Message:

$msg

"; } } else { $rd =rand( 901, 905); ?>

Name
Organization
Phone Number
E-mail Address
Message for us
  Insert verification code displayed by the image below.
Letters used are in capital.
  kunci