📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv8.demodesign.com.tr
/
xpanel
📝
kargo-bilgi.php
← Geri Dön
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/src/PHPMailer.php'; require 'PHPMailer/src/SMTP.php'; include 'inc/smsyolla.php'; $smtp_settings = $dbh -> prepare("SELECT * FROM smtp_settings WHERE id = ?"); $smtp_settings-> execute(array(1)); $smtp_settings = $smtp_settings->fetch(PDO::FETCH_OBJ); $ayar = $dbh->query("SELECT * FROM general_settings WHERE id = 1 ", PDO::FETCH_ASSOC); if ($ayar->rowCount()) { foreach ($ayar as $ayar) { } } if ($_POST) { echo "string"; $sorgu = $dbh->prepare("SELECT * FROM siparisler Where id=:id"); $sorgu->execute(['id' => (int)$_GET["id"]]); $sonuc = $sorgu->fetch(); print_r($sonuc); $eposta= $sonuc['eposta']; $where = [ 'kargofirma' => (int)$_POST['kargofirma'], 'kargotakipno' => (int)$_POST['kargotakipno'], 'id' => (int)$_GET['id'] ]; $update = $dbh->prepare("UPDATE siparisler SET kargo_firma=?,kargo_takip=? where id=? "); $update-> execute(array($_POST['kargofirma'],$_POST['kargotakipno'],$_GET['id'])); $guncelle = $dbh -> prepare("UPDATE siparisler SET status = ? WHERE id = ?"); $guncelle->execute([6, $_GET['id']]); $mailm= '<!DOCTYPE html> <html lang="tr" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="x-apple-disable-message-reformatting"> <title>Ürününüz Kargolandı</title> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet"> <style> html, body { margin: 0 auto !important; padding: 0 !important; height: 100% !important; width: 100% !important; } * { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } div[style*="margin: 16px 0"] { margin:0 !important; } table, td { mso-table-lspace: 0pt !important; mso-table-rspace: 0pt !important; } table { border-spacing: 0 !important; border-collapse: collapse !important; table-layout: fixed !important; margin: 0 auto !important; } table table table { table-layout: auto; } img { -ms-interpolation-mode:bicubic; } *[x-apple-data-detectors], .x-gmail-data-detectors, .x-gmail-data-detectors *, .aBn { border-bottom: 0 !important; cursor: default !important; color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } .a6S { display: none !important; opacity: 0.01 !important; } img.g-img + div { display:none !important; } .button-link { text-decoration: none !important; } @media only screen and (min-device-width: 375px) and (max-device-width: 413px) { .email-container { min-width: 375px !important; } } </style> <style> .button-td, .button-a { transition: all 100ms ease-in; } .button-td:hover, .button-a:hover { background: #555555 !important; border-color: #555555 !important; } @media screen and (max-width: 480px) { .fluid { width: 100% !important; max-width: 100% !important; height: auto !important; margin-left: auto !important; margin-right: auto !important; } .stack-column, .stack-column-center { display: block !important; width: 100% !important; max-width: 100% !important; direction: ltr !important; } .stack-column-center { text-align: center !important; } .center-on-narrow { text-align: center !important; display: block !important; margin-left: auto !important; margin-right: auto !important; float: none !important; } table.center-on-narrow { display: inline-block !important; } .email-container p { font-size: 17px !important; line-height: 22px !important; } } </style> </head> <body width="100%" bgcolor="#F1F1F1" style="margin: 0; mso-line-height-rule: exactly;"> <center style="width: 100%; background: #F1F1F1; text-align: left;"> <div style="max-width: 680px; margin: auto;" class="email-container"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 680px;" class="email-container"> <tr> <td bgcolor="#17A2B8"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 30px 40px 30px 40px; text-align: center;" align="center"> <img src="'.$ayar["web_adress"].'/img/'.$ayar["foto"].'" alt="alt_text" border="0" style="height: auto; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555;"> </td> </tr> </table> </td> </tr> <tr> <td background="background.png" bgcolor="#222222" align="center" valign="top" style="text-align: center; background-position: center center !important; background-size: cover !important;"> <div> <table role="presentation" border="0" cellpadding="0" cellspacing="0" align="center" width="100%" style="max-width:500px; margin: auto;"> <tr> <td height="20" style="font-size:20px; line-height:20px;"> </td> </tr> <tr> <td align="center" valign="middle"> <table> <tr> <td valign="top" style="text-align: center; padding: 20px 0 10px 20px;"> <h1 style="margin: 0; font-family: Open Sans, sans-serif; font-size: 30px; line-height: 36px; color: #ffffff; font-weight: bold;">ÜRÜNLERİNİZ KARGOYA VERİLMİŞTİR.</h1> </td> </tr> </table> </td> </tr> <tr> <td height="20" style="font-size:20px; line-height:20px;"> </td> </tr> </table> </div> </td> </tr> <tr> <td bgcolor="#ffffff"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <br><br> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Değerli kullanıcımız ürünleriniz kargoya verilmiştir. Detaylı bilgi için hesabım adresine girerek kargo durumunuzu görebilirsiniz. <br><br> <b>Kargo Firması:</b> '.$_POST["kargofirma"].' <br> <b>Kargo Takip No:</b> '.$_POST["kargotakipno"].' </p> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Siparişinizi değerlendirmek isterseniz <a href="https://search.google.com/local/writereview?placeid='.$ayar["business_link"].'">Buraya tıklayarak bizi hemen değerlendirebilirsiniz.</a></p> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 15px; line-height: 20px; color: #555555; text-align: left; font-weight:normal;"> <p style="margin: 0;">Güzel günler dileriz..</p> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#17A2B8"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 40px 40px 5px 40px; text-align: center;"> <h1 style="margin: 0; font-family: Open Sans, sans-serif; font-size: 20px; line-height: 24px; color: #ffffff; font-weight: bold;">BİLGİLENDİRME</h1> </td> </tr> <tr> <td style="padding: 0px 40px 20px 40px; font-family: sans-serif; font-size: 17px; line-height: 23px; color: #aad4ea; text-align: center; font-weight:normal;"> </td> </tr> <tr> <td valign="middle" align="center" style="text-align: center; padding: 0px 20px 40px 20px;"> <table role="presentation" align="center" cellspacing="0" cellpadding="0" border="0" class="center-on-narrow"> <tr> <td style="border-radius: 50px; background: #ffffff; text-align: center;" class="button-td"> <a href="'.$ayar["web_adress"].'bize-ulasin" style="background: #ffffff; border: 15px solid #ffffff; font-family: Open Sans, sans-serif; font-size: 14px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 50px; font-weight: bold;" class="button-a"> <span style="color:#17A2B8;" class="button-link"> BİZE ULAŞIN </span> </a> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td bgcolor="#ffffff"> <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td style="padding: 40px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0; font-weight: 700; font-size: 16px">Hızlı Linkler</p> </td> </tr> <tr> <td style="padding: 0px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> </td> </tr> <tr> <td style="padding: 0px 40px 10px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0;"><a href="'.$ayar["web_adress"].'bize-ulasin" style="color: #111111; font-weight: 700;">İletişim Bilgileri</a> | <a href="'.$ayar["web_adress"].'kategorilerimiz" style="color: #111111; font-weight: 700;"> Ürünlerimiz</a> | <a href="'.$ayar["web_adress"].'hesabim" style="color: #111111; font-weight: 700;"> Müşteri Paneli</a></p> </td> </tr> <tr> <td style="padding: 0px 40px 40px 40px; font-family: sans-serif; font-size: 12px; line-height: 18px; color: #666666; text-align: center; font-weight:normal;"> <p style="margin: 0;">'.$ayar["copyright"].'</p> </td> </tr> </table> </td> </tr> </table> </div> </center> </body> </html> '; $mail = new PHPMailer(true); try { $user= $smtp_settings->smtp_user; $mail->SMTPDebug = 0; $mail->isSMTP(); $mail->SMTPAuth = true; $mail->Username = $smtp_settings->smtp_user; $mail->Password = $smtp_settings->smtp_password; $mail->Host =$smtp_settings->smtp_server; $mail->Port = $smtp_settings->smtp_port; $mail->SMTPSecure = $smtp_settings->smtp_secure; $mail->SMTPOptions = array( 'ssl' => [ 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ], ); $mail->SetLanguage('tr', 'PHPMailer/language/'); $mail->setFrom($user, 'Siparişiniz Kargoya verildi' ); $mail->addAddress($eposta); $mail->isHTML(true); $mail->Subject = 'Siparişiniz kargoya verildi'; $mail->Body = "$mailm "; $mail->CharSet = 'utf-8'; $mail->send(); //echo 'Mesaj gönderildi'; //header("location:".htmlspecialchars($_SERVER['HTTP_REFERER'])); } catch (Exception $e) { //echo 'Mesaj gönderilmedi. Hata: ', $mail->ErrorInfo; } if($sms_setting->sip_gonderimde==1){ smsyolla($sonuc['telefon'],' Degerli kullanici siparisiniz kargoya verildi '); } if ($update) { header("location:siparis-liste.php"); }else{ } } ?> if ($update) { header("location:siparis-liste.php"); }else{ } } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula