403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/home/rmlac2fmr/public_html/fm/dolphin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/home/rmlac2fmr/public_html/fm/dolphin/rewrite_name.php
<?php
/***************************************************************************
 *                            Dolphin Web Community Software
 *                              -------------------
 *     begin                : Mon Mar 23 2006
 *     copyright            : (C) 2006 BoonEx Group
 *     website              : http://www.boonex.com
 *
 *     
 *
 ****************************************************************************/

/***************************************************************************
 *
 *   This is a free software; you can modify it under the terms of BoonEx 
 *   Product License Agreement published on BoonEx site at http://www.boonex.com/downloads/license.pdf
 *   You may not however distribute it for free or/and a fee. 
 *   This notice may not be removed from the source code. You may not also remove any other visible 
 *   reference and links to BoonEx Group as provided in source code.
 *
 ***************************************************************************/

@list($url, $vars) = explode('?', $_SERVER['REQUEST_URI']);
if( $url == '/' )
{
	require_once('index.php');
	exit;
}


$urlArr = explode('/', $_SERVER['REQUEST_URI']);
$rewriteNick = (strlen(trim($urlArr[count($urlArr) - 1])) ? $urlArr[count($urlArr) - 1] : $urlArr[count($urlArr) - 2]);
if ( !get_magic_quotes_gpc() )
{
	$rewriteNick = addslashes($rewriteNick);
}

$flag = 0;
$tmp = $rewriteNick;

if (preg_match("/^rewrite_name\.php\?ID=(\d+)/",$rewriteNick,$m))
{
	$flag = 1;
	$rewriteNick = " `ID` = '" . (int)($m[1]) . "'";
}
elseif (preg_match("/^profile\.php\?ID=(\d+)/",$rewriteNick,$m))
{
	$flag = 2;
	$rewriteNick = " `ID` = '" . (int)($m[1]) . "'";
}
elseif (ereg("([a-z0-9]+.php)",$rewriteNick,$m)) {
	Header( "Location: {$rewriteNick}" );
	exit;
}
else
{
	$rewriteNick = " `NickName` = '$rewriteNick'";
}

require_once( "inc/header.inc.php" );
require_once( BX_DIRECTORY_PATH_INC .'db.inc.php' );

$sRequest = "SELECT `ID`,`NickName` FROM `Profiles` WHERE {$rewriteNick}";
$profArr = db_arr( $sRequest );

if ($profArr)
{
	$_REQUEST['ID'] = $profArr['ID'];
	if( $flag )
	{
		header("Location: " . $site['url'] . $profArr['NickName']);
	}
	require_once( BX_DIRECTORY_PATH_ROOT. 'profile.php' );
	exit();
}
else
{
	header("HTTP/1.0 404 Not Found");
	header("Status: 404 Not Found");
	echo "Page not found $tmp";
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit