Файловый менеджер - Редактировать - /home/umudio/public_html/findann.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>Find 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">Find Annniversary</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> <form action="searchannview.php" method="post" name="form1"> <table width="80%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" frame="box" rules="cols"> <tr> <td bgcolor="#000000"> <div align="center"><strong> <font color="#FFFFFF">Find Anniversary for:</font> </strong></div> </td> </tr> <tr> <td> <table width="100%" border="1" align="center" cellspacing="0" bordercolor="#000000" bgcolor="#eeeeee"> <tr> <td><label> <input name="acc" type="radio" value="bir" checked> Birthday</label></td> </tr> <tr> <td><label> <input type="radio" name="acc" value="ord"> Ordination</label></td> </tr> </table> </td> </tr> <tr> <td bgcolor="#000000"> <div align="center"> <font color="#FFFFFF"><strong>Using:</strong></font> </div> </td> </tr> <tr> <td> <table width="100%" border="1" cellspacing="0" bordercolor="#000000" frame="box" rules="rows"> <tr> <td bgcolor="#eeeeee"> <label> <input type="radio" name="valbir" value="mo"> Particular Month:</label></td> <td colspan="2"><select name="mobir" id="mobir"> <option value="1" selected>January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select></td> </tr> <tr> <td bgcolor="#eeeeee"> <label> <input type="radio" name="valbir" value="da"> Particular Day:</label></td> <td colspan="2"><select name="birmo" id="birmo" onChange="cha(value)"> <option value="1" selected>January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> <select name="birda" id="dd"> <option value="1" selected>1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> </td> </tr> <tr> <td bgcolor="#eeeeee"> <label> <input type="radio" name="valbir" value="an"> Anniversary</label></td> <td> <div class="textsmaller"> <label> <input type="radio" name="lilianbir" value="equal" checked="checked"> Equals</label> <label> <input type="radio" name="lilianbir" value="greater"> Greater</label> <label> <input type="radio" name="lilianbir" value="less"> Less</label> </div> <input name="anbir" type="text" id="anbir"> </td> <td class="textsmaller"><strong>(Specify number of years, e.g. type 51)</strong></td> </tr> <tr> <td bgcolor="#eeeeee"> <label> <input name="valbir" type="radio" value="tod" checked> Today</label></td> <td colspan="2"> </td> </tr> </table> </td> </tr> <tr> <td> <div align="right"> <input type="submit" name="Submit" value="Search the Record"> <input type="reset" name="Submit2" value="Reset"> </div> </td> </tr> </table> </form> </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
|
Настройка