'6Le5AFsUAAAAAHYQyxCexZZdXIcY4ixl_sudExYl', 'response' => $_POST["captcha"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { echo '



Captcha error.

'; die(); } else if ($captcha_success->success==true) { $msg="Subject: ".$_POST['Subject']."\n". "Nume: ".$_POST['Nume']."\n". "Prenume: ".$_POST['Prenume']."\n". "Companie: ".$_POST['Companie']."\n". "Strada: ".$_POST['Strada']."\n". "Localitate: ".$_POST['Localitate']."\n". "Tara: ".$_POST['Tara']."\n". "Email: ".$_POST['Email']."\n". "Telefon: ".$_POST['Telefon']."\n". "Mesaj: ".strip_tags($_POST['Message']); $send=regimail('info@elmas.ro', 'Formular cerere oferta website Elmas',nl2br($msg)); if(!isset($send['ERROR'])){ echo '



'._ORDERSENT.'
'._THANKYOU.'

'; }else{ echo '



'.$send['ERROR'].'

'; } } die(); } if(isset($_POST['op']) && $_POST['op']=='application'){ global $id, $nume, $rating, $titlu, $review; $response = $_POST["captcha"]; $url = 'https://www.google.com/recaptcha/api/siteverify'; $data = array( 'secret' => '6Le5AFsUAAAAAHYQyxCexZZdXIcY4ixl_sudExYl', 'response' => $_POST["captcha"] ); $options = array( 'http' => array ( 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $verify = file_get_contents($url, false, $context); $captcha_success=json_decode($verify); if ($captcha_success->success==false) { echo '



Captcha error.

'; die(); } else if ($captcha_success->success==true) { $msg="Job: ".$_POST['jobname']."\n". "Nume: ".$_POST['nume']."\n". "Prenume: ".$_POST['prenume']."\n". "E-mail: ".$_POST['email']."\n". "Tel: ".$_POST['phone']."\n". "Message: ".strip_tags($_POST['message']); $send=regimail('info@elmas.ro', 'Aplicatie loc de munca website Elmas',nl2br($msg)); if(!isset($send['ERROR'])){ echo '



'._ORDERSENT.'
'._THANKYOU.'

'; }else{ echo '



'.$send['ERROR'].'

'; } } die(); } if(isset($_GET['data']) && $_GET['data']!=''){ $data2=str_replace('.html','',$_GET['data']); $getcat=$data2; $check=mysqli_fetch_assoc(sql_query("select * from _pages_".$currentlang." where link='".mysqli_real_escape_string($dbi, $getcat)."'",$dbi)); if(is_array($check)){ $e3=(int)$check['id']; $keys=stripslashes($check['keywords']); $title=stripslashes($check['catname']).' - '.$sitename; $head_description=strip_tags(stripslashes($check['title'])); switch($currentlang){ case 'ro': $getlink=mysqli_fetch_assoc(sql_query("select link from _pages_en where id=".$e3, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/en/'.$getlink['link']; break; case 'en': $getlink=mysqli_fetch_assoc(sql_query("select link from _pages_ro where id=".$e3, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/ro/'.$getlink['link']; break; } include 'article.php'; } $check=mysqli_fetch_assoc(sql_query("select id, keywords, metatitle, title, catname from _categories_".$currentlang." where link='".mysqli_real_escape_string($dbi, $getcat)."'",$dbi)); if(is_array($check)){ $e3=(int)$check['id']; $keys=stripslashes($check['keywords']); $title=stripslashes($check['metatitle']).' - '.$sitename; $head_description=strip_tags(stripslashes($check['title'])); switch($currentlang){ case 'ro': $getlink=mysqli_fetch_assoc(sql_query("select link from _categories_en where id=".$e3, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/en/'.$getlink['link']; break; case 'en': $getlink=mysqli_fetch_assoc(sql_query("select link from _categories_ro where id=".$e3, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/ro/'.$getlink['link']; break; } include 'categorie.php'; } $check=mysqli_fetch_assoc( sql_query( "select _products_".$currentlang.".`id`, _products_".$currentlang.".`keywords`, _products_".$currentlang.".`name`, _products_".$currentlang.".`kat`, _products_".$currentlang.".`promo_start`, _products_".$currentlang.".`alcim`, (select _images.filename from _images where _images.product_id=_products_".$currentlang.".id order by _images.id asc limit 0,1) as filename, _categories_".$currentlang.".cat_img, _categories_".$currentlang.".id as cat_id from `_products_".$currentlang."` LEFT JOIN _categories_".$currentlang." ON _products_".$currentlang.".kat=_categories_".$currentlang.".id where _products_".$currentlang.".`link` like '".mysqli_real_escape_string($dbi, $getcat)."'" ,$dbi) ); if((int)$check['id']!=0){ $id=(int)$check['id']; $keys=stripslashes($check['keywords']); $title=''; $head_description=''; $title.=stripslashes($check['name']).' - '.$sitename; $head_description.=stripslashes($check['alcim']); $metaog=' '."\n"; if($check['filename']!=''){ $metaog.=''."\n"; } switch($currentlang){ case 'ro': $getlink=mysqli_fetch_assoc(sql_query("select link from _products_en where id=".$id, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/en/'.$getlink['link']; break; case 'en': $getlink=mysqli_fetch_assoc(sql_query("select link from _products_ro where id=".$id, $dbi)); if($getlink['link']!='') $getlink['link'].='.html'; $langlink='/ro/'.$getlink['link']; break; } include 'pagina_produs.php'; } } if($do==''){ include 'header.php'; include 'start.php'; include 'footer.php'; } ?>