Remove unnecessary consent checkboxes from the service form in templates_user/service.php
This commit is contained in:
@@ -1,68 +1,242 @@
|
||||
<?
|
||||
$spam_words = [
|
||||
'go.tazalus.com', 'porn', 'dating','hierbalimon.es', 'bodyandsoul', 'promo', 'puertobelenn', 'faiterde.tk', 'tygyguip', 'maritim-touristik', 'toolbarqueries', 'allnews.elk.pl', 'fuck', 'delicatedate.net', 'allcnews.xyz', 'allcryptonnews', 'hinebixi.com', 'obermatsa', 'hilkom-digital.de', 'monkeydigital.co', 'CrytoPRove', 'no-site.com', 'strictlydigital', 'youtu.be', 'wilhetiperbe', 'blogspot.com', 'suck', 'dana@parkcitynursery.com', 'suqomuaq.com', 'semrush', 'diryjyaz.com', 'obermatsa.com', 'hinebixi.com', 'rarealnojahr.gq', 'JoneButts15@aol.com', 'as-sports.net', 'course-fitness.com', 'pearltrees.com', 'taisiya.alximowa@mail.ru', 'advanceleadgeneration.com', 'ipad-kupit.ru', 'tinyurl.com', 'birgitschafer37@gmail.com', 'rgzd8r8b@hotmail.com', '052vz709@gmail.com', 'zelatcol@gmail.com', 'wm8o82ee@yahoo.com', 'egoo9760@icloud.com', 'no-replyKi@gmail.com', 'hacker@acharkala.com', 'osii@eff.effect.edu.pl', 'eqwdp1x2@gmail.com', 'stanglpeter@yahoo.de', 'schindelimmobilien@gmail.com', 'financy@gmx.de', 'zelatcol@gmail.com', 'stroybud.com', 'jumboleadmagnet.com', 'bynd.li', 'ps-iphone.ru', 'mailbanger.com', 'rabota-ot-150-tmes.info', 'klvcennik.ru' , 'jay.abby73@gmail.com', 'senler.ru', 'seocdvig.ru', 'seoprofisional.ru', 'tofeat.com', 'racetrack.top', 'elmare.ru', 'mailbanger.com', 'mjsanaokulu.com', 'a-site.top', 'daqlutavut@outlook.com', 'transfer358.com', 'fb-restriction-case125326754@outlook.com', 'no-replyKi@gmail.com', 'urcilovasil676@gmail.com', 'koame@rambler.ua', 'werso061700iu@rambler.ru', 'christinaseak@nancywhalen.com', 'elenaseak@mphtcommercial.com', '2214ro438y@funny3delements.com', 'irin4@pop33.site', 'daqlutavut@outlook.com', 'daqlutavut@outlook.com','cesar.mancuello@cialpa.com.py', 'werso062000iu@rambler.ru', 'leada2z70@gmail.com', 'k.e.i.t.h.y.2.a.r.terberryrl@gmail.com', 'darya.shubina.73@mail.ru', 'gw2920339@gmail.com', 'laine@thaimail.live', 'swolerhozolicab@gmx.com', 'frcites@yandex.com', 'dawna.box92@gmail.com', '8026e@1tetris.ru', '2@inrus.top', 'ganribenes@outlook.com', 'werso078200iu@rambler.ru', 'killderrfassser@rambler.ru', '4@hamechizaban.ir', 'goddosbim@rambler.ru', 'knox@longago.pics', 'www.yandex.ru', 'kuznetsov_vlad_1995_18_12@inbox.ru', 'shkola-24@hotmail.com', 'multik-pic.online', '980zo@1tetris.ru', 'MalkaBin@pochtaserver.com', 'q4p62nzh4f@ir.tvtap.fun', 'af775188@gmail.com', 'mubcamesiy@outlook.com', 'cqurys@outlook.com', 'joe_stiffy@jerseyshoreelectric.com', 'maximmad222@yandex.ru', 'JohnieByrnes420@aol.com', 'maltusjohn@gmail.com', 'lion.pirogoff@yandex.ru', 'admin@antapexhealthcare.com', 'kristan@vidok.com', 'xrumak@outlook.com', 'pws.appliance@gmail.com', 'shopmarketplus@gmail.com', 'skupka@avio.pochtas.ru', 'info@coachkorey.ru', 'waldemar-polak-67@wp.pl', 'wgqp9ouy0l@fhz.tvtap.fun', 'ljykyln6vs@sce.tvtap.fun', 'mirtewe@rambler.ua', 'support@egyvps.com', 'info@chasy39.ru', 'yamamamsfdsfdsfds@gmail.ru', 'maximmad222@yandex.ru', 'golubitskayabeatrisa@yandex.com', 'joe@ecomvisibility.com', 'agnessavolkova@seobomba.com', 'weytefuhaj@outlook.com', 'temptest758300173@gmail.com', 'nuzresaviq@outlook.com', 'keith.y.2.a.r.t.e.r.b.e.r.r.y.r.l.@gmail.com', 'af431532@gmail.com', 'lidiasamoilov4lidiya@yandex.ru', 'jamesgennickjames@gmail.com', 'medfishrib@rambler.ru', 'fdsfhdsjkfhdjskfjdsfnjkerfjkdsbf34h5u435y43uiry87efcys@gmail.com', 'dinfekciya@yandex.ru', 'osii@eff.effect.edu.pl', 'isabellaloX@purina-smell.com', 'alenaloX@rosalind-2.com', 'anudfaoaymn@bobbor.store', 'lkskxtdecmn@bobbor.store', 'bob345@posti8.site', 'sonia34@pop33.site', 'ugapalhrvmn@bobbor.store', 'frigtusolinufib', 'zokkedubiq@outlook.com', 'finley@vidok.com', 'vova80918@mail.ru', 'mikecitnipse@gmail.com', 'xxzssrznxmn@bobbor.store', 'katia@posti8.site', 'rambler.ua', 'martalyd7@zohomail.eu' ];
|
||||
'go.tazalus.com',
|
||||
'porn',
|
||||
'dating',
|
||||
'hierbalimon.es',
|
||||
'bodyandsoul',
|
||||
'promo',
|
||||
'puertobelenn',
|
||||
'faiterde.tk',
|
||||
'tygyguip',
|
||||
'maritim-touristik',
|
||||
'toolbarqueries',
|
||||
'allnews.elk.pl',
|
||||
'fuck',
|
||||
'delicatedate.net',
|
||||
'allcnews.xyz',
|
||||
'allcryptonnews',
|
||||
'hinebixi.com',
|
||||
'obermatsa',
|
||||
'hilkom-digital.de',
|
||||
'monkeydigital.co',
|
||||
'CrytoPRove',
|
||||
'no-site.com',
|
||||
'strictlydigital',
|
||||
'youtu.be',
|
||||
'wilhetiperbe',
|
||||
'blogspot.com',
|
||||
'suck',
|
||||
'dana@parkcitynursery.com',
|
||||
'suqomuaq.com',
|
||||
'semrush',
|
||||
'diryjyaz.com',
|
||||
'obermatsa.com',
|
||||
'hinebixi.com',
|
||||
'rarealnojahr.gq',
|
||||
'JoneButts15@aol.com',
|
||||
'as-sports.net',
|
||||
'course-fitness.com',
|
||||
'pearltrees.com',
|
||||
'taisiya.alximowa@mail.ru',
|
||||
'advanceleadgeneration.com',
|
||||
'ipad-kupit.ru',
|
||||
'tinyurl.com',
|
||||
'birgitschafer37@gmail.com',
|
||||
'rgzd8r8b@hotmail.com',
|
||||
'052vz709@gmail.com',
|
||||
'zelatcol@gmail.com',
|
||||
'wm8o82ee@yahoo.com',
|
||||
'egoo9760@icloud.com',
|
||||
'no-replyKi@gmail.com',
|
||||
'hacker@acharkala.com',
|
||||
'osii@eff.effect.edu.pl',
|
||||
'eqwdp1x2@gmail.com',
|
||||
'stanglpeter@yahoo.de',
|
||||
'schindelimmobilien@gmail.com',
|
||||
'financy@gmx.de',
|
||||
'zelatcol@gmail.com',
|
||||
'stroybud.com',
|
||||
'jumboleadmagnet.com',
|
||||
'bynd.li',
|
||||
'ps-iphone.ru',
|
||||
'mailbanger.com',
|
||||
'rabota-ot-150-tmes.info',
|
||||
'klvcennik.ru',
|
||||
'jay.abby73@gmail.com',
|
||||
'senler.ru',
|
||||
'seocdvig.ru',
|
||||
'seoprofisional.ru',
|
||||
'tofeat.com',
|
||||
'racetrack.top',
|
||||
'elmare.ru',
|
||||
'mailbanger.com',
|
||||
'mjsanaokulu.com',
|
||||
'a-site.top',
|
||||
'daqlutavut@outlook.com',
|
||||
'transfer358.com',
|
||||
'fb-restriction-case125326754@outlook.com',
|
||||
'no-replyKi@gmail.com',
|
||||
'urcilovasil676@gmail.com',
|
||||
'koame@rambler.ua',
|
||||
'werso061700iu@rambler.ru',
|
||||
'christinaseak@nancywhalen.com',
|
||||
'elenaseak@mphtcommercial.com',
|
||||
'2214ro438y@funny3delements.com',
|
||||
'irin4@pop33.site',
|
||||
'daqlutavut@outlook.com',
|
||||
'daqlutavut@outlook.com',
|
||||
'cesar.mancuello@cialpa.com.py',
|
||||
'werso062000iu@rambler.ru',
|
||||
'leada2z70@gmail.com',
|
||||
'k.e.i.t.h.y.2.a.r.terberryrl@gmail.com',
|
||||
'darya.shubina.73@mail.ru',
|
||||
'gw2920339@gmail.com',
|
||||
'laine@thaimail.live',
|
||||
'swolerhozolicab@gmx.com',
|
||||
'frcites@yandex.com',
|
||||
'dawna.box92@gmail.com',
|
||||
'8026e@1tetris.ru',
|
||||
'2@inrus.top',
|
||||
'ganribenes@outlook.com',
|
||||
'werso078200iu@rambler.ru',
|
||||
'killderrfassser@rambler.ru',
|
||||
'4@hamechizaban.ir',
|
||||
'goddosbim@rambler.ru',
|
||||
'knox@longago.pics',
|
||||
'www.yandex.ru',
|
||||
'kuznetsov_vlad_1995_18_12@inbox.ru',
|
||||
'shkola-24@hotmail.com',
|
||||
'multik-pic.online',
|
||||
'980zo@1tetris.ru',
|
||||
'MalkaBin@pochtaserver.com',
|
||||
'q4p62nzh4f@ir.tvtap.fun',
|
||||
'af775188@gmail.com',
|
||||
'mubcamesiy@outlook.com',
|
||||
'cqurys@outlook.com',
|
||||
'joe_stiffy@jerseyshoreelectric.com',
|
||||
'maximmad222@yandex.ru',
|
||||
'JohnieByrnes420@aol.com',
|
||||
'maltusjohn@gmail.com',
|
||||
'lion.pirogoff@yandex.ru',
|
||||
'admin@antapexhealthcare.com',
|
||||
'kristan@vidok.com',
|
||||
'xrumak@outlook.com',
|
||||
'pws.appliance@gmail.com',
|
||||
'shopmarketplus@gmail.com',
|
||||
'skupka@avio.pochtas.ru',
|
||||
'info@coachkorey.ru',
|
||||
'waldemar-polak-67@wp.pl',
|
||||
'wgqp9ouy0l@fhz.tvtap.fun',
|
||||
'ljykyln6vs@sce.tvtap.fun',
|
||||
'mirtewe@rambler.ua',
|
||||
'support@egyvps.com',
|
||||
'info@chasy39.ru',
|
||||
'yamamamsfdsfdsfds@gmail.ru',
|
||||
'maximmad222@yandex.ru',
|
||||
'golubitskayabeatrisa@yandex.com',
|
||||
'joe@ecomvisibility.com',
|
||||
'agnessavolkova@seobomba.com',
|
||||
'weytefuhaj@outlook.com',
|
||||
'temptest758300173@gmail.com',
|
||||
'nuzresaviq@outlook.com',
|
||||
'keith.y.2.a.r.t.e.r.b.e.r.r.y.r.l.@gmail.com',
|
||||
'af431532@gmail.com',
|
||||
'lidiasamoilov4lidiya@yandex.ru',
|
||||
'jamesgennickjames@gmail.com',
|
||||
'medfishrib@rambler.ru',
|
||||
'fdsfhdsjkfhdjskfjdsfnjkerfjkdsbf34h5u435y43uiry87efcys@gmail.com',
|
||||
'dinfekciya@yandex.ru',
|
||||
'osii@eff.effect.edu.pl',
|
||||
'isabellaloX@purina-smell.com',
|
||||
'alenaloX@rosalind-2.com',
|
||||
'anudfaoaymn@bobbor.store',
|
||||
'lkskxtdecmn@bobbor.store',
|
||||
'bob345@posti8.site',
|
||||
'sonia34@pop33.site',
|
||||
'ugapalhrvmn@bobbor.store',
|
||||
'frigtusolinufib',
|
||||
'zokkedubiq@outlook.com',
|
||||
'finley@vidok.com',
|
||||
'vova80918@mail.ru',
|
||||
'mikecitnipse@gmail.com',
|
||||
'xxzssrznxmn@bobbor.store',
|
||||
'katia@posti8.site',
|
||||
'rambler.ua',
|
||||
'martalyd7@zohomail.eu'
|
||||
];
|
||||
|
||||
function strposa( $haystack, $needles = array(), $offset = 0 ) {
|
||||
function strposa($haystack, $needles = array(), $offset = 0)
|
||||
{
|
||||
$chr = array();
|
||||
foreach ( $needles as $needle ) {
|
||||
foreach ($needles as $needle)
|
||||
{
|
||||
$res = strpos($haystack, $needle, $offset);
|
||||
if ($res !== false) $chr[$needle] = $res;
|
||||
}
|
||||
if ( empty($chr) )
|
||||
if (empty($chr))
|
||||
return false;
|
||||
return min($chr);
|
||||
}
|
||||
|
||||
function saveContactData(
|
||||
$name = '',
|
||||
$email = '',
|
||||
$phone = '',
|
||||
$message = '',
|
||||
$zip = '',
|
||||
$title = '',
|
||||
$company = '',
|
||||
$invoiceNumber = '',
|
||||
$address = '',
|
||||
$formId = '') {
|
||||
function saveContactData( $name = '', $email = '', $phone = '', $message = '', $zip = '', $title = '', $company = '', $invoiceNumber = '', $address = '', $formId = '', $voivodeship = '', $clientType = '', $consentOffer = 0, $consentMarketing = 0 )
|
||||
{
|
||||
// Konfiguracja bazy danych
|
||||
$dbHost = 'mysql8';
|
||||
$dbName = '18227288_formularz';
|
||||
$dbUser = '18227288_formularz';
|
||||
$dbPass = '_xTmyGrYnzsfdsf5';
|
||||
|
||||
$contactHistoryFile = $_SERVER['DOCUMENT_ROOT'] . '/autoinstalator/wordpress9/contact.csv';
|
||||
try
|
||||
{
|
||||
$pdo = new PDO("mysql:host=$dbHost;dbname=$dbName;charset=utf8mb4", $dbUser, $dbPass);
|
||||
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
$contactData = array(
|
||||
'Name' => str_replace( [ '\'', '"' ], '', $name ),
|
||||
'Email' => str_replace( [ '\'', '"' ], '', $email ),
|
||||
'Phone' => str_replace( [ '\'', '"' ], '', $phone ),
|
||||
'Message' => str_replace( [ "\n", "\r\n", "\r" ], ' ', str_replace( [ '\'', '"' ], '', $message ) ),
|
||||
'Zip_code' => str_replace( [ '\'', '"' ], '', $zip ),
|
||||
'Topic' => str_replace( [ '\'', '"' ], '', $title ),
|
||||
'Company' => str_replace( [ '\'', '"' ], '', $company ),
|
||||
'Invoice_number' => str_replace( [ '\'', '"' ], '', $invoiceNumber ),
|
||||
'Address' => str_replace( [ '\'', '"' ], '', $address ),
|
||||
'Timestamp' => date('Y-m-d H:i:s', time()),
|
||||
'Form_id' => str_replace( [ '\'', '"' ], '', $formId ),
|
||||
);
|
||||
// Przygotowanie danych
|
||||
$data = [
|
||||
'form_id' => str_replace(['\'', '"'], '', $formId),
|
||||
'name' => str_replace(['\'', '"'], '', $name),
|
||||
'email' => str_replace(['\'', '"'], '', $email),
|
||||
'phone' => str_replace(['\'', '"'], '', $phone),
|
||||
'message' => str_replace(["\n", "\r\n", "\r"], ' ', str_replace(['\'', '"'], '', $message)),
|
||||
'zip_code' => str_replace(['\'', '"'], '', $zip),
|
||||
'topic' => str_replace(['\'', '"'], '', $title),
|
||||
'company' => str_replace(['\'', '"'], '', $company),
|
||||
'invoice_number' => str_replace(['\'', '"'], '', $invoiceNumber),
|
||||
'address' => str_replace(['\'', '"'], '', $address),
|
||||
// Nowe pola
|
||||
'voivodeship' => str_replace(['\'', '"'], '', $voivodeship),
|
||||
'client_type' => str_replace(['\'', '"'], '', $clientType),
|
||||
'consent_offer' => (int)$consentOffer,
|
||||
'consent_marketing' => (int)$consentMarketing,
|
||||
'created_at' => date('Y-m-d H:i:s')
|
||||
];
|
||||
|
||||
if (!file_exists($contactHistoryFile)) {
|
||||
$header = array_keys($contactData);
|
||||
$history = array($header);
|
||||
} else {
|
||||
$history = array_map('str_getcsv', file($contactHistoryFile));
|
||||
// Zaktualizowane zapytanie SQL
|
||||
$sql = "INSERT INTO contact_messages
|
||||
(form_id, name, email, phone, message, zip_code, topic, company, invoice_number, address, voivodeship, client_type, consent_offer, consent_marketing, created_at)
|
||||
VALUES
|
||||
(:form_id, :name, :email, :phone, :message, :zip_code, :topic, :company, :invoice_number, :address, :voivodeship, :client_type, :consent_offer, :consent_marketing, :created_at)";
|
||||
|
||||
$stmt = $pdo->prepare($sql);
|
||||
$stmt->execute($data);
|
||||
}
|
||||
$history[] = $contactData;
|
||||
$csvContent = fopen($contactHistoryFile, 'w');
|
||||
foreach ($history as $row) {
|
||||
fputcsv($csvContent, $row);
|
||||
catch (PDOException $e)
|
||||
{
|
||||
error_log("Błąd zapisu do bazy danych: " . $e->getMessage());
|
||||
}
|
||||
fclose($csvContent);
|
||||
}
|
||||
|
||||
if ( \S::get( 'action' ) == 'send-contact' and \S::get( 'token' ) == \S::get_session( 'send-contact-token' ) and !\S::get( 'website' ) )
|
||||
if ( \S::get('action') == 'send-contact' and \S::get('token') == \S::get_session('send-contact-token') and !\S::get('website') )
|
||||
{
|
||||
if(isset($_POST['g-recaptcha-response'])){
|
||||
$captcha=$_POST['g-recaptcha-response'];
|
||||
if (isset($_POST['g-recaptcha-response']))
|
||||
{
|
||||
$captcha = $_POST['g-recaptcha-response'];
|
||||
}
|
||||
if(!$captcha){
|
||||
\S::alert( "Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie." );
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
if (!$captcha)
|
||||
{
|
||||
\S::alert("Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie.");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
$secretKey = "6LfaovglAAAAAAz84QLdbONodP1yJUpSOVTnFMt4";
|
||||
@@ -70,72 +244,49 @@ if ( \S::get( 'action' ) == 'send-contact' and \S::get( 'token' ) == \S::get_ses
|
||||
// post request to server
|
||||
$url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($secretKey) . '&response=' . urlencode($captcha);
|
||||
$response = file_get_contents($url);
|
||||
$responseKeys = json_decode($response,true);
|
||||
$responseKeys = json_decode($response, true);
|
||||
// should return JSON with success as true
|
||||
if($responseKeys["success"]) {
|
||||
if (
|
||||
\S::get( 'inputTitle' )
|
||||
and
|
||||
\S::get( 'inputName' )
|
||||
and
|
||||
\S::get( 'inputEmail' )
|
||||
and
|
||||
\S::get( 'message' )
|
||||
and
|
||||
strposa( \S::get( 'inputTitle' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputName' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputEmail' ), $spam_words ) === false
|
||||
and
|
||||
\S::get( 'message' ) )
|
||||
if ($responseKeys["success"])
|
||||
{
|
||||
if ( \S::get('inputTitle') and \S::get('inputName') and \S::get('inputEmail') and \S::get('message') and strposa(\S::get('inputTitle'), $spam_words) === false and strposa(\S::get('inputName'), $spam_words) === false and strposa(\S::get('inputEmail'), $spam_words) === false and \S::get('message') )
|
||||
{
|
||||
$text = '<p><b>Temat:</b> ' . \S::get( 'inputTitle' ) . '</p>';
|
||||
$text .= '<p><b>Imię i nazwisko:</b> ' . \S::get( 'inputName' ) . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get( 'inputEmail' ) . '</p>';
|
||||
$text = '<p><b>Temat:</b> ' . \S::get('inputTitle') . '</p>';
|
||||
$text .= '<p><b>Imię i nazwisko:</b> ' . \S::get('inputName') . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get('inputEmail') . '</p>';
|
||||
$text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('message')) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
saveContactData(
|
||||
\S::get( 'inputName' ),
|
||||
\S::get( 'inputEmail' ),
|
||||
'',
|
||||
\S::get('message'),
|
||||
'',
|
||||
\S::get( 'inputTitle' ),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'contact'
|
||||
);
|
||||
saveContactData( \S::get('inputName'), \S::get('inputEmail'), '', \S::get('message'), '', \S::get('inputTitle'), '', '', '', 'contact' );
|
||||
|
||||
if ( \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
if (\S::send_email('marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send))
|
||||
{
|
||||
// send copy to k.zarzyczny@vidok.com
|
||||
\S::send_email( 'k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( 'arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::alert( \S::lang( 'wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email('arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang( 'wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
else
|
||||
{
|
||||
\S::alert( \S::lang( 'wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
} else {
|
||||
\S::alert( "Jesteś robotem!" );
|
||||
}
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
else
|
||||
{
|
||||
\S::alert("Jesteś robotem!");
|
||||
}
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( \S::get('action') == 'send-contact-modal' and \S::get( 'token' ) == \S::get_session( 'modal-token' ) and !\S::get( 'website' ) )
|
||||
if ( \S::get('action') == 'send-contact-modal' and \S::get('token') == \S::get_session('modal-token') and !\S::get('website') )
|
||||
{
|
||||
$captcha = $_POST['g-recaptcha-response'] ?? null;
|
||||
|
||||
|
||||
if (!$captcha) {
|
||||
if (!$captcha)
|
||||
{
|
||||
\S::alert("Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie.");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
@@ -146,10 +297,11 @@ if ( \S::get('action') == 'send-contact-modal' and \S::get( 'token' ) == \S::get
|
||||
$response = file_get_contents($url);
|
||||
$responseKeys = json_decode($response, true);
|
||||
|
||||
if (!$responseKeys['success']) {
|
||||
\S::alert("Jesteś robotem!");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
if (!$responseKeys['success'])
|
||||
{
|
||||
\S::alert("Jesteś robotem!");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -157,33 +309,14 @@ if ( \S::get('action') == 'send-contact-modal' and \S::get( 'token' ) == \S::get
|
||||
for ($i = 0; $i < $countfiles; $i++)
|
||||
{
|
||||
$filename = $_FILES['files']['name'][$i];
|
||||
if ($filename and pathinfo( $_FILES['files']['name'][$i], PATHINFO_EXTENSION ) != 'php' )
|
||||
if ($filename and pathinfo($_FILES['files']['name'][$i], PATHINFO_EXTENSION) != 'php')
|
||||
{
|
||||
move_uploaded_file($_FILES['files']['tmp_name'][$i], 'temp/' . $filename);
|
||||
$files_to_send[] = 'temp/' . $filename;
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
\S::get( 'name' )
|
||||
and
|
||||
\S::get( 'email' )
|
||||
and
|
||||
\S::get( 'address' )
|
||||
and
|
||||
\S::get( 'phone' )
|
||||
and
|
||||
\S::get( 'information' )
|
||||
and
|
||||
strposa( \S::get( 'name' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'email' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'address' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'phone' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'information' ), $spam_words ) === false )
|
||||
if ( \S::get( 'name' ) and \S::get( 'email' ) and \S::get( 'address' ) and \S::get( 'phone' ) and strposa( \S::get( 'name' ), $spam_words ) === false and strposa( \S::get( 'email' ), $spam_words ) === false and strposa( \S::get( 'address' ), $spam_words ) === false and strposa( \S::get( 'phone' ), $spam_words ) === false and strposa( \S::get( 'information' ), $spam_words ) === false )
|
||||
{
|
||||
$text = '<p><b>Imię:</b> ' . \S::get('name') . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get('email') . '</p>';
|
||||
@@ -191,190 +324,125 @@ if ( \S::get('action') == 'send-contact-modal' and \S::get( 'token' ) == \S::get
|
||||
$text .= '<p><b>Telefon:</b> ' . \S::get('phone') . '</p>';
|
||||
$text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('information')) . '</p>';
|
||||
$text .= '<p><b>wymiary swojej stolarki:</b> ' . nl2br(\S::get('wymiaryStolarki')) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
saveContactData(
|
||||
\S::get('name'),
|
||||
\S::get('email'),
|
||||
\S::get('phone'),
|
||||
\S::get('information'),
|
||||
\S::get('address'),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'modal-contact-form'
|
||||
);
|
||||
$zgoda1 = (\S::get('acceptance-323') == 1) ? 1 : 0;
|
||||
$zgoda2 = (\S::get('acceptance-324') == 1) ? 1 : 0;
|
||||
|
||||
$fullMessage = \S::get('information');
|
||||
if (\S::get('wymiaryStolarki')) {
|
||||
$fullMessage .= "\n\n--- Wymiary stolarki ---\n" . \S::get('wymiaryStolarki');
|
||||
}
|
||||
|
||||
saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), $fullMessage, \S::get('address'), '', '', '', '', 'modal-contact-form', '', '', $zgoda1, $zgoda2 );
|
||||
|
||||
if ( \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
{
|
||||
// send copy to k.zarzyczny@vidok.com
|
||||
\S::send_email( 'k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( 'arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email('arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '?modal_form_sent=1');
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( \S::get( 'action' ) == 'send-services' and \S::get( 'token' ) == \S::get_session( 'form-token' ) and !\S::get( 'website' ) )
|
||||
if (\S::get('action') == 'send-services' and \S::get('token') == \S::get_session('form-token') and !\S::get('website'))
|
||||
{
|
||||
if (
|
||||
\S::get( 'inputName' )
|
||||
and
|
||||
\S::get( 'inputEmail' )
|
||||
and
|
||||
\S::get( 'inputContactNumber' )
|
||||
and
|
||||
\S::get( 'inputInvoiceNumber' )
|
||||
and
|
||||
\S::get( 'inputAdres' )
|
||||
and
|
||||
\S::get( 'message' )
|
||||
and
|
||||
strposa( \S::get( 'inputName' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputEmail' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputContactNumber' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputInvoiceNumber' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'inputAdres' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'message' ), $spam_words ) === false
|
||||
)
|
||||
if ( \S::get('inputName') and \S::get('inputEmail') and \S::get('inputContactNumber') and \S::get('inputInvoiceNumber') and \S::get('inputAdres') and \S::get('message') and strposa(\S::get('inputName'), $spam_words) === false and strposa(\S::get('inputEmail'), $spam_words) === false and strposa(\S::get('inputContactNumber'), $spam_words) === false and strposa(\S::get('inputInvoiceNumber'), $spam_words) === false and strposa(\S::get('inputAdres'), $spam_words) === false and strposa(\S::get('message'), $spam_words) === false )
|
||||
{
|
||||
$text .= '<p><b>Nazwa firmy:</b> ' . \S::get( 'inputCompanyName' ) . '</p>';
|
||||
$text .= '<p><b>Imię i nazwisko:</b> ' . \S::get( 'inputName' ) . '</p>';
|
||||
$text .= '<p><b>Numer faktury sprzedażowej:</b> ' . \S::get( 'inputInvoiceNumber' ) . '</p>';
|
||||
$text .= '<p><b>Numer kontaktowy:</b> ' . \S::get( 'inputContactNumber' ) . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get( 'inputEmail' ) . '</p>';
|
||||
$text .= '<p><b>Adres zgłoszenia:</b> ' . \S::get( 'inputAdres' ) . '</p>';
|
||||
$text .= '<p><b>Nazwa firmy:</b> ' . \S::get('inputCompanyName') . '</p>';
|
||||
$text .= '<p><b>Imię i nazwisko:</b> ' . \S::get('inputName') . '</p>';
|
||||
$text .= '<p><b>Numer faktury sprzedażowej:</b> ' . \S::get('inputInvoiceNumber') . '</p>';
|
||||
$text .= '<p><b>Numer kontaktowy:</b> ' . \S::get('inputContactNumber') . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get('inputEmail') . '</p>';
|
||||
$text .= '<p><b>Adres zgłoszenia:</b> ' . \S::get('inputAdres') . '</p>';
|
||||
$text .= '<p><b>Opis zgłoszenia:</b> ' . nl2br(\S::get('message')) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
$msg = '<p><b> Dziękujemy za kontakt z działem Serwisu i Reklamacji VIDOK.</b></p><p><b> Zgłoszenie ma obecnie status „rozpoczęte” i zostało zarejestrowane w naszej bazie danych. W przeciągu 5 dni roboczych, pracownik działu serwisu skontaktuje się z Państwem w celu informacji o statusie zgłoszenia.</b></p>';
|
||||
|
||||
saveContactData(
|
||||
\S::get( 'inputName' ),
|
||||
\S::get( 'inputEmail' ),
|
||||
\S::get( 'inputContactNumber' ),
|
||||
\S::get('message'),
|
||||
'',
|
||||
'',
|
||||
\S::get( 'inputCompanyName' ),
|
||||
\S::get( 'inputInvoiceNumber' ),
|
||||
\S::get( 'inputAdres' ),
|
||||
'services form'
|
||||
);
|
||||
saveContactData( \S::get('inputName'), \S::get('inputEmail'), \S::get('inputContactNumber'), \S::get('message'), '', '', \S::get('inputCompanyName'), \S::get('inputInvoiceNumber'), \S::get('inputAdres'), 'services-form', '', '', 1, 1 );
|
||||
|
||||
if ( \S::send_email( 'zgloszenia@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
if (\S::send_email('zgloszenia@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send))
|
||||
{
|
||||
\S::send_email( 'serwis@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( \S::get( 'inputEmail' ), 'Wiadomość ze strony vidok.com',$msg, );
|
||||
\S::alert( \S::lang( 'wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('serwis@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email(\S::get('inputEmail'), 'Wiadomość ze strony vidok.com', $msg,);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang( 'wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang( 'wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( \S::get('action') == 'send-contact-landing' and \S::get( 'token' ) == \S::get_session( 'landing-token' ) and !\S::get( 'website' ) )
|
||||
if (\S::get('action') == 'send-contact-landing' and \S::get('token') == \S::get_session('landing-token') and !\S::get('website'))
|
||||
{
|
||||
$countfiles = count($_FILES['files']['name']);
|
||||
|
||||
for ($i = 0; $i < $countfiles; $i++)
|
||||
{
|
||||
$filename = $_FILES['files']['name'][$i];
|
||||
if ($filename and pathinfo( $_FILES['files']['name'][$i], PATHINFO_EXTENSION ) != 'php' )
|
||||
if ($filename and pathinfo($_FILES['files']['name'][$i], PATHINFO_EXTENSION) != 'php')
|
||||
{
|
||||
move_uploaded_file($_FILES['files']['tmp_name'][$i], 'temp/' . $filename);
|
||||
$files_to_send[] = 'temp/' . $filename;
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
\S::get( 'name' )
|
||||
and
|
||||
\S::get( 'email' )
|
||||
and
|
||||
\S::get( 'address' )
|
||||
and
|
||||
\S::get( 'phone' )
|
||||
and
|
||||
\S::get( 'information' )
|
||||
and
|
||||
strposa( \S::get( 'name' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'email' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'address' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'phone' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'information' ), $spam_words ) === false
|
||||
)
|
||||
if ( \S::get('name') and \S::get('email') and \S::get('address') and \S::get('phone') and \S::get('information') and strposa(\S::get('name'), $spam_words) === false and strposa(\S::get('email'), $spam_words) === false and strposa(\S::get('address'), $spam_words) === false and strposa(\S::get('phone'), $spam_words) === false and strposa(\S::get('information'), $spam_words) === false
|
||||
)
|
||||
{
|
||||
$text = '<p><b>Imię:</b> ' . \S::get('name') . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get('email') . '</p>';
|
||||
$text .= '<p><b>Kod pocztowy:</b> ' . \S::get('address') . '</p>';
|
||||
$text .= '<p><b>Telefon:</b> ' . \S::get('phone') . '</p>';
|
||||
$text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('information')) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
saveContactData(
|
||||
\S::get('name'),
|
||||
\S::get('email'),
|
||||
\S::get('phone'),
|
||||
\S::get('information'),
|
||||
\S::get('address'),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'landing form'
|
||||
);
|
||||
saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), \S::get('information'), \S::get('address'), '', '', '', '', 'landing-form', '', '', 1, 1 );
|
||||
|
||||
if ( \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
if (\S::send_email('marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send))
|
||||
{
|
||||
// send copy to k.zarzyczny@vidok.com
|
||||
\S::send_email( 'k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( 'arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email('arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
}
|
||||
else{
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
else
|
||||
{
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
|
||||
\S::set_session( 'landing-sended', true );
|
||||
\S::set_session('landing-sended', true);
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S::get_session( 'contact-form-token' ) and !\S::get( 'website' ) )
|
||||
if (\S::get('action') == 'send-contact-form-new' and \S::get('token') == \S::get_session('contact-form-token') and !\S::get('website'))
|
||||
{
|
||||
if(isset($_POST['g-recaptcha-response'])){
|
||||
$captcha=$_POST['g-recaptcha-response'];
|
||||
if (isset($_POST['g-recaptcha-response']))
|
||||
{
|
||||
$captcha = $_POST['g-recaptcha-response'];
|
||||
}
|
||||
if(!$captcha){
|
||||
\S::alert( "Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie." );
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
if (!$captcha)
|
||||
{
|
||||
\S::alert("Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie.");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
$secretKey = "6LfaovglAAAAAAz84QLdbONodP1yJUpSOVTnFMt4";
|
||||
@@ -382,15 +450,16 @@ if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S::
|
||||
// post request to server
|
||||
$url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($secretKey) . '&response=' . urlencode($captcha);
|
||||
$response = file_get_contents($url);
|
||||
$responseKeys = json_decode($response,true);
|
||||
$responseKeys = json_decode($response, true);
|
||||
// should return JSON with success as true
|
||||
if($responseKeys["success"]) {
|
||||
if ($responseKeys["success"])
|
||||
{
|
||||
$countfiles = count($_FILES['files']['name']);
|
||||
|
||||
for ($i = 0; $i < $countfiles; $i++)
|
||||
{
|
||||
$filename = $_FILES['files']['name'][$i];
|
||||
if ($filename and pathinfo( $_FILES['files']['name'][$i], PATHINFO_EXTENSION ) != 'php' )
|
||||
if ($filename and pathinfo($_FILES['files']['name'][$i], PATHINFO_EXTENSION) != 'php')
|
||||
{
|
||||
move_uploaded_file($_FILES['files']['tmp_name'][$i], 'temp/' . $filename);
|
||||
$files_to_send[] = 'temp/' . $filename;
|
||||
@@ -398,28 +467,9 @@ if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S::
|
||||
}
|
||||
|
||||
|
||||
if (
|
||||
\S::get( 'name' )
|
||||
and
|
||||
\S::get( 'email' )
|
||||
and
|
||||
\S::get( 'postal_code' )
|
||||
and
|
||||
\S::get( 'phone' )
|
||||
and
|
||||
\S::get( 'voivodeship' )
|
||||
and
|
||||
\S::get( 'client' )
|
||||
and
|
||||
strposa( \S::get( 'name' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'email' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'postal_code' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'phone' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'message' ), $spam_words ) === false )
|
||||
if ( \S::get('name') and \S::get('email') and \S::get('postal_code') and \S::get('phone') and \S::get('voivodeship') and \S::get('client') and strposa(\S::get('name'), $spam_words) === false and strposa(\S::get('email'), $spam_words) === false and
|
||||
strposa(\S::get('postal_code'), $spam_words) === false and strposa(\S::get('phone'), $spam_words) === false and strposa(\S::get('message'), $spam_words) === false
|
||||
)
|
||||
{
|
||||
$text = '<p><b>Imię:</b> ' . \S::get('name') . '</p>';
|
||||
$text .= '<p><b>Email:</b> ' . \S::get('email') . '</p>';
|
||||
@@ -428,74 +478,62 @@ if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S::
|
||||
$text .= '<p><b>Klient:</b> ' . \S::get('client') . '</p>';
|
||||
$text .= '<p><b>Telefon:</b> ' . \S::get('phone') . '</p>';
|
||||
$text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('message')) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
saveContactData(
|
||||
\S::get('name'),
|
||||
\S::get('email'),
|
||||
\S::get('phone'),
|
||||
\S::get('message'),
|
||||
\S::get('postal_code'),
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'contact-form'
|
||||
);
|
||||
$zgoda1 = (\S::get('zgoda_1') == 'on' || \S::get('zgoda_1') == 1) ? 1 : 0;
|
||||
$zgoda2 = (\S::get('zgoda_2') == 'on' || \S::get('zgoda_2') == 1) ? 1 : 0;
|
||||
|
||||
if ( \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), \S::get('message'), \S::get('postal_code'), '', '', '', '', 'contact-form-new', \S::get('voivodeship'), \S::get('client'), $zgoda1, $zgoda2 );
|
||||
|
||||
if (\S::send_email('marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send))
|
||||
{
|
||||
// send copy to k.zarzyczny@vidok.com
|
||||
\S::send_email( 'k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( 'arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email('arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '?form_sent=1');
|
||||
exit;
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
} else {
|
||||
\S::alert( "Jesteś robotem!" );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
else
|
||||
{
|
||||
\S::alert("Jesteś robotem!");
|
||||
}
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( \S::get('action') == 'send-partner-form-new' and \S::get( 'token' ) == \S::get_session( 'partner-form-token' ) and !\S::get( 'website' ) )
|
||||
if (\S::get('action') == 'send-partner-form-new' and \S::get('token') == \S::get_session('partner-form-token') and !\S::get('website'))
|
||||
{
|
||||
if(isset($_POST['g-recaptcha-response'])){
|
||||
$captcha=$_POST['g-recaptcha-response'];
|
||||
if (isset($_POST['g-recaptcha-response']))
|
||||
{
|
||||
$captcha = $_POST['g-recaptcha-response'];
|
||||
}
|
||||
if(!$captcha){
|
||||
\S::alert( "Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie." );
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
|
||||
if (!$captcha)
|
||||
{
|
||||
\S::alert("Weryfikacja reCaptcha nie powiodła się. Proszę spróbować ponownie.");
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
|
||||
$secretKey = "6LfaovglAAAAAAz84QLdbONodP1yJUpSOVTnFMt4";
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
// post request to server
|
||||
$url = 'https://www.google.com/recaptcha/api/siteverify?secret=' . urlencode($secretKey) . '&response=' . urlencode($captcha);
|
||||
$response = file_get_contents($url);
|
||||
$responseKeys = json_decode($response,true);
|
||||
$responseKeys = json_decode($response, true);
|
||||
// should return JSON with success as true
|
||||
|
||||
if($responseKeys["success"]) {
|
||||
if (
|
||||
strposa( \S::get( 'company' ), $spam_words ) === false
|
||||
and
|
||||
\S::get( 'company_address' )
|
||||
and
|
||||
\S::get( 'phone' )
|
||||
and
|
||||
\S::get( 'email' )
|
||||
and
|
||||
strposa( \S::get( 'name' ), $spam_words ) === false
|
||||
and
|
||||
strposa( \S::get( 'surname' ), $spam_words ) === false
|
||||
){
|
||||
if ( $responseKeys["success"] )
|
||||
{
|
||||
if ( strposa(\S::get('company'), $spam_words) === false and \S::get('company_address') and \S::get('phone') and \S::get('email') and strposa(\S::get('name'), $spam_words) === false and strposa(\S::get('surname'), $spam_words) === false )
|
||||
{
|
||||
$aggrement1 = \S::get('aggrement1') === 'on' ? 'Tak' : 'Nie';
|
||||
$aggrement2 = \S::get('aggrement2') === 'on' ? 'Tak' : 'Nie';
|
||||
|
||||
@@ -509,25 +547,35 @@ if ( \S::get('action') == 'send-partner-form-new' and \S::get( 'token' ) == \S::
|
||||
$text .= '<p><b>Interesują mnie:</b> ' . \S::get('interesting-me') . '</p>';
|
||||
$text .= '<p><b>Wyrażam zgodę na przetwarzanie moich danych osobowych podanych przeze mnie powyżej w celu przygotowania stosownej oferty:</b> ' . $aggrement1 . '</p>';
|
||||
$text .= '<p><b>Wyrażam zgodę na przetwarzanie moich danych osobowych podanych przeze mnie powyżej w celu otrzymywania materiałów reklamowych:</b> ' . $aggrement2 . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
|
||||
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date('Y-m-d H:i:s') . '</p>';
|
||||
|
||||
if ( \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) )
|
||||
$fullName = \S::get('name') . ' ' . \S::get('surname');
|
||||
$zgoda1 = (\S::get('aggrement1') == 'on') ? 1 : 0;
|
||||
$zgoda2 = (\S::get('aggrement2') == 'on') ? 1 : 0;
|
||||
|
||||
$messageContent = 'Interesują mnie: ' . \S::get('interesting-me');
|
||||
|
||||
saveContactData( $fullName, \S::get('email'), \S::get('phone'), $messageContent, '', \S::get('interesting-me'), \S::get('company'), '', \S::get('company_address'), 'partner-form-new', '', \S::get('partner-type'), $zgoda1, $zgoda2 );
|
||||
|
||||
if (\S::send_email('marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send))
|
||||
{
|
||||
// send copy to k.zarzyczny@vidok.com
|
||||
\S::send_email( 'k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::send_email( 'arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send );
|
||||
\S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
|
||||
\S::send_email('k.zarzyczny@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::send_email('arkuszevidok@gmail.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send);
|
||||
\S::alert(\S::lang('wiadomosc-zostala-wyslana'));
|
||||
header('Location: ' . $_SERVER['REQUEST_URI'] . '?form_sent=1');
|
||||
exit;
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
else
|
||||
\S::alert( \S::lang('wiadomosc-niezostala-wyslana' ) );
|
||||
} else {
|
||||
\S::alert( "Jesteś robotem!" );
|
||||
\S::alert(\S::lang('wiadomosc-niezostala-wyslana'));
|
||||
}
|
||||
header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||
else
|
||||
{
|
||||
\S::alert("Jesteś robotem!");
|
||||
}
|
||||
header('Location: ' . $_SERVER['REQUEST_URI']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,722 +0,0 @@
|
||||
<? \S::set_session('contact-form-token', bin2hex(random_bytes(32))); ?>
|
||||
<?php
|
||||
$google_map_api = 'AIzaSyD-1SOVhJXr6HREtfmMILvlmV-hml3nxUg';
|
||||
|
||||
$partnerzy_handlowi_polska = [
|
||||
[
|
||||
'regions' => 'PODKARPACKIE, ŚWIĘTOKRZYSKIE, MAŁOPOLSKIE, LUBELSKIE, MAZOWIECKIE',
|
||||
'position' => 'Doradca ds. Kluczowych Klientów',
|
||||
'name' => 'Łukasz Cieślachowski',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.',
|
||||
'value' => '+48 602 374 711'
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'l.cieslachowski@vidok.com'
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
$partnerzy_handlowi_export = [
|
||||
[
|
||||
'title' => 'NIEMCY <span>|</span> DE <br/> AUSTRIA <span>|</span> AU',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+48 880 914 179',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'anfrage@vidok.com',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'WIELKA BRYTANIA <span>|</span> UK',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+48 882 399 733',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'enquiries@vidok.com',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'IRLANDIA <span>|</span> IR <br/> USA <span>|</span> US <br/> KANADA <span>|</span> CA <br/> AUSTRALIA <span>|</span> AU <br/>',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+48 17 853 92 46',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'sales@vidok.com',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'FRANCJA <span>|</span> FR <br/> BELGIA <span>|</span> BE <br/> HISZPANIA <span>|</span> ES <br/> SZWAJCARIA <span>|</span> CH <br/> WĘGRY <span>|</span> HU',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+48 17 85 95 663',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'contact@vidok.com',
|
||||
]
|
||||
],
|
||||
],
|
||||
[
|
||||
'title' => 'WŁOCHY <span>|</span> IT',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+48 17 859 56 72',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'ufficio@vidok.com',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'title' => 'SŁOWACJA <span>|</span> SK <br/> CZECHY <span>|</span> CZ',
|
||||
'phones' => [
|
||||
[
|
||||
'label' => 'tel.:',
|
||||
'value' => '+421 901 732 575',
|
||||
]
|
||||
],
|
||||
'emails' => [
|
||||
[
|
||||
'label' => 'e-mail:',
|
||||
'value' => 'vidok.sk@gmail.com',
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
?>
|
||||
|
||||
<div class="main-page">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="breadcrumbs">
|
||||
<a href="/">Strona główna</a>
|
||||
<span class="sep"><img src="/images/breadcrumbs-sep.svg"></span>
|
||||
<span class="last">Kontakt</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-0">
|
||||
<div class="container">
|
||||
<div class="_columns">
|
||||
<div class="_left">
|
||||
<div class="_left-wrapper">
|
||||
<h1>Siedziba firmy</h1>
|
||||
|
||||
<div class="_text _text-1">
|
||||
<h2>VIDOK SP. Z O. O.</h2>
|
||||
<p><strong>36-054 Rudna Mała 75</strong></p>
|
||||
</div>
|
||||
|
||||
<div class="_text _text-2">
|
||||
<p>KRS Nr. 0000191980</p>
|
||||
<p>REGON: 690379060</p>
|
||||
<p>NIP: 8131086710</p>
|
||||
<br>
|
||||
<p><a href="tel:+48178595660">+48 17 859 56 60</a></p>
|
||||
<p><a href="mailto:sekretariat@vidok.com">sekretariat@vidok.com</a></p>
|
||||
<p>pon. - pt. 7:00 - 15:00</p>
|
||||
</div>
|
||||
|
||||
<div class="_accounts">
|
||||
<img src="/layout/images/icon-bank.svg" class="_icon">
|
||||
<div class="_text _bold">
|
||||
ING BANK ŚLĄSKI S.A.<br>
|
||||
SWIFT INGBPLPW
|
||||
</div>
|
||||
|
||||
<div class="_accounts_numbers">
|
||||
PLN: PL 31 1050 1562 1000 0090 3034 4197<br>
|
||||
EUR: PL 84 1050 1562 1000 0090 3034 4213
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="direct-contact">
|
||||
<a href="#direct-contact">
|
||||
<div class="direct-contact__text">
|
||||
<p><strong>Skontaktuj się bezpośrednio</strong></p>
|
||||
<p>z wybranym działem</p>
|
||||
</div>
|
||||
<div class="direct-contact__img">
|
||||
<img src="/upload/filemanager/icon/arrow-icon.svg" alt="">
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_right">
|
||||
<div class="contact-form-box">
|
||||
<div class="c-row c-row-1">
|
||||
<p>Masz pytania dotyczące naszych produktów lub chcesz otrzymać wycenę?</p>
|
||||
<p>Wypełnij poniższy formularz kontaktowy- nasz specjalista <strong>skontaktuje się z Tobą</strong><br/> i odpowie na wszystkie pytania.</p>
|
||||
</div>
|
||||
<div class="c-row c-row-2">
|
||||
<form method="POST" action="" enctype="multipart/form-data" id="contact-form-new">
|
||||
<input type="hidden" name="action" value="send-contact-form-new">
|
||||
<input type="hidden" name="token" value="<?= \S::get_session('contact-form-token'); ?>">
|
||||
<input type="hidden" name="website" value="">
|
||||
|
||||
<div class="_2_columns">
|
||||
<input type="text" name="name" placeholder="Imię" required>
|
||||
<input type="email" name="email" placeholder="Adres e-mail" required>
|
||||
</div>
|
||||
<div class="_2_columns">
|
||||
<input type="text" name="phone" placeholder="Telefon" required>
|
||||
<input type="text" name="postal_code" placeholder="Kod pocztowy" required>
|
||||
</div>
|
||||
<div class="_2_columns">
|
||||
<div class="voivodeship__wrapper">
|
||||
<select name="voivodeship" required>
|
||||
<option value="" disabled selected>Województwa</option>
|
||||
<option value="dolnoslaskie">dolnośląskie</option>
|
||||
<option value="kujawsko-pomorskie">kujawsko-pomorskie</option>
|
||||
<option value="lubelskie">lubelskie</option>
|
||||
<option value="lubuskie">lubuskie</option>
|
||||
<option value="lodzkie">łódzkie</option>
|
||||
<option value="malopolskie">małopolskie</option>
|
||||
<option value="mazowieckie">mazowieckie</option>
|
||||
<option value="opolskie">opolskie</option>
|
||||
<option value="podkarpackie">podkarpackie</option>
|
||||
<option value="podlaskie">podlaskie</option>
|
||||
<option value="pomorskie">pomorskie</option>
|
||||
<option value="slaskie">śląskie</option>
|
||||
<option value="swietokrzyskie">świętokrzyskie</option>
|
||||
<option value="warminsko-mazurskie">warmińsko-mazurskie</option>
|
||||
<option value="wielkopolskie">wielkopolskie</option>
|
||||
<option value="zachodniopomorskie">zachodniopomorskie</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="_radios">
|
||||
<div class="_radio">
|
||||
<input type="radio" id="client-private" name="client" value="Klient prywatny" required>
|
||||
<label for="client-private">Klient prywatny</label>
|
||||
</div>
|
||||
<div class="_radio">
|
||||
<input type="radio" id="client-business" name="client" value="Klient biznesowy" required>
|
||||
<label for="client-business">Klient biznesowy</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_1_column">
|
||||
<textarea name="message" placeholder="Jeżeli masz jakieś uwagi, wytyczne możesz wpisać je tutaj. Możesz także wpisać wymiary i rodzaje okien jakimi jesteś zainteresowany."></textarea>
|
||||
</div>
|
||||
<div class="_text">Chcesz przesłać nam wizualizacje, projekt lub inne materiały? Skorzystaj z pola poniżej i dodaj plik do wiadomości.</div>
|
||||
<div class="_file fileuploader fileuploader-theme-default">
|
||||
<input type="hidden" name="fileuploader-list-files" value="[]">
|
||||
<input type="file" name="files[]" class="files" multiple="multiple">
|
||||
<div class="fileuploader-items">
|
||||
<ul class="fileuploader-items-list"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_1_column">
|
||||
<div class="_checkbox">
|
||||
<input type="checkbox" name="zgoda_1" id="zgoda_1">
|
||||
<label for="zgoda_1">Wyrażam zgodę na przetwarzanie moich danych osobowych podanych przeze mnie powyżej w celu przygotowania stosownej oferty.</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_1_column">
|
||||
<div class="_checkbox">
|
||||
<input type="checkbox" name="zgoda_2" id="zgoda_2">
|
||||
<label for="zgoda_2">Wyrażam zgodę na przetwarzanie moich danych osobowych podanych przeze mnie powyżej w celu otrzymywania materiałów reklamowych.</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="_1_column form_actions">
|
||||
<div class="g-recaptcha" data-sitekey="6LfaovglAAAAAAieLVC7i4xGkQA5ufXUbWLipSbp"></div>
|
||||
<button type="submit">Wyślij<img src="/images/contact-icon-check.svg"></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="_accounts_numbers">
|
||||
EUR: PL 84 1050 1562 1000 0090 3034 4213<br>
|
||||
PLN: PL 31 1050 1562 1000 0090 3034 4197
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-2">
|
||||
<div class="container">
|
||||
<div class="tabs-box" id="tabs-box">
|
||||
<div class="tabs-box--head">
|
||||
<ul id="tabs-box-nav">
|
||||
<li>
|
||||
<a href="#klienci-indywidualni">
|
||||
klienci<br/>
|
||||
<strong>indywidualni</strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#klienci-instytucjonalni">
|
||||
klienci<br/>
|
||||
<strong>instytucjonalni</strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#partnerzy-handlowi-polska">
|
||||
partnerzy handlowi<br/>
|
||||
<strong>polska</strong>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#partnerzy-handlowi-export">
|
||||
partnerzy handlowi<br/>
|
||||
<strong>export</strong>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="tabs-box--body">
|
||||
<!-- klienci indywidualni -->
|
||||
<section id="klienci-indywidualni">
|
||||
<div class="s-content s-style-1">
|
||||
<div class="s-left-col">
|
||||
<div class="map-point-info"></div>
|
||||
</div>
|
||||
<div class="s-right-col">
|
||||
<div id="map-klienci-indywidualni" style="width: 100%; height: 500px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- klienci instytucjonalni -->
|
||||
<section id="klienci-instytucjonalni">
|
||||
<div class="s-content s-style-1">
|
||||
<div class="s-left-col">
|
||||
<div class="map-point-info"></div>
|
||||
</div>
|
||||
<div class="s-right-col">
|
||||
<div id="map-klienci-instytucjonalni" style="width: 100%; height: 500px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- partnerzy handlowi polska -->
|
||||
<section id="partnerzy-handlowi-polska">
|
||||
<div class="s-content s-style-2">
|
||||
<div class="tad-cards">
|
||||
<?php foreach ($partnerzy_handlowi_polska as $partner): ?>
|
||||
<div class="tab-card">
|
||||
<div class="tab-card--head">
|
||||
<p><strong>WOJEWÓDZTWA</strong></p>
|
||||
<p><?= $partner['regions'] ?></p>
|
||||
</div>
|
||||
<div class="tab-card--text">
|
||||
<p><?= htmlspecialchars($partner['position']) ?></p>
|
||||
<p><?= htmlspecialchars($partner['name']) ?></p>
|
||||
</div>
|
||||
<div class="tab-card-info">
|
||||
<?php foreach ($partner['phones'] as $phone): ?>
|
||||
<a href="tel:<?= htmlspecialchars($phone['value']) ?>">
|
||||
<?= $phone['label'] ?> <?= htmlspecialchars($phone['value']) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php foreach ($partner['emails'] as $email): ?>
|
||||
<a href="mailto:<?= htmlspecialchars($email['value']) ?>">
|
||||
<?= $email['label'] ?> <?= htmlspecialchars($email['value']) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- partnerzy handlowi export -->
|
||||
<section id="partnerzy-handlowi-export">
|
||||
<div class="s-content s-style-3">
|
||||
<div class="tad-cards">
|
||||
<?php foreach ($partnerzy_handlowi_export as $partner): ?>
|
||||
<div class="tab-card">
|
||||
<div class="tab-card--head">
|
||||
<p>
|
||||
<strong><?= $partner['title'] ?></strong>
|
||||
</p>
|
||||
</div>
|
||||
<div class="tab-card-info">
|
||||
<?php foreach ($partner['phones'] as $phone): ?>
|
||||
<a href="tel:<?= htmlspecialchars($phone['value']) ?>">
|
||||
<?= $phone['label'] ?> <?= htmlspecialchars($phone['value']) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php foreach ($partner['emails'] as $email): ?>
|
||||
<a href="mailto:<?= htmlspecialchars($email['value']) ?>">
|
||||
<?= $email['label'] ?> <?= htmlspecialchars($email['value']) ?>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-3" id="direct-contact">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="tiles">
|
||||
<div class="tile tile-1">
|
||||
<h3>LOGISTYKA</h3>
|
||||
<div class="tile-text">
|
||||
<a href="tel:+48178676402">+48 17 867 64 02</a>
|
||||
<br/>
|
||||
<a href="mailto:logistyka@vidok.com">logistyka@vidok.com</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tile tile-2">
|
||||
<h3>KSIĘGOWOŚĆ</h3>
|
||||
<div class="tile-text">
|
||||
<a href="tel:+48178595676">+48 17 859 56 76</a>
|
||||
<br/>
|
||||
<a href="mailto:ksiegowosc@vidok.com">ksiegowosc@vidok.com</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tile tile-3">
|
||||
<h3>MARKETING</h3>
|
||||
<div class="tile-text">
|
||||
<a href="tel:+48178595667">+48 17 859 56 67</a>
|
||||
<br/>
|
||||
<a href="mailto:marketing@vidok.com">marketing@vidok.com</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tile tile-4">
|
||||
<h3>SERWIS</h3>
|
||||
<div class="tile-text">
|
||||
<a href="tel:+48178595682">+48 17 859 56 82</a>
|
||||
<br/>
|
||||
<a href="mailto:serwis@vidok.com">serwis@vidok.com</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<link class="footer" href="/plugins/fileuploader/jquery.fileuploader.min.css" rel="stylesheet" type="text/css">
|
||||
<link class="footer" href="/plugins/fileuploader/font/font-fileuploader.css" rel="stylesheet" type="text/css">
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=<?php echo $google_map_api; ?>&callback=initMap" async defer></script>
|
||||
<script class="footer" type="text/javascript" src="/plugins/fileuploader/jquery.fileuploader.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('body').on('click', '#tabs-box #tabs-box-nav li a', function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var tabName = $(this).attr('href').replace('#', '');
|
||||
activateTab(tabName);
|
||||
})
|
||||
|
||||
function activateTab(tabName) {
|
||||
$('#tabs-box #tabs-box-nav li').removeClass('active');
|
||||
$(`#tabs-box #tabs-box-nav li a[href="#${tabName}"]`).parent().addClass('active');
|
||||
|
||||
$('#tabs-box .tabs-box--body section').removeClass('active');
|
||||
$(`#tabs-box .tabs-box--body section[id="${tabName}"]`).addClass('active');
|
||||
|
||||
$('#tabs-box .tabs-box--body section').slideUp();
|
||||
$(`#tabs-box .tabs-box--body section[id="${tabName}"]`).slideDown();
|
||||
}
|
||||
|
||||
initActiveTab();
|
||||
function initActiveTab() {
|
||||
let tabsItems = $('#tabs-box #tabs-box-nav');
|
||||
let firstTab = tabsItems.find('li:first-child a').attr('href').replace('#', '');
|
||||
activateTab(firstTab);
|
||||
}
|
||||
});
|
||||
|
||||
function initMap() {
|
||||
const indywidualniLocations = [
|
||||
{
|
||||
id: 1,
|
||||
name: "Salon Rzeszów",
|
||||
position: { lat: 50.10243121484434, lng: 21.97603885371925 },
|
||||
icon: "https://maps.google.com/mapfiles/ms/icons/red-dot.png",
|
||||
description: `
|
||||
<p>
|
||||
Rudna Mała 75/k. Rzeszowa<br/>
|
||||
36-054 Rudna Mała<br/>
|
||||
gm. Głogów Małopolski
|
||||
</p>
|
||||
<a class="contact-btn" href="/rudna-mala-salon">więcej o salonie</a>
|
||||
`
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Salon Rzeszów",
|
||||
position: { lat: 50.02638046029387, lng: 21.995528011388217 },
|
||||
icon: "https://maps.google.com/mapfiles/ms/icons/blue-dot.png",
|
||||
description: `
|
||||
<p>
|
||||
ul. Hetmanska 39<br/>
|
||||
35-045 Rzeszów
|
||||
</p>
|
||||
<a class="contact-btn" href="/rzeszow-salon">więcej o salonie</a>
|
||||
`
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "Salon Rzeszów",
|
||||
position: { lat: 49.69534141127558, lng: 21.75183226667421 },
|
||||
icon: "https://maps.google.com/mapfiles/ms/icons/green-dot.png",
|
||||
description: `
|
||||
<p>
|
||||
ul. Kolejowa 17<br/>
|
||||
38-400 Krosno
|
||||
</p>
|
||||
<a class="contact-btn" href="/salon-krosno">więcej o salonie</a>
|
||||
`
|
||||
},
|
||||
];
|
||||
|
||||
const instytucjonalniLocations = [
|
||||
// {
|
||||
// id: 1,
|
||||
// name: "Salon Warszawa",
|
||||
// position: { lat: 52.887859087194855, lng: 18.789340146998654 }
|
||||
// },
|
||||
// {
|
||||
// id: 2,
|
||||
// name: "Salon Wrocław",
|
||||
// position: { lat: 51.1079, lng: 17.0385 }
|
||||
// }
|
||||
];
|
||||
|
||||
const mapOptions = {
|
||||
center: { lat: 50.0411, lng: 21.9991 },
|
||||
zoom: 11.2,
|
||||
styles: [{
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#F4F4F4"
|
||||
}]
|
||||
},
|
||||
{
|
||||
elementType: "labels.text.stroke",
|
||||
stylers: [{
|
||||
color: "F4F4F4"
|
||||
}]
|
||||
},
|
||||
{
|
||||
elementType: "labels.text.fill",
|
||||
stylers: [{
|
||||
color: "#181C1D"
|
||||
}]
|
||||
},
|
||||
|
||||
// (motorway)
|
||||
{
|
||||
featureType: "road.highway",
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // Autostrady
|
||||
{
|
||||
featureType: "road.highway",
|
||||
elementType: "geometry.stroke",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // Kontur autostrady
|
||||
{
|
||||
featureType: "road.highway",
|
||||
elementType: "labels.text.fill",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // tekst
|
||||
|
||||
// (primary, secondary, local)
|
||||
{
|
||||
featureType: "road.arterial",
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // Główne drogi
|
||||
{
|
||||
featureType: "road.local",
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // Ulice
|
||||
{
|
||||
featureType: "road",
|
||||
elementType: "labels.text.fill",
|
||||
stylers: [{
|
||||
color: "#BABABA"
|
||||
}]
|
||||
}, // tekst
|
||||
|
||||
// Ukryj numery dróg (E40, A4, 92 itp.)
|
||||
{
|
||||
featureType: "road",
|
||||
elementType: "labels.icon",
|
||||
stylers: [{
|
||||
visibility: "off"
|
||||
}]
|
||||
}, // Ukryj ikony dróg
|
||||
{
|
||||
featureType: "road",
|
||||
elementType: "labels.text",
|
||||
stylers: [{
|
||||
visibility: "off"
|
||||
}]
|
||||
}, // Ukryj tekst dróg
|
||||
|
||||
{
|
||||
featureType: "water",
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#F4F4F4"
|
||||
}]
|
||||
}, // Woda
|
||||
{
|
||||
featureType: "landscape",
|
||||
elementType: "geometry",
|
||||
stylers: [{
|
||||
color: "#F4F4F4"
|
||||
}]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
const mapKlienciIndywidualni = new google.maps.Map(document.getElementById("map-klienci-indywidualni"), mapOptions);
|
||||
const mapKlienciInstytucjonalni = new google.maps.Map(document.getElementById("map-klienci-instytucjonalni"), mapOptions);
|
||||
|
||||
addMarkersToMap(mapKlienciIndywidualni, indywidualniLocations, '#klienci-indywidualni .map-point-info');
|
||||
addMarkersToMap(mapKlienciInstytucjonalni, instytucjonalniLocations, '#klienci-instytucjonalni .map-point-info');
|
||||
}
|
||||
|
||||
function addMarkersToMap(map, locations, infoContainerSelector) {
|
||||
if (locations.length) {
|
||||
const bounds = new google.maps.LatLngBounds();
|
||||
|
||||
locations.forEach(location => {
|
||||
const marker = new google.maps.Marker({
|
||||
position: location.position,
|
||||
map: map,
|
||||
title: location.name,
|
||||
icon: location.icon || undefined
|
||||
});
|
||||
|
||||
marker.addListener("click", () => {
|
||||
const container = document.querySelector(infoContainerSelector);
|
||||
if (container) {
|
||||
// container.innerHTML = `
|
||||
// <h4>${location.name}</h4>
|
||||
// <p><strong>Adres:</strong> ${location.address || 'brak danych'}</p>
|
||||
// <p><strong>Telefon:</strong> ${location.phone || '-'}</p>
|
||||
// <p><strong>Email:</strong> ${location.email || '-'}</p>
|
||||
// `;
|
||||
|
||||
container.innerHTML = location.description || 'brak danych';
|
||||
}
|
||||
});
|
||||
|
||||
bounds.extend(location.position);
|
||||
});
|
||||
|
||||
map.fitBounds(bounds);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#contact-form-new input.files').fileuploader({
|
||||
fileMaxSize: 10,
|
||||
extensions: ['jpg', 'jpeg', 'png', 'pdf', 'text/plain', 'csv', 'xml', 'xls', 'xlsx', 'doc', 'dot', 'docx'],
|
||||
addMore: true,
|
||||
captions: {
|
||||
button: function(e) {
|
||||
return "Wybierz plik<img src='/images/contact-icon-file.svg'>";
|
||||
},
|
||||
feedback: function(e) {
|
||||
return (
|
||||
"PRZYCIĄGNIJ I UPUŚĆ LUB"
|
||||
);
|
||||
},
|
||||
feedback2: function(e) {
|
||||
return (
|
||||
e.length +
|
||||
" " +
|
||||
(1 < e.length ? "pliki są wybrane" : "plik jest wybrany")
|
||||
);
|
||||
},
|
||||
confirm: "Potwierdzenie",
|
||||
cancel: "Anuluj",
|
||||
name: "Nazwa",
|
||||
type: "Typ pliku",
|
||||
size: "Rozmiar pliku",
|
||||
dimensions: "Wymiary",
|
||||
duration: "Czas",
|
||||
crop: "Utnij to",
|
||||
rotate: "Koło",
|
||||
sort: "Sortować",
|
||||
open: "Otwierasz",
|
||||
download: "Ściągnij",
|
||||
remove: "Usunąć",
|
||||
drop: "Umieść plik tutaj do przesłania",
|
||||
paste: '<div class="fileuploader-pending-loader"></div> Wklej plik, kliknij tutaj, aby usunąć',
|
||||
removeConfirmation: "Czy na pewno chcesz usunąć plik??",
|
||||
errors: {
|
||||
filesLimit: "Sam ${limit} pliki można przesyłać.",
|
||||
filesType: "Sam ${extensions} pliki można przesyłać.",
|
||||
fileSize: "${name} jest zbyt duży! Wybierz plik do ${fileMaxSize} MB.",
|
||||
filesSizeAll: "Wybrane pliki są za duże! Wybierz plik do ${maxSize} MB.",
|
||||
fileName: "Plik o tej samej nazwie ${name} jest już wybrany.",
|
||||
remoteFile: "Pliki zdalne są niedozwolone.",
|
||||
folderUpload: "Foldery są niedozwolone.",
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -48,27 +48,6 @@
|
||||
</div>
|
||||
<p><a href="/polityka-prywatnosci">Polityka prywatnosci</a></p>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="gridCheck" required>
|
||||
<label class="form-check-label" for="gridCheck">
|
||||
Wysyłając formularz wyrażam z zgodę na przetwarzanie swoich danych osobowych zgodnie z ustawą o ochronie danych osobowych.
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="gridCheck2" required>
|
||||
<label class="form-check-label" for="gridCheck2">
|
||||
Zostałem poinformowany o prawie dostępu, aktualizacji oraz żądania zaprzestania przetwarzania danych przez Administratora – VIDOK
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" id="gridCheck3" required>
|
||||
<label class="form-check-label" for="gridCheck3">
|
||||
Oświadczam, iż zapoznałem się z polityką prywatności VIDOK i akceptuję jej warunki.
|
||||
</label>
|
||||
</div>
|
||||
<p><a href="/polityka-prywatnosci">Polityka prywatnosci</a></p>
|
||||
</div> -->
|
||||
<button type="submit" name="sumbit" class="btn4">Wyślij</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user