AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 18.225.56.120
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/modules/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/modules/blog/options_user_settings.php
<?
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/blog/options_user_settings.php");

if (CModule::IncludeModule("blog")):
	$ID = intval($ID);
	$str_blog_AVATAR = "";
	ClearVars("str_blog_");
	$db_res = CBlogUser::GetList(array(), array("USER_ID" => $ID));
	if (!$db_res->ExtractFields("str_blog_", True))
	{
		if (!isset($str_blog_ALLOW_POST) || ($str_blog_ALLOW_POST!="Y" && $str_blog_ALLOW_POST!="N"))
			$str_blog_ALLOW_POST = "Y";
	}

	if($COPY_ID > 0)
		$str_blog_AVATAR = "";

	if ($strError <> '')
	{
		$str_blog_ALLOW_POST = htmlspecialcharsbx($_POST["blog_ALLOW_POST"]);
		$str_blog_ALIAS = htmlspecialcharsbx($_POST["blog_ALIAS"]);
		$str_blog_DESCRIPTION = htmlspecialcharsbx($_POST["blog_DESCRIPTION"]);
		$str_blog_INTERESTS = htmlspecialcharsbx($_POST["blog_INTERESTS"]);
	}
	?>
	<input type="hidden" name="profile_module_id[]" value="blog">
	<?if ($USER->IsAdmin()):?>
		<tr>
			<td width="40%"><?=GetMessage("blog_ALLOW_POST")?></td>
			<td width="60%"><input type="checkbox" name="blog_ALLOW_POST" value="Y" <?if ($str_blog_ALLOW_POST=="Y") echo "checked";?>></td>
		</tr>
	<?endif;?>
	<tr>
		<td><?=GetMessage('blog_ALIAS')?></td>
		<td><input class="typeinput" type="text" name="blog_ALIAS" size="30" maxlength="255" value="<?=$str_blog_ALIAS?>"></td>
	</tr>
	<tr>
		<td><?=GetMessage('blog_DESCRIPTION')?></td>
		<td><input class="typeinput" type="text" name="blog_DESCRIPTION" size="30" maxlength="255" value="<?=$str_blog_DESCRIPTION?>"></td>
	</tr>
	<tr>
		<td valign="top"><?=GetMessage('blog_INTERESTS')?></td>
		<td><textarea class="typearea" name="blog_INTERESTS" rows="3" cols="35"><?echo $str_blog_INTERESTS; ?></textarea></td>
	</tr>
	<tr class="adm-detail-file-row">
		<td><?=GetMessage("blog_AVATAR")?></td>
		<td><?
			echo CFile::InputFile("blog_AVATAR", 20, $str_blog_AVATAR);
			if (intval($str_blog_AVATAR)>0):
				?><div class="adm-detail-file-image"><?
				echo CFile::ShowImage($str_blog_AVATAR, 150, 150, "border=0", "", true);?></div><?
			endif;
			?></td>
	</tr>
	<?
endif;
?>

Anon7 - 2022
AnonSec Team