MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/bin/agenda_v1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/bin/agenda_v1/login.php
<?
session_start();

header("Location: login_admin.php?action=show_main_menu");die;

include "config/config.inc.php";

if($action == "Check_login"){
$strSQL = "SELECT * FROM login  WHERE username='$uname'";
$Result = mysql_db_query($dbname,$strSQL);
$Rs = mysql_fetch_object($Result);
if(($Rs->pwd == $pwd and $Rs->username == $uname) and ($pwd != "" and $uname != "")){
	session_register("session_username");
	session_register("session_office");
	session_register("session_pws");
	$_SESSION[session_username] = $Rs->username;
	$_SESSION[session_office] = $Rs->office;
	$_SESSION[session_pwd] = $Rs->pwd;
	//$msg = "ถูกต้อง";
	header("Location: login_admin.php?action=show_main_menu");
	}else{
	$msg = "username หรือ password ไม่ถูกต้อง ";
	}
}	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title><?=$show_title?></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK href="common/style.css" rel=stylesheet>
<style type="text/css">
<!--
.header1 {	font-family:"MS Sans Serif", Tahoma, Arial;
	font-size:1em;
	font-weight:bold;
	color: #FFFFFF;
}
.main {	font-family:"MS Sans Serif", Tahoma, Arial;
	font-size:0.8em;
	color:#FF0000;
	font-weight:bold;
}
.normal {	font-family:"MS Sans Serif", Tahoma, Arial;
	font-size:0.8em;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style2 {font-size: 16px}
-->
</style>
</head>
<body  style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#273F6F', EndColorStr='#ffffff');">
<table width="100%" height="600" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><table width="500" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
      
      <tr>
        <td style="border:#818181 solid 1px; "><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><span class="table_head_text style2">ระบบบันทึกข้อมูลข่าวประชาสัมพัันธ์องค์กร</span></td>
          </tr>
          <tr>
            <td align="center" style=" padding:10px;"><table width="350" border="0" cellpadding="0" cellspacing="0" bgcolor="#ECECEC">
              <tr>
                <td width="79" valign="top" background="images/emp_main_new_27.gif" style=" background-repeat:repeat-y; background-position:left;"><img src="images/emp_main_new_19.gif" width="79" height="88"></td>
                <td width="264" background="images/emp_main_new_20.gif" style="background-repeat:repeat-x; background-position:top">
				<FORM METHOD=POST ACTION="">
                  <br>
                  <table border=0 align=center>
                    <tr>
                      <td align="right" style="color:#FFFFFF">&nbsp;</td>
                      <td align="left">&nbsp;</td>
                      <td align="left">&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="right" style="color:#666666"><B>Username</B></td>
                      <td align="left">&nbsp;</td>
                      <td align="left"><INPUT NAME="uname" TYPE="text" class="epm_inputbox" value="" size=20 maxlength=20></td>
                    </tr>
                    <tr>
                      <td align="right" style="color:#666666"><B>Password</B></td>
                      <td align="left">&nbsp;</td>
                      <td align="left"><INPUT NAME="pwd" TYPE="password" class="epm_inputbox" value="" size=20 maxlength=20></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td align="left">&nbsp;</td>
                      <td align="left">
					  <input type="hidden" name="action" value="Check_login">
					  <input name="submit" type=submit class="epm_button" value="   Login   "></td>
                    </tr>
                    
                    <tr>
                      <td colspan="3" align="center"><div align="center"><font color="RED">
                    <?=$msg?></font></div></td>
                    </tr>
                  </TABLE>
                </FORM></td>
                <td width="7" align="right" valign="top" background="images/emp_main_new_25.gif" style="background-repeat: repeat-y; background-position:right"><img src="images/emp_main_new_22.gif" width="7" height="15"></td>
              </tr>
              <tr>
                <td valign="bottom" background="images/emp_main_new_27.gif" style=" background-repeat:repeat-y; background-position:left;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td valign="bottom" background="images/emp_main_new_31.gif"><img src="images/emp_main_new_30.gif" width="7" height="6"></td>
                  </tr>
                </table></td>
                <td background="images/emp_main_new_31.gif" style="background-repeat:repeat-x; background-position:bottom">&nbsp;</td>
                <td align="right" valign="bottom" background="images/emp_main_new_25.gif" style="background-repeat: repeat-y; background-position:right"><img src="images/emp_main_new_33.gif" width="7" height="6"></td>
              </tr>
              
            </table></td>
          </tr>
        </table></td>
      </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>

Anon7 - 2021