Server IP : 2a02:4780:3:1493:0:3736:a38e:7 / Your IP : 216.73.216.139 Web Server : LiteSpeed System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/src/../../smart/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("config.php"); ?> <?php if (isset($_GET['code']) || isset($_SESSION['school_code'])) { $school_code = ''; if(isset($_GET['code'])) { $school_code = $_GET['code']; } else if(isset($_SESSION['school_code'])) { $school_code = $_SESSION['school_code']; } if ($school_code != "" && $school_code != "0") { $sel_school = mysqli_query($con, "SELECT * FROM schools WHERE is_active=1 AND school_code='$school_code'"); $expiry_date = ""; $custom_db = ''; $custom_db_user = ''; $custom_db_pwd = ''; while ($rows = mysqli_fetch_array($sel_school)) { $expiry_date = $rows['expiry_date']; $custom_db = $rows['db']; $custom_db_user = $rows['db_user']; $custom_db_pwd = $rows['db_pwd']; $annexure_report_active = $rows['annexure_report_active']; } if ($custom_db != "" || $custom_db_user != "" || $custom_db_pwd != "") { if ($expiry_date != "") { if ((strtotime($expiry_date)) >= (time())) { $_SESSION['custom_db'] = $custom_db; $_SESSION['custom_db_user'] = $custom_db_user; $_SESSION['custom_db_pwd'] = $custom_db_pwd; $_SESSION['school_code'] = $school_code; $_SESSION['annexure_report_active'] = $annexure_report_active; if(isset($_GET['redirect']) && $_GET['redirect'] != '') { $redirect = $_GET['redirect']; echo "<script>window.location='".$redirect."';</script>"; } else { echo "<script>window.location='index.php';</script>"; } } else { $expiry_date1 = Date('d-m-Y', strtotime($expiry_date)); echo "<script>alert('Your software has been expired on $expiry_date1. please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Date is not valid please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Invalid school code please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Please select school...'); window.location='default.php';</script>"; } } ?> <html lang="en"> <head> <title>E-Vision Smart Login</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="school_files/images/logo.jpg"> <link rel="stylesheet" type="text/css" href="school_files/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="school_files/font-awesome-4.7.0/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="school_files/css/animate.css"> <link rel="stylesheet" type="text/css" href="school_files/css/hamburgers.min.css"> <link rel="stylesheet" type="text/css" href="school_files/css/util.css"> <link rel="stylesheet" type="text/css" href="school_files/css/main.css"> <link rel="stylesheet" href="school_files/css/jquery-ui.css"> <link rel="stylesheet" href="school_files/css/style.css"> </head> <body> <div class="limiter"> <div class="container-login100"> <div class="wrap-login100"> <div class="login100-pic js-tilt" data-tilt="" style="will-change: transform; transform: perspective(300px) rotateX(0deg) rotateY(0deg);"> <img src="school_files/images/img-01.png" alt="IMG"> </div> <form action="" method="POST" id="frmSchool" class="login100-form" style="width:350px;"> <span class="login100-form-title" style="margin-top:40px;"> Login </span> <div class="wrap-input100 validate-input" data-validate="school is required"> <input class="input100" type="text" id="autocomplte" name="school_code" placeholder="School Code" autocomplete="off"> <span class="focus-input100"></span> <span class="symbol-input100"> <i class="fa fa-envelope" aria-hidden="true"></i> </span> </div> <div class="container-login100-form-btn"> <button class="login100-form-btn" name="btnLogin" type="submit"> Login </button> </div> <div class="container-login100-form-btn"> <a href="https://help.smsoft.in/" target="_blank"> Need Help? </button> </div> </form> </div> </div> </div> <script src="school_files/js/jquery-3.2.1.min.js"></script> <script src="school_files/js/popper.js"></script> <script src="school_files/js/bootstrap.min.js"></script> <script src="school_files/js/tilt.jquery.min.js"></script> <script> $('.js-tilt').tilt({ scale: 1.1 }) </script> <script src="school_files/js/main.js"></script> <script defer="" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon="{"rayId":"67567e42f9191d53","token":"cd0b4b3a733644fc843ef0b185f98241","version":"2021.7.0","si":10}"></script> <script src="school_files/js/jquery-ui.js"></script> </body> </html> <?php if (isset($_POST['btnLogin'])) { $school_code = $_POST['school_code']; if ($school_code != "" && $school_code != "0") { $sel_school = mysqli_query($con, "SELECT * FROM schools WHERE is_active=1 AND school_code='$school_code'"); $expiry_date = ""; $custom_db = ''; $custom_db_user = ''; $custom_db_pwd = ''; while ($rows = mysqli_fetch_array($sel_school)) { $expiry_date = $rows['expiry_date']; $custom_db = $rows['db']; $custom_db_user = $rows['db_user']; $custom_db_pwd = $rows['db_pwd']; $annexure_report_active = $rows['annexure_report_active']; } if ($custom_db != "" || $custom_db_user != "" || $custom_db_pwd != "") { if ($expiry_date != "") { if ((strtotime($expiry_date)) >= (time())) { $_SESSION['custom_db'] = $custom_db; $_SESSION['custom_db_user'] = $custom_db_user; $_SESSION['custom_db_pwd'] = $custom_db_pwd; $_SESSION['school_code'] = $school_code; $_SESSION['annexure_report_active'] = $annexure_report_active; echo "<script>window.location='index.php';</script>"; } else { $expiry_date1 = Date('d-m-Y', strtotime($expiry_date)); echo "<script>alert('Your software has been expired on $expiry_date1. please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Date is not valid please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Invalid school code please contact to administrator...'); window.location='default.php';</script>"; } } else { echo "<script>alert('Please select school...'); window.location='default.php';</script>"; } } ?>