uawdijnntqw1x1x1
IP : 216.73.216.163
Hostname : yjpwxulqtt
Kernel : Linux yjpwxulqtt 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,exec,system,passthru,shell_exec,proc_open,popen
OS : Linux
PATH:
/
home
/
user
/
web
/
pansionat-v-yaroslavle.ru
/
public_html
/
bitrix
/
.
/
modules
/
vote
/
admin
/
vote_preview.php
/
/
<? ############################################## # Bitrix Site Manager Forum # # Copyright (c) 2002-2009 Bitrix # # http://www.bitrixsoft.com # # mailto:admin@bitrixsoft.com # ############################################## require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/prolog.php"); $VOTE_RIGHT = $APPLICATION->GetGroupRight("vote"); if($VOTE_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/vote/include.php"); IncludeModuleLangFile(__FILE__); $err_mess = "File: ".__FILE__."<br>Line: "; define("HELP_FILE","vote_list.php"); CModule::includeModule("vote"); $old_module_version = CVote::IsOldVersion(); /* @var $request \Bitrix\Main\HttpRequest */ $request = \Bitrix\Main\Context::getCurrent()->getRequest(); /******************************************************************** Actions ********************************************************************/ $voteId = intval($request->getQuery("VOTE_ID")); if ($voteId <= 0) $voteId = intval($request->getQuery("PUBLIC_VOTE_ID")); try { $vote = \Bitrix\Vote\Vote::loadFromId($voteId); global $USER; if (!$vote->canRead($USER->GetID())) throw new \Bitrix\Main\ArgumentException(GetMessage("ACCESS_DENIED"), "Access denied."); } catch(Exception $e) { require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); ShowError($e->getMessage()); require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); die(); } $channel = \Bitrix\Vote\Channel::loadFromId($vote->get("CHANNEL_ID")); /******************************************************************** Form ********************************************************************/ $APPLICATION->SetTitle(GetMessage("VOTE_PAGE_TITLE", array("#ID#" => $voteId))); require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); $aMenu = array(); if ($vote->canEdit($USER->GetID())) { $aMenu[] = array( "TEXT" => GetMessage("VOTE_BACK_TO_VOTE"), "ICON" => "btn_list", "LINK" => "/bitrix/admin/vote_edit.php?lang=".LANGUAGE_ID."&ID=".$voteId ); } $context = new CAdminContextMenu($aMenu); $context->Show(); $APPLICATION->IncludeComponent("bitrix:voting.form", "with_description", array( "VOTE_ID" => $voteId, "VOTE_RESULT_TEMPLATE" => "vote_results.php?VOTE_ID=".$voteId, "CACHE_TYPE" => "N" )); require_once ($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php"); ?>
/home/user/web/pansionat-v-yaroslavle.ru/public_html/bitrix/./modules/vote/admin/vote_preview.php