Файловый менеджер - Редактировать - /home/umudio/public_html/feedbacks.php
Назад
<?php session_start(); if (isset($_POST["username"]) && isset($_POST["password"])) { $manager = $_POST["username"]; $password = $_POST["password"]; include("includes/config.php"); $cmem = "SELECT id FROM auth WHERE username='$manager' AND password='$password' LIMIT 1"; $run_cmem = mysqli_query($con, $cmem); $count_mem = mysqli_num_rows($run_cmem); if ($count_mem == 1) { while ($row = mysqli_fetch_array($run_cmem)) { $id = $row["id"]; } $_SESSION["id"] = $id; $_SESSION["manager"] = $manager; $_SESSION["password"] = $password; header("location: mod-auth"); exit(); } else { echo "<script>alert('Incorrect Password !!!')</script>"; echo "<script>window.open('./','_self')</script>"; exit(); } } ?> <?php include("includes/config.php"); ?> <!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="DynamicLayers"> <title>Catholic Diocese of Umuahia - Official Site</title> <link rel="shortcut icon" type="image/x-icon" href="img/umu-white.jpg"> <!-- Font Awesome Icons CSS --> <link rel="stylesheet" href="css/font-awesome.min.css"> <!-- Themify Icons CSS --> <link rel="stylesheet" href="css/themify-icons.css"> <!-- Elegant Font Icons CSS --> <link rel="stylesheet" href="css/elegant-font-icons.css"> <!-- Elegant Line Icons CSS --> <link rel="stylesheet" href="css/elegant-line-icons.css"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="css/bootstrap.min.css"> <!-- Venobox CSS --> <link rel="stylesheet" href="css/venobox/venobox.css"> <!-- OWL-Carousel CSS --> <link rel="stylesheet" href="css/owl.carousel.css"> <!-- Slick Nav CSS --> <link rel="stylesheet" href="css/slicknav.min.css"> <!-- Css Animation CSS --> <link rel="stylesheet" href="css/css-animation.min.css"> <!-- Nivo Slider CSS --> <link rel="stylesheet" href="css/nivo-slider.css"> <!-- Main CSS --> <link rel="stylesheet" href="css/main.css"> <!-- Responsive CSS --> <link rel="stylesheet" href="css/responsive.css"> <script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script> </head> <body> <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> <!-- <div class="site-preloader-wrap"> <div class="spinner"></div> </div> --> <!-- Preloader --> <header id="header" class="header-section"> <div class="top-header"> <div class="container"> <div class="top-content-wrap row"> <div class="col-sm-8"> <ul class="left-info"> <li><a href="#"><i class="ti-email"></i>awaiting@gmail.com</a></li> <li><a href="#"><i class="ti-mobile"></i>+234 00 000 000 00</a></li> </ul> </div> <div class="col-sm-4 d-none d-md-block"> <ul class="right-info"> <li><a href="#"><i class="fa fa-facebook"></i></a></li> <li><a href="#"><i class="fa fa-twitter"></i></a></li> <li><a href="#"><i class="fa fa-youtube"></i></a></li> </ul> </div> </div> </div> </div> <div class="bottom-header"> <div class="container"> <div class="bottom-content-wrap row"> <div class="col-sm-2"> <div class="site-branding"> <a href="#"><img src="img/umu.png" height="75" alt="Brand"></a> </div> </div> <div class="col-sm-10 text-right"> <ul id="mainmenu" class="nav navbar-nav nav-menu"> <li class="active"> <a href="./">Home</a></li> <li><a href="#">Ordinary</a> <ul> <li><a href="bishop">Our Ordinary</a></li> <li><a href="msgs">Ordinary's Messages</a></li> <li><a href="coat">Coat of Arms</a></li> <li><a href="past">Past Ordinaries</a></li> </ul> </li> <li><a href="#">Profile</a> <ul> <li><a href="history">Brief History</a></li> <li><a href="cath">About the Cathedral</a></li> <li><a href="diocesan">Diocesan Overview</a></li> <li><a href="hours">Office Hours</a></li> <li><a href="curia">Diocesan Curia</a></li> <li><a href="vicar">Episcopal Vicar</a></li> <li><a href="council">Presbyteral Council</a></li> <li><a href="consultors">College of Consultors</a></li> <li><a href="committees">Committees</a></li> <li><a href="depts">Departments</a></li> <li><a href="deans">Deanaries</a></li> <li><a href="honours">Papal Honours</a></li> </ul> </li> <li><a href="#">Parishes</a> <ul> <li><a href="deanary">By Deanary</a></li> <li><a href="town">By Town</a></li> <li><a href="allparishes">All Parishes</a></li> </ul> </li> <li><a href="#">Personnels</a> <ul> <li><a href="priests">Diocesan Priests</a></li> <li><a href="assignment">On Special Assignment</a></li> <li><a href="leave">On Study Leave</a></li> <li><a href="other-dio">From other Diocese</a></li> <li><a href="work">Working</a></li> <li><a href="deceased">Deceased Priests</a></li> <li><a href="deacons">Deacons</a></li> <li><a href="brosis">Brothers & Sisters</a></li> <li><a href="seminarians">Seminarians</a></li> <li><a href="catechists">Catechists</a></li> <li><a href="others">Others</a></li> </ul> </li> <li><a href="#">Institutions</a> <ul> <li><a href="male">Male Congregations</a></li> <li><a href="female">Female Congregatioins</a></li> <li><a href="ecclesiastical">Ecclesiasticals</a></li> <li><a href="press">Press Houses</a></li> <li><a href="pastoral">Pastoral Institutions</a></li> <li><a href="chaplaincies">Chaplaincies</a></li> <li><a href="schools">Schools</a></li> <li><a href="health">Health</a></li> <li><a href="apostolates">Apostolates</a></li> </ul> </li> <li><a href="#">Information</a> <ul> <li><a href="contact">Contact Us</a></li> <li><a href="planner">Diocesan Planner</a></li> <li><a href="calendar">Liturgical Calendar</a></li> <li><a href="donations">Donations</a></li> <li><a href="projects">Ongoing Projects</a></li> <li><a href="newsletters">Diocesan Newsletters</a></li> <li><a href="feedbacks">Feedbacks</a></li> <li><a href="news">News & Events</a></li> <li><a href="upcoming">Upcoming Events</a></li> <li><a href="gallery">Gallery</a></li> <li><a href="downloads">Downloads</a></li> <li><a href="docs.php">Articles & Documents</a></li> <li><a href="faqs">FAQs</a></li> </ul> </li> <li> <a href="reflections">Reflections</a></li> </ul> </div> </div> </div> </div> </header> <div class="header-height"></div> <div class="pager-header"> <div class="container"> <div class="page-content"> <h2>Leave a feedback</h2> <p>One thing I ask of the Lord. This I long to dwell in the house of the Lord, <br> all the days of my life.</p> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="./">Home</a></li> <li class="breadcrumb-item active">Leave a feedback</li> </ol> </div> </div> </div><!-- /Page Header --> <!-- /Page Header --> <div class="" style="background-color: #F2F2F2;padding: 47px;"> <div class="row"> <div class="col-lg-9"> <div class="comment-form"> <?php if (isset($_POST['submit'])) { $namer = $_POST['namer']; $email = $_POST['email']; $phone = $_POST['phone']; $remark = $_POST['remark']; include("includes/config.php"); global $con; $feedback = "INSERT INTO feedbacks (namer, email, phone, dater, remark) values ('$namer','$email','$phone',now(),'$remark')"; $run = mysqli_query($con, $feedback); if ($feedback) { echo "<div class='alert alert-success'> Feedback submitted successfully! </div>"; } else { echo "<div class='alert alert-danger'> An error occured, please try again! </div>"; } } ?> <h4>Leave a feedback</h4> <p>Feel free to give us your suggestions, feedbacks, comments and to ask your questions. You could also make a prayer request!</p> <form action="feedbacks.php" method="post" class="form-horizontal"> <div class="form-group colum-row row"> <div class="col-sm-4"> <input type="text" id="name" name="namer" class="form-control" placeholder="Name" required> </div> <div class="col-sm-4"> <input type="email" name="email" class="form-control" placeholder="Email" required> </div> <div class="col-sm-4"> <input type="text" name="phone" class="form-control" placeholder="Phone" required> </div> </div> <div class="form-group row"> <div class="col-md-12"> <textarea name="remark" cols="30" rows="5" class="form-control message" placeholder="Message" required></textarea> </div> </div> <div class="form-group row"> <div class="col-md-12"> <input type="submit" name="submit" value="Send" class="default-btn"> </div> </div> </form> </div> </div> <?php include("includes/sidecontent.php") ?> </div> </div> <?php include("includes/footer.php"); ?> <a data-scroll href="#header" id="scroll-to-top"><i class="arrow_up"></i></a> <!-- jQuery Lib --> <script src="js/vendor/jquery-1.12.4.min.js"></script> <!-- Bootstrap JS --> <script src="js/vendor/bootstrap.min.js"></script> <!-- Tether JS --> <script src="js/vendor/tether.min.js"></script> <!-- Imagesloaded JS --> <script src="js/vendor/imagesloaded.pkgd.min.js"></script> <!-- OWL-Carousel JS --> <script src="js/vendor/owl.carousel.min.js"></script> <!-- isotope JS --> <script src="js/vendor/jquery.isotope.v3.0.2.js"></script> <!-- Smooth Scroll JS --> <script src="js/vendor/smooth-scroll.min.js"></script> <!-- venobox JS --> <script src="js/vendor/venobox.min.js"></script> <!-- ajaxchimp JS --> <script src="js/vendor/jquery.ajaxchimp.min.js"></script> <!-- Counterup JS --> <script src="js/vendor/jquery.counterup.min.js"></script> <!-- waypoints js --> <script src="js/vendor/jquery.waypoints.v2.0.3.min.js"></script> <!-- Slick Nav JS --> <script src="js/vendor/jquery.slicknav.min.js"></script> <!-- Nivo Slider JS --> <script src="js/vendor/jquery.nivo.slider.pack.js"></script> <!-- Letter Animation JS --> <script src="js/vendor/letteranimation.min.js"></script> <!-- Wow JS --> <script src="js/vendor/wow.min.js"></script> <!-- Contact JS --> <script src="js/contact.js"></script> <!-- Main JS --> <script src="js/main.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка