Файловый менеджер - Редактировать - /home/umudio/public_html/deanary.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(); } } ?> <!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]--> <?php include("includes/pages-header.php"); ?> <div class="header-height"></div> <div class="pager-header"> <div class="container"> <div class="page-content"> <h2>Parishes by Deanaries</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">Parishes by Deanaries</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"> <h2>Parishes by Deanaries</h2> <?php $ss = "Parishes & Mass Centres in the Diocese"; $added = ""; if (isset($_POST["dmonth"])) { $toduse = $_POST["dmonth"]; $ss = "Parishes & Mass Centres in " . $toduse . " Deanary"; $added = " and titler='" . $toduse . "' "; } ?> <div class="headingbiggest"><?php echo ($ss); ?></div> <hr /> <form method="post" name="search" id="search"> <table width="86%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#F7F7F7"> <tr> <td align="center" bgcolor="#E9E9E9"><b>Search By Deanary</b></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Deanary: <select name="dmonth" id="dmonth"> <option value="All" selected="selected">All</option> <?php include_once 'includes/config.php'; $dio12 = mysqli_query($con, "SELECT * FROM deanaries where archived<>'Yes' order by titler"); $row_dio12 = mysqli_fetch_assoc($dio12); $num12 = mysqli_num_rows($dio12); if ($num12 > 0) { do { echo ('<option value="' . $row_dio12["titler"] . '">' . $row_dio12["titler"] . '</option>'); } while ($row_dio12 = mysqli_fetch_assoc($dio12)); } ?> </select> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"> <input name="button2" type="submit" class="style14" id="button2" value=" Search " /></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><b><a href="deanary.php">Show All</a></b></td> </tr> </table> </form> <?php include_once 'includes/config.php'; $query_dio5 = mysqli_query($con, "SELECT * FROM deanaries where archived<>'Yes'" . $added . " order by titler asc"); $row_dio5 = mysqli_fetch_assoc($query_dio5); $totalRows_dio5 = mysqli_num_rows($query_dio5); if ($totalRows_dio5 > 0) { do { $which = $row_dio5["sn"]; $ddeanary = $row_dio5["titler"] . " Deanary"; $query_dio = mysqli_query($con, "SELECT * FROM parishes where status='Parish' and deanary=$which order by namer"); $row_dio = mysqli_fetch_assoc($query_dio); $totalRows_dio = mysqli_num_rows($query_dio); $query_dio1 = mysqli_query($con, "SELECT * FROM parishes where status='MassCentre' and deanary=$which order by namer"); $row_dio1 = mysqli_fetch_assoc($query_dio1); $totalRows_dio1 = mysqli_num_rows($query_dio1); ?> <div class="headingbigger" style="padding-top:25px;color: #156AC2;"><?php echo ($ddeanary); ?></div> <div class="post"> <?php if ($totalRows_dio > 0) { ?> <?php $gvg = 1; do { ?> <div class="subhead" onclick="show('c<?php echo $row_dio['sn']; ?>')"><?php echo ($gvg); ?>. <?php echo ($row_dio["namer"]); ?>, <?php echo ($row_dio["town"]); ?></div> <div style="" class="subsubheading" id="c<?php echo $row_dio['sn']; ?>"> <div><?php echo ($row_dio["address"]); ?></div> <div><?php echo ($row_dio["details"]); ?></div> </div> <br> <?php $gvg++; } while ($row_dio = mysqli_fetch_assoc($query_dio)); } ?> <?php if ($totalRows_dio1 > 0) { ?> <div class="headingstyled">Mass Centres</div> <?php $gvg = 1; do { ?> <hr /> <div class="headingnormal"><?php echo ($gvg); ?>. <?php echo ($row_dio1["namer"]); ?>, <?php echo ($row_dio1["town"]); ?></div> <div><?php echo ($row_dio1["address"]); ?></div> <div style="background-color:#ddd; padding:10px 20px 10px 20px;"><?php echo ($row_dio1["details"]); ?></div> <?php $gvg++; } while ($row_dio1 = mysqli_fetch_assoc($query_dio1)); } ?> </div> <div class="post-bot"></div> <?php } while ($row_dio5 = mysqli_fetch_assoc($query_dio5)); } ?> </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
|
Настройка