!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/Plan_new/   drwxr-xr-x
Free 51.01 GB of 127.8 GB (39.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FrmEditStdPlan.php (18.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  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/FunctionDB.php" );
           require_once( 
"../include/FunctionDB.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
$Username $valid_user;
/**  Config Table for This Page  */
        
$myTable "projectstdplan_tb";
        
$myTablePK "Orderlist";
        
$myTable1 "qa_pi_cri_tb";
        
$myTable2FK "code";

        
//===  salary_repot_tb
        
$query " SELECT *  FROM $myTable   WHERE Budget_Year='$Budget_Year'   AND  Faculty_code='$Faculty_code' AND  Project_code='$Project_code'  ORDER  BY Orderlist  ASC ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($result);
        
$num $dbObj->_numrows;
        
    } 
# 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" />
<script language="javascript" src="../js/utilities.js"></script>

<title>ข้อมูลแผนดำเนินงานและรายงาน : ข้อมูลแผนดำเนินการ รายปีงบประมาณ - เพิ่มข้อมูลแผน/โครงการรดำเนินงาน (ข้อหลัก)</title>
<style type="text/css">
<!--
.style1 {color: darkblue}
-->
</style>
</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" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset><table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="EditPlanStd.php" onSubmit="return checkData();">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="PlaningByYear.php">แผนปฏิบัติการรายปี งปม</a> &raquo; <span class="NOTE">แก้ไขข้อมูลแผน/โครงการร (ข้อหลัก)</span></strong></td>
      </tr>
      <tr>
        <td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="PADDING-TOP-10 PADDING-BOTTOM-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></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="350" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8" style="border:1px solid #F0F0F0">
          <tr>
            <td colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-ORANGE9">ขึ้นบรรทัดใหม่ ใน Text Area ใช้ Ship+Enter</td>
          </tr>
          <tr>
            <td width="17%" height="25" align="right" bgcolor="#FFFFFF">หน่วยงาน</td>
            <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
            <td width="82%" bgcolor="#FFFFFF"><select name="Faculty_code" id="Faculty_code">
              <option value=""></option>
                <?php
              
                  $sql
" SELECT *  FROM   faculty_tb      ORDER BY Faculty_code  ASC ";
                  
$result1 mysql_query($sql);
                  while( 
$rs1 mysql_fetch_array($result1) ) {
                
?>
                <option value="<?=$rs1['Faculty_code'];?><?php if( $rs1['Faculty_code']==$rs['Faculty_code'] ) echo 'selected';?>>
                  <?=$rs1['Faculty_name'];?>
                  </option>
                <?php
                
# while
                  
mysql_free_result($result1);
              
?>
              </select></td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">หลักสูตร</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><select name="programId" id="programId">
                <option value=""></option>
                <?php
               
//$programId = $rs['programId'] ;
                  
$sql4" SELECT *  FROM program  WHERE   programStatus ='Y'    ";
                  
$result4 mysql_query($sql4);
                  while( 
$rs4 mysql_fetch_array($result4) ) {
                
?>
                <option value="<?=$rs4['programId'];?><?php if( $rs4['programId']==$rs['programId'] ) echo 'selected';?>>
                <?=$rs4['programName'];?>
                </option>
                <?php
                
# while
                  
mysql_free_result($result4);
              
?>
            </select></td>
          </tr>
          <tr>
            <td height="25" align="right" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> ปีงบประมาณ พ.ศ.</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><input name="Budget_Year" type="text" id="Budget_Year" style="text-align:center" value="<?php echo $rs['Budget_Year']; ?>" size="4" maxlength="4" /></td>
          </tr>
          <tr>
            <td height="25" align="right" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> รหัสแผนงาน/โครงการ </td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><input name="Orderlist" type="text" id="Orderlist" style="text-align:center" value="<?php echo $rs['Orderlist']; ?>" size="8" /></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> ชื่อแผนงาน/โครงการ</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><input name="Project_plan" type="text" class="input" id="Project_plan" value="<?php echo $rs['Project_plan']; ?>" size="99" /></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF">ลักษณะของแผน</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><input name="codeId" type="radio"  <?php if ( !strcmp("$rs[codeId]","1") ) { echo "checked"; } ?> value="1"   />
              แผนยุทธ์ศาสตร์
              <input name="codeId" type="radio" <?php if ( !strcmp("$rs[codeId]","2") ) { echo "checked"; } ?> value="2"   />
              แผนงานประจำ</td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> วัตถุประสงค์</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><textarea name="Orderlist_2" cols="75" rows="5" class="input" id="Orderlist_2" ><?=htmlspecialchars_decode$rs['Orderlist_2'] ) ;?>
            </textarea></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> ตัวชี้วัดความสำเร็จ</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><textarea name="Project_name" cols="75" rows="5" class="input" id="Project_name" ><?=htmlspecialchars_decode$rs['Project_name'] ) ;?>
            </textarea></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> วิธีการดำเนินงาน</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><textarea name="Project_rep" cols="75" rows="5" class="input" id="Project_rep" ><?=htmlspecialchars_decode$rs['Project_rep'] ) ;?>
            </textarea></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> กลุ่มเป้าหมาย</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><textarea name="Period" cols="75" rows="5" class="input" id="Period" ><?=htmlspecialchars_decode$rs['Period'] ) ;?>
            </textarea></td>
          </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF"><span class="TEXT-RED10"><sup>*</sup></span> ผลที่คาดว่าจะได้รับ</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><textarea name="Period_1" cols="75" rows="5" class="input" id="Period_1" ><?=htmlspecialchars_decode$rs['Period_1'] ) ;?>
            </textarea>
              <script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
              <script src='../editor/quickB.js'></script> 
              <script src='../editor/tabedit.js'></script></td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td height="31" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ผู้รับผิดชอบคนที่  1 </td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><select name="Teacher_code1" id="Teacher_code1">
                <option value=""></option>
                <?php
                  $sql1 
