403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/meeting-new/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/meeting-new/member.php
<? session_start();
	if($_SESSION['member_id'] == "")
	{
		header("Location: index.php");
				
	}
	if($_SESSION['member_status'] == "admin")
	{ 	
	}
	else
	{ header("Location: access_denined.php");	
	}
?>
<? include("f_thaidate.php");?>
<? include("datepick/datepick.php"); ?>
<html>
<head>
<title>Reservations Meeting</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="stylesheet/img/devil-icon.png"> <!--Pemanggilan gambar favicon-->
<link rel="stylesheet" type="text/css" href="mos-css/mos-style.css"> <!--pemanggilan file css-->
<script type="text/jscript">
$(document).ready(function() {
	$('a.button1').click(function() {
		
                //Getting the variable's value from a link 
		var loginBox = $(this).attr('href');

		//Fade in the Popup
		$(loginBox).fadeIn(300);
		
		//Set the center alignment padding + border see css style
		var popMargTop = ($(loginBox).height() + 24) / 2; 
		var popMargLeft = ($(loginBox).width() + 24) / 2; 
		
		$(loginBox).css({ 
			'margin-top' : -popMargTop,
			'margin-left' : -popMargLeft
		});
		
		// Add the mask to body
		$('body').append('<div id="mask"></div>');
		$('#mask').fadeIn(300);
		
		return false;
	});
	
	// When clicking on the button close or the mask layer the popup closed
	$('a.close, #mask').live('click', function() { 
	  $('#mask , .login-popup').fadeOut(300 , function() {
		$('#mask').remove();  
	}); 
	return false;
	});
});
</script>
</head>

<body>
<div id="header">
	<div class="inHeader2">
    <? if($_SESSION["member_sex"]=='F')
		{ $icon="moswomen";
		}
		else
		{ $icon="mosman";
		}
    ?>
		<div class="<?=$icon;?>">
		ยินดีต้อนรับ<br>
		<a href="">คุณ <?=$_SESSION["member_name"];?> </a>
		</div>
	<div class="clear"></div>
	</div>
</div>

<div id="wrapper2">
	<div id="leftBar">
	<ul>
		
		<li><a href="home.php">ย้อนกลับ</a></li>
		<li><a href="logout.php">ออกจากระบบ</a></li>
	</ul>
	</div>
	<div id="rightContent2">
    <h3><img src="img/icon/users.png"></h3>
    	
        		
		<div class="clear"></div>
        
<a href="#input-box" class="button1">เพิ่มข้อมูลผู้ใช้งาน</a>

<div id="input-box" class="login-popup">
        <a href="#" class="close"><img src="img/icon/delete.png" class="btn_close" title="ปิดหน้าต่างนี้" alt="Close" /></a>
        <form method="post" action="save_register2.php">
        <table style="border: none; font-size:14px; color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
        	<tr>
            	<td width="20%">ชื่อเข้าใช้งาน</td>
            	<td width="80%">
                <input type="text" name="txtUsername" class="wid60">  </td>
            </tr>
            <tr>
            	<td width="20%">รหัสผ่าน</td>
            	<td width="80%">
                <input type="password" name="txtPassword" class="wid60">  </td>
            </tr>
            <tr>
            	<td width="20%">ยืนยันรหัสผ่าน</td>
            	<td width="80%">
                <input type="password" name="txtConpass" class="wid60">  </td>
            </tr>
            <tr>
            	<td width="20%">ชื่อ</td>
            	<td width="80%">
                <input type="text" name="txtName" class="wid60">  </td>
            </tr>
            <tr>
            	<td width="20%"></td>
            	<td width="80%"><input type="submit" class="button" value="ตกลง"></td>
            </tr>
                                    
        </table>
        
        </form>
</div>


<!-- end ui dialog -->
        
        <!-- per page -->
     <? include("connectdb.php");
	  		
		if($_REQUEST["txtActive"]=="N")
		{ 	$strSQL1 = "UPDATE member SET active = 'Y' where id = '".$_POST["txtId"]."' and id <> 1 ";
			$objQuery1 = mysql_query($strSQL1); 
		}
		else
		{	$strSQL1 = "UPDATE member SET active = 'N' where id = '".$_POST["txtId"]."' and id <> 1 ";
			$objQuery1 = mysql_query($strSQL1); 
		}

		$strSQL = "select * from member";
		$objQuery = mysql_query($strSQL);

	?>

<table class="data" style="font-size:12px;">
			<tr class="data">
				<th class="data" width="10%">ID</th>
				<th class="data" width="20%">username</th>
				<th class="data" width="30%">ชื่อ - สกุล</th>
                <th class="data" width="20%">สิทธิการใช้งาน</th>
                <th class="data" width="20%">สถานะ</th>
                <th class="data" width="20%">แก้ไข</th>
             </tr>
            <? while($objResult = mysql_fetch_array($objQuery))
			{
			?>
            <tr class="data">
				<td class="data" align="center"><?=$objResult["id"];?></td>
				<td class="data" align="center"><?=$objResult["username"];?></td>
				<td class="data" align="center"><?=$objResult["name"];?></td>
                <td class="data" align="center"><?=$objResult["status"];?></td>
                <td class="data" align="center">
                <? if($objResult["active"]=='Y')
				{
					echo '<img src="img/icon/32/check.png">';
				}
				else
				{
					echo '<img src="img/icon/32/busy.png">';
				}
				?>
                </td>
                <td class="data" align="center">
                <form action="member.php" method="post">
                <input type="hidden" value="<?=$objResult["id"];?>" name="txtId">
                <input type="hidden" value="<?=$objResult["active"];?>" name="txtActive">
                <input type="submit" class="button" value="เปลี่ยนสถานะ">
                </form>
                </td>
             </tr>
            <?
			}
            ?>
</table>

 
	<div class="clear"></div>
       
<?
mysql_close($objConnect);
?>
        
		</div>
	<div class="clear"></div>
<div id="footer2">
<? include("footer.php"); ?>
</div>
</div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit