%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.191.233.15
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/components/bitrix/forum.topic.read/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/forum.topic.read/functions.php
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (!CModule::IncludeModule("forum"))
	return 0;
$this->IncludeComponentLang("functions.php");
if (!function_exists("WrapLongWord")) // Need for custom templates. Do not delete.
{
	function WrapLongWord(&$value, $WordLength=false, $WordBoundary=false, $WordSeparator=false)
	{
		if ($WordBoundary === false)
			$WordBoundary = " \s\n\r\t\x01";
		if ($WordSeparator === false)
			$WordSeparator = '<WBR/>&shy;';
		if (intval($WordLength) <= 0)
			$WordLength = 20;
		if (is_array($value))
		{
			foreach ($value as $key => $val)
				WrapLongWord($value[$key], $WordLength, $WordBoundary);
		}
		else 
		{
			$res = "#([^".preg_quote($WordBoundary, "/#")."]{".preg_quote($WordLength, "/#")."})#";
			$value = str_replace(
				array(chr(1), chr(2), chr(3), chr(4), chr(5), "&amp;", "&lt;", "&gt;", "&quot;", "&nbsp;", "&copy;", "&reg;", "&trade;"), 
				array("", "", "", "", "", chr(5), "<", ">", "\"", chr(1), chr(2), chr(3), chr(4)), 
				$value);
			$value = trim(preg_replace($res, "\\1<WBR/>&shy;", " ".$value." "));
			$value = str_replace(
				array(chr(5), "<", ">", "\"", chr(1), chr(2), chr(3), chr(4), "&lt;WBR/&gt;", "&lt;WBR&gt;", "&amp;shy;"),
				array("&amp;", "&lt;", "&gt;", "&quot;", "&nbsp;", "&copy;", "&reg;", "&trade;", "<WBR/>", "<WBR/>", "&shy;"),
				$value);
		}
		$value = 
			str_replace(
				array("&lt;WBR/&gt;","&amp;shy;"),
				array("<WBR/>", "&shy;"), 
				$value);
		return $value;
	}
}
if (!function_exists("ForumNumberEnding"))
{
	function ForumNumberEnding($num)
	{
		if (LANGUAGE_ID=="ru")
		{
			if (mb_strlen($num) > 1 && mb_substr($num, mb_strlen($num) - 2, 1) == "1")
			{
				return GetMessage("F_END_OV");
			}
			else
			{
				$c = intval(mb_substr($num, mb_strlen($num) - 1, 1));
				if ($c==0 || ($c>=5 && $c<=9))
					return GetMessage("F_END_OV");
				elseif ($c==1)
					return "";
				else
					return GetMessage("F_END_A");
			}
		}
		else
		{
			if (intval($num)>1)
				return "s";
			return "";
		}
	}
}

if (!function_exists("endingTopicsPosts"))
{
	function endingTopicsPosts($mark, $count)
	{
		$text = "";
		$count = intval($count%10);
			
		if ($count==1)
			$text = "_1";
		elseif (($count>2) && ($count<5))
			$text = "_2_4";
		// GetMessage("F_STAT_TOPICS");
		// GetMessage("F_STAT_TOPICS_1");
		// GetMessage("F_STAT_TOPICS_2_4");
		// GetMessage("F_STAT_POSTS");
		// GetMessage("F_STAT_POSTS_1");
		// GetMessage("F_STAT_POSTS_2_4");
		return GetMessage("F_STAT_".mb_strtoupper($mark).$text);
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit