示例#1
0
	function Show($WEB_FORM_VARNAME, $arrVALUES=false, $SHOW_TEMPLATE=false, $PREVIEW="N")
	{
		global $DB, $MESS, $APPLICATION, $USER, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS, $arrFIELDS;
		$err_mess = (CAllForm::err_mess())."<br>Function: Show<br>Line: ";
		if ($arrVALUES===false) $arrVALUES = $_REQUEST;

		$z = CForm::GetBySID($WEB_FORM_VARNAME);
		$zr = $z->Fetch();
		$WEB_FORM_ID = $FORM_ID = intval($zr["ID"]);
		$WEB_FORM_ID = CForm::GetDataByID($WEB_FORM_ID, $arForm, $arQuestions, $arAnswers, $arDropDown, $arMultiSelect);
		if (intval($WEB_FORM_ID)>0)
		{
			$F_RIGHT = CForm::GetPermission($WEB_FORM_ID);
			if (intval($F_RIGHT)>=10)
			{
				if (strlen(trim($SHOW_TEMPLATE))>0) $template = $SHOW_TEMPLATE;
				else
				{
					if (strlen(trim($arForm["SHOW_TEMPLATE"]))<=0) $template = "default.php";
					else $template = $arForm["SHOW_TEMPLATE"];
				}
				$path = COption::GetOptionString("form","SHOW_TEMPLATE_PATH");
				IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/form/include.php");
				include(GetLangFileName($_SERVER["DOCUMENT_ROOT"].$path."lang/", "/".$template));
				if ($APPLICATION->GetShowIncludeAreas())
				{
					$arIcons = Array();
					if (CModule::IncludeModule("fileman"))
					{
						$arIcons[] =
								Array(
									"URL" => "/freetrix/admin/fileman_file_edit.php?lang=".LANGUAGE_ID."&site=".SITE_ID."&full_src=Y&path=". urlencode($path.$template),
									"SRC" => "/freetrix/images/form/panel/edit_template.gif",
									"ALT" => GetMessage("FORM_PUBLIC_ICON_TEMPLATE")
								);
						$arrUrl = parse_url($_SERVER["REQUEST_URI"]);
						$arIcons[] =
								Array(
									"URL" => "/freetrix/admin/fileman_file_edit.php?lang=".LANGUAGE_ID."&site=".SITE_ID."&full_src=Y&path=". urlencode($arrUrl["path"]),
									"SRC" => "/freetrix/images/form/panel/edit_file.gif",
									"ALT" => GetMessage("FORM_PUBLIC_ICON_HANDLER")
								);
					}
					$arIcons[] =
							Array(
								"URL" => "/freetrix/admin/form_edit.php?lang=".LANGUAGE_ID."&ID=".$WEB_FORM_ID,
								"SRC" => "/freetrix/images/form/panel/edit_form.gif",
								"ALT" => GetMessage("FORM_PUBLIC_ICON_SETTINGS")
							);
					echo $APPLICATION->IncludeStringBefore($arIcons);
				}
				include($_SERVER["DOCUMENT_ROOT"].$path.$template);
				if ($APPLICATION->GetShowIncludeAreas())
				{
					echo $APPLICATION->IncludeStringAfter();
				}
			}
		}
	}
