Your IP : 18.116.230.40


Current Path : /var/www/axolotl/data/www/arhangelsk.axolotls.ru/a537b/
Upload File :
Current File : /var/www/axolotl/data/www/arhangelsk.axolotls.ru/a537b/vote.tar

vote_chart.php000064400000000700147722305670007425 0ustar00<?
$file = preg_replace(array("#[\\\\\\/]+#", "#\\.+[\\\\\\/]#"), array("/", ""), (isset($_REQUEST["file"]) && is_string($_REQUEST["file"]) ? $_REQUEST["file"] : ""));

if(($p = strpos($file, "\0"))!==false)
	$file = substr($file, 0, $p);

if (strpos($file, "/vote/")!==false)
{
	if (strpos($file, "/bitrix/modules/vote/install/templates/vote/")===0 ||
		strpos($file, "/bitrix/templates/")===0) @include($_SERVER["DOCUMENT_ROOT"]."/".$file);
}
?>
uf.php000066400000000363147722305670005710 0ustar00$request = \Bitrix\Main\Context::getCurrent()->getRequest();
if($request->isPost()) {
    CHTTP::SetStatus("404 Not Found");
    @define("ERROR_404","Y");
    die();
}
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/tools/uf.php");?>anonymity.php000066400000002473147744147110007326 0ustar00<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage vote
 * @copyright 2001-2016 Bitrix
 */
namespace Bitrix\Vote\Vote;
use \Bitrix\Main\Localization\Loc;

Loc::loadMessages(__FILE__);

class Anonymity
{
	const UNDEFINED = 0;
	const PUBLICLY = 1;
	const ANONYMOUSLY = 2;

	/**
	 * Gets types list
	 * @return array
	 */
	public static function getList()
	{
		return (new \ReflectionClass(__CLASS__))->getConstants();
	}
	/**
	 * Gets types list
	 * @return array
	 */
	public static function getTitledList()
	{
		$res = (new \ReflectionClass(__CLASS__))->getConstants();
		$result = array();
		foreach ($res as $code => $id)
		{
			$result[$id] = Loc::getMessage("VOTE_ANONYMITY_TYPE_".$code);
		}
		return $result;
	}

	/**
	 * @return array
	 */
	public static function getValues()
	{
		return array_values(self::getList());
	}
	/**
	 * Returns visibility user voting result for others.
	 * @param bool $userValue
	 * @param $voteValue
	 * @return bool
	 */
	public static function isUserVoteVisible(bool $userValue, int $voteValue)
	{
		if ($voteValue === self::ANONYMOUSLY)
			return false;
		else if ($voteValue === self::PUBLICLY)
			return true;
		return $userValue !== false;
	}
	public static function getTitle()
	{
		return Loc::getMessage("VOTE_ANONYMITY_TITLE");
	}
	public static function validate($value)
	{

	}
}option.php000066400000000557147744147110006610 0ustar00<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage vote
 * @copyright 2001-2019 Bitrix
 */
namespace Bitrix\Vote\Vote;

class Option
{
	const ALLOW_REVOTE = 1;
	const HIDE_RESULT = 2;
	/**
	 * Gets types list
	 * @return array
	 */
	public static function getList()
	{
		return (new \ReflectionClass(__CLASS__))->getConstants();
	}
}eventlimits.php000066400000000732147744147110007636 0ustar00<?php
/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage vote
 * @copyright 2001-2019 Bitrix
 */
namespace Bitrix\Vote\Vote;

class EventLimits
{
	const BY_SESSION = 1;
	const BY_COOKIE = 2;
	const BY_IP = 4;
	const BY_USER_AUTH = 8;
	const BY_USER_DATE_REGISTER = 16;
	const BY_USER_ID = 32;
	/**
	 * Gets types list
	 * @return array
	 */
	public static function getList()
	{
		return (new \ReflectionClass(__CLASS__))->getConstants();
	}
}