Файловый менеджер - Редактировать - /home/umudio/public_html/searchannview.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 session_start(); if (!isset($_SESSION["manager"])) { header("location: ./"); exit(); } ?> <?php include("includes/config.php"); ?> <?php if (isset($_GET['deltab'])) { unset($temp); if (isset($_GET['deltab'])) { $_GET['deltab'] = trim($_GET['deltab']); if (preg_match('/^[0-9]/u', $_GET['deltab'])) { settype($_GET['deltab'], 'int'); $temp = (int)$_GET['deltab']; } } if (!isset($temp)) { echo "Sorry! Wrong Data!"; exit(); } $deltab = $temp; $result = mysqli_query($con, "DELETE from institutions where sn = $deltab"); } $query_dio1 = mysqli_query($con, "SELECT * FROM institutions where status='Secondary School' order by nameadd"); $row_dio1 = mysqli_fetch_assoc($query_dio1); $totalRows_dio1 = mysqli_num_rows($query_dio1); $query_dio2 = mysqli_query($con, "SELECT * FROM institutions where status='Primary/Nursery School' order by nameadd"); $row_dio2 = mysqli_fetch_assoc($query_dio2); $totalRows_dio2 = mysqli_num_rows($query_dio2); $query_dio3 = mysqli_query($con, "SELECT * FROM institutions where status='Health Institution' order by nameadd"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); $query_dio4 = mysqli_query($con, "SELECT * FROM institutions where status='Pastoral/Vocational/Social Institution' order by nameadd"); $row_dio4 = mysqli_fetch_assoc($query_dio4); $totalRows_dio4 = mysqli_num_rows($query_dio4); $query_dio5 = mysqli_query($con, "SELECT * FROM institutions where status='Ecclesiastical Establishment' order by nameadd"); $row_dio5 = mysqli_fetch_assoc($query_dio5); $totalRows_dio5 = mysqli_num_rows($query_dio5); $query_dio6 = mysqli_query($con, "SELECT * FROM institutions where status='Media House' order by nameadd"); $row_dio6 = mysqli_fetch_assoc($query_dio6); $totalRows_dio6 = mysqli_num_rows($query_dio6); $query_dio7 = mysqli_query($con, "SELECT * FROM institutions where status='Book Centre' order by nameadd"); $row_dio7 = mysqli_fetch_assoc($query_dio7); $totalRows_dio7 = mysqli_num_rows($query_dio7); $query_dio8 = mysqli_query($con, "SELECT * FROM institutions where status='Chaplaincy' order by nameadd"); $row_dio8 = mysqli_fetch_assoc($query_dio8); $totalRows_dio8 = mysqli_num_rows($query_dio8); $query_dio9 = mysqli_query($con, "SELECT * FROM institutions where status='Tertiary Institution' order by nameadd"); $row_dio9 = mysqli_fetch_assoc($query_dio9); $totalRows_dio9 = mysqli_num_rows($query_dio9); $query_dio10 = mysqli_query($con, "SELECT * FROM institutions where status='Seminary/Formation House' order by nameadd"); $row_dio10 = mysqli_fetch_assoc($query_dio10); $totalRows_dio10 = mysqli_num_rows($query_dio10); $query_dio11 = mysqli_query($con, "SELECT * FROM institutions where status='Other Establishment' order by nameadd"); $row_dio11 = mysqli_fetch_assoc($query_dio11); $totalRows_dio11 = mysqli_num_rows($query_dio11); ?> <!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>Search Anniversary</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">Search Anniversary</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"> <p><a href="mod-auth">Go back to Admin Dashboard</a></p> <?php include("searchannrecord.php"); $num = mysqli_num_rows($sql); if ($num == 0) { echo ("<h3>" . $searchstring . "</h3>"); echo ("<p>No Records Found!</p>"); //exit(); } else { ?> <table width="80%" border="1" align="center" cellpadding="8" cellspacing="0" bordercolor="#000000" bgcolor="#CCCCCC" frame="box" rules="rows"> <tr> <td colspan="2" style="background-color:#000; color:#FF0;" class="headingbigger"><?php echo ("$searchstring"); ?></td> </tr> <?php while ($row = mysqli_fetch_array($sql)) { $aa = "date_format(" . $att . ", '%M %e %Y')"; echo ("<tr><td>" . $row["namer"] . "</td><td>" . $row[$aa] . "</td></tr>"); } ?> </table> <p> </p> <table width="80%" border="0" align="center" cellpadding="2" cellspacing="0"> <tr> <td bgcolor="#000000"> <div align="center"><strong> <font color="#FFFFFF"> <?php echo ("<p>$num Person(s) Found!</p>"); ?> </font> </strong></div> </td> </tr> </table> <?php } ?> </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
|
Настройка