" SELECT *  FROM personal_tb  WHERE StatusId='1'  AND  ( Teacher_type='1' OR Teacher_type='2' OR Teacher_type='4' OR Teacher_type='5' OR Teacher_type='6' )  ORDER BY  Teacher_name  ASC ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs1 mysql_fetch_array($result1) ) {
                
?>
                <option value="<?=$rs1['Teacher_code'];?><?php if( $rs1['Teacher_code']==$rs['Teacher_code1'] ) echo 'selected';?>>
                  <?=$rs1['First_name'];?>
                  <?=$rs1['Teacher_name'];?>
                  &nbsp;
                <?=$rs1['Teacher_lastname'];?>
                  </option>
                <?php
                
# while
                  
mysql_free_result($result1);
              
?>
            </select></td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td height="32" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ผู้รับผิดชอบคนที่  2 </td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><select name="Teacher_code2" id="Teacher_code2">
                <option value=""></option>
                <?php
                  $sql1 
" SELECT *  FROM personal_tb  WHERE StatusId='1'  AND  ( Teacher_type='1' OR Teacher_type='2' OR Teacher_type='4' OR Teacher_type='5' OR Teacher_type='6' )  ORDER BY  Teacher_name ASC ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs1 mysql_fetch_array($result1) ) {
                
?>
                <option value="<?=$rs1['Teacher_code'];?><?php if( $rs1['Teacher_code']==$rs['Teacher_code2'] ) echo 'selected';?>>
                  <?=$rs1['First_name'];?>
                  <?=$rs1['Teacher_name'];?>
                  &nbsp;
                <?=$rs1['Teacher_lastname'];?>
                  </option>
                <?php
                
# while
                  
mysql_free_result($result1);
              
?>
            </select></td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td height="29" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ผู้รับผิดชอบคนที่ 3 </td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><select name="Teacher_code3" id="Teacher_code3">
                <option value=""></option>
                <?php
                  $sql1 
" SELECT *  FROM personal_tb WHERE StatusId='1'  AND  ( Teacher_type='1' OR Teacher_type='2' OR Teacher_type='4' OR Teacher_type='5' OR Teacher_type='6' )  ORDER BY   Teacher_name  ASC ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs1 mysql_fetch_array($result1) ) {
                
?>
                <option value="<?=$rs1['Teacher_code'];?><?php if( $rs1['Teacher_code']==$rs['Teacher_code3'] ) echo 'selected';?>>
                  <?=$rs1['First_name'];?>
                  <?=$rs1['Teacher_name'];?>
                  &nbsp;
                <?=$rs1['Teacher_lastname'];?>
                  </option>
                <?php
                
# while
                  
mysql_free_result($result1);
              
?>
            </select></td>
          </tr>
          <tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
            <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ผู้รับผิดชอบคนที่  4 </td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td bgcolor="#FFFFFF"><select name="Teacher_code4" id="Teacher_code4">
                <option value=""></option>
                <?php
                  $sql1 
" SELECT *  FROM personal_tb  WHERE StatusId='1'  AND  ( Teacher_type='1' OR Teacher_type='2' OR Teacher_type='4' OR Teacher_type='5' OR Teacher_type='6' )  ORDER BY   Teacher_name  ASC ";
                  
$result1 mysql_query($sql1);
                  while( 
$rs1 mysql_fetch_array($result1) ) {
                
?>
                <option value="<?=$rs1['Teacher_code'];?><?php if( $rs1['Teacher_code']==$rs['Teacher_code4'] ) echo 'selected';?>>
                  <?=$rs1['First_name'];?>
                  <?=$rs1['Teacher_name'];?>
                  &nbsp;
                <?=$rs1['Teacher_lastname'];?>
                  </option>
                <?php
                
# while
                  
mysql_free_result($result1);
              
?>
            </select></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF">เป้าหมาย</td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF"><span class="style1">ปีงบประมาณ</span></td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF"><input name="Budget_Year1" type="text" id="Budget_Year1" value="<?php echo $rs['Budget_Year1']; ?>" size="3" maxlength="4" />
              <span class="style1"> ค่าเป้าหมาย
              <input name="IndNo1" type="text" id="IndNo1" value="<?php echo $rs['IndNo1']; ?>" size="5" />
              </span></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF"><span class="style1">ปีงบประมาณ</span></td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF"><input name="Budget_Year2" type="text" id="Budget_Year2" value="<?php echo $rs['Budget_Year2']; ?>" size="3" maxlength="4" /> 
              <span class="style1">ค่าเป้าหมาย
              <input name="IndNo2" type="text" id="IndNo2" value="<?php echo $rs['IndNo2']; ?>" size="5" />
              </span></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF"><span class="style1">ปีงบประมาณ</span></td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF"><input name="Budget_Year3" type="text" id="Budget_Year3" value="<?php echo $rs['Budget_Year3']; ?>" size="3" maxlength="4" />
              <span class="style1"> ค่าเป้าหมาย
              <input name="IndNo3" type="text" id="IndNo3" value="<?php echo $rs['IndNo3']; ?>" size="5" />
              </span></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF"><span class="style1">ปีงบประมาณ</span></td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF">
              <input name="Budget_Year4" type="text" id="Budget_Year4" value="<?php echo $rs['Budget_Year4']; ?>" size="3" maxlength="4" />
              <span class="style1">ค่าเป้าหมาย</span><span class="style1">
              <input name="IndNo4" type="text" id="IndNo4" value="<?php echo $rs['IndNo4']; ?>" size="5" />
              </span></td>
          </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF" tgcolor="#F8F8F8"><span class="style1">ปีงบประมาณ</span></td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF"><input name="Budget_Year5" type="text" id="Budget_Year5" value="<?php echo $rs['Budget_Year5']; ?>" size="3" maxlength="4" />
              <span class="style1">ค่าเป้าหมาย
              <input name="IndNo5" type="text" id="IndNo5" value="<?php echo $rs['IndNo5']; ?>" size="5" />
              </span></td>
          </tr>
          <tr>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="25" align="left" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          
          <tr>
            <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="29" align="left" bgcolor="#FFFFFF"><input name="Project_code" type="hidden" id="Project_code" value="<?=$rs['Project_code'];?>" />
            <input name="Submit" type="submit" class="WIDTH60 CURSOR-HAND" value="บันทึก" />
            &nbsp;
            <input name="Reset" type="reset" class="WIDTH60 CURSOR-HAND" value="รีเซ็ต" /> &nbsp;
            &nbsp;
            <input name="Button" type="button" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href='PlaningByYear.php'" /></td>
          </tr>
          <tr>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
       </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr></form>
    </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.0145 ]--