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


Viewing file:     formatdeptNo.php (5.21 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 
"../class/clsSysConfig.php";
include_once 
"funct.php";
include_once 
"../link/keyThai.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);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);
$InputThai=$oSys->SearchByInputThai();
$maxdate $oDP3->MaxDate();
?>
<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="addDeptNo" name="addDeptNo" 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"><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="processFormatDeptNo.php" method="post" target="addDeptNo">   <? //?>
       <table width="54%" 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>
        <? ?>
            </tr>
        <tr><td>&nbsp;</td></tr>
       </table>     
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
                        <tr>
                            <td valign="top"><br>
                    <label><div align="center">
    <?
                    $oT 
= new clsTable(array("ส่วนราชการภายใน","เลขที่หน่วยงาน"));
                    
$oT->bgColor="#CCCCCC";
                    
$oT->align="center";
                    
$oDP2->searchdeptDate($maxdate);
                    
$rw=0;
                    while (
$oDP2->GetRecord()){
                        
ShowDeptM($oDP2->deptId,$InputThai);        
                    }
                    
                    
$oT->rowStart("","#ffffff");
                    
$oT->rowEnd();
                    
                    echo 
"<form name=ps method=post>";
                    echo 
"<input type=hidden name=method value=''>";
                    echo 
"<input type=hidden name=startyear value=''>";
                    echo 
$oT->output();
                    
                    
//////////////////////////////////////////
                    
                    
?>
                    </div></td>
                        </tr>
                    </table>
       
        <table  align="center" width="80%"><tr><td><font size="3">
        <strong>หมายเหตุ</strong><br>1. ในการกำหนดเลขที่หน่วยงานย่อยชั้นที่ 1 เช่น มีจำนวน 5 หน่วยงานย่อย ให้ใส่เลขที่หน่วยงานคือเริ่มที่ 01, 02 ไปจนครบ 05 ตามระดับหน่วยงานย่อยชั้นที่ 1 
        <br>2. ในการกำหนดเลขที่หน่วยงานย่อยชั้นที่ 2 เช่น มีจำนวน 3 หน่วยงานย่อยในลำดับชั้นที่ 1 ของหน่วยงานย่อยลำดับที่ 2 ก็คือ ให้กำหนดดังนี้ 02.01, 02.02, 02.03 ไปจนครบ
        <br>3. ในการกำหนดเลขที่หน่วยงานย่อยชั้นที่ 3 เช่น มีจำนวน 2 หน่วยงานย่อยในลำดับชั้นที่ 3 ของหน่วยงานย่อยลำดับที่ 2 ต่อไปอีก ก็คือ ให้กำหนดดังนี้ 02.01.01, 02.02.02, 02.03.03 ไปจนครบ
        <br>4. ในการกำหนดเลขที่หน่วยงานย่อยในองค์กรนี้เมื่อกำหนดเรียบร้อยแล้วระบบจะดึงเลขที่กำหนดไปต่อท้ายที่หนังสือของวิทยาลัยโดยอัตโนมัติ เมื่อมีการลงทะเบียนส่งหนังสือต่อไปทั้งหนังสือภายในและภายนอก เช่น สธ 0203.082/01.01  
        </font></td></tr></table><br>
      <table align="center" width="90%">
      <tr><td >&nbsp;</td></tr>
      <tr><td colspan="2" align="center">
                      <input type="submit" name="setDeptNo" value="บันทึก" onClick="return checkFormat();">
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '?mm=1'">
                <input type="hidden" name="method">        
            </td></tr>
      </table></form>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<?
function ShowDeptM($deptId,$InputThai){
                        global 
$oC;
                        global 
$oT;
                        global 
$Str;
                        global 
$rw;

                        
$oPS = new person($oC);
                        
$oDp  = new Department($oC);
                        
$oDp->SearchByKey($deptId);
                        
$oDp->GetRecord();

                        if (
$oDp->deptLevel%2==0){                            
                            
$bs="<b>";    
                            
$be="</b>";    
                        }
                        
$lv =  $oDp->deptLevel+1;              
                        
$oT->addRow(array(str_repeat("<img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif>"$oDp->deptLevel*2). $bs ."   ".$oDp->deptName$be
                        
,"<div align=center><input name=\"deptNo[".$oDp->deptId."]\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"".a2th($oDp->deptNo)."\"    onKeyPress=\"event.keyCode=CheckInput2(event.keyCode,'".$InputThai."'); return event.keyCode;\" style=text-align:center></div>"));
                
                        
$oDp->RSmenuByDeptParent3($deptId);
                        while (
$oDp->GetRecord()){
                            
ShowDeptM($oDp->deptId,$InputThai);
                        }
                    } 
    
?>
<script language="javascript">
function checkFormat(){
        var agree=confirm("คุณต้องการบันทึกข้อมูลที่หนังสือหน่วยงานย่อยในองค์กรใช่หรือไม่ ?");
        if (agree){
            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.0068 ]--