One Hat Cyber Team
Your IP :
216.73.216.155
Server IP :
122.155.17.190
Server :
Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
Server Software :
Apache/2
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
neunkho
/
public_html
/
hpp
/
images
/
Edit File:
login.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>กองสาธารณสุขและสิ่งแวดล้อม เทศบาลตำบแพรกษา เลขที่ 999/999 หมู่ 6 ซอยรักษ์พันดี ถนนพุทธรักษา ต.แพรกษา อ.เมืองฯ จ.สมุทรปราการ www.praekasa-hpp.com/</title> <META NAME="Author" CONTENT="PASWORLD.CO.TH Call Center 0-7580-0543 "> <META NAME="Keywords" CONTENT=" บางเมือง, ตำบลบางเมือง, ทต.บางเมือง,โปรแกรมสาธาณสุขบางเมือง, เทศบาลตำบลบางเมือง , สมุทรปราการ, บางเมืองสมุทรปราการ, : "> <META NAME="Description" CONTENT="PASWORLD COMMUNICATION "> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #06A9D2; } --> </style> <link rel="stylesheet" type="text/css" href="tabcontent.css" /> <script type="text/javascript" src="tabcontent.js"></script> <link href="styles.css" rel="stylesheet" type="text/css" /> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript" src="jquery_notification/js/jquery_v_1.4.js"></script> <script type="text/javascript" src="jquery_notification/js/jquery_notification_v.1.js"></script> <link href="jquery_notification/css/jquery_notification.css" type="text/css" rel="stylesheet"/> <style type="text/css"> <!-- .style4 {url: #003300} --> </style> <script type="text/javascript" src="stmenu.js"></script> <script type="text/javascript" src="stmenu.js"></script></head> <body background="images/3bg.jpg" style="background-repeat:no-repeat; background-position:top"> <div align="center"> <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"> </head> <?php require_once('Connections/hpp_tbm.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "index.php"; $MM_redirectLoginFailed = "login.php"; $MM_redirecttoReferrer = false; mysql_select_db($database_hpp_tbm, $hpp_tbm); $LoginRS__query=sprintf("SELECT * FROM tb_user WHERE username=%s AND password=%s", GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); $LoginRS = mysql_query($LoginRS__query, $hpp_tbm) or die(mysql_error()); $loginFoundUser = mysql_num_rows($LoginRS); $row_Rs = mysql_fetch_assoc($LoginRS); $loginid=$row_Rs['id_user']; $typeuser=$row_Rs['id_type_user']; if ($loginFoundUser) { $loginStrGroup = ""; if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();} //declare two session variables and assign them $_SESSION['MM_iduser']=$loginid; $_SESSION['MM_type_user']=$typeuser; $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; if (isset($_SESSION['PrevUrl']) && false) { $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; } $query_RsChk = "SELECT * FROM tb_user WHERE id_user = '$loginid'"; $RsChk = mysql_query($query_RsChk, $hpp_tbm) or die(mysql_error()); $row_RsChk = mysql_fetch_assoc($RsChk); $totalRows_RsChk = mysql_num_rows($RsChk); if($row_RsChk['status_user']=="1"){?> <script language="javascript"> window.location='index.php?page=dboard' </script> <?php }else{ ?> <script type="text/javascript"> $(function () { showNotification({ type : "error", message: "<?php echo $loginUsername;?> : ไม่ได้รับอนุญาตให้ใช้งาน กรุณาติดต่อผู้ดูแลระบบ", autoClose: true, duration: 10 }); }); </script> <?php } } else { ?> <script type="text/javascript"> $(function () { showNotification({ type : "error", message: "Username หรือ Password ไม่ถูกต้อง", autoClose: true, duration: 10 }); }); </script> <?php } } mysql_select_db($database_hpp_tbm, $hpp_tbm); $query_RsDepart = "SELECT * FROM tb_config_departmant"; $RsDepart = mysql_query($query_RsDepart, $hpp_tbm) or die(mysql_error()); $row_RsDepart = mysql_fetch_assoc($RsDepart); $totalRows_RsDepart = mysql_num_rows($RsDepart); ?> <body background="images/3bg.jpg" style="background-repeat:no-repeat; background-position:top"> <div align="center"> <table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th align="center" valign="top" scope="col"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th height="100" align="center" valign="top" scope="col"><img src="images/1a_02.png" width="980" height="189" /></th> </tr> <tr> <td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="585" align="center" valign="top" scope="col"> </td> <th align="center" valign="top" scope="col"> </th> <th width="395" align="center" valign="top" scope="col"><table width="395" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><div align="center"><img src="images/4_02.png" width="395" height="75" /></div></th> </tr> <tr> <td><div align="center"><img src="images/2a_07.png" width="395" height="33" /></div></td> </tr> <tr> <td background="images/5.png"><div align="center"><div align="center" style="border:0px solid;height: 257px; width: 320px;"> <form METHOD="POST" action="<?php echo $loginFormAction; ?>" id="login-form" class="smart-form client-form" enctype="multipart/form-data"> <div style="position:relative;top:30px;right:-20px;color:#ffffff" align="left" > USERNAME : <input type="text" name="username" id="username" required="required" size="23" autofocus> </div> <div style="position:relative;top:50px;right:-20px;color:#ffffff" align="left" > PASSWORD : <input type="password" name="password" id="password" required="required" size="23"> </div> <div style="position:relative;top:100px;right:-70px;"> <button type="submit" style="height: 30px; width: 100px;border-radius: 10px;"> Login </button> </div> </form> </div></div></td> </tr> <tr> <td><div align="center"><img src="images/2a_27.png" width="395" height="34" /></div></td> </tr> <tr> <td><div align="center"></div></td> </tr> <tr> <td><div align="center"></div></td> </tr> </table></th> </tr> <tr> <td width="585" align="center" valign="top" scope="col"> </td> <th align="center" valign="top" scope="col"> </th> <th width="395" align="center" valign="top" scope="col"> </th> </tr> <tr> <td width="585" align="center" valign="top" scope="col"> </td> <th align="center" valign="top" scope="col"> </th> <th width="395" align="center" valign="top" scope="col"> </th> </tr> <tr> <td width="585" align="center" valign="top" scope="col"> </td> <th align="center" valign="top" scope="col"> </th> <th width="395" align="center" valign="top" scope="col"> </th> </tr> </table></td> </tr> 1 <tr> <td height="220" align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><img src="images/1a_08.png" width="980" height="81" /></td> </tr> </table></th> </tr> <tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="images/up.png" width="64" height="64" border="0" /></a></td></tr> </table> </div> <map name="Map" id="Map"><area shape="rect" coords="874,224,925,254" target="_blank" /> </map></body> </html>
Simpan