##############################################
# Bitrix: SiteManager                        #
# Copyright (c) 2002-2004 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"] . BX_ROOT . "/modules/mail/prolog.php";
ClearVars();
$message = null;
$MOD_RIGHT = $APPLICATION->GetGroupRight("mail");
if ($MOD_RIGHT < "R") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
include GetLangFileName($_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/mail/lang/", "/admin/mail_filter_edit.php");
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/mail/include.php";
$aTabs = array();
$aTabs[] = array("DIV" => "edit1", "TAB" => GetMessage("MAIL_FLT_EDT_PARAMS"), "ICON" => "mail_filter_edit", "TITLE" => GetMessage("MAIL_FLT_EDT_PARAMS"));
$aTabs[] = array("DIV" => "edit2", "TAB" => GetMessage("MAIL_FLT_EDT_CONDITIONS"), "ICON" => "mail_filter_edit", "TITLE" => GetMessage("MAIL_FLT_EDT_CONDITIONS"));
$aTabs[] = array("DIV" => "edit3", "TAB" => GetMessage("MAIL_FLT_EDT_ACTIONS"), "ICON" => "mail_filter_edit", "TITLE" => GetMessage("MAIL_FLT_EDT_ACTIONS"));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
$err_mess = "File: " . __FILE__ . "<br>Line: ";
$arModFilter = false;
if ($filter_type != "") {
    $res = CMailFilter::GetFilterList($filter_type);
    $arModFilter = $res->Fetch();
}
$ID = intval($ID);
if ($REQUEST_METHOD == "POST" && (strlen($save) > 0 || strlen($apply) > 0) && $MOD_RIGHT >= "W" && check_bitrix_sessid()) {
    $arFields = array("ACTIVE" => $ACTIVE, "MAILBOX_ID" => $MAILBOX_ID, "PARENT_FILTER_ID" => false, "NAME" => $NAME, "SORT" => $SORT, "WHEN_MAIL_RECEIVED" => $WHEN_MAIL_RECEIVED, "WHEN_MANUALLY_RUN" => $WHEN_MANUALLY_RUN, "SPAM_RATING" => $SPAM_RATING, "SPAM_RATING_TYPE" => $SPAM_RATING_TYPE, "MESSAGE_SIZE" => $MESSAGE_SIZE, "MESSAGE_SIZE_TYPE" => $MESSAGE_SIZE_TYPE, "MESSAGE_SIZE_UNIT" => $MESSAGE_SIZE_UNIT, "DESCRIPTION" => $DESCRIPTION, "CONDITIONS" => $CONDITIONS, "ACTION_STOP_EXEC" => $ACTION_STOP_EXEC, "ACTION_DELETE_MESSAGE" => $ACTION_DELETE_MESSAGE, "ACTION_READ" => $ACTION_READ, "ACTION_SPAM" => $ACTION_SPAM, "ACTION_TYPE" => "");
<?php

define("STOP_STATISTICS", true);
define("BX_SECURITY_SHOW_MESSAGE", true);
define('NO_AGENT_CHECK', true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/include.php";
$CURRENCY_RIGHT = $APPLICATION->GetGroupRight("currency");
__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/currency/lang/", "/currencies_rates.php"));
if ($CURRENCY_RIGHT == "D") {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
$RATE = $RATE_CNT = "";
$strError = "";
$port = 80;
if (!check_bitrix_sessid()) {
    $strError = GetMessage("ERROR_SESSID");
}
if ($DATE_RATE == "" || !$DB->IsDate($DATE_RATE) || strlen($CURRENCY) < 0) {
    $strError = GetMessage("ERROR_DATE_RATE");
}
if (strlen($strError) <= 0) {
    //currency
    $currantCurrancy = CCurrency::GetBaseCurrency();
    //select host
    if ($currantCurrancy == "UAH") {
        //ukraina
        $host = "pfsoft.com.ua";
        $path = "/service/currency/";
        $QUERY_STR = "date=" . $DB->FormatDate($DATE_RATE, CLang::GetDateFormat("SHORT", $lang), "DMY");
    } elseif ($currantCurrancy == "BYR") {
示例#4
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
use Bitrix\Sale\Order;
include GetLangFileName(dirname(__FILE__) . "/", "/payment.php");
$inv_id = IntVal($_REQUEST["InvId"]);
$paymentId = intval($_REQUEST["shp_payment_id"]);
if ($inv_id > 0 && $paymentId > 0) {
    $bCorrectPayment = True;
    $out_summ = trim($_REQUEST["OutSum"]);
    $crc = trim($_REQUEST["SignatureValue"]);
    /** @var \Bitrix\Sale\Order $order */
    $order = Order::load($inv_id);
    if (!$order) {
        $bCorrectPayment = false;
    }
    $arOrder = $order->getFieldValues();
    $payment = $order->getPaymentcollection()->getItemById($paymentId);
    if (!$payment) {
        $bCorrectPayment = false;
    }
    if ($bCorrectPayment) {
        CSalePaySystemAction::InitParamArrays($arOrder, $inv_id, '', array(), $payment->getFieldValues());
    }
    $changePayStatus = trim(CSalePaySystemAction::GetParamValue("CHANGE_STATUS_PAY"));
    $mrh_pass2 = CSalePaySystemAction::GetParamValue("ShopPassword2");
    if (strlen($mrh_pass2) <= 0) {
        $bCorrectPayment = False;
    }
示例#5
0
}
$siteID = $arParams["site_id"];
if (strlen($arParams["site_id"]) <= 0) {
    $siteID = "s1";
}
$dbSite = CSite::GetByID($siteID);
if ($arSite = $dbSite->Fetch()) {
    $lang = $arSite["LANGUAGE_ID"];
}
if (strlen($lang) <= 0) {
    $lang = "ru";
}
$bRus = false;
if ($lang == "ru") {
    $bRus = true;
}
__IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", "/" . basename(__FILE__), $lang));
$dbLocation = CSaleLocation::GetList(array("ID" => "ASC"), array("LID" => $lang));
if ($arLocation = $dbLocation->Fetch()) {
    $arLocationArr = array();
    $arLocation4Delivery = array();
    do {
        $arLocationArr[] = $arLocation["ID"];
    } while ($arLocation = $dbLocation->Fetch());
    //Location group
    $groupLang = array(array("LID" => "en", "NAME" => "Group 1"));
    if ($bRus) {
        $groupLang[] = array("LID" => "ru", "NAME" => GetMessage("SALE_WIZARD_GROUP"));
    }
    $locationGroupID = CSaleLocationGroup::Add(array("SORT" => 150, "LOCATION_ID" => $arLocationArr, "LANG" => $groupLang));
}
示例#6
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
//http://www.russianpost.ru/rp/servise/ru/home/finuslug/cybermoney_russia
include GetLangFileName(dirname(__FILE__) . "/", "/tarif.php");
class CSalePaySystemTarifPFC extends CSalePaySystemTarif
{
    /* required inhereted methods */
    public static function getPrice(&$arPaySystem, $orderPrice, $deliveryPrice, $buyerLocationId)
    {
        if (!isset($arPaySystem["PSA_TARIF"]) || strlen($arPaySystem["PSA_TARIF"]) <= 0) {
            return 0;
        }
        $result = 0;
        $arLoc = CSaleLocation::GetByID($buyerLocationId);
        $regId = $arLoc["REGION_ID"];
        $arTarifs = self::extractFromField($arPaySystem["PSA_TARIF"]);
        $arTarif = isset($arTarifs[$regId]) ? $arTarifs[$regId] : $arTarifs[0];
        $fullPrice = $orderPrice + $deliveryPrice;
        if ($fullPrice <= 1000) {
            $tarifNum = "0";
        } elseif ($fullPrice <= 5000) {
            $tarifNum = "1";
        } elseif ($fullPrice <= 20000) {
            $tarifNum = "2";
        } elseif ($fullPrice <= 500000) {
            $tarifNum = "3";
        }
        if (isset($tarifNum)) {
示例#7
0
<?
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/include.php");

$CURRENCY_RIGHT = $APPLICATION->GetGroupRight("fevent");
if ($CURRENCY_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));


__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/admin/", "/trigger_actions.php"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fevent/prolog.php");

$sTableID = "f_triggers_log";
$oSort = new CAdminSorting($sTableID, "sort", "asc");
$lAdmin = new CAdminList($sTableID, $oSort);

$rsData = CFTriggerLog::GetList($by, $order);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();

function GetUserNameByID($USER_ID){
	if(intval($USER_ID)){
		$rsUser = CUser::GetByID($USER_ID);
		if($arUser = $rsUser->Fetch()){
			return (strlen($arUser["NAME"]) > 0 && strlen($arUser["LAST_NAME"]) > 0 ? $arUser["NAME"]." ".$arUser["LAST_NAME"] : $arUser["LOGIN"]);
		}else{
			return "";
		}
	}else{
		return "";
	}
}
示例#8
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$langFile = GetLangFileName(dirname(__FILE__) . "/", "/bill.php");
if (file_exists($langFile)) {
    include $langFile;
}
$psTitle = GetMessage("SBLP_DTITLE");
$psDescription = GetMessage("SBLP_DDESCR");
$arPSCorrespondence = array("DATE_INSERT" => array("NAME" => GetMessage("SBLP_DATE"), "DESCR" => GetMessage("SBLP_DATE_DESC"), "VALUE" => "DATE_INSERT", "TYPE" => "ORDER"), "DATE_PAY_BEFORE" => array("NAME" => GetMessage("SBLP_PAY_BEFORE"), "DESCR" => GetMessage("SBLP_PAY_BEFORE_DESC"), "VALUE" => "DATE_PAY_BEFORE", "TYPE" => "ORDER"), "SELLER_NAME" => array("NAME" => GetMessage("SBLP_SUPPLI"), "DESCR" => GetMessage("SBLP_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_ADDRESS" => array("NAME" => GetMessage("SBLP_ADRESS_SUPPLI"), "DESCR" => GetMessage("SBLP_ADRESS_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_PHONE" => array("NAME" => GetMessage("SBLP_PHONE_SUPPLI"), "DESCR" => GetMessage("SBLP_PHONE_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_EMAIL" => array("NAME" => GetMessage("SBLP_EMAIL_SUPPLI"), "DESCR" => GetMessage("SBLP_EMAIL_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_BANK_ACCNO" => array("NAME" => GetMessage("SBLP_BANK_ACCNO_SUPPLI"), "DESCR" => GetMessage("SBLP_BANK_ACCNO_SUPPLI_DESC"), "VALUE" => GetMessage("SBLP_BANK_ACCNO_SUPPLI_VAL"), "TYPE" => ""), "SELLER_BANK" => array("NAME" => GetMessage("SBLP_BANK_SUPPLI"), "DESCR" => GetMessage("SBLP_BANK_SUPPLI_DESC"), "VALUE" => GetMessage("SBLP_BANK_SUPPLI_VAL"), "TYPE" => ""), "SELLER_BANK_BLZ" => array("NAME" => GetMessage("SBLP_BANK_BLZ_SUPPLI"), "DESCR" => GetMessage("SBLP_BANK_BLZ_SUPPLI_DESC"), "VALUE" => GetMessage("SBLP_BANK_BLZ_SUPPLI_VAL"), "TYPE" => ""), "SELLER_BANK_IBAN" => array("NAME" => GetMessage("SBLP_BANK_IBAN_SUPPLI"), "DESCR" => GetMessage("SBLP_BANK_IBAN_SUPPLI_DESC"), "VALUE" => GetMessage("SBLP_BANK_IBAN_SUPPLI_VAL"), "TYPE" => ""), "SELLER_BANK_SWIFT" => array("NAME" => GetMessage("SBLP_BANK_SWIFT_SUPPLI"), "DESCR" => GetMessage("SBLP_BANK_SWIFT_SUPPLI_DESC"), "VALUE" => GetMessage("SBLP_BANK_SWIFT_SUPPLI_VAL"), "TYPE" => ""), "SELLER_EU_INN" => array("NAME" => GetMessage("SBLP_EU_INN_SUPPLI"), "DESCR" => GetMessage("SBLP_EU_INN_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_INN" => array("NAME" => GetMessage("SBLP_INN_SUPPLI"), "DESCR" => GetMessage("SBLP_INN_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_REG" => array("NAME" => GetMessage("SBLP_REG_SUPPLI"), "DESCR" => GetMessage("SBLP_REG_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_DIR" => array("NAME" => GetMessage("SBLP_DIR_SUPPLI"), "DESCR" => GetMessage("SBLP_DIR_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "SELLER_ACC" => array("NAME" => GetMessage("SBLP_ACC_SUPPLI"), "DESCR" => GetMessage("SBLP_ACC_SUPPLI_DESC"), "VALUE" => "", "TYPE" => ""), "BUYER_NAME" => array("NAME" => GetMessage("SBLP_CUSTOMER"), "DESCR" => GetMessage("SBLP_CUSTOMER_DESC"), "VALUE" => "COMPANY_NAME", "TYPE" => "PROPERTY"), "BUYER_ADDRESS" => array("NAME" => GetMessage("SBLP_CUSTOMER_ADRES"), "DESCR" => GetMessage("SBLP_CUSTOMER_ADRES_DESC"), "VALUE" => "ADDRESS", "TYPE" => "PROPERTY"), "BUYER_PHONE" => array("NAME" => GetMessage("SBLP_CUSTOMER_PHONE"), "DESCR" => GetMessage("SBLP_CUSTOMER_PHONE_DESC"), "VALUE" => "PHONE", "TYPE" => "PROPERTY"), "BUYER_FAX" => array("NAME" => GetMessage("SBLP_CUSTOMER_FAX"), "DESCR" => GetMessage("SBLP_CUSTOMER_FAX_DESC"), "VALUE" => "FAX", "TYPE" => "PROPERTY"), "BUYER_PAYER_NAME" => array("NAME" => GetMessage("SBLP_CUSTOMER_PERSON"), "DESCR" => GetMessage("SBLP_CUSTOMER_PERSON_DESC"), "VALUE" => "PAYER_NAME", "TYPE" => "PROPERTY"), "COMMENT1" => array("NAME" => GetMessage("SBLP_COMMENT1"), "DESCR" => "", "VALUE" => GetMessage("SBLP_COMMENT1_VALUE"), "TYPE" => ""), "COMMENT2" => array("NAME" => GetMessage("SBLP_COMMENT2"), "DESCR" => "", "VALUE" => "", "TYPE" => ""), "PATH_TO_LOGO" => array("NAME" => GetMessage("SBLP_LOGO"), "DESCR" => GetMessage("SBLP_LOGO_DESC"), "VALUE" => "", "TYPE" => "FILE"), "PATH_TO_STAMP" => array("NAME" => GetMessage("SBLP_PRINT"), "DESCR" => GetMessage("SBLP_PRINT_DESC"), "VALUE" => "", "TYPE" => "FILE"), "SELLER_DIR_SIGN" => array("NAME" => GetMessage("SBLP_DIR_SIGN_SUPPLI"), "DESCR" => GetMessage("SBLP_DIR_SIGN_SUPPLI_DESC"), "VALUE" => "", "TYPE" => "FILE"), "SELLER_ACC_SIGN" => array("NAME" => GetMessage("SBLP_ACC_SIGN_SUPPLI"), "DESCR" => GetMessage("SBLP_ACC_SIGN_SUPPLI_DESC"), "VALUE" => "", "TYPE" => "FILE"), "BACKGROUND" => array("NAME" => GetMessage("SBLP_BACKGROUND"), "DESCR" => GetMessage("SBLP_BACKGROUND_DESC"), "VALUE" => "", "TYPE" => "FILE"), "BACKGROUND_STYLE" => array("NAME" => GetMessage("SBLP_BACKGROUND_STYLE"), "DESCR" => "", "VALUE" => array('none' => array('NAME' => GetMessage("SBLP_BACKGROUND_STYLE_NONE")), 'tile' => array('NAME' => GetMessage("SBLP_BACKGROUND_STYLE_TILE")), 'stretch' => array('NAME' => GetMessage("SBLP_BACKGROUND_STYLE_STRETCH"))), "TYPE" => "SELECT"), "MARGIN_TOP" => array("NAME" => GetMessage("SBLP_MARGIN_TOP"), "DESCR" => "", "VALUE" => "15", "TYPE" => ""), "MARGIN_RIGHT" => array("NAME" => GetMessage("SBLP_MARGIN_RIGHT"), "DESCR" => "", "VALUE" => "15", "TYPE" => ""), "MARGIN_BOTTOM" => array("NAME" => GetMessage("SBLP_MARGIN_BOTTOM"), "DESCR" => "", "VALUE" => "15", "TYPE" => ""), "MARGIN_LEFT" => array("NAME" => GetMessage("SBLP_MARGIN_LEFT"), "DESCR" => "", "VALUE" => "20", "TYPE" => ""));
示例#9
0
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
include GetLangFileName(dirname(__FILE__) . '/', '/payment.php');
$iOrderID = IntVal($GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"]);
$obData = CPickpoint::SelectOrderPostamat($iOrderID);
$arData = $obData->Fetch();
?>
<style>
	.pp_ps_table
	{
		border-collapse:collapse;
	}
	.pp_ps_table td,.pp_ps_table th
	{
		padding:10px;
		border:1px solid #CECECE;
	}
	.pp_sms
	{
		margin:15px;
		font-size:14px;
	}
	.pp_sms span
	{
		margin-left:30px;
	}
</style>
<table class = "pp_ps_table">
示例#10
0
<?php

global $MESS;
$strPath2Lang = str_replace("\\", "/", __FILE__);
$strPath2Lang = substr($strPath2Lang, 0, strlen($strPath2Lang) - strlen('/install/index.php'));
include GetLangFileName($strPath2Lang . '/lang/', '/install/index.php');
if (class_exists('wiki')) {
    return;
}
class wiki extends CModule
{
    var $MODULE_ID = 'wiki';
    var $MODULE_VERSION;
    var $MODULE_VERSION_DATE;
    var $MODULE_NAME;
    var $MODULE_DESCRIPTION;
    var $MODULE_CSS;
    var $MODULE_GROUP_RIGHTS = 'Y';
    var $error = '';
    function wiki()
    {
        $arModuleVersion = array();
        $path = str_replace("\\", "/", __FILE__);
        $path = substr($path, 0, strlen($path) - strlen('/index.php'));
        include $path . '/version.php';
        if (is_array($arModuleVersion) && array_key_exists('VERSION', $arModuleVersion)) {
            $this->MODULE_VERSION = $arModuleVersion['VERSION'];
            $this->MODULE_VERSION_DATE = $arModuleVersion['VERSION_DATE'];
        } else {
            $this->MODULE_VERSION = WIKI_VERSION;
            $this->MODULE_VERSION_DATE = WIKI_VERSION_DATE;
示例#11
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    include GetLangFileName(dirname(__FILE__) . "/", "/result_rec.php");
    $orderId = IntVal($_POST["orderId"]);
    $bCorrectPayment = True;
    $techMessage = "";
    if (!($arOrder = CSaleOrder::GetByID($orderId))) {
        $bCorrectPayment = False;
        $techMessage = GetMessage("SALE_RBK_REC_ORDER");
    }
    if ($bCorrectPayment) {
        CSalePaySystemAction::InitParamArrays($arOrder, $arOrder["ID"]);
        $eshopIdB = CSalePaySystemAction::GetParamValue("ESHOP_ID");
        $recipientAmountB = number_format(CSalePaySystemAction::GetParamValue("SHOULD_PAY"), 2, '.', '');
        $recipientCurrencyB = CSalePaySystemAction::GetParamValue("CURRENCY");
        $secretKeyB = CSalePaySystemAction::GetParamValue("SECRET_KEY");
        if ($recipientCurrencyB == "RUB") {
            $recipientCurrencyB = "RUR";
        }
        $eshopId = trim($_POST["eshopId"]);
        $paymentId = trim($_POST["paymentId"]);
        $serviceName = trim($_POST["serviceName"]);
        $eshopAccount = trim($_POST["eshopAccount"]);
        $recipientAmount = trim($_POST["recipientAmount"]);
        $recipientCurrency = trim($_POST["recipientCurrency"]);
        $paymentStatus = trim($_POST["paymentStatus"]);
        $userName = trim($_POST["userName"]);
示例#12
0
##############################################
# Bitrix: SiteManager                        #
# Copyright (c) 2002-2005 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"].BX_ROOT."/modules/mail/prolog.php");

ClearVars();

$message = null;
$MOD_RIGHT = $APPLICATION->GetGroupRight("mail");
if($MOD_RIGHT<"R") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
include(GetLangFileName($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/mail/lang/", "/admin/mail_mailbox_edit.php"));

require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/include.php");

$err_mess = "File: ".__FILE__."<br>Line: ";

$strError="";
$ID = intval($ID);

$bCanUseTLS = (defined('BX_MAIL_FORCE_USE_TLS') && BX_MAIL_FORCE_USE_TLS === true) || function_exists('openssl_open');

if($REQUEST_METHOD=="POST" && (strlen($save)>0 || strlen($save_ext)>0 || strlen($apply)>0) && $MOD_RIGHT=="W" && check_bitrix_sessid())
{
	$arFields = Array(
		"ACTIVE"		=> $ACTIVE,
		"LID"			=> $LID,
示例#13
0
<?php

if ($USER->CanDoOperation('catalog_read') || $USER->CanDoOperation('catalog_price')) {
    include GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/catalog/lang/", "/templates/product_edit.php");
    $IBLOCK_ID = intval($IBLOCK_ID);
    if ($IBLOCK_ID <= 0) {
        return;
    }
    $MENU_SECTION_ID = intval($MENU_SECTION_ID);
    $arCatalog = CCatalog::GetByID($IBLOCK_ID);
    $PRODUCT_ID = 0 < $ID ? CIBlockElement::GetRealElement($ID) : 0;
    $arBaseProduct = CCatalogProduct::GetByID($PRODUCT_ID);
    if (0 < $PRODUCT_ID) {
        $bReadOnly = !($USER->CanDoOperation('catalog_price') && CIBlockElementRights::UserHasRightTo($IBLOCK_ID, $PRODUCT_ID, "element_edit_price"));
    } else {
        $bReadOnly = !($USER->CanDoOperation('catalog_price') && CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $MENU_SECTION_ID, "element_edit_price"));
    }
    $bDiscount = $USER->CanDoOperation('catalog_discount');
    ?>
<style type="text/css">
	input.wrong {background-color: #FF8080;}
</style>
<tr class="heading">
	<td colspan="2"><?php 
    echo GetMessage("IBLOCK_TCATALOG");
    if ($bReadOnly) {
        echo " " . GetMessage("IBLOCK_TREADONLY");
    }
    ?>
<script type="text/javascript">
			var bReadOnly = <?php 
示例#14
0
<?php

if (!$USER->IsAdmin()) {
    return;
}
global $MESS;
include GetLangFileName($GLOBALS['DOCUMENT_ROOT'] . '/bitrix/modules/im/lang/', '/options.php');
IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/main/options.php');
$module_id = 'im';
CModule::IncludeModule($module_id);
$MOD_RIGHT = $APPLICATION->GetGroupRight($module_id);
if (CIMConvert::ConvertCount() > 0) {
    $aMenu = array(array("TEXT" => GetMessage("IM_OPTIONS_CONVERT"), "LINK" => "im_convert.php?lang=" . LANGUAGE_ID, "TITLE" => GetMessage("IM_OPTIONS_CONVERT_TITLE")));
    $context = new CAdminContextMenu($aMenu);
    $context->Show();
}
$arDefaultValues['default'] = array('path_to_user_profile' => IsModuleInstalled("intranet") ? '/company/personal/user/#user_id#/' : '/club/user/#user_id#/', 'user_name_template' => "#LAST_NAME# #NAME#");
$arDefaultValues['extranet'] = array('path_to_user_profile' => '/extranet/contacts/personal/user/#user_id#/', 'user_name_template' => "#LAST_NAME# #NAME#");
$dbSites = CSite::GetList($b = "", $o = "", array("ACTIVE" => "Y"));
$arSites = array();
$aSubTabs = array();
while ($site = $dbSites->Fetch()) {
    $site["ID"] = htmlspecialcharsbx($site["ID"]);
    $site["NAME"] = htmlspecialcharsbx($site["NAME"]);
    $arSites[] = $site;
    $aSubTabs[] = array("DIV" => "opt_site_" . $site["ID"], "TAB" => "(" . $site["ID"] . ") " . $site["NAME"], 'TITLE' => '');
}
$subTabControl = new CAdminViewTabControl("subTabControl", $aSubTabs);
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("IM_TAB_SETTINGS"), "ICON" => "im_path", "TITLE" => GetMessage("IM_TAB_TITLE_SETTINGS")));
$tabControl = new CAdminTabControl("tabControl", $aTabs);
if (strlen($_POST['Update'] . $_GET['RestoreDefaults']) > 0 && check_bitrix_sessid()) {
示例#15
0
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule('vote')) {
    return;
}
__IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", '/' . basename(__FILE__)));
if (!is_object($DB)) {
    global $DB;
}
global $CACHE_MANAGER;
$CACHE_MANAGER->CleanDir("b_vote_channel");
$CACHE_MANAGER->Clean("b_vote_channel_2_site");
$arFieldsVC = array("TIMESTAMP_X" => $DB->GetNowFunction(), "C_SORT" => "'100'", "FIRST_SITE_ID" => "'s1'", "ACTIVE" => "'Y'", "VOTE_SINGLE" => "'Y'", "TITLE" => "'" . $DB->ForSql(GetMessage('VOTING_INSTALL_CHANNEL_ANKETA')) . "'", "SYMBOLIC_NAME" => "'ANKETA'");
$rsVoteChan = CVoteChannel::GetList($by, $order, array('SYMBOLIC_NAME' => 'ANKETA', 'SYMBOLIC_NAME_EXACT_MATCH' => 'Y'), $is_filtered);
if (!$rsVoteChan->Fetch()) {
    $ID = $DB->Insert("b_vote_channel", $arFieldsVC);
    if ($ID > 0) {
        $CACHE_MANAGER->CleanDir("b_vote_perm_" . $ID);
        //site
        $DB->Query("DELETE FROM b_vote_channel_2_site WHERE CHANNEL_ID='" . $ID . "'", false);
        $DB->Query("INSERT INTO b_vote_channel_2_site (CHANNEL_ID, SITE_ID) VALUES ({$ID}, 's1')", false);
        //groups
        $DB->Query("DELETE FROM b_vote_channel_2_group WHERE CHANNEL_ID='{$ID}'", false);
        $rsGroups = CGroup::GetList($by, $order, array());
        while ($arGroup = $rsGroups->Fetch()) {
            $arFieldsPerm = array("CHANNEL_ID" => "'" . intval($ID) . "'", "GROUP_ID" => "'" . intval($arGroup["ID"]) . "'", "PERMISSION" => "'2'");
            $DB->Insert("b_vote_channel_2_group", $arFieldsPerm);
        }
示例#16
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
include GetLangFileName(dirname(__FILE__) . "/", "/assist.php");
//return url
//price format
$SERVER_NAME_tmp = "";
if (defined("SITE_SERVER_NAME")) {
    $SERVER_NAME_tmp = SITE_SERVER_NAME;
}
if (strlen($SERVER_NAME_tmp) <= 0) {
    $SERVER_NAME_tmp = COption::GetOptionString("main", "server_name", "");
}
$dateInsert = strlen(CSalePaySystemAction::GetParamValue("DATE_INSERT")) > 0 ? CSalePaySystemAction::GetParamValue("DATE_INSERT") : $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["DATE_INSERT"];
$orderID = strlen(CSalePaySystemAction::GetParamValue("ORDER_ID")) > 0 ? CSalePaySystemAction::GetParamValue("ORDER_ID") : $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["ID"];
$shouldPay = strlen(CSalePaySystemAction::GetParamValue("SHOULD_PAY")) > 0 ? CSalePaySystemAction::GetParamValue("SHOULD_PAY") : $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["SHOULD_PAY"];
$currency = strlen(CSalePaySystemAction::GetParamValue("CURRENCY")) > 0 ? CSalePaySystemAction::GetParamValue("CURRENCY") : $GLOBALS["SALE_INPUT_PARAMS"]["ORDER"]["CURRENCY"];
$sucUrl = strlen(CSalePaySystemAction::GetParamValue("SUCCESS_URL")) > 0 ? CSalePaySystemAction::GetParamValue("SUCCESS_URL") : "http://" . $SERVER_NAME_tmp;
$failUrl = strlen(CSalePaySystemAction::GetParamValue("FAIL_URL")) > 0 ? CSalePaySystemAction::GetParamValue("FAIL_URL") : "http://" . $SERVER_NAME_tmp;
$valTmp = CSalePaySystemAction::GetParamValue("DEMO");
?>

<?php 
if (strlen($valTmp) > 0) {
    ?>
<FORM ACTION="https://test.paysecure.ru/pay/order.cfm" METHOD="POST" target="_blank">
<INPUT TYPE="HIDDEN" NAME="TestMode" VALUE="1">
<?php 
} else {
示例#17
0
<?php

define("SALE_DEBUG", false);
// Debug
global $DBType;
include GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/lang/", "/include.php");
$GLOBALS["SALE_FIELD_TYPES"] = array("CHECKBOX" => GetMessage("SALE_TYPE_CHECKBOX"), "TEXT" => GetMessage("SALE_TYPE_TEXT"), "SELECT" => GetMessage("SALE_TYPE_SELECT"), "MULTISELECT" => GetMessage("SALE_TYPE_MULTISELECT"), "TEXTAREA" => GetMessage("SALE_TYPE_TEXTAREA"), "LOCATION" => GetMessage("SALE_TYPE_LOCATION"), "RADIO" => GetMessage("SALE_TYPE_RADIO"));
if (!CModule::IncludeModule("currency")) {
    //	trigger_error("Currency is not installed");
    return false;
}
// Number of processed recurring records at one time
Define("SALE_PROC_REC_NUM", 3);
// Number of recurring payment attempts
Define("SALE_PROC_REC_ATTEMPTS", 3);
// Time between recurring payment attempts (in seconds)
Define("SALE_PROC_REC_TIME", 43200);
Define("SALE_PROC_REC_FREQUENCY", 7200);
// Owner ID base name used by CSale<etnity_name>ReportHelper clases for managing the reports.
Define("SALE_REPORT_OWNER_ID", 'sale');
global $SALE_TIME_PERIOD_TYPES;
$SALE_TIME_PERIOD_TYPES = array("H" => GetMessage("I_PERIOD_HOUR"), "D" => GetMessage("I_PERIOD_DAY"), "W" => GetMessage("I_PERIOD_WEEK"), "M" => GetMessage("I_PERIOD_MONTH"), "Q" => GetMessage("I_PERIOD_QUART"), "S" => GetMessage("I_PERIOD_SEMIYEAR"), "Y" => GetMessage("I_PERIOD_YEAR"));
Define("SALE_VALUE_PRECISION", 2);
define('BX_SALE_MENU_CATALOG_CLEAR', 'Y');
$GLOBALS["AVAILABLE_ORDER_FIELDS"] = array("ID" => array("COLUMN_NAME" => "ID", "NAME" => GetMessage("SI_ORDER_ID"), "SELECT" => "ID,DATE_INSERT", "CUSTOM" => "Y", "SORT" => "ID"), "LID" => array("COLUMN_NAME" => GetMessage("SI_SITE"), "NAME" => GetMessage("SI_SITE"), "SELECT" => "LID", "CUSTOM" => "N", "SORT" => "LID"), "PERSON_TYPE" => array("COLUMN_NAME" => GetMessage("SI_PAYER_TYPE"), "NAME" => GetMessage("SI_PAYER_TYPE"), "SELECT" => "PERSON_TYPE_ID", "CUSTOM" => "Y", "SORT" => "PERSON_TYPE_ID"), "PAYED" => array("COLUMN_NAME" => GetMessage("SI_PAID"), "NAME" => GetMessage("SI_PAID_ORDER"), "SELECT" => "PAYED,DATE_PAYED,EMP_PAYED_ID", "CUSTOM" => "Y", "SORT" => "PAYED"), "PAY_VOUCHER_NUM" => array("COLUMN_NAME" => GetMessage("SI_NO_PP"), "NAME" => GetMessage("SI_NO_PP_DOC"), "SELECT" => "PAY_VOUCHER_NUM", "CUSTOM" => "N", "SORT" => "PAY_VOUCHER_NUM"), "PAY_VOUCHER_DATE" => array("COLUMN_NAME" => GetMessage("SI_DATE_PP"), "NAME" => GetMessage("SI_DATE_PP_DOC"), "SELECT" => "PAY_VOUCHER_DATE", "CUSTOM" => "N", "SORT" => "PAY_VOUCHER_DATE"), "DELIVERY_DOC_NUM" => array("COLUMN_NAME" => GetMessage("SI_DATE_PP_DELIVERY_DOC_NUM"), "NAME" => GetMessage("SI_DATE_PP_DOC_DELIVERY_DOC_NUM"), "SELECT" => "DELIVERY_DOC_NUM", "CUSTOM" => "N", "SORT" => "DELIVERY_DOC_NUM"), "DELIVERY_DOC_DATE" => array("COLUMN_NAME" => GetMessage("SI_DATE_PP_DELIVERY_DOC_DATE"), "NAME" => GetMessage("SI_DATE_PP_DOC_DELIVERY_DOC_DATE"), "SELECT" => "DELIVERY_DOC_DATE", "CUSTOM" => "N", "SORT" => "DELIVERY_DOC_DATE"), "PAYED" => array("COLUMN_NAME" => GetMessage("SI_PAID"), "NAME" => GetMessage("SI_PAID_ORDER"), "SELECT" => "PAYED,DATE_PAYED,EMP_PAYED_ID", "CUSTOM" => "Y", "SORT" => "PAYED"), "CANCELED" => array("COLUMN_NAME" => GetMessage("SI_CANCELED"), "NAME" => GetMessage("SI_CANCELED_ORD"), "SELECT" => "CANCELED,DATE_CANCELED,EMP_CANCELED_ID", "CUSTOM" => "Y", "SORT" => "CANCELED"), "STATUS" => array("COLUMN_NAME" => GetMessage("SI_STATUS"), "NAME" => GetMessage("SI_STATUS_ORD"), "SELECT" => "STATUS_ID,DATE_STATUS,EMP_STATUS_ID", "CUSTOM" => "Y", "SORT" => "STATUS_ID"), "PRICE_DELIVERY" => array("COLUMN_NAME" => GetMessage("SI_DELIVERY"), "NAME" => GetMessage("SI_DELIVERY"), "SELECT" => "PRICE_DELIVERY,CURRENCY", "CUSTOM" => "Y", "SORT" => "PRICE_DELIVERY"), "ALLOW_DELIVERY" => array("COLUMN_NAME" => GetMessage("SI_ALLOW_DELIVERY"), "NAME" => GetMessage("SI_ALLOW_DELIVERY1"), "SELECT" => "ALLOW_DELIVERY,DATE_ALLOW_DELIVERY,EMP_ALLOW_DELIVERY_ID", "CUSTOM" => "Y", "SORT" => "ALLOW_DELIVERY"), "PRICE" => array("COLUMN_NAME" => GetMessage("SI_SUM"), "NAME" => GetMessage("SI_SUM_ORD"), "SELECT" => "PRICE,CURRENCY", "CUSTOM" => "Y", "SORT" => "PRICE"), "SUM_PAID" => array("COLUMN_NAME" => GetMessage("SI_SUM_PAID"), "NAME" => GetMessage("SI_SUM_PAID1"), "SELECT" => "SUM_PAID,CURRENCY", "CUSTOM" => "Y", "SORT" => "SUM_PAID"), "USER" => array("COLUMN_NAME" => GetMessage("SI_BUYER"), "NAME" => GetMessage("SI_BUYER"), "SELECT" => "USER_ID", "CUSTOM" => "Y", "SORT" => "USER_ID"), "PAY_SYSTEM" => array("COLUMN_NAME" => GetMessage("SI_PAY_SYS"), "NAME" => GetMessage("SI_PAY_SYS"), "SELECT" => "PAY_SYSTEM_ID", "CUSTOM" => "Y", "SORT" => "PAY_SYSTEM_ID"), "DELIVERY" => array("COLUMN_NAME" => GetMessage("SI_DELIVERY_SYS"), "NAME" => GetMessage("SI_DELIVERY_SYS"), "SELECT" => "DELIVERY_ID", "CUSTOM" => "Y", "SORT" => "DELIVERY_ID"), "DATE_UPDATE" => array("COLUMN_NAME" => GetMessage("SI_DATE_UPDATE"), "NAME" => GetMessage("SI_DATE_UPDATE"), "SELECT" => "DATE_UPDATE", "CUSTOM" => "N", "SORT" => "DATE_UPDATE"), "PS_STATUS" => array("COLUMN_NAME" => GetMessage("SI_PAYMENT_PS"), "NAME" => GetMessage("SI_PS_STATUS"), "SELECT" => "PS_STATUS,PS_RESPONSE_DATE", "CUSTOM" => "N", "SORT" => "PS_STATUS"), "PS_SUM" => array("COLUMN_NAME" => GetMessage("SI_PS_SUM"), "NAME" => GetMessage("SI_PS_SUM1"), "SELECT" => "PS_SUM,PS_CURRENCY", "CUSTOM" => "Y", "SORT" => "PS_SUM"), "TAX_VALUE" => array("COLUMN_NAME" => GetMessage("SI_TAX"), "NAME" => GetMessage("SI_TAX_SUM"), "SELECT" => "TAX_VALUE,CURRENCY", "CUSTOM" => "Y", "SORT" => "TAX_VALUE"), "BASKET" => array("COLUMN_NAME" => GetMessage("SI_ITEMS"), "NAME" => GetMessage("SI_ITEMS_ORD"), "SELECT" => "", "CUSTOM" => "Y", "SORT" => ""));
CModule::AddAutoloadClasses("sale", array("CSaleDelivery" => $DBType . "/delivery.php", "CSaleDeliveryHandler" => $DBType . "/delivery_handler.php", "CSaleLocation" => $DBType . "/location.php", "CSaleLocationGroup" => $DBType . "/location_group.php", "CSaleBasket" => $DBType . "/basket.php", "CSaleUser" => $DBType . "/basket.php", "CSaleOrder" => $DBType . "/order.php", "CSaleOrderProps" => $DBType . "/order_props.php", "CSaleOrderPropsGroup" => $DBType . "/order_props_group.php", "CSaleOrderPropsValue" => $DBType . "/order_props_values.php", "CSaleOrderPropsVariant" => $DBType . "/order_props_variant.php", "CSaleOrderUserProps" => $DBType . "/order_user_props.php", "CSaleOrderUserPropsValue" => $DBType . "/order_user_props_value.php", "CSaleOrderTax" => $DBType . "/order_tax.php", "CSalePaySystem" => $DBType . "/pay_system.php", "CSalePaySystemAction" => $DBType . "/pay_system_action.php", "CSaleTax" => $DBType . "/tax.php", "CSaleTaxRate" => $DBType . "/tax_rate.php", "CSalePersonType" => $DBType . "/person_type.php", "CSaleDiscount" => $DBType . "/discount.php", "CSaleUserAccount" => $DBType . "/user.php", "CSaleUserTransact" => $DBType . "/user_transact.php", "CSaleUserCards" => $DBType . "/user_cards.php", "CSaleRecurring" => $DBType . "/recurring.php", "CSaleStatus" => $DBType . "/status.php", "CSaleLang" => $DBType . "/settings.php", "CSaleGroupAccessToSite" => $DBType . "/settings.php", "CSaleGroupAccessToFlag" => $DBType . "/settings.php", "CSaleAuxiliary" => $DBType . "/auxiliary.php", "CSaleAffiliate" => $DBType . "/affiliate.php", "CSaleAffiliatePlan" => $DBType . "/affiliate_plan.php", "CSaleAffiliatePlanSection" => $DBType . "/affiliate_plan_section.php", "CSaleAffiliateTier" => $DBType . "/affiliate_tier.php", "CSaleAffiliateTransact" => $DBType . "/affiliate_transact.php", "CSaleExport" => $DBType . "/export.php", "CSaleMeasure" => "general/measurement.php", "CSaleProduct" => $DBType . "/product.php", "CSaleViewedProduct" => $DBType . "/product.php", "CSaleHelper" => "general/helper.php", "CSalePullSchema" => "general/pull_schema.php", "CSaleMobileOrderUtils" => "general/mobile_order.php", "CSaleMobileOrderPull" => "general/mobile_order.php", "CBaseSaleReportHelper" => "general/sale_report_helper.php", "CSaleReportSaleOrderHelper" => "general/sale_report_helper.php", "CSaleReportUserHelper" => "general/sale_report_helper.php", "CSaleReportSaleFuserHelper" => "general/sale_report_helper.php", "IBXSaleProductProvider" => "general/product_provider.php", "CSaleStoreBarcode" => $DBType . "/store_barcode.php", "Bitrix\\Sale\\OrderTable" => "lib/order.php", "Bitrix\\Sale\\BasketTable" => "lib/basket.php", "Bitrix\\Sale\\FuserTable" => "lib/fuser.php", "Bitrix\\Sale\\StatusTable" => "lib/status.php", "Bitrix\\Sale\\PaySystemTable" => "lib/paysystem.php", "Bitrix\\Sale\\DeliveryTable" => "lib/delivery.php", "Bitrix\\Sale\\DeliveryHandlerTable" => "lib/deliveryhandler.php", "Bitrix\\Sale\\PersonTypeTable" => "lib/persontype.php", "\\Bitrix\\Sale\\OrderTable" => "lib/order.php", "\\Bitrix\\Sale\\BasketTable" => "lib/basket.php", "\\Bitrix\\Sale\\FuserTable" => "lib/fuser.php", "\\Bitrix\\Sale\\StatusTable" => "lib/status.php", "\\Bitrix\\Sale\\PaySystemTable" => "lib/paysystem.php", "\\Bitrix\\Sale\\DeliveryTable" => "lib/delivery.php", "\\Bitrix\\Sale\\DeliveryHandlerTable" => "lib/deliveryhandler.php", "\\Bitrix\\Sale\\PersonTypeTable" => "lib/persontype.php", "CSaleReportSaleGoodsHelper" => "general/sale_report_helper.php", "CSaleReportSaleProductHelper" => "general/sale_report_helper.php", "Bitrix\\Sale\\ProductTable" => "lib/product.php", "Bitrix\\Sale\\GoodsSectionTable" => "lib/goodssection.php", "Bitrix\\Sale\\SectionTable" => "lib/section.php", "Bitrix\\Sale\\StoreProductTable" => "lib/storeproduct.php", "\\Bitrix\\Sale\\ProductTable" => "lib/product.php", "\\Bitrix\\Sale\\GoodsSectionTable" => "lib/goodssection.php", "\\Bitrix\\Sale\\SectionTable" => "lib/section.php", "\\Bitrix\\Sale\\StoreProductTable" => "lib/storeproduct.php", "CSaleBasketFilter" => "general/sale_cond.php", "CSaleCondCtrlGroup" => "general/sale_cond.php", "CSaleCondCtrlBasketGroup" => "general/sale_cond.php", "CSaleCondCtrlBasketFields" => "general/sale_cond.php", "CSaleCondCtrlBasketProps" => "general/sale_cond.php", "CSaleCondCtrlBasketProductFields" => "general/sale_cond.php", "CSaleCondCtrlBasketProductProps" => "general/sale_cond.php", "CSaleCondCtrlOrderFields" => "general/sale_cond.php", "CSaleCondCtrlCommon" => "general/sale_cond.php", "CSaleCondTree" => "general/sale_cond.php", "CSaleDiscountActionApply" => "general/sale_act.php", "CSaleActionCtrlGroup" => "general/sale_act.php", "CSaleActionCtrlDelivery" => "general/sale_act.php", "CSaleActionCtrlBasketGroup" => "general/sale_act.php", "CSaleActionCtrlGiftsGroup" => "general/sale_act.php", "CSaleActionCtrlSubGroup" => "general/sale_act.php", "CSaleActionCondCtrlBasketFields" => "general/sale_act.php", "CSaleActionCtrlBasketProductFields" => "general/sale_act.php", "CSaleActionCtrlBasketProductProps" => "general/sale_act.php", "CSaleActionTree" => "general/sale_act.php", "CSaleDiscountConvert" => "general/discount_convert.php"));
function GetBasketListSimple($bSkipFUserInit = False)
{
    $fUserID = CSaleBasket::GetBasketUserID($bSkipFUserInit);
    if ($fUserID > 0) {
        return CSaleBasket::GetList(array("NAME" => "ASC"), array("FUSER_ID" => $fUserID, "LID" => SITE_ID, "ORDER_ID" => "NULL"));
示例#18
0
<?if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();?><?
$after =  LANGUAGE_ID == 'en' ? '/payment.php' : '/payment.' . SITE_CHARSET . '.php';
include(GetLangFileName(dirname(__FILE__) . '/', $after));

$psTitle = GetMessage('SPCP_DTITLE');
$psDescription = GetMessage('SPCP_DDESCR');

$arPSCorrespondence = array(
	'MERCHANT_ID' => array(
		'NAME'  => GetMessage('MERCHANT_ID'),
		'DESCR' => GetMessage('MERCHANT_ID_DESCR'),
		'VALUE' => '',
		'TYPE'  => '',
	),
	'SECRET_KEY' => array(
		'NAME'  => GetMessage('SECRET_KEY'),
		'DESCR' => GetMessage('SECRET_KEY_DESCR'),
		'VALUE' => '',
		'TYPE'  => '',
	),
	'IS_TEST' => array(
		'NAME'  => GetMessage('PYM_TEST'),
		'DESCR' => GetMessage('PYM_TEST_DESC'),
		'VALUE' => 'Y',
		'TYPE'  => '',
	),
	'CHANGE_STATUS_PAY' => array(
		'NAME'  => GetMessage('PYM_CHANGE_STATUS_PAY'),
		'DESCR' => GetMessage('PYM_CHANGE_STATUS_PAY_DESC'),
		'VALUE' => 'Y',
		'TYPE'  => '',
示例#19
0
<?php

global $MESS;
include GetLangFileName($GLOBALS["DOCUMENT_ROOT"] . "/bitrix/modules/mail/lang/", "/prolog.php");
define("ADMIN_MODULE_NAME", "mail");
define("ADMIN_MODULE_ICON", "<a href=\"/bitrix/admin/mail_message_admin.php?lang=" . LANG . "\"><img src=\"/bitrix/images/mail/mail.gif\" width=\"48\" height=\"48\" border=\"0\" alt=\"" . GetMessage("MAIL_PROLOG_ALT") . "\" title=\"" . GetMessage("MAIL_PROLOG_ALT") . "\"></a>");
示例#20
0
文件: index.php 项目: nProfessor/Mytb
<?
global $MESS;
$strPath2Lang = str_replace("\\", "/", __FILE__);
$strPath2Lang = substr($strPath2Lang, 0, strlen($strPath2Lang)-strlen("/install/index.php"));
include(GetLangFileName($strPath2Lang."/lang/", "/install/index.php"));

if(class_exists("prmedia_vkontaktecomments")) return;

Class prmedia_vkontaktecomments extends CModule
{
	var $MODULE_ID = "prmedia.vkontaktecomments";
	var $MODULE_VERSION;
	var $MODULE_VERSION_DATE;
	var $MODULE_NAME;
	var $MODULE_DESCRIPTION;
	
	function prmedia_vkontaktecomments()
	{
        $this->MODULE_NAME = GetMessage("PRMEDIA_INSTALL_NAME"); 
        $this->MODULE_DESCRIPTION = GetMessage("PRMEDIA_INSTALL_DESCRIPTION");
		$this->PARTNER_NAME = "Progressive Media";
		$this->PARTNER_URI = "http://www.progressivemedia.ru";

		$arModuleVersion = array();
        $path = str_replace("\\", "/", __FILE__);
        $path = substr($path, 0, strlen($path) - strlen("/index.php"));
        include($path."/version.php");

        if (is_array($arModuleVersion) && array_key_exists("VERSION", $arModuleVersion))
        {
            $this->MODULE_VERSION = $arModuleVersion["VERSION"];
示例#21
0
<?php

define("STOP_STATISTICS", true);
define("BX_SECURITY_SHOW_MESSAGE", true);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
__IncludeLang(GetLangFileName($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/catalog/lang/", "/export_yandex.php"));
if ('GET' == $_SERVER['REQUEST_METHOD']) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
global $DB;
global $APPLICATION;
global $USER;
if (!check_bitrix_sessid()) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
$APPLICATION->SetTitle(GetMessage('YANDEX_DETAIL_TITLE'));
CModule::IncludeModule('iblock');
CModule::IncludeModule('currency');
CModule::IncludeModule('catalog');
if (!$USER->CanDoOperation('catalog_export_edit')) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    echo ShowError('!!' . GetMessage('YANDEX_ERR_NO_ACCESS_EXPORT'));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
if (!isset($_REQUEST['IBLOCK_ID']) || 0 == strlen($_REQUEST['IBLOCK_ID'])) {
示例#22
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
//Library
include_once dirname(__FILE__) . "/iblock_tools.php";
//Parameters
if (!is_array($arParams)) {
    $arParams = array();
}
if (strlen($arParams["site_id"]) <= 0) {
    $arParams["site_id"] = "s1";
}
$_SESSION["DEMO_IBLOCK_BOOKS"] = CIBlockCMLImport::GetIBlockByXML_ID("books-books");
//Import XML
if ($_SESSION["DEMO_IBLOCK_BOOKS"] === false) {
    $iblock_id = DEMO_IBlock_ImportXML("080_books_books-books_" . LANGUAGE_ID . ".xml", $arParams["site_id"], false, false);
    if ($iblock_id > 0) {
        $arLabels = array();
        $rsLanguages = CLanguage::GetList($b = "sort", $o = "asc");
        while ($arLang = $rsLanguages->Fetch()) {
            __IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", "/books-books.php", $arLang["LANGUAGE_ID"]));
            $arLabels[$arLang["LANGUAGE_ID"]] = GetMessage("DEMO_IBLOCK_ESTORE_BOOKS_BROWSER_TITLE");
        }
        $obUserField = new CUserTypeEntity();
        $obUserField->Add(array("ENTITY_ID" => "IBLOCK_" . $iblock_id . "_SECTION", "FIELD_NAME" => "UF_BROWSER_TITLE", "USER_TYPE_ID" => "string", "XML_ID" => "books_sections-books-property-browser_title", "SORT" => 100, "MULTIPLE" => "N", "MANDATORY" => "N", "SHOW_FILTER" => "S", "SHOW_IN_LIST" => "Y", "EDIT_IN_LIST" => "Y", "IS_SEARCHABLE" => "Y", "EDIT_FORM_LABEL" => $arLabels, "LIST_COLUMN_LABEL" => $arLabels, "LIST_FILTER_LABEL" => $arLabels));
        CUrlRewriter::Add(array("CONDITION" => "#^/e-store/books/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "/e-store/books/index.php"));
    }
}
示例#23
0
<?php

use Bitrix\Main\Localization\LanguageTable;
use Bitrix\Main\ModuleManager;
global $MESS;
$strPath2Lang = str_replace("\\", "/", __FILE__);
$strPath2Lang = substr($strPath2Lang, 0, strlen($strPath2Lang) - strlen("/install/index.php"));
include GetLangFileName($strPath2Lang . "/lang/", "/install.php");
class sale extends CModule
{
    var $MODULE_ID = "sale";
    var $MODULE_VERSION;
    var $MODULE_VERSION_DATE;
    var $MODULE_NAME;
    var $MODULE_DESCRIPTION;
    var $MODULE_CSS;
    var $MODULE_GROUP_RIGHTS = "Y";
    function sale()
    {
        $arModuleVersion = array();
        $path = str_replace("\\", "/", __FILE__);
        $path = substr($path, 0, strlen($path) - strlen("/index.php"));
        include $path . "/version.php";
        if (is_array($arModuleVersion) && array_key_exists("VERSION", $arModuleVersion)) {
            $this->MODULE_VERSION = $arModuleVersion["VERSION"];
            $this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
        } else {
            $this->MODULE_VERSION = SALE_VERSION;
            $this->MODULE_VERSION_DATE = SALE_VERSION_DATE;
        }
        $this->MODULE_NAME = GetMessage("SALE_INSTALL_NAME");
 function Show($RESULT_ID, $TEMPLATE = "", $TEMPLATE_TYPE = "show", $SHOW_ADDITIONAL = "N", $SHOW_ANSWER_VALUE = "Y", $SHOW_STATUS = "N")
 {
     global $DB, $MESS, $APPLICATION, $USER, $HTTP_POST_VARS, $HTTP_GET_VARS, $arrRESULT_PERMISSION, $arrFIELDS;
     $err_mess = CAllFormResult::err_mess() . "<br>Function: Show<br>Line: ";
     $z = CFormResult::GetByID($RESULT_ID);
     if ($zr = $z->Fetch()) {
         $arrResult = $zr;
         InitBVar($SHOW_ADDITIONAL);
         $additional = $SHOW_ADDITIONAL == "Y" ? "ALL" : "N";
         $WEB_FORM_ID = $FORM_ID = CForm::GetDataByID($arrResult["FORM_ID"], $arForm, $arQuestions, $arAnswers, $arDropDown, $arMultiSelect, $additional);
         CForm::GetResultAnswerArray($WEB_FORM_ID, $arrResultColumns, $arrResultAnswers, $arrResultAnswersVarname, array("RESULT_ID" => $RESULT_ID));
         $arrResultAnswers = $arrResultAnswers[$RESULT_ID];
         // проверим общие права на результат
         $F_RIGHT = CForm::GetPermission($WEB_FORM_ID);
         if (intval($F_RIGHT) >= 20 || $F_RIGHT >= 15 && $zr["USER_ID"] == $USER->GetID()) {
             // проверим права в зависимости от статуса результата
             $arrRESULT_PERMISSION = CFormResult::GetPermissions($RESULT_ID, $v);
             if (in_array("VIEW", $arrRESULT_PERMISSION)) {
                 if (strlen(trim($TEMPLATE)) > 0) {
                     $template = $TEMPLATE;
                 } else {
                     if ($TEMPLATE_TYPE == "show") {
                         if (strlen($arrResult["SHOW_RESULT_TEMPLATE"]) <= 0) {
                             $template = "default.php";
                         } else {
                             $template = $arrResult["SHOW_RESULT_TEMPLATE"];
                         }
                     } elseif ($TEMPLATE_TYPE == "print") {
                         if (strlen($arrResult["PRINT_RESULT_TEMPLATE"]) <= 0) {
                             $template = "default.php";
                         } else {
                             $template = $arrResult["PRINT_RESULT_TEMPLATE"];
                         }
                     }
                 }
                 require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/form/include.php";
                 if ($TEMPLATE_TYPE == "show") {
                     $path = COption::GetOptionString("form", "SHOW_RESULT_TEMPLATE_PATH");
                 } elseif ($TEMPLATE_TYPE == "print") {
                     $path = COption::GetOptionString("form", "PRINT_RESULT_TEMPLATE_PATH");
                 }
                 IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/form/include.php");
                 include GetLangFileName($_SERVER["DOCUMENT_ROOT"] . $path . "lang/", "/" . $template);
                 if ($APPLICATION->GetShowIncludeAreas()) {
                     $arIcons = array();
                     if (CModule::IncludeModule("fileman")) {
                         $arIcons[] = array("URL" => "/bitrix/admin/fileman_file_edit.php?lang=" . LANGUAGE_ID . "&site=" . SITE_ID . "&full_src=Y&path=" . urlencode($path . $template), "SRC" => "/bitrix/images/form/panel/edit_template.gif", "ALT" => GetMessage("FORM_PUBLIC_ICON_TEMPLATE"));
                         $arrUrl = parse_url($_SERVER["REQUEST_URI"]);
                         $arIcons[] = array("URL" => "/bitrix/admin/fileman_file_edit.php?lang=" . LANGUAGE_ID . "&site=" . SITE_ID . "&full_src=Y&path=" . urlencode($arrUrl["path"]), "SRC" => "/bitrix/images/form/panel/edit_file.gif", "ALT" => GetMessage("FORM_PUBLIC_ICON_HANDLER"));
                     }
                     $arIcons[] = array("URL" => "/bitrix/admin/form_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $WEB_FORM_ID, "SRC" => "/bitrix/images/form/panel/edit_form.gif", "ALT" => GetMessage("FORM_PUBLIC_ICON_SETTINGS"));
                     echo $APPLICATION->IncludeStringBefore($arIcons);
                 }
                 include $_SERVER["DOCUMENT_ROOT"] . $path . $template;
                 if ($APPLICATION->GetShowIncludeAreas()) {
                     echo $APPLICATION->IncludeStringAfter();
                 }
             }
         }
     }
 }
<?
$module_id = "ws.projectsettings";
$CAT_RIGHT = $APPLICATION->GetGroupRight($module_id);
if ($CAT_RIGHT >= "R") :
    global $MESS;
    include(GetLangFileName($GLOBALS["DOCUMENT_ROOT"] . "/bitrix/modules/main/lang/", "/options.php"));

    if ($REQUEST_METHOD == "GET" && strlen($RestoreDefaults) > 0 && $CAT_RIGHT == "W" && check_bitrix_sessid()) {
        COption::RemoveOption("ws.projectsettings");
        $z  = CGroup::GetList($v1 = "id", $v2 = "asc", array("ACTIVE" => "Y", "ADMIN"  => "N"));
        while ($zr      = $z->Fetch())
            $APPLICATION->DelGroupRight($module_id, array($zr["ID"]));
        LocalRedirect($APPLICATION->GetCurPage() . "?lang=" . LANG . "&mid=" . urlencode($mid));
    }

    $aTabs = array(
        array("DIV"       => "edit1", "TAB"       => GetMessage("MAIN_TAB_RIGHTS"), "TITLE"     => GetMessage("MAIN_TAB_TITLE_RIGHTS")),
    );
    $tabControl = new CAdminTabControl("tabControl", $aTabs);

    $tabControl->Begin();
    ?>
    <form method="POST" action="<? echo $APPLICATION->GetCurPage() ?>?mid=<?php 
echo htmlspecialchars($mid);
?>
&lang=<? echo LANG ?>" name="ara">
        <?php 
echo bitrix_sessid_post();
?>
        <?
        $tabControl->BeginNextTab();
示例#26
0
文件: imap.php 项目: ASDAFF/bxApiDocs
<?php

global $MESS;
include GetLangFileName($_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/mail/lang/", "/classes/general/imap.php");
class CMailImap
{
    protected $imap_stream;
    protected $counter;
    public function __construct()
    {
        $this->counter = 0;
    }
    public function connect($host, $port, $timeout = 1)
    {
        $imap_stream = @fsockopen($host, $port, $errno, $errstr, $timeout);
        if ($imap_stream === false) {
            throw new Exception(GetMessage('MAIL_IMAP_ERR_CONNECT'));
        }
        stream_set_timeout($imap_stream, $timeout);
        $this->imap_stream = $imap_stream;
        $prompt = $this->readLine();
        if ($prompt === false) {
            throw new Exception(GetMessage('MAIL_IMAP_ERR_COMMUNICATE'));
        }
        if (strpos($prompt, '* OK') !== 0) {
            $this->imap_stream = null;
            throw new Exception(GetMessage('MAIL_IMAP_ERR_CONNECT') . ': ' . GetMessage('MAIL_IMAP_ERR_BAD_SERVER'));
        }
    }
    public function authenticate($login, $password)
    {
示例#27
0
<?php
/*
##############################################
# Bitrix: SiteManager                        #
# Copyright (c) 2002 - 2004 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/mail/prolog.php");

$MOD_RIGHT = $APPLICATION->GetGroupRight("mail");
if($MOD_RIGHT<"R") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
include(GetLangFileName($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/mail/lang/", "/admin/mail_message_view.php"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/mail/include.php");
$err_mess = "File: ".__FILE__."<br>Line: ";

ClearVars("str_");

$ID = IntVal($ID);
if($_SERVER["REQUEST_METHOD"]=="POST" && $_REQUEST["save_form"]=="Y" && $MOD_RIGHT>="W" && check_bitrix_sessid())
{
	$dbr = CMailMessage::GetByID($ID);
	if($dbr_arr = $dbr->Fetch())
	{
		if($_REQUEST["MARK_AS_SPAM"]=="Y")
		{
			CMailMessage::MarkAsSpam($ID, true, $dbr_arr);
		}
		elseif($_REQUEST["MARK_AS_NOT_SPAM"]=="Y")
示例#28
0
}
$siteID = $arParams["site_id"];
if (strlen($arParams["site_id"]) <= 0) {
    $siteID = "s1";
}
$dbSite = CSite::GetByID($siteID);
if ($arSite = $dbSite->Fetch()) {
    $lang = $arSite["LANGUAGE_ID"];
}
if (strlen($lang) <= 0) {
    $lang = "ru";
}
$bRus = false;
if ($lang == "ru") {
    $bRus = true;
}
__IncludeLang(GetLangFileName(dirname(__FILE__) . "/lang/", "/step8.php", $lang));
$dbLocation = CSaleLocation::GetList(array("ID" => "ASC"), array("LID" => $lang));
if ($arLocation = $dbLocation->Fetch()) {
    $arLocation4Delivery = array();
    do {
        $arLocation4Delivery[] = array("LOCATION_ID" => $arLocation["ID"], "LOCATION_TYPE" => "L");
    } while ($arLocation = $dbLocation->Fetch());
    //Location group
    $dblocationGroupID = CSaleLocationGroup::GetList(array("ID" => "DESC"));
    if ($arLocationGroupID = $dblocationGroupID->Fetch()) {
        $locationGroupID = $arLocationGroupID["ID"];
    }
    $arLocation4Delivery[] = array("LOCATION_ID" => $locationGroupID, "LOCATION_TYPE" => "G");
    CSaleDelivery::Add(array("NAME" => GetMessage("SALE_WIZARD_COUR"), "LID" => $siteID, "PERIOD_FROM" => 7, "PERIOD_TO" => 15, "PERIOD_TYPE" => "D", "WEIGHT_FROM" => 2000, "WEIGHT_TO" => 0, "ORDER_PRICE_FROM" => 0, "ORDER_PRICE_TO" => 0, "ORDER_CURRENCY" => $bRus ? "RUB" : "USD", "ACTIVE" => "N", "PRICE" => "55", "CURRENCY" => $bRus ? "RUB" : "USD", "SORT" => 100, "DESCRIPTION" => "", "LOCATIONS" => $arLocation4Delivery));
}
示例#29
0
<?
	
global $MESS;

$modulePath = str_replace("\\", "/", __FILE__);
$modulePath = substr($modulePath, 0, strlen($modulePath) - strlen("/install/index.php")); 
require_once($modulePath."/include/constants.php");

include_once(CARROTQUEST_MODULE_PATH."include.php");
require(GetLangFileName(CARROTQUEST_MODULE_PATH."lang/", "/install/index.php"));

CModule::IncludeModule('sale');

Class carrotquest_analytics extends CModule
{
	var $MODULE_ID = "carrotquest.analytics";
	var $MODULE_VERSION;
	var $MODULE_VERSION_DATE;
	var $MODULE_NAME;
	var $MODULE_DESCRIPTION;
	var $MODULE_GROUP_RIGHTS = "N";
	var $PARTNER_NAME;
	var $PARTNER_URI;
	
	function __construct()
	{
		//$this->MODULE_ID = CARROTQUEST_MODULE_ID;
		
		$arModuleVersion = array();

		global $modulePath;
示例#30
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
include GetLangFileName(dirname(__FILE__) . "/", "/cash.php");
$psTitle = GetMessage("SCSP_DTITLE");
$psDescription = GetMessage("SCSP_DDESCR");
$arPSCorrespondence = array();