Niste odabrali kategoriju!"; } } if ($_SERVER['REQUEST_METHOD'] == "POST") { if (isBot() !== false) $error_msg[] = "Bez botova molim! UA prijavljen kao: ".$_SERVER['HTTP_USER_AGENT']; // lets check a few things - not enough to trigger an error on their own, but worth assigning a spam score.. // score quickly adds up therefore allowing genuine users with 'accidental' score through but cutting out real spam :) $points = (int)0; $badwords = array("adult", "beastial", "bestial", "blowjob", "clit", "cum", "cunilingus", "cunillingus", "cunnilingus", "cunt", "ejaculate", "fag", "felatio", "fellatio", "fuck", "fuk", "fuks", "gangbang", "gangbanged", "gangbangs", "hotsex", "hardcode", "jism", "jiz", "orgasim", "orgasims", "orgasm", "orgasms", "phonesex", "phuk", "phuq", "pussies", "pussy", "spunk", "xxx", "viagra", "phentermine", "tramadol", "adipex", "advai", "alprazolam", "ambien", "ambian", "amoxicillin", "antivert", "blackjack", "backgammon", "texas", "holdem", "poker", "carisoprodol", "ciara", "ciprofloxacin", "debt", "dating", "porn", "link=", "voyeur", "content-type", "bcc:", "cc:", "document.cookie", "onclick", "onload", "javascript"); foreach ($badwords as $word) if ( strpos(strtolower($_POST['comments']), $word) !== false || strpos(strtolower($_POST['ime']), $word) !== false ) $points += 2; if (strpos($_POST['comments'], "http://") !== false || strpos($_POST['comments'], "www.") !== false) $points += 2; if (isset($_POST['nojs'])) $points += 1; if (preg_match("/(<.*>)/i", $_POST['comments'])) $points += 2; if (strlen($_POST['ime']) < 3) $points += 1; if (strlen($_POST['comments']) < 15 || strlen($_POST['comments'] > 1500)) $points += 2; if (preg_match("/[bcdfghjklmnpqrstvwxyz]{7,}/i", $_POST['comments'])) $points += 1; // end score assignments foreach($requiredFields as $field) { trim($_POST[$field]); if (!isset($_POST[$field]) || empty($_POST[$field]) && array_pop($error_msg) != "Molimo Vas da ispunite sva obavezna polja i pokušate poslati ponovo.\r\n") $error_msg[] = "Molimo Vas da ispunite sva obavezna polja i pokušate poslati ponovo."; } if (!empty($_POST['ime']) && !preg_match("/^[a-zA-Z-'\s]*$/", stripslashes($_POST['ime']))) $error_msg[] = "Polje ne smije sadržavati posebne znakove - čćšđž.\r\n"; if (!empty($_POST['email']) && !preg_match('/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+' . '(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i', strtolower($_POST['email']))) $error_msg[] = "To nije valjana e-mail adresa.\r\n"; if (!empty($_POST['url']) && !preg_match('/^(http|https):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i', $_POST['url'])) $error_msg[] = "Nevažeći URL.\r\n"; if ($error_msg == NULL && $points <= $maxPoints) { $subject = "Poruka sa odvjetnica Klisanin stranice"; $poruka = "Poruka sa odvjetnica Klisanin stranice: \n\n"; foreach ($_POST as $key => $val) { if (is_array($val)) { foreach ($val as $subval) { $poruka .= ucwords($key) . ": " . clean($subval) . "\r\n"; } } else { $poruka .= ucwords($key) . ": " . clean($val) . "\r\n"; } } if (strstr($_SERVER['SERVER_SOFTWARE'], "Win")) { $headers = "From: $yourEmail\r\n"; $headers .= "Reply-To: {$_POST['email']}\r\n"; } else { $headers = "From: $yourWebsite <$yourEmail>\r\n"; $headers .= "Reply-To: {$_POST['email']}\r\n". "MIME-Version: 1.0\r\n". "Content-type: text/plain; charset=UTF-8\r\n"; } if (mail($yourEmail,$subject,$poruka,$headers)) { if (!empty($thanksPage)) { header("Location: $thanksPage"); exit; } else { $result = 'Vaša poruka je uspješno poslana.'; $disable = true; } } else { $error_msg[] = 'Vaša poruka nije poslana. ['.$points.']'; } } else { if (empty($error_msg)) $error_msg[] = 'Vaš mail izgleda kao spam, te se ne može poslati. ['.$points.']'; } } function get_data($var) { if (isset($_POST[$var])) echo htmlspecialchars($_POST[$var]); } ?> Odvjetnički ured Klišanin - Kontakt
GREŠKA: '. implode("
", $error_msg) . "

"; } if ($result != NULL) { echo '

'. $result . "

"; } ?>
" />
" />
" />
/>

Odvjetnički ured Vlatka Klišanin

Miramarska 24 | 10000 Zagreb

Imenik odvjetnika Hrvatske odvjetničke komore

IBAN: HR9123400091160702046 kod Privredne banke Zagreb d.d. | S.W.I.F.T. PBZGHR2X

(+385) 99 7016 177