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/develop_person_depart/ drwxr-xr-x |
Viewing file: Select action/file-type: <?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 */ header('Content-type: application/xls'); header('Content-Disposition: attachment; filename="testing.xls"'); require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( "../include/Function.php" ); /** Create Database Object */ $dbObj = new DBConn; //=== SESSION $Username = $valid_user; /** Config Table for This Page */ $myTable = "personal_tb"; $query = " SELECT * FROM $myTable Where StatusId ='1' "; $result = $dbObj->execQuery($query); } # 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" /> <title>ข้อมูลสำหรับผู้บริหาร : รายงานบุคลากร - รายชื่อบุคลากรจำแนกตามวุฒิการศึกษา</title> </head> <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0"> <table width="760" border="1" align="center" cellpadding="0" cellspacing="0" class="BORDER-GREY"> <tr bgcolor="#F0F0F0"> <td width="31" height="25" align="center"><strong>No</strong></td> <td width="221" align="center" class="BORDER-LEFT-RIGHT"><strong>ชื่อ-นามสกุล</strong></a></td> <td width="80" align="center"><strong>วุฒิปริญญา</strong></td> <td width="368" align="center" class="BORDER-LEFT"><strong>สาขาวิชา/สถานศึกษา</strong></td> <td width="60" align="center" class="BORDER-LEFT"><strong>ปีที่จบ</strong></td> </tr> <?php $no = 1+($display-1)*$limit; while( $rs = $dbObj->fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?> <tr bgcolor="<?=$bgColor;?>"> <td height="23" align="center" class="BORDER-TOP"><?=$no;?></td> <td align="left" class="PADDING-LEFT-5 BORDER-TOP-LEFT-RIGHT"><?php echo $rs['First_name'] . $rs['Teacher_name'] ." ". $rs['Teacher_lastname']; ?></a></td> <td colspan="3" align="center" class="BORDER-TOP PADDING-TOP-3 PADDING-BOTTOM-3"><table width="101%" border="1" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFEE"> <td width="16%" height="20" align="center" valign="top" style="border-bottom:1px dotted #DDDDDD">ตรี</td> <td width="71%" align="left" valign="top" style="border-bottom:1px dotted #DDDDDD"><?php if( $rs['Degree_His1'] != "" ) echo $rs['Degree_His1']; else echo " "; ?></td> <td width="13%" align="center" valign="top" style="border-bottom:1px dotted #DDDDDD"><?php if( $rs['Degree_His1_End_Year'] != "" ) echo $rs['Degree_His1_End_Year']; else echo " "; ?></td> </tr> <tr bgcolor="#FEF6F6"> <td height="20" align="center" valign="top" style="border-bottom:1px dotted #DDDDDD">โท</td> <td align="left" valign="top" style="border-bottom:1px dotted #DDDDDD"><?php if( $rs['Degree_His2'] != "" ) echo $rs['Degree_His2']; else echo " "; ?></td> <td align="center" valign="top" style="border-bottom:1px dotted #DDDDDD"><?php if( $rs['Degree_His2_End_Year'] != "" ) echo $rs['Degree_His2_End_Year']; else echo " "; ?></td> </tr> <tr bgcolor="#F7F7F7"> <td height="20" align="center" valign="top">เอก</td> <td align="left" valign="top"><?php if( $rs['Degree_His3'] != "" ) echo $rs['Degree_His3']; else echo " "; ?></td> <td align="center" valign="top"><?php if( $rs['Degree_His3_End_Year'] != "" ) echo $rs['Degree_His3_End_Year']; else echo " "; ?></td> </tr> </table></td> </tr> <?php $no++; } # while $dbObj->freeresult($result1); ?> </table> </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.0062 ]-- |