本文整理汇总了PHP中GetLangFileName函数的典型用法代码示例。如果您正苦于以下问题:PHP GetLangFileName函数的具体用法?PHP GetLangFileName怎么用?PHP GetLangFileName使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetLangFileName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Show
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();
}
}
}
}
示例2: Copyright
##############################################
# 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" => "");
示例3: define
<?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: GetLangFileName
<?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: __IncludeLang
}
$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: GetLangFileName
<?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: require_once
<?
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: GetLangFileName
<?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: GetLangFileName
<?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: str_replace
<?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: Copyright
##############################################
# 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,
示例12: GetLangFileName
<?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()) {
示例13: __IncludeLang
<?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);
}
示例14: GetLangFileName
<?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 {
示例15: define
<?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"));