📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
webmasterscripti.demodesign.com.tr
📝
contact.php
← Geri Dön
<?php require("core/functions.php"); require("core/dbConnect.php"); ?> <!DOCTYPE html> <html lang="tr"> <head> <title><?php echo($settings["title"]); ?> - Contact</title> <?php require("pages/header.php"); ?> </head> <body class="bg-primary-gradient"> <?php require("pages/navbar.php"); ?> <section class="pt-5 mt-5"> <div class="container pt-5"> <div class="row mb-5"> <div class="col-md-8 col-xl-6 text-center mx-auto"> <p class="fw-bold mb-2" style="color: #337bab;">Let's stay in touch!</p> <h3 class="fw-bold" data-aos="fade" data-aos-duration="1850" id="text" style="height: 65px;"><strong>Feel free to contact us for any questions, requests, suggestions and information!</strong><br><br></h3> </div> </div> <div class="row d-flex justify-content-center container"> <div class="col-md-6 col-xl-4 mb-3"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <symbol id="check-circle-fill" fill="currentColor" viewBox="0 0 16 16"> <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/> </symbol> <symbol id="info-fill" fill="currentColor" viewBox="0 0 16 16"> <path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/> </symbol> <symbol id="exclamation-triangle-fill" fill="currentColor" viewBox="0 0 16 16"> <path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/> </symbol> </svg> <?php if((!empty($_POST["name"])) and (!empty($_POST["email"])) and (!empty($_POST["message"]))){ $mailPattern = "/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/"; $name = filter($_POST["name"]); $email = filter($_POST["email"]); $message = filter($_POST["message"]); if(!preg_match($mailPattern, $email)){ ?> <div class="alert alert-danger" role="alert" style="border-radius: 3px;"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>Please specify a valid e-mail. </div> <?php }elseif(strlen($name) > 200){ ?> <div class="alert alert-danger" role="alert" style="border-radius: 3px;"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>Please specify a name under two hundred (200) characters. </div> <?php }elseif(strlen($email) > 200){ ?> <div class="alert alert-danger" role="alert" style="border-radius: 3px;"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>Please specify an e-mail under two hundred (200) characters. </div> <?php }elseif(strlen($message) > 5000){ ?> <div class="alert alert-danger" role="alert"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Danger:"><use xlink:href="#exclamation-triangle-fill"/></svg>Please specify a message under five thousand (5000) characters. </div> <?php }else{ $addContactMsg = $connect->prepare("INSERT INTO contact (name, email, message, status, date) VALUES (?, ?, ?, ?, ?)"); $addContactMsg->execute(array( $name, $email, $message, "open", time(), )); ?> <div class="alert alert-success" role="alert" style="border-radius: 3px;"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Başarılı:"><use xlink:href="#check-circle-fill"/></svg>The message successfully sent. </div> <?php } }else{ ?> <div class="alert alert-primary" role="alert" style="border-radius: 3px;"> <svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Bilgilendirme:"><use xlink:href="#info-fill"/></svg>You will receive a response via the e-mail address you specify when your message is reviewed. </div> <?php } ?> <div> <form method="post"> <div class="mb-3"><label for="name-1" class="form-label">Name:</label><input class="form-control" type="text" id="name-1" name="name" placeholder="Please specify a name." style="border-radius: 3px;" required></div> <div class="mb-3"><label for="email-1" class="form-label">E-mail address:</label><input class="form-control" type="email" id="email-1" name="email" placeholder="Please specify an e-mail address." style="border-radius: 3px;" required></div> <div class="mb-3"><label for="message-1" class="form-label">Message:</label><textarea class="form-control" id="message-1" name="message" rows="6" placeholder="Please specify a message." style="border-radius: 3px;" required></textarea></div> <div><button class="btn btn-primary shadow d-block w-100" type="submit" style="border-radius: 3px;">Submit</button></div> </form> </div> </div> <div class="col-md-4 col-xl-4 d-flex justify-content-center justify-content-xl-start"> <div class="d-flex flex-wrap flex-md-column justify-content-md-start align-items-md-start h-100"> <div class="d-flex align-items-center p-3"> <div class="bs-icon-md bs-icon-circle bs-icon-primary shadow d-flex flex-shrink-0 justify-content-center align-items-center d-inline-block bs-icon bs-icon-md"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-instagram"> <path d="M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z"></path> </svg></div> <div class="px-2"> <h6 class="fw-bold mb-0">Instagram</h6> <p class="text-muted mb-0"><a href="<?php echo($settings["instagram"]); ?>" style="text-decoration: none;"><?php echo($settings["instagram"]); ?></a></p> </div> </div> <div class="d-flex align-items-center p-3"> <div class="bs-icon-md bs-icon-circle bs-icon-primary shadow d-flex flex-shrink-0 justify-content-center align-items-center d-inline-block bs-icon bs-icon-md"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-envelope"> <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> </svg></div> <div class="px-2"> <h6 class="fw-bold mb-0">Github</h6> <p class="text-muted mb-0"><a href="<?php echo($settings["github"]); ?>" style="text-decoration: none;"><?php echo($settings["github"]); ?></a></p> </div> </div> <div class="d-flex align-items-center p-3"> <div class="bs-icon-md bs-icon-circle bs-icon-primary shadow d-flex flex-shrink-0 justify-content-center align-items-center d-inline-block bs-icon bs-icon-md"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-link-45deg"> <path d="M4.715 6.542 3.343 7.914a3 3 0 1 0 4.243 4.243l1.828-1.829A3 3 0 0 0 8.586 5.5L8 6.086a1.002 1.002 0 0 0-.154.199 2 2 0 0 1 .861 3.337L6.88 11.45a2 2 0 1 1-2.83-2.83l.793-.792a4.018 4.018 0 0 1-.128-1.287z"></path> <path d="M6.586 4.672A3 3 0 0 0 7.414 9.5l.775-.776a2 2 0 0 1-.896-3.346L9.12 3.55a2 2 0 1 1 2.83 2.83l-.793.792c.112.42.155.855.128 1.287l1.372-1.372a3 3 0 1 0-4.243-4.243L6.586 4.672z"></path> </svg></div> <div class="px-2"> <h6 class="fw-bold mb-0">Website</h6> <p class="text-muted mb-0"><a href="<?php echo($settings["website"]); ?>" target="_blank" style="text-decoration: none;"><?php echo($settings["website"]); ?></a></p> </div> </div> </div> </div> </div> </div> </section> <?php require("pages/footer.php"); ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> <script src="assets/js/bs-init.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.js"></script> <script src="assets/js/bold-and-bright.js"></script> </body> </html> <?php $connect = null; ?>
💾 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