!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/mis2222/application/views/eregis/   drwxrwxrwx
Free 50.65 GB of 127.8 GB (39.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     v_showDetailRegisFee.php (7.02 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$row_std 
= isset($qu_std) ? $qu_std->row() : NULL;
$row_sy = isset($qu_sy) ? $qu_sy->row() : NULL;
$row_tm = isset($qu_tm) ? $qu_tm->row() : NULL;
?>
<title>ค่าลงทะเบียนเรียน</title>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><table class="szone">
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone"><span><b>รหัสนักศึกษา</b></span></td>
                <td><?php echo getval('stdCode'$row_std);?></span></td>
                <td class="coltd_szone"><span><b>ชื่อ-สกุล</b></span></td>
                <td><span><?php echo getval('prefixName'$row_std).getval('stdName'$row_std).' '.getval('stdSurname'$row_std);?></span></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone"><span><b>หลักสูตร</b></span></td>
                <td><span><?php echo explodeSquare(getval('curName'$row_std))?></span></td>
                <td class="coltd_szone"><span><b>ชั้นปี</b></span></td>
                <td><span><?php echo getval('syCode'$row_sy);?></span></td>
            </tr>
            <tr bgcolor="<?php echo $tr_color_even;?>">
                <td class="coltd_szone"><span><b>ปีการศึกษา</b></span></td>
                <td><span><?php echo $acY;?></span></td>
                <td class="coltd_szone"><span><b>ภาคการศึกษา</b></span></td>
                <td><span><?php echo getval('tmCode'$row_tm);?></span></td>
            </tr>
        </table></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
<?php
    
if($std!="") {
        
$atts = array(
                  
'width'      => '800',
                  
'height'     => '700',
                  
'scrollbars' => 'yes',
                  
'status'     => 'yes',
                  
'resizable'  => 'yes',
                  
'screenx'    => '0',
                  
'screeny'    => '0',
                  
'title'      => 'ใบลงทะเบียนเรียน/แจ้งค่าใช้จ่าย'
                
);
?>
    <tr>
        <td align="right"><?php echo  anchor_popup($this->config->item("rg_folder")."rpt_regis/printRepRis106/".getval('stdId'$row_std)."/".$acY."/".getval('syId'$row_sy)."/".getval('tmId'$row_tm)."/".getval('curId'$row_std), "<img src=\"".base_url().$this->config->item('rg_print')."\" width=\"15\" height=\"14\" align=\"absmiddle\" border=\"0\" />"$atts);?></td>
    </tr>
<?php
    
}
?>
    <tr>
        <td align="center">
        <table class="szone">
            <tr bgcolor="<?php echo $this->config->item("rg_head_tb_color");?>">
                <td width="5%" height="22" align="center"><span><b>ที่</b></span></td>
                <td width="55%" height="22" align="center"><span><b>รายการ</b></span></td>
                <td width="10%" height="22" align="center"><span><b>หน่วยกิต</b></span></td>
                <td width="10%" height="22" align="center"><span><b>รวมเงิน</b></span></td>
                <td width="20%" height="22" align="center"><span><b>หมายเหตุ</b></span></td>
            </tr>
            <tr>
                <td align="center"><span>1</span></td>
                <td><span>ค่าหน่วยกิต</span></td>
                <td></td>
                <td></td>
                <td>&nbsp;<span>เบิกได้ตามสิทธิ์</span></td>
            </tr>
<?php
            
if(isset($rs_rd) && $rs_rd!=NULL) {
                foreach(
$rs_rd->result() as $rowRd) {
?>
            <tr>
                <td></td>
                <td><span><?php echo $rowRd->crsCode.' : '.explodeSquare($rowRd->crsName);?></span></td>
                <td align="center"><span><?php echo $rowRd->crsUnit;?></span></td>
                <td align="right"><span>-</span></td>
                <td></td>
            </tr>
<?php
                
}
            }
?>
            <tr>
                <td></td>
                <td align="right"><span><b>รวมหน่วยกิตทฤษฎี</b></span></td>
                <td align="center"><span><b><?php echo number_format($sumCredit1);?></b></span></td>
                <td align="right"><span><b><?php echo number_format($sumLcFee2);?></b></span></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td align="right"><span><b>รวมหน่วยกิตทดลอง/ปฏิบัติ</b></span></td>
                <td align="center"><span><b><?php echo number_format($sumCredit2);?></b></span></td>
                <td align="right"><span><b><?php echo number_format($sumLbFee2);?></b></span></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td align="right"><span><b>รวมหน่วยกิตที่ลงทะเบียน</b></span></td>
                <td align="center"><span><b><?php echo number_format($sumCreditAttempt);?></b></span></td>
                <td align="right"><span><b><?php echo number_format($sumLcFee+$sumLbFee2);?></b></span></td>
                <td></td>
            </tr>
<?php
            $i 
2;
            if(isset(
$rs_cmf) && $rs_cmf!=NULL) {
                foreach(
$rs_cmf->result() as $rowCmf) {
?>
            <tr>
                <td align="center"><span><?php echo $i;?></span></td>
                <td><span><?php echo $rowCmf->feeName;?></span></td>
                <td></td>
                <td align="right"><span><?php echo number_format($rowCmf->cmfAmt,2);?></span></td>
                <td>&nbsp;<span><?php if($rowCmf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td>
            </tr>
<?php
                    $i
++;
                }
            }

            
$j $i;
            if(isset(
$rs_cf) && $rs_cf!=NULL) {
                foreach(
$rs_cf->result() as $rowCf) {
?>
            <tr>
                <td align="center"><span><?php echo $j;?></span></td>
                <td><span><?php echo $rowCf->feeName;?></span></td>
                <td></td>
                <td align="right"><span><?php echo number_format($rowCf->cfAmt,2);?></span></td>
                <td>&nbsp;<span><?php if($rowCf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td>
                <!-- <td>&nbsp;<span><?php if($rowCmf->feeCanRefund=='Y') echo 'เบิกได้ตามสิทธิ์'; else 'เบิกไม่ได้';?></span></td> -->
            </tr>
<?php
                    $j
++;
                }
            }
?>
            <tr>
                <td align="center"><span><?php echo $j;?></span></td>
                <td><span>ค่ารักษาสถานภาพการเป็นนักศึกษา</span></td>
                <td></td>
                <td align="right"><span><?php echo number_format($sumKssFee,2);?></span></td>
                <td>&nbsp;<span>เบิกไม่ได้</span></td>
            </tr>
            <tr bgcolor="<?php echo $this->config->item("rg_head_tb_color");?>">
                <td height="22" colspan="3" align="right"><span><b>รวมยอดเงินที่ต้องชำระทั้งหมด</b></span></td>
                <td align="right"><span><?php echo number_format($sumToTalAmt,2);?></span></td>
                <td></td>
            </tr>
        </table></td>
    </tr>
    <tr>
        <td><br /></td>
    </tr>
    <tr>
        <td align="center">
        <input type="button" name="print" value="พิมพ์หน้านี้" onClick="sendPost('hidform', {'stdId':<?php echo $row_std->stdId;?>,'acY':<?php echo $acY;?>,'syId':<?php echo $row_sy->syId;?>,'tmId':<?php echo $row_tm->tmId;?>,'curId':<?php echo $row_std->stdCurId;?>}, '<?php echo site_url($this->config->item('rg_folder').'rpt_regis/printRepRis106PDF');?>', {})">
<?php
        
if (!$std) {
?>
        <input type="button" name="close" value="ปิดหน้าต่าง" onClick="javascript:window.close();">
<?php
        
}
?>
        </td>
    </tr>
</table>

:: 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.0076 ]--