Файловый менеджер - Редактировать - /home/umudio/public_html/sendsms.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>Send SMS</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">Send SMS</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 method="post" action="senddsmsresult2.php" id="myform"> <table width="100%" cellpadding="0" cellspacing="5" border="0"> <tr valign="top"> <td> <div> </div> <b>From: </b><input type="text" name="sender" id="sender" required="required" value="Aba_Diocese" maxlength="11" size="11" /><br /> <div style="padding-right:15px; padding-left:7px; color:#0663fd; line-height:125%; font-style:italic;">This is the Sender's Name the recipient would see. Up to 11 alphanumeric characters can be used. It can contain numbers, letters, spaces, periods, hyphens and underscores.</div> <div> </div> <div align="left"> <label> <input type="radio" name="recipients" value="somemember" id="somemember" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b></label><select name="towhom" id="towhom"> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Aba Diocesan Priest'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="IP">All Aba Diocesan Priests</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Aba Diocesan Priest' and specialassign<>''"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="IPSA">Priests on Special Assignment</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Aba Diocesan Priest' and studyleave<>''"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="IPSL">Priests on Study Leave</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Priest from Other Diocese'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="OP">All Priests from Other Diocese</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Catholic Church of the East'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Pre">Catholic Church of the East</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Religious' and ordination<>0"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="RelP">All Religious Priests Working in the Diocese</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and (titler<>'Msgr.' or titler<>'Very Rev. Fr.' or titler<>'Rev. Fr.')"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="AP">All Priests Working in the Diocese</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Religious' and ordination=0"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="RelSB">Only Religious Sisters/Brothers</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Religious'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Rel">All Religious</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Rev.'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Dea">Deacons</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Seminarian'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Sem">Seminarian</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Catechist'"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Cat">Catechist</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' and status='Others' and (titler<>'Catechist' or titler<>'Seminarian' or titler<>'Rev.')"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Oth">Other Personnels in the Diocese</option> <?php } ?> <?php $datyear = date("Y"); $datmonth = date("n"); $ddmonth = date("F"); $datday = date("d"); //$aweek = $datday + 6; $aweek = $datday; $tdate = date("Y-m-d"); $wkdate = date("m-d", strtotime("+6 day")); ?> <?php $query_dio3 = mysqli_query($con, "SELECT phone, sn, namer, email, dob, ordination, DAYOFMONTH(dob) AS 'weekname' FROM priests WHERE MONTH(dob) = $datmonth AND DAYOFMONTH(dob) >= $datday AND DAYOFMONTH(dob) <= $aweek ORDER by weekname"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Bir">All Birthday Anniversary</option> <?php } ?> <?php $query_dio3 = mysqli_query($con, "SELECT phone, sn, namer, email, dob, ordination, DAYOFMONTH(ordination) AS 'weekname' FROM priests WHERE MONTH(ordination) = $datmonth AND DAYOFMONTH(ordination) >= $datday AND DAYOFMONTH(ordination) <= $aweek ORDER by weekname"); $row_dio3 = mysqli_fetch_assoc($query_dio3); $totalRows_dio3 = mysqli_num_rows($query_dio3); if ($totalRows_dio3 > 0) { ?> <option value="Ord">All Ordination Anniversary</option> <?php } ?> <!-- <?php $query_dio1 = mysqli_query($con, "SELECT * FROM priests where archived<>'Yes' order by namer asc"); $row_dio1 = mysqli_fetch_assoc($query_dio1); $totalRows_dio1 = mysqli_num_rows($query_dio1); if ($totalRows_dio1 > 0) { do { $phone = $row_dio1["sn"]; $namer = $row_dio1["namer"]; echo ("<option value='$phone'>$namer</option>"); } while ($row_dio1 = mysqli_fetch_assoc($query_dio1)); } ?> --> </select> </div> <label> <input type="radio" name="recipients" value="allmember" id="allmember" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b><b>All Personnel</b></label> <br /> <div style="float:left;"> <input type="radio" name="recipients" value="generic" checked="checked" id="generic" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b></div><textarea name="sendto" id="sendto" rows="5" cols="30" required="required">2348025301075</textarea><br /> <div style="padding-right:15px; padding-left:7px; color:#0663fd; line-height:125%; font-style:italic;">Destination mobile number(s). Use commas to separate multiple numbers. Phone numbers are required in international format, begin with 234, no + sign, no spaces, no dashes, no 0 in front of the area code. eg: 2348025301075,2348038569196</div> </td> </tr> <tr> <td width="300px"> <div style="float:left;"> <b>Message </b></div> <textarea name="getlength" maxlength="1600" rows="15" cols="35" lengthcut="true" required="required">Hello. </textarea> <br /> <!-- getlength, fixlength <textarea name="getlength" maxlength="160" lengthcut="true" rows="5" cols="45">Demo Text. This field has a maxlength, and the length is enforced. </textarea><br> <textarea name="nolength" rows="5" cols="45">This field has no maxlength.</textarea> --> <!-- <div align="right"><input type="submit" value="Send SMS" /></div> --> </td> </tr> <tr valign="top"> <td colspan="2"><br> <input style="margin-left: 60px;" name="" type="submit" style="font-size:12px;" class="default-btn-two" id="addnews" value=" Send SMS " /> </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
|
Настройка