-

Dodávka krovů


-

Naším cílem je zajistit, aby se Vaše sny mohly uskutečnit. Neváhejte nás tedy kontaktovat a my zajistíme, aby Vám sousedi Váš projekt záviděli!

Využijte formulář níže, zanechte nám na sebe kontakt. My se ozveme. -


-
@@ -178,9 +168,6 @@ if($_POST["sendMail"]) { $m->sendMail(); echo "Email Odeslán."; } - - - } ?> @@ -196,4 +183,4 @@ if($_POST["sendMail"]) { - \ No newline at end of file + diff --git a/mail.php b/mail.php index 086e427..f316e6a 100644 --- a/mail.php +++ b/mail.php @@ -1,58 +1,57 @@ -" - public $sender = null; - // ReplyTo - string var - // Format: "email@adresa.cz" - public $replyTo = null; - // CarbonCopies - string array - // Format: array("email@adresa.cz", "email@adresa.cz", ...) - public $cc = null; - // Subject - string var - // Format: "Some String" - public $subject = null; - // MailContent - string var - // Format: "Some String" - public $content = null; - // headers - string var - // Is built by setHeader() function - private $headers = ""; - - public function setHeaders() { - - if(isset($this->sender) ) { - $this->headers .= "From: " . $this->sender . PHP_EOL; - } else { - echo "WARN: From(sender) is not set!"; - } - - if(isset($this->replyTo) ) { - $this->headers .= "Reply-To: <" . $this->replyTo . ">" . PHP_EOL; - } else { - echo "WARN: Reply-To is not set!"; - } - - foreach($this->cc as $x) { - $this->headers .= "Bcc: " . $x . PHP_EOL; - } - $this->headers .= "X-Mailer: PHP/" . phpversion() . PHP_EOL; - $this->headers .= "X-Priority: 2" . PHP_EOL; - $this->headers .= "MIME-Version: 1.0" . PHP_EOL; - $this->headers .= "Content-Type: text/html; charset=utf-8" . PHP_EOL; - } - - public function sendMail() { - if(isset($this->reciever) && isset($this->subject) && isset($this->content)) { - mb_send_mail($this->reciever, $this->subject, $this->content, $this->headers); - } else { - echo "ERR: mail reciever/subject/content is not set!"; - } - } - -} - \ No newline at end of file +" + public $sender = null; + // ReplyTo - string var + // Format: "email@adresa.cz" + public $replyTo = null; + // CarbonCopies - string array + // Format: array("email@adresa.cz", "email@adresa.cz", ...) + public $cc = null; + // Subject - string var + // Format: "Some String" + public $subject = null; + // MailContent - string var + // Format: "Some String" + public $content = null; + // headers - string var + // Is built by setHeader() function + private $headers = ""; + + public function setHeaders() { + if(isset($this->sender) ) { + $this->headers .= "From: " . $this->sender . PHP_EOL; + } else { + echo "WARN: From(sender) is not set!"; + } + + if(isset($this->replyTo) ) { + $this->headers .= "Reply-To: <" . $this->replyTo . ">" . PHP_EOL; + } else { + echo "WARN: Reply-To is not set!"; + } + + foreach($this->cc as $x) { + $this->headers .= "Bcc: " . $x . PHP_EOL; + } + $this->headers .= "X-Mailer: PHP/" . phpversion() . PHP_EOL; + $this->headers .= "X-Priority: 2" . PHP_EOL; + $this->headers .= "MIME-Version: 1.0" . PHP_EOL; + $this->headers .= "Content-Type: text/html; charset=utf-8" . PHP_EOL; + + } + + public function sendMail() { + if(isset($this->reciever) && isset($this->subject) && isset($this->content)) { + mb_send_mail($this->reciever, $this->subject, $this->content, $this->headers); + } else { + echo "ERR: mail reciever/subject/content is not set!"; + } + } +} + + diff --git a/view/admin-sortiment.phtml b/view/admin-sortiment.phtml deleted file mode 100644 index 4abbbcd..0000000 --- a/view/admin-sortiment.phtml +++ /dev/null @@ -1 +0,0 @@ -

Edit sortimentu

diff --git a/view/login-form.phtml b/view/login-form.phtml deleted file mode 100644 index cc6039e..0000000 --- a/view/login-form.phtml +++ /dev/null @@ -1,5 +0,0 @@ -
- - - -
\ No newline at end of file