)/i", $_POST['comments'])) $points += 2; if (strlen($_POST['name']) < 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['name']) && !preg_match("/^[a-zA-Z-'\s]*$/", stripslashes($_POST['name']))) $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žeci URL.\r\n"; if ($error_msg == NULL && $points <= $maxPoints) { $subject = "Poruka sa migrit-energija.com"; $message = "Poruka sa migrit-energija.com web stranice: \n\n"; foreach ($_POST as $key => $val) { if (is_array($val)) { foreach ($val as $subval) { $message .= ucwords($key) . ": " . clean($subval) . "\r\n"; } } else { $message .= ucwords($key) . ": " . clean($val) . "\r\n"; } } //$message .= "\r\n"; //$message .= 'IP: '.$_SERVER['REMOTE_ADDR']."\r\n"; //*$message .= 'Browser: '.$_SERVER['HTTP_USER_AGENT']."\r\n"; //$message .= 'Points: '.$points; 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,$message,$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]); } ?> Migrit energija

Naš ured

Adresa: Zagrebačka cesta 192, HR-10000 Zagreb

Telefon: +385 1 4846210

Fax: +385 1 4846216

Email:

Pošaljite nam email

" />
" />
" />
GREŠKA: '. implode("
", $error_msg) . "

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

'. $result . "

"; } ?>

/>

Opći podaci o društvu

OIB: 50334142533

Registrirano pri Trgovačkom sudu u Zagrebu pod brojem (MBS): 080796443.

Osoba ovlaštena za zastupanje: Grigory Edel

Direktor: Oksana Dvinskykh

Temeljni kapital: 200.000 HRK u cijelosti uplaćen.

Račun: Hypo Alpe-Adria-Bank d.d. Zagreb | IBAN: HR3325000091101373356