!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:     displayAss.php (12.8 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
showHeader();
?> 
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<br>
<table width="703" border="0" align="center" cellpadding="0" cellspacing="0">   
  <tr> 
    <td width="724">
      <fieldset>
        
      <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php?mm=1">ข้อมูลพื้นฐานของระบบ</a> 
      <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> 
      <a href="showListAss.php">สร้างแบบประเมิน </a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> 
      <a href="createForm.php?assid=<? echo $assid ?>">กำหนดรายละเอียดแบบประเมิน 
      </a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> 
      แสดงแบบประเมินที่สร้าง/กำหนดไว้</font> </legend>
      <br>
    <?
        
include_once "../class/clsReg_EregisConfig.php";
        include_once 
"../class/clsTable.php";    
        include_once 
"../class/clsAssessForm.php";
        include_once 
"../class/clsSectionAll.php";
        include_once 
"../class/clsSectionRQ.php";
        include_once 
"../class/clsSectionTQ.php";
        include_once 
"../class/clsRadioQuestion.php";
        include_once 
"../class/clsTextQuestion.php";
        include_once 
"../class/clsHeaderQuestion.php";
        include_once 
"../class/clsHeaderScore.php";
        include_once 
"../class/clsDetailScore.php";

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

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

        
$oAF = new AssessForm($oC);
        
$oAF->RSAssessFormByAssid($assid);
        
$oAF->GetRecord();

        
$oECon = new EregisConfig($oCR);
        
$oECon->RSEregisConfig();
        
$oECon->GetRecord();

    
?>
        
      <table width="655" border="0" align="center" cellpadding="0" cellspacing="1" >
        <tr> 
          <td width="654" height="59"  bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_6'];?>" align="center"><span class="fontMark5">
            <?    echo $oAF->nameAss;  ?>
          </span><br>
          <span class = "fontMark6"><? echo $oECon->collegeName ?></span></td>
        </tr>
        <tr>
          <td><hr></td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td><span class="fontMarkTD2"> คำชี้แจง</span>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;&nbsp;&nbsp;&nbsp;
                <? if($oAF->explains == ""){
                     echo 
"<span class=\"fontmark8\"> ** กรุณากรอกคำอธิบายแบบประเมิน **</span>";
                }else{
                    echo 
$oAF->explains;  
                } 
?>
          </td>
        </tr>
      </table>
      <?    
        $oSA 
= new SectionAll($oC);
        
$oSA->RSByKeyAss($assid);
        
$oTD = new clsTable(array(""));
            
$oTD->width="654";
            
$oTD->align="center";
            
$oTD->bgColor "#FFFFFF";
            
$oTD->headerBgColor "#FFFFFF";

        
$i 1;
        while (
$oSA->GetRecord()){
            
/*---------------- กรณีที่เลือกเป็นคำถามชนิดปลายปิด------------------*/
            
if($oSA->sectionRQid != '0'){    
                
//สร้าง oSRQ แสดงหัวข้อของส่วนการประเมิน
                
$oSRQ = new SectionRQ($oC);
                
$oSRQ->RSSectionRQAll($assid,$oSA->sectionRQid);
                while(
$oSRQ->GetRecord()){
                    
$oHQ = new HeaderQuestion($oC);
                        
$oHQ->RSHeaderAllBySection($assid,$oSA->sectionRQid);
                        
$oHQ->GetRecord();                
                    
$oHS = new HeaderScore($oC);
                        
$oHS->RSHeadSAll($oHQ->HSid);
                        
$oHS->GetRecord();
                    
                    
//echo "<br>HSid = ".$oHQ->HSid;
                    //echo "<br>amount_score = ".$oHS->score_amount;
                    //echo"<br> HQtext = ".$oHQ->HQtext;
                    //echo"<br> HStext = ".$oHS->HStext;
                    
                    //ใส่รูปว่าง
                    
$oTD->rowStart();
                    
$oTD->addCell("<img src=\"../picture/blank1.gif\"border=\"0\">","","","9","","","22");
                    
$oTD->rowEnd();

                    
//---------->แสดงส่วนของแบบประเมิน
                    
$merges $oHS->score_amount+2;
                    
$oTD->rowStart();
                    
//กรณียังไม่ได้กรอกข้อมูลคำอธิบายส่วนของแบบประเมิน
                    
if($oSRQ->topicSectionRQ == ""){
                        
$oTD->addCell("<span class=\"fontMarkTD1\">ส่วนที่ $i</span>&nbsp; : <span class=\"fontmark8\">** กรุณากรอกคำอธิบายการตอบของส่วนนี้ ** </span>","","","$merges","","","22");
                    }else{
                        
$oTD->addCell("<span class=\"fontMarkTD1\">ส่วนที่ $i</span>&nbsp; : $oSRQ->topicSectionRQ","","","$merges","","","22");
                    }
                    
$oTD->rowEnd();
                    
//---------->แสดงข้อความส่วนหัวของคำถาม และข้อความส่วนหัวของระดับคะแนน
                    
if($oHQ->HQtext == "" && $oHS->score_amount == ""){
                        
//กรณีที่ยังไม่ได้ใส่ข้อมูล ข้อความส่วนหัวของคำถาม ข้อความส่วนหัวของระดับคะแนน
                        
$oTD->rowStart();
                        
$oTD->addCell("** กรุณากรอกชื่อคอลัมน์รายการประเมิน **","center","#DADADA","2","2","","22");
                        
$oTD->addCell("** กรุณากรอกชื่อเรียกรวมคอลัมน์ของระดับการประเมิน **<br><span class=\"fontMark9\">** กรุณากำหนดจำนวนคอลัมน์และข้อความ <br> ของระดับการประเมิน โดยกำหนดได้สูงสุด 7 ระดับ **</font><br> <img src=\"../picture/line1.gif\">","center","#DADADA","7","","","","","","22");
                        
$oTD->rowEnd();
                    }else{
                        
$oTD->rowStart();

                        
$maxScoreAmountThisForm $oHQ->getMaxScoreAmountByAssid($oAF->assid);        
                        if(
$maxScoreAmountThisForm == 7){
                            
$oTD->addCell("<span class=\"TDradioQuestion\">$oHQ->HQtext</span>","center","#3366cc","2","2","","22");
                            
$oTD->addCell("<span class=\"TDradioQuestion\">$oHS->HStext</span>","center","#3366cc","$oHS->score_amount","","","","","","22");
                        }else{
                            
$oTD->addCell("<span class=\"TDradioQuestion\">$oHQ->HQtext</span>","center","#3366cc","2","2","470","22");
                            
$oTD->addCell("<span class=\"TDradioQuestion\">$oHS->HStext</span>","center","#3366cc","$oHS->score_amount","","","","","470","22");
                        }
                        
$oTD->rowEnd();
                    }
                    
//---------->แสดงข้อความส่วนหัวย่อยของระดับคะแนน
                    
$oDS = new DetailScore($oC);
                    
$oDS->RSDetailSAll($oHS->HSid);
                    
$oTD->rowStart();
                    
$n=1;
                    
//กรณีที่ยังไม่ได้กำหนดข้อความส่วนหัวของระดับคะแนน
                    
if($oHS->HStext == ""){
                        while(
$n != 8){
                            
$oTD->addCell("<span class=\"fontMark9\"><$n></span>","center","#DADADA","","","47","22");
                            
$n++;
                        }
                    }else{
                        while(
$oDS->GetRecord()){
                            
$oTD->addCell("<span class=\"TDradioQuestion\">$oDS->DStext (        $oDS->score       )</span>","center","#3366cc","","","47","22");
                        }
                    }
                    
$oTD->rowEnd();    
                    
                    
$oRQ = new RadioQuestion($oC);
                    
$oRQ->RSRadioQByKey($assid,$oSA->sectionRQid,1);
        
                    
$index1 1;
                    
$index2 1;
                    
$index_color1 0;
                    
$index_color2 0;
                    
//---------->แสดงคำถามชนิดปลายปิด
                    
while($oRQ->GetRecord()){    
                        
$omRQ = new RadioQuestion($oC);
                        
$numParrentMQ $omRQ->RSCountParrentRQid($oRQ->RQid);
                        
//แสดงคำถามข้อหลัก
                        
if($index_color2%== 0){//EEF2FB
                            
if($index_color1%== 0){
                                
$oTD->rowStart();
                            }else{  
//#D1DCF3
                                
$oTD->rowStart("","E3EBF9");
                            }
                        }else{
                            if(
$index_color1%== 0){
                                
$oTD->rowStart("","#E3EBF9");
                            }else{
                                
$oTD->rowStart();
                            }
                        }
                        
$oTD->addCell("<img src=\"../picture/blank3.gif\" align=\"absmiddle\">$index1","right","","","","20","22");
                        
$oTD->addCell("$oRQ->nameRQ","left","","","","","22");
                        
$run1=0;
                        
//แสดง radio หรือเป็นช่องว่าง
                        
if($numParrentMQ == '0'){
                            
//กรณีที่ยังไม่ได้กำหนดระดับคะแนน
                            
if($oHS->score_amount == ""){
                                while(
$run1!=7){
                                    
$oTD->addCell("<img src=\"../picture/warn.png\">","middle","","","","","22");
                                    
$run1++;
                                }
                            }else{
                                while(
$run1!=$oHS->score_amount){
                                    
//$oTD->addCell("<input type=\"radio\" name=\"radiobutton\" value=\"radiobutton\" align = \"bottom\">","middle","","","","");
                                    
$oTD->addCell("<img src=\"../picture/radio_notselect.gif\">","middle","","","","","22");
                                    
$run1++;
                                }
                            }
                        }else{
                            if(
$oHS->score_amount == ""){
                                while(
$run1!=7){
                                
$oTD->addCell("","middle","","","","47","22");
                                
$run1++;
                                }
                            }else{
                                while(
$run1!=$oHS->score_amount){
                                
$oTD->addCell("","middle","","","","47","22");
                                
$run1++;
                                }
                            }
                        }
                        
$oTD->rowEnd();
                        
//แสดงคำถามข้อย่อย
                        
$ocRQ = new RadioQuestion($oC);
                        
$ocRQ->RSCheckLevel($assid,$oRQ->RQid);
                        while(
$ocRQ->GetRecord()){
                            if(
$index_color1%== 0){//EEF2FB
                                
if($index_color2%== 0){
                                    
$oTD->rowStart("","#E3EBF9");
                                }else{
                                    
$oTD->rowStart();
                                }
                            }else{
                                if(
$index_color2%== 0){
                                    
$oTD->rowStart();
                                }else{
                                    
$oTD->rowStart("","#E3EBF9");
                                }
                            }
                            
                            
$oTD->addCell("","left","","","","20","22");
                            
$oTD->addCell("<img src=\"../picture/blank3.gif\" align=\"absmiddle\">$index1.$index2 &nbsp; $ocRQ->nameRQ","left","","","","","22");
                            
$run2=0;
                            
//แสดง radio
                            //กรณีที่ยังไม่ได้กำหนดระดับคะแนน
                            
if($oHS->score_amount == ""){
                                while(
$run2 != 7){
                                    
$oTD->addCell("<img src=\"../picture/warn.png\">","middle","","","","","22");
                                    
$run2++;
                                }
                            }else{
                                while(
$run2!=$oHS->score_amount){
                                    
//$oTD->addCell("<input type=\"radio\" name=\"radiobutton\" value=\"radiobutton\" align = \"bottom\">","middle","","","","");
                                    
$oTD->addCell("<img src=\"../picture/radio_notselect.gif\">","middle","","","","","22");
                                    
$run2++;
                                }
                            }
                            
$oTD->rowEnd();
                        
$index2++;
                        
$index_color2++;
                        }  
//end while ocRQ
                        
                        
$index1++;
                        
$index2 1;
                        
$index_color1++;
                    }    
//end while oRQ
                        
$round 1;
                        
$TmpText1 "";
                        
$TmpText2 "";
                        
$Text "";
                        
$oDS1 = new DetailScore($oC);
                        
$oDS1->RSDetailSAll($oHS->HSid);
                        while(
$oDS1->GetRecord()){
                            if(
$round $oHS->score_amount){
                                
$TmpText1 "".$oDS1->DStext ." = ".$oDS1->CTFirst ." - ".$oDS1->CTLast." ,";
                            } else {
                                
$TmpText1 "".$oDS1->DStext ." = ".$oDS1->CTFirst ." - ".$oDS1->CTLast;
                            }
                            
$Text $TmpText2." ".$TmpText1;
                            
$TmpText2 $Text;
                            
$round++;
                        }

                        
$oTD->rowStart();
                        if(
$Text == ""){
                            
$oTD->addCell("<span class=\"fontmark8\"><u> เกณฑ์ประเมินหรือพิจารณาค่าเฉลี่ย </u> :  &nbsp;&nbsp;&nbsp;&nbsp; ** ยังไม่ได้กำหนด ** <br><br></span>","","","$merges","2","","22");
                        }else{
                            
$oTD->addCell("<span class=\"fontmark8\"><u> เกณฑ์ประเมินหรือพิจารณาค่าเฉลี่ย </u> : <br> &nbsp;&nbsp;&nbsp;&nbsp; $Text <br><br></span>","","","$merges","2","","22");
                        }
                        
$oTD->rowEnd();
                } 
//end while oSRQ        
            
//end if oSA->sectionRQid
            /*---------------- กรณีที่เลือกเป็นคำถามชนิดปลายเปิด------------------*/
            
else if($oSA->sectionTQid != '0'){
                    
$oSTQ = new SectionTQ($oC);
                    
$oSTQ->RSSectionTQAll($assid,$oSA->sectionTQid);

                    while(
$oSTQ->GetRecord()){
                        
                        
$oTD->rowStart();
                        
$oTD->addCell("<img src=\"../picture/blank1.gif\"border=\"0\">","","","9","","","22");
                        
$oTD->rowEnd();
                        
$oTD->rowStart();
                        
//---------->แสดงส่วนของแบบประเมิน
                        
$oTD->rowStart();
                        
//กรณียังไม่ได้กรอกข้อมูลคำอธิบายส่วนของแบบประเมิน
                        
if($oSTQ->topicSectionTQ == ""){
                            
$oTD->addCell("<span class=\"fontMarkTD1\">ส่วนที่ $i</span>&nbsp; : <span class=\"fontmark8\">** กรุณากรอกคำอธิบายส่วนนี้  **</span>","","","9","","","22");
                        }else{
                            
$oTD->addCell("<span class=\"fontMarkTD1\">ส่วนที่ $i</span>&nbsp; : $oSTQ->topicSectionTQ","","","9","","","22");
                        }
                        
$oTD->rowEnd();

                        
$oTQ = new TextQuestion($oC);
                        
$oTQ->RSTextQByKey($assid,$oSA->sectionTQid);    
                        
$index 1;
                                
                    while(
$oTQ->GetRecord()){
                            
$oTD->rowStart();    
                            
$oTD->addCell("$index.$oTQ->nameTQ","","","9","","","22");
                            
$oTD->rowEnd();
                            
$oTD->rowStart();
                            
//$oTD->addCell("<textarea name=\"textarea\" cols=\"40\" rows=\"4\"></textarea>","","","7","");
                            
$oTD->addCell("<img src=\"../picture/textarea.gif\"border=\"0\">","","","9","","","22");
                            
$oTD->rowEnd();
                            
$index++;                    
                        }
// end while oTQ
                    
}//end while oSTQ
            
//end if oSA->sectionTQid

            
$i++;
        } 
// end while oSA

        
if($i-== 0){
            
$oTD->rowStart();
            
$oTD->addCell("<br><center><span class=\"fontmark8\">** ยังไม่ได้กำหนดลักษณะของคำถามของแบบประเมิน **</span></center>","","","$merges","2","","22");
            
$oTD->rowEnd();
        }
        echo 
$oTD->output();
      
?><br><br>
      <table width="657" align="center">
        <tr> 
          <td width="619"> <input type="button" name="back2" value="กลับเมนูหลัก" onClick=" location.href = 'index.php?mm=1'"> 
            <input type="button" name="back" value="ย้อนกลับ" onClick=" location.href = 'createForm.php?assid=<? echo $assid ?>'"> 
          </td>
        </tr>
      </table>
      <p>&nbsp;</p></fieldset>
    </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 ::
 
[ 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.0111 ]--