ACC SHELL

Path : /srv/www/vhosts/calyx/web/
File Upload :
Current File : /srv/www/vhosts/calyx/web/odeslat.php

<?php
	include "./classes/classes.php";

	$pripojeni = new CDatabaze ( $conf_uzivatel, $conf_heslodb, $conf_server, $conf_databaze);
 
  

if ($_REQUEST['submit']){ 

       $trans= array(
            "jmeno" => "Jméno",
            "email" => "E-mail",
            "mesto" => "Město",
            "predmet" => "Předmět",
            "vzkaz" => "Vzkaz",
            "nazev_produktu" => "Mám zájem o",
            );       
       
$set = $_REQUEST['set'];         
   
    $body="Dobrý den,\n\n";          
    $body.= $trans["jmeno"].": ". $_REQUEST['name']."\n";
    $body.= $trans["email"].": ". $_REQUEST['email']."\n";
    $body.= $trans["vzkaz"].": ". $_REQUEST['message']."\n";


    
    $adresa="Dotaz z webu ".$_SERVER['HTTP_HOST'];
 
  $body_utf1 = $body;
 
  
 
$pripojeni->dotaz("INSERT INTO ".$GLOBALS['config_db_prefix']."odeslano (cas, nazev,jmeno,email, text) VALUES ('".time()."','".$adresa."',
 '".$_REQUEST['name']."','".$_REQUEST['email']."','".nl2br($body_utf1)."')");
             
     
  $set = $_REQUEST['set'];
  
	
  
  
  
  $body0= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";

  $body_utf = $body;

$body= (iconv("UTF-8", "CP1250", $body));
  
require_once('./classes/htmlMimeMail5/htmlMimeMail5.php');
  
  $mail = new htmlMimeMail5();
  $mail->setFrom($_REQUEST['email']);
  $mail->setSubject(  '=?utf-8?B?'.base64_encode("Dotaz z webu Calyx").'?='  );
  $mail->setPriority('normal');
  $mail->setText($body_utf1);
 
  $mail->setTextCharset("utf-8");
  //$mail->send(array('martin.capek@4g.cz'));
  $mail->send(array('forms4g@gmail.com'));
   $mail->send(array('info@calyx.cz'));
    $mail->send(array('radim.zatopek@calyx.cz'));

 
  }
  
   if ($mail ){ header("Location:".$_REQUEST['return']."?result=ok".$_REQUEST['hook']);  }
//  else { header("Location:".$_REQUEST['return']."?result=err");   }
  
// header("Location: ".$_REQUEST['return']."/krasnejsi-microsite/?result=ok"); 
?>

ACC SHELL 2018