ACC SHELL

Path : /srv/www/vhosts/pzk/pl/
File Upload :
Current File : //srv/www/vhosts/pzk/pl/odeslat.php

<?php

   	if( !( $_POST['secinp'] && $_POST['secinp'] === substr(md5($_POST['last_id']),3,5) && (abs((time()%10000)-$_POST['last_id'])<300)) ){
		$capcha_wrong = true;
	}
	else{  
       $trans= array(
            "jmeno" => "Jméno",
           
            "telefon" => "Telefon",
            "firma" => "Firma",
    
              "dotaz" => "Dotaz",
          );       
         
$set = $_REQUEST['set'];         


  $body0= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\" />";
 // $body.= "Dotaz z webu Magnety PL \n\n";
  
//  foreach ($set as $key => $val){
//    $body.= strtr($key, $trans)." : $val <br/>\n";
//  }

   $body.= $trans["jmeno"].": ".$set['jmeno']." \n";
   if ($set['firma']){
     $body.= $trans["firma"].": ".$set['firma']." \n";
   } $body.= $trans["telefon"].": ".$set['telefon']." \n\n";
    $body.= $trans["dotaz"].": ".$set['dotaz']." \n";
  

  
  $body_utf = $body;// ."\n\n Tento email byl odeslán z formuláře umístěného zde: ".".$_SERVER['SERVER_NAME']."/".$_REQUEST['return']."";  


//  $body.= "\n\nVáš dotaz byl v pořádku přijat. Děkujeme za váš zájem a budeme vás v krátké době kontaktovat.\n\n Na tento email neodpovídejte.";

$body= (iconv("UTF-8", "CP1250", $body));
  $body_utf1 = $body;
    
           

  
  $set= $_REQUEST['set'];
  
	
  
  
  
  $body0= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";



  $body_utf = $body;// ."\n\n Tento email byl odeslán z formuláre umísteného zde: ".$_SERVER['SERVER_NAME']."/".$_REQUEST['return']."";  


//  $body.= "\n\n Na tento email neodpovídejte.";

$body= (iconv("UTF-8", "CP1250", $body_utf1));

 // echo $body_utf;

     require_once('./htmlMimeMail5/htmlMimeMail5.php');

  $mail = new htmlMimeMail5();
    $mail->setFrom('magnesy@cespolgroup.com');
  $mail->setSubject('WEB PZK Magnesy - dotaz od '.$set['jmeno']);
  $mail->setPriority('normal');
  $mail->setText($body_utf);
  $mail->setTextCharset("windows-1250");
  //print_r($mail);
  
  $mail->send(array('magnesy@cespolgroup.com'));
  $mail->send(array('jan.kratochvil.jnr@pzk.cz'));  
      }
      
  if ($mail && !$capcha_wrong)  header("Location: ".$_REQUEST['return']."/?result=ok"); 
  else header("Location: ./?result=err");  

?>

ACC SHELL 2018