parts = array(); $this->to = ""; $this->from = ""; $this->headers = ""; $this->subject = ""; $this->body = ""; } //function - mime_mail // void add_attachment(string message, [string name], [string ctype], [string encode]) // vlozi prilohu do objektu spravy function add_attachment($message, $name = "", $ctype = "application/octet-stream", $encode) { $this->parts[] = array("message" => $message, "name" => $name, "ctype" => $ctype, "encode" => $encode); } //function - add_attachment // void build_message(array part) // vytvorenie casti viacdielnej spravy function build_message($part) { $message = $part["message"]; if($part["encode"]!="8bit") { $message = chunk_split(base64_encode($message)); $encoding = "base64"; } else { $encoding = $part["encode"]; } //if $charset = "iso-8859-2"; return "Content-Type: ".$part["ctype"].";\n". " charset=\"".$charset."\"". ($part["name"] ? ";\n name=\"".$part["name"]."\"" : ""). "\nContent-Transfer-Encoding: ".$encoding."\n\n". $message."\n"; } //function - build_message function build_multipart() { $boundary = "Boundary-00_".md5(uniqid(time())); $multipart = "Content-Type: Multipart/Mixed;\n"." boundary=\"".$boundary."\"\n\n"."--".$boundary; for($i=sizeof($this->parts)-1; $i>=0; $i--) { $multipart = $multipart."\n".$this->build_message($this->parts[$i])."--".$boundary; } //for - $i return $multipart."--\n"; } //function - build_multipart // void get_mail() // vracia vytvorenu spravu function get_mail($complete = TRUE) { $mime = ""; if (!empty($this->from)) { $mime .= "From: ".$this->from."\n"; } //if if (!empty($this->headers)) { $mime .= $this->headers."\n"; } //if if ($complete) { if (!empty($this->to)) { $mime .= "To: ".$this->to."\n"; } //if if (!empty($this->subject)) { $mime .= "Subject: ".$this->subject."\n"; } //if } //if if (!empty($this->body)) { $this->add_attachment($this->body, "", "text/plain", "8bit"); } //if $mime .= "MIME-Version: 1.0\n".$this->build_multipart(); return $mime; } //function - get_mail // void send() // odosiela spravu - posledna funkcia triedy, ktoru je potrebne zavolat function send() { $mime = $this->get_mail(FALSE); mail($this->to, $this->subject, "", $mime); } //function - send } //class ?> fp, 1024); if(ereg("^([0-9]+).(.*)", $line, $data)) { $recv_code = $data[1]; $recv_msg = $data[2]; $ret = array($recv_code, $recv_msg); } //if return $ret; } //function read_line // dialogue() odosiela prikaz $cmd na vzdialeny server // a kontroluje, ci je numericky navratovy kod ten, // ktory ocakavame ($code) function dialogue($code, $cmd) { $ret = true; fwrite($this->fp, $cmd."\r\n"); $line = $this->read_line($this->fp); if($line == false) { $ret = false; $this->lastmsg = ""; } else { $this->lastmsg = $line[0]." ".$line[1]; if($line[0]!=$code) { $ret = false; } //if } //if return $ret; } //function // error_message() vypisuje chybovu spravu, // vratane poslednej spravy prijatej zo serveru SMTP function error_message() { //print "SMTP protocol failure (".$this->lastmsg.").
"; } //function // crlf_encode() upravuje konce riadkov // RFC 788 specifikuje CRLF (hex 0x13 0x10) ako konce riadkov function crlf_encode($data) { # make sure that the data ends with a newline character # zaistenie ukoncenie data znakom konca riadku $data = $data."\n"; # remove all CRs and replace single LFs with CRLFs # odstranenie vsetkych znakov CR a nahradenie samostatnych znakov LF dvojicou znakov CRLF $data = str_replace("\n", "\r\n", str_replace("\r", "", $data)); # in the SMTP protocol a line consisting of a single "." has # a special meaning. We therefore escape it by appending one space. # v protokole SMTP ma riadok obsahujuci jedinu "." # specialny vyznam, preto sa mu vyhneme pridanim jednej medzery $data = str_replace("\n.\r\n", "\n. \r\n", $data); return $data; } //function // handle_email() komunikuje so serverom SMTP function handle_email($from, $to, $data) { # split recipient list $rcpts = explode(",", $to); $err = false; if(!$this->dialogue(250, "HELO phpclient") || !$this->dialogue(250, "MAIL FROM:$from")) { $err = true; } //if for($i=0; !$err && $idialogue(250, "RCPT TO:".$rcpts[$i])) { $err = true; } //if } //for - $i if($err || !$this->dialogue(354, "DATA") || !fwrite($this->fp, $data) || !$this->dialogue(250, ".") || !$this->dialogue(221, "QUIT")) { $err = true; } //if if($err) { $this->error_message(); } //if return !$err; } //function // connect() pripaja sa na server SMTP na standardnom porte 25 function connect($hostname) { $ret = false; @$this->fp = fsockopen($hostname, 25); if($this->fp) { $ret = true; } //if return $ret; } //function // send_email() pripaja sa na server SMTP, volitelne koduje spravu // a odosiela $data. Adresa odosielatela obalky je v premennej $from. // Ciarkami oddeleny zoznam prijemcov je ocakavany v premennej $to. function send_email($hostname, $from, $to, $data, $crlf_encode = 1) { if(!$this->connect($hostname)) { //print "cannot open socket
"; return false; } //if $line = $this->read_line(); $ret = false; if($line && $line[0] == "220") { if($crlf_encode) { $data = $this->crlf_encode($data); } //if $ret = $this->handle_email($from, $to, $data); } else { $this->error_message(); } //if fclose($this->fp); return $ret; } //function } //class ?> TLAKON SK, s.r.o.
"; if (!empty($page)) { $html['begin'] .= "[www.tlakon.sk]"; } //if $html['begin'] .= "
"; /* if ($lng=="sk") { $html['begin'] .= "slovensky"; } else { $html['begin'] .= "slovensky"; } //if $html['begin'] .= ""; if ($lng=="en") { $html['begin'] .= "english"; } else { $html['begin'] .= "english"; } //if $html['begin'] .= ""; if ($lng=="de") { $html['begin'] .= "deutsch"; } else { $html['begin'] .= "deutsch"; } //if */ $html['begin'] .= "
"; $html['begin'] .= "
"; $html['begin'] .= "
Menu: "; if ($lng=="sk") { $html['begin'] .= "[slovensky]"; } else { $html['begin'] .= "[slovensky]"; } //if $html['begin'] .= " | "; if ($lng=="en") { $html['begin'] .= "[english]"; } else { $html['begin'] .= "[english]"; } //if $html['begin'] .= " | "; if ($lng=="de") { $html['begin'] .= "[deutsch]"; } else { $html['begin'] .= "[deutsch]"; } //if $html['begin'] .= " | "; $html['begin'] .= "[".$popis_menu[1][$lng]."]"; $html['begin'] .= " | "; $html['begin'] .= "[".$popis_menu[2][$lng]."]"; $html['begin'] .= " | "; $html['begin'] .= "[".$popis_menu[3][$lng]."]"; $html['begin'] .= " | "; // $html['begin'] .= "[".$popis_menu[4][$lng]."]"; // $html['begin'] .= " | "; $html['begin'] .= "[".$popis_menu[5][$lng]."]"; $html['begin'] .= " | "; $html['begin'] .= "[".$popis_menu[6][$lng]."]"; $html['begin'] .= "
"; $data = $html['begin']; ?>

Beztlakové a tlakové nádoby
Ohrievače vody a výmenníky tepla
špeciálne zariadenia podľa požiadaviek

Spoločnosť je certifikovaná podľa normy EN ISO 9001 : 2008. Výroba a produkty sú certifikované podľa Európskej smernice 97/23/EC, v SR nariadenie vlády č. 576/2002, modul H1.
Vyrábame produkty podľa technických predpisov AD 2000 -  Merkblatt HP - 0 a EN ISO 3834 - 2.

"; $obsah['en'] = "

Non-pressure and pressure vessels
Water heaters and Heat exchangers
Special devices according to customer needs

The company is certified according to EN ISO 9001 : 2008. Our production and products are certified according to 97/23/EC, in Slovak Republic regulation Nr.. 576/2002, module H1.
We produce our products according to technical regulations AD 2000 - Merkblatt HP - 0 a EN ISO 3834 - 2.

"; $obsah['de'] = "

Drucklose- und Druckbehälter
Wasserwärmer und Wärmetauscher
Spezielle Anlagen nach der Anforderung

Die Firma ist gemäß EN ISO 9001 : 2008 zertifiziert. Die Produktion und die Produkte sind gemäß 97/23/EC Richtlinie, in der Slowakischen Republik Regierungsverordnung Nr. 576/2002, Modul H1.
Wir bauen unsere Produkte gemäß technicschen Vorschriften AD 2000 - Merkblatt HP - 0 a ISO EN 3834 - 2.

"; $data .= $obsah[$lng]; ?>
"; $html['end']['sk'] .= "
TLAKON SK, s.r.o., Dlhá 88, 010 09, Žilina, Slovenská Republika
Tel.: +421 41 516 67 51-2, Fax: +421 41 516 67 50, E-mail: sales@tlakon.sk
"; $html['end']['en'] = "

TLAKON SK, s.r.o., Dlhá 88, 010 09, Žilina, Slovak Republic
Tel.: +421 41 516 67 51-2, Fax: +421 41 516 67 50, E-mail: sales@tlakon.sk
"; $html['end']['de'] = "

TLAKON SK, s.r.o., Dlhá 88, 010 09, Žilina, Slowakische Republik
Tel.: +421 41 516 67 51-2, Fax: +421 41 516 67 50, E-mail: sales@tlakon.sk
"; $data .= $html['end'][$lng]; print $data; ?>