Exemple #1
0
 public function __construct()
 {
     $this->config = json_decode(file_get_contents(BFactory::getDir() . '/config/block.json'));
     $this->setLanguage($this->config->languages->default);
     CModule::IncludeModule("iblock");
     CModule::AddAutoloadClasses('', array('BitrixAdapterBlockPrototype' => '/bitrixadapter/core/prototype.php'));
 }
Exemple #2
0
<?php

CModule::AddAutoloadClasses("storeassist", array("CStoreAssist" => "classes/general/storeassist.php"));
CJSCore::RegisterExt('storeassist', array('js' => '/bitrix/js/storeassist/storeassist.js', 'css' => '/bitrix/js/storeassist/css/storeassist.css', 'lang' => BX_ROOT . '/modules/storeassist/lang/' . LANGUAGE_ID . '/jsmessages.php'));
Exemple #3
0
<?php

global $DBType;
CModule::AddAutoloadClasses("workflow", array("CAllWorkflow" => "classes/general/workflow.php", "CWorkflow" => "classes/" . $DBType . "/workflow.php", "CWorkflowStatus" => "classes/general/status.php"));
function GetDefaultProlog($title)
{
    return "<" . "?\n" . "require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/prolog_before.php\");\n" . "\$APPLICATION->SetTitle(\"" . EscapePHPString($title) . "\");\n" . "require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/prolog_after.php\");\n" . "?" . ">\n";
}
function GetDefaultEpilog()
{
    return "\n<" . "?require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/epilog.php\");?" . ">";
}
function PathToWF($text, $DOCUMENT_ID)
{
    return preg_replace("'(<img[^>]+?src\\s*=\\s*\")(\\S+)(\"[^>]*>)'i", "\\1/bitrix/admin/workflow_get_file.php?did=" . $DOCUMENT_ID . "&fname=\\2\\3", $text);
}
function convert_image($img = "", $query = "", $param = "")
{
    if (is_array($img)) {
        $param = $img[3];
        $query = $img[2];
        $img = $img[1];
    } else {
        $param = stripslashes($param);
        $query = stripslashes($query);
        $img = stripslashes($img);
    }
    $params = array();
    parse_str(htmlspecialcharsback($query), $params);
    return $img . $params['fname'] . $param;
}
Exemple #4
0
<?php

CModule::AddAutoloadClasses('sender', array("bitrix\\sender\\contactlisttable" => "lib/contact.php", "bitrix\\sender\\listtable" => "lib/contact.php", "bitrix\\sender\\groupconnectortable" => "lib/group.php", "bitrix\\sender\\mailinggrouptable" => "lib/mailing.php", "Bitrix\\Sender\\MailingSubscriptionTable" => "lib/mailing.php", "bitrix\\sender\\postingrecipienttable" => "lib/posting.php", "bitrix\\sender\\postingreadtable" => "lib/posting.php", "bitrix\\sender\\postingclicktable" => "lib/posting.php", "bitrix\\sender\\postingunsubtable" => "lib/posting.php"));
\CJSCore::RegisterExt("sender_admin", array("js" => "/bitrix/js/sender/admin.js", "lang" => "/bitrix/modules/sender/lang/" . LANGUAGE_ID . "/js_admin.php", "rel" => array()));
Exemple #5
0
<?php

CModule::AddAutoloadClasses('sender', array("bitrix\\sender\\contacttable" => "lib/contact.php", "bitrix\\sender\\contactlisttable" => "lib/contact.php", "bitrix\\sender\\listtable" => "lib/contact.php", "bitrix\\sender\\grouptable" => "lib/group.php", "bitrix\\sender\\groupconnectortable" => "lib/group.php", "bitrix\\sender\\mailingtable" => "lib/mailing.php", "bitrix\\sender\\mailingchaintable" => "lib/mailing.php", "bitrix\\sender\\mailinggrouptable" => "lib/mailing.php", "bitrix\\sender\\postingtable" => "lib/posting.php", "bitrix\\sender\\postingrecipienttable" => "lib/posting.php", "bitrix\\sender\\postingreadtable" => "lib/posting.php", "bitrix\\sender\\postingclicktable" => "lib/posting.php", "bitrix\\sender\\postingunsubtable" => "lib/posting.php", "bitrix\\sender\\postingmanager" => "lib/postingmanager.php", "bitrix\\sender\\mailingmanager" => "lib/mailingmanager.php", "bitrix\\sender\\subscription" => "lib/subscription.php", "bitrix\\sender\\connector" => "lib/connector.php", "bitrix\\sender\\connectormanager" => "lib/connectormanager.php", "bitrix\\sender\\senderconnectorcontact" => "lib/senderconnectorcontact.php", "bitrix\\sender\\senderconnectorrecipient" => "lib/senderconnectorrecipient.php", "Bitrix\\Sender\\TemplateTable" => "lib/template.php", "Bitrix\\Sender\\Preset\\Template" => "lib/preset/template.php", "Bitrix\\Sender\\Preset\\MailBlock" => "lib/preset/mailblock.php", "Bitrix\\Sender\\Preset\\TemplateBase" => "lib/preset/template.php", "Bitrix\\Sender\\Preset\\MailBlockBase" => "lib/preset/mailblock.php"));
\CJSCore::RegisterExt("sender_admin", array("js" => "/bitrix/js/sender/admin.js", "rel" => array()));
<?php

IncludeModuleLangFile(__FILE__);
global $APPLICATION, $DBType;
CModule::AddAutoloadClasses("pull", array("CPullChannel" => "classes/general/pull_channel.php", "CPullStack" => "classes/" . $DBType . "/pull_stack.php", "CPullWatch" => "classes/" . $DBType . "/pull_watch.php", "CPullOptions" => "classes/general/pull_options.php", "CPullTableSchema" => "classes/general/pull_table_schema.php", "CPullPush" => "classes/general/pull_push.php", "CPushManager" => "classes/general/pull_push.php", "CAppleMessage" => "classes/general/pushservices/apple_push.php", "CApplePush" => "classes/general/pushservices/apple_push.php", "CGoogleMessage" => "classes/general/pushservices/google_push.php", "CGooglePush" => "classes/general/pushservices/google_push.php"));
CJSCore::RegisterExt('pull', array('js' => '/bitrix/js/pull/pull.js', 'rel' => defined('BX_PULL_SKIP_LS') ? array('ajax') : array('ajax', 'ls')));
global $DB, $MESS, $APPLICATION, $voteCache;
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/filter_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/vote_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/classes/" . strtolower($DB->type) . "/channel.php";
IncludeModuleLangFile(__FILE__);
if (!defined("VOTE_CACHE_TIME")) {
    define("VOTE_CACHE_TIME", 3600);
}
define("VOTE_DEFAULT_DIAGRAM_TYPE", "histogram");
$GLOBALS["VOTE_CACHE"] = array("CHANNEL" => array(), "VOTE" => array(), "QUESTION" => array());
$GLOBALS["VOTE_CACHE_VOTING"] = array();
$GLOBALS["aVotePermissions"] = array("reference_id" => array(0, 1, 2, 4), "reference" => array(GetMessage("VOTE_DENIED"), GetMessage("VOTE_READ"), GetMessage("VOTE_WRITE"), GetMessage("VOTE_EDIT")));
$_SESSION["VOTE"] = is_array($_SESSION["VOTE"]) ? $_SESSION["VOTE"] : array();
$_SESSION["VOTE"]["VOTES"] = is_array($_SESSION["VOTE"]["VOTES"]) ? $_SESSION["VOTE"]["VOTES"] : array();
CModule::AddAutoloadClasses("vote", array("CVoteAnswer" => "classes/" . strtolower($DB->type) . "/answer.php", "CVoteEvent" => "classes/" . strtolower($DB->type) . "/event.php", "CVoteQuestion" => "classes/" . strtolower($DB->type) . "/question.php", "CVoteUser" => "classes/" . strtolower($DB->type) . "/user.php", "CVote" => "classes/" . strtolower($DB->type) . "/vote.php", "CVoteCacheManager" => "classes/general/functions.php", "CUserTypeVote" => "classes/general/usertypevote.php"));
$voteCache = new CVoteCacheManager();
function VoteVoteEditFromArray($CHANNEL_ID, $VOTE_ID = false, $arFields = array(), $params = array())
{
    $CHANNEL_ID = intVal($CHANNEL_ID);
    if ($CHANNEL_ID <= 0 || empty($arFields)) {
        return false;
    } elseif (CVote::UserGroupPermission($CHANNEL_ID) <= 0) {
        return false;
    }
    $aMsg = array();
    $params = is_array($params) ? $params : array();
    $params["UNIQUE_TYPE"] = is_set($params, "UNIQUE_TYPE") ? intVal($params["UNIQUE_TYPE"]) : 20;
    $params["DELAY"] = is_set($params, "DELAY") ? intVal($params["DELAY"]) : 10;
    $params["DELAY_TYPE"] = is_set($params, "DELAY_TYPE") && in_array($params['DELAY_TYPE'], array("S", "M", "H", "D")) ? $params["DELAY_TYPE"] : "D";
    $arVote = array();
Exemple #8
0
CModule::AddAutoloadClasses(
	"form",
	array(
		// compability classes
		"CForm_old" => "classes/general/form_cform_old.php",
		"CFormResult_old" => "classes/general/form_cformresult_old.php",
		"CFormOutput_old" => "classes/general/form_cformoutput_old.php",

		// main classes
		"CAllForm" => "classes/general/form_callform.php",
		"CAllFormAnswer" => "classes/general/form_callformanswer.php",
		"CAllFormField" => "classes/general/form_callformfield.php",
		"CAllFormOutput" => "classes/general/form_callformoutput.php",
		"CAllFormResult" => "classes/general/form_callformresult.php",
		"CAllFormStatus" => "classes/general/form_callformstatus.php",
		"CAllFormValidator" => "classes/general/form_callformvalidator.php",
		"CAllFormCrm" => "classes/general/form_callformcrm.php",

		// API classes
		"CForm" => "classes/".$DBType."/form_cform.php",
		"CFormAnswer" => "classes/".$DBType."/form_cformanswer.php",
		"CFormField" => "classes/".$DBType."/form_cformfield.php",
		"CFormOutput" => "classes/".$DBType."/form_cformoutput.php",
		"CFormResult" => "classes/".$DBType."/form_cformresult.php",
		"CFormStatus" => "classes/".$DBType."/form_cformstatus.php",
		"CFormValidator" => "classes/".$DBType."/form_cformvalidator.php",

		"CFormCrm" => "classes/".$DBType."/form_cformcrm.php",
		"CFormCrmSender" => "classes/".$DBType."/form_cformcrm.php",

		// event handlers
		"CFormEventHandlers" => "events.php",
	)
);
Exemple #9
0
<?
global $DB, $DBType;

CModule::AddAutoloadClasses(
	"webdebug.options",
	array(
		"CWebdebugOptions" => "classes/{$DBType}/CWebdebugOptions.php"
	)
);
?>
Exemple #10
0
<?php

if (!defined("CACHED_b_bitrixcloud_option")) {
    define("CACHED_b_bitrixcloud_option", 36000);
}
global $DB;
$db_type = strtolower($DB->type);
CModule::AddAutoloadClasses("bitrixcloud", array("CAllBitrixCloudOption" => "classes/general/option.php", "CBitrixCloudOption" => "classes/" . $db_type . "/option.php", "CBitrixCloudWebService" => "classes/general/webservice.php", "CBitrixCloudCDNWebService" => "classes/general/cdn_webservice.php", "CBitrixCloudCDNConfig" => "classes/general/cdn_config.php", "CBitrixCloudCDN" => "classes/general/cdn.php", "CBitrixCloudCDNQuota" => "classes/general/cdn_quota.php", "CBitrixCloudCDNClasses" => "classes/general/cdn_class.php", "CBitrixCloudCDNClass" => "classes/general/cdn_class.php", "CBitrixCloudCDNServerGroups" => "classes/general/cdn_server.php", "CBitrixCloudCDNServerGroup" => "classes/general/cdn_server.php", "CBitrixCloudCDNLocations" => "classes/general/cdn_location.php", "CBitrixCloudCDNLocation" => "classes/general/cdn_location.php", "CBitrixCloudBackupWebService" => "classes/general/backup_webservice.php", "CBitrixCloudBackup" => "classes/general/backup.php", "CBitrixCloudMonitoringWebService" => "classes/general/monitoring_webservice.php", "CBitrixCloudMonitoring" => "classes/general/monitoring.php", "CBitrixCloudMonitoringResult" => "classes/general/monitoring_result.php", "CBitrixCloudMobile" => "classes/general/mobile.php"));
if (CModule::IncludeModule('clouds')) {
    CModule::AddAutoloadClasses("bitrixcloud", array("CBitrixCloudBackupBucket" => "classes/general/backup_bucket.php"));
}
CJSCore::RegisterExt('mobile_monitoring', array('js' => '/bitrix/js/bitrixcloud/mobile_monitoring.js', 'lang' => '/bitrix/modules/bitrixcloud/lang/' . LANGUAGE_ID . '/js_mobile_monitoring.php'));
class CBitrixCloudException extends Exception
{
    protected $error_code = "";
    protected $debug_info = "";
    public function __construct($message = "", $error_code = "", $debug_info = "")
    {
        parent::__construct($message);
        $this->error_code = $error_code;
        $this->debug_info = $debug_info;
    }
    public final function getErrorCode()
    {
        return $this->error_code;
    }
    public final function getDebugInfo()
    {
        return $this->debug_info;
    }
}
Exemple #11
0
<?php

define('NO_KEEP_STATISTIC', 'Y');
define('NO_AGENT_STATISTIC', 'Y');
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
if (!check_bitrix_sessid()) {
    return false;
}
CModule::AddAutoloadClasses('wiki', array('CWiki' => 'classes/general/wiki.php', 'CWikiUtils' => 'classes/general/wiki_utils.php', 'CWikiParser' => 'classes/general/wiki_parser.php', 'CWikiDiff' => 'classes/general/wiki_diff.php', 'CWikiSocnet' => 'classes/general/wiki_socnet.php', 'CWikiDocument' => 'classes/general/wiki_document.php', 'CWikiSecurity' => 'classes/general/wiki_security.php', 'CUserTypeWiki' => 'classes/general/wiki_usertypewiki.php', 'CRatingsComponentsWiki' => 'classes/general/ratings_components.php'));
$res = "";
switch ($_REQUEST["act"]) {
    case 'sanitize':
        if (isset($_REQUEST['text'])) {
            $res = $_REQUEST['text'];
            if (LANG_CHARSET != "UTF-8") {
                $res = $GLOBALS["APPLICATION"]->ConvertCharset($res, "UTF-8", LANG_CHARSET);
                /* if we recieved the mash from utf-8 and other encodings, lets prevent utf-8 text to be wrong decoded
                			(sender: /components/bitrix/wiki.edit/templates/.default/script.php:599
                			function insertSanitized())
                			for example user could copy and insert url from it's browser.
                			http://work.localhost/services/wiki/%C3%EB%E0%E2%ED%E0%FF+%F1%F2%F0%E0%ED%E8%F6%E0/edit/	*/
                $res = str_replace("##%##", "%", $res);
            }
            $CWikiParser = new CWikiParser();
            $res = $CWikiParser->Clear($res);
        }
        break;
}
echo $res;
Exemple #12
0
<?php

IncludeModuleLangFile(__FILE__);
global $DB;
$db_type = strtolower($DB->type);
CModule::AddAutoloadClasses("subscribe", array("CRubric" => "classes/general/rubric.php", "CSubscription" => "classes/" . $db_type . "/subscription.php", "CPosting" => "classes/" . $db_type . "/posting.php", "CPostingTemplate" => "classes/general/template.php", "CMailTools" => "classes/general/posting.php"));
Exemple #13
0
<?php

$arClasses = array("CExtranet" => "classes/general/extranet.php", "CUsersInMyGroupsCache" => "classes/general/extranet.php", "extranet" => "install/index.php");
CModule::AddAutoloadClasses("extranet", $arClasses);
global $obUsersCache;
$obUsersCache = new CUsersInMyGroupsCache();
Exemple #14
0
// 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');
//cache orders flag for real-time exhange with 1C
define("CACHED_b_sale_order", 3600 * 24);
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("SALE_WEIGHT_PRECISION", 3);
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"), "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", "CSaleDeliveryHelper" => "general/delivery_helper.php", "CSaleDelivery2PaySystem" => "general/delivery_2_pay_system.php", "CSaleLocation" => $DBType . "/location.php", "CSaleLocationGroup" => $DBType . "/location_group.php", "CSaleBasket" => $DBType . "/basket.php", "CSaleBasketHelper" => "general/basket_helper.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", "CSaleOrderHelper" => "general/order_helper.php", "CSalePaySystem" => $DBType . "/pay_system.php", "CSalePaySystemAction" => $DBType . "/pay_system_action.php", "CSalePaySystemsHelper" => "general/pay_system_helper.php", "CSalePaySystemTarif" => "general/pay_system_tarif.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", "CSaleOrderLoader" => "general/order_loader.php", "CSaleMeasure" => "general/measurement.php", "CSaleProduct" => $DBType . "/product.php", "CSaleViewedProduct" => $DBType . "/product.php", "CSaleHelper" => "general/helper.php", "CSaleMobileOrderUtils" => "general/mobile_order.php", "CSaleMobileOrderPull" => "general/mobile_order.php", "CSaleMobileOrderPush" => "general/mobile_order.php", "CSaleMobileOrderFilter" => "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", "CSaleOrderChange" => $DBType . "/order_change.php", "CSaleOrderChangeFormat" => "general/order_change.php", "Bitrix\\Sale\\OrderTable" => "lib/order.php", "Bitrix\\Sale\\BasketTable" => "lib/basket.php", "Bitrix\\Sale\\FuserTable" => "lib/fuser.php", "Bitrix\\Sale\\StatusLangTable" => "lib/statuslang.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\\StatusLangTable" => "lib/statuslang.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", "\\Bitrix\\Sale\\SalesZone" => "lib/saleszone.php", "Bitrix\\Sale\\Delivery\\OrderDeliveryTable" => "lib/delivery/orderdelivery.php", "Bitrix\\Sale\\SenderEventHandler" => "lib/senderconnector.php", "Bitrix\\Sale\\SenderConnectorBuyer" => "lib/senderconnector.php", "Bitrix\\Sale\\Product2ProductTable" => "lib/product2product.php", "Bitrix\\Sale\\OrderProcessingTable" => "lib/orderprocessing.php", "Bitrix\\Sale\\Tax\\RateTable" => "lib/tax/rate.php", "Bitrix\\Sale\\Location\\LocationTable" => "lib/location/location.php", "Bitrix\\Sale\\Location\\Tree" => "lib/location/tree.php", "Bitrix\\Sale\\Location\\TypeTable" => "lib/location/type.php", "Bitrix\\Sale\\Location\\GroupTable" => "lib/location/group.php", "Bitrix\\Sale\\Location\\ExternalTable" => "lib/location/external.php", "Bitrix\\Sale\\Location\\ExternalServiceTable" => "lib/location/externalservice.php", "Bitrix\\Sale\\Location\\Search\\Finder" => "lib/location/search/finder.php", "Bitrix\\Sale\\Location\\Search\\WordTable" => "lib/location/search/word.php", "Bitrix\\Sale\\Location\\Search\\ChainTable" => "lib/location/search/chain.php", "Bitrix\\Sale\\Location\\Search\\SiteLinkTable" => "lib/location/search/sitelink.php", "Bitrix\\Sale\\Location\\Name\\NameEntity" => "lib/location/name/nameentity.php", "Bitrix\\Sale\\Location\\Name\\LocationTable" => "lib/location/name/location.php", "Bitrix\\Sale\\Location\\Name\\TypeTable" => "lib/location/name/type.php", "Bitrix\\Sale\\Location\\Name\\GroupTable" => "lib/location/name/group.php", "Bitrix\\Sale\\Location\\Connector" => "lib/location/connector.php", "Bitrix\\Sale\\Location\\GroupLocationTable" => "lib/location/grouplocation.php", "Bitrix\\Sale\\Location\\SiteLocationTable" => "lib/location/sitelocation.php", "Bitrix\\Sale\\Location\\DefaultSiteTable" => "lib/location/defaultsite.php", "Bitrix\\Sale\\Location\\DB\\CommonHelper" => "lib/location/db/commonhelper.php", "Bitrix\\Sale\\Location\\DB\\Helper" => "lib/location/db/" . ToLower($DBType) . "/helper.php", "Bitrix\\Sale\\Location\\DB\\BlockInserter" => "lib/location/db/blockinserter.php", "Bitrix\\Sale\\Location\\Admin\\Helper" => "lib/location/admin/helper.php", "Bitrix\\Sale\\Location\\Admin\\NameHelper" => "lib/location/admin/namehelper.php", "Bitrix\\Sale\\Location\\Admin\\LocationHelper" => "lib/location/admin/locationhelper.php", "Bitrix\\Sale\\Location\\Admin\\TypeHelper" => "lib/location/admin/typehelper.php", "Bitrix\\Sale\\Location\\Admin\\GroupHelper" => "lib/location/admin/grouphelper.php", "Bitrix\\Sale\\Location\\Admin\\DefaultSiteHelper" => "lib/location/admin/defaultsitehelper.php", "Bitrix\\Sale\\Location\\Admin\\SiteLocationHelper" => "lib/location/admin/sitelocationhelper.php", "Bitrix\\Sale\\Location\\Admin\\ExternalServiceHelper" => "lib/location/admin/externalservicehelper.php", "Bitrix\\Sale\\Location\\Admin\\SearchHelper" => "lib/location/admin/searchhelper.php", "Bitrix\\Sale\\Location\\Util\\Process" => "lib/location/util/process.php", "Bitrix\\Sale\\Location\\Util\\CSVReader" => "lib/location/util/csvreader.php", "Bitrix\\Sale\\Location\\Util\\Assert" => "lib/location/util/assert.php", "Bitrix\\Sale\\Location\\Import\\ImportProcess" => "lib/location/import/importprocess.php", "Bitrix\\Sale\\Location\\Search\\ReindexProcess" => "lib/location/search/reindexprocess.php", "CSaleProxyAdminResult" => "general/proxyadminresult.php", "CSaleProxyResult" => "general/proxyresult.php", "Bitrix\\Sale\\Location\\Migration\\CUpdaterLocationPro" => "lib/location/migration/migrate.php", "Bitrix\\Sale\\Delivery\\DeliveryTable" => "lib/delivery/delivery.php", "Bitrix\\Sale\\Delivery\\DeliveryLocationTable" => "lib/delivery/deliverylocation.php", "Bitrix\\Sale\\Tax\\RateLocationTable" => "lib/tax/ratelocation.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", "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", "CSaleActionCtrlSubGroup" => "general/sale_act.php", "CSaleActionCondCtrlBasketFields" => "general/sale_act.php", "CSaleActionTree" => "general/sale_act.php", "CSaleDiscountConvert" => "general/discount_convert.php", "CSalePdf" => "general/pdf.php", "CSaleYMHandler" => "general/ym_handler.php", "Bitrix\\Sale\\TradingPlatformTable" => "lib/tradingplatform.php", "CSaleYMLocation" => "general/ym_location.php", '\\Bitrix\\Sale\\Internals\\DiscountTable' => 'lib/internals/discount.php', '\\Bitrix\\Sale\\Internals\\DiscountCouponTable' => 'lib/internals/discountcoupon.php', '\\Bitrix\\Sale\\Internals\\DiscountEntitiesTable' => 'lib/internals/discountentities.php', '\\Bitrix\\Sale\\Internals\\DiscountGroupTable' => 'lib/internals/discountgroup.php', '\\Bitrix\\Sale\\Internals\\DiscountModuleTable' => 'lib/internals/discountmodule.php', '\\Bitrix\\Sale\\Configuration' => 'lib/configuration.php', '\\Bitrix\\Sale\\DiscountCouponsManager' => 'lib/discountcoupon.php'));
function GetBasketListSimple($bSkipFUserInit = true)
{
    $fUserID = (int) CSaleBasket::GetBasketUserID($bSkipFUserInit);
    if ($fUserID > 0) {
        return CSaleBasket::GetList(array("NAME" => "ASC"), array("FUSER_ID" => $fUserID, "LID" => SITE_ID, "ORDER_ID" => "NULL"));
    } else {
        return False;
    }
}
function GetBasketList($bSkipFUserInit = true)
{
    $fUserID = (int) CSaleBasket::GetBasketUserID($bSkipFUserInit);
    $arRes = array();
    if ($fUserID > 0) {
        $basketID = array();
$classes = array(
  "\beGateway\ApiAbstract" => "$lib_path/ApiAbstract.php",
  "\beGateway\Authorization" => "$lib_path/Authorization.php",
  "\beGateway\Capture" => "$lib_path/Capture.php",
  "\beGateway\Card" => "$lib_path/Card.php",
  "\beGateway\CardToken" => "$lib_path/CardToken.php",
  "\beGateway\ChildTransaction" => "$lib_path/ChildTransaction.php",
  "\beGateway\Credit" => "$lib_path/Credit.php",
  "\beGateway\Customer" => "$lib_path/Customer.php",
  "\beGateway\GatewayTransport" => "$lib_path/GatewayTransport.php",
  "\beGateway\GetPaymentToken" => "$lib_path/GetPaymentToken.php",
  "\beGateway\Language" => "$lib_path/Language.php",
  "\beGateway\Logger" => "$lib_path/Logger.php",
  "\beGateway\Money" => "$lib_path/Money.php",
  "\beGateway\Payment" => "$lib_path/Payment.php",
  "\beGateway\QueryByToken" => "$lib_path/QueryByToken.php",
  "\beGateway\QueryByTrackingId" => "$lib_path/QueryByTrackingId.php",
  "\beGateway\QueryByUid" => "$lib_path/QueryByUid.php",
  "\beGateway\Refund" => "$lib_path/Refund.php",
  "\beGateway\Response" => "$lib_path/Response.php",
  "\beGateway\ResponseBase" => "$lib_path/ResponseBase.php",
  "\beGateway\ResponseCardToken" => "$lib_path/ResponseCardToken.php",
  "\beGateway\ResponseCheckout" => "$lib_path/ResponseCheckout.php",
  "\beGateway\Settings" => "$lib_path/Settings.php",
  "\beGateway\Void" => "$lib_path/Void.php",
  "\beGateway\Webhook" => "$lib_path/Webhook.php"
 );

CModule::AddAutoloadClasses("", $classes);
Exemple #16
0
<?php

if (!CModule::IncludeModule('iblock')) {
    return false;
}
if (!defined("CACHED_b_lists_permission")) {
    define("CACHED_b_lists_permission", 36000);
}
define('SONET_LISTS_NEW_POST_ENTITY', 'WF');
CModule::AddAutoloadClasses("lists", array("lists" => "install/index.php", "CListPermissions" => "classes/general/listperm.php", "CLists" => "classes/general/lists.php", "CList" => "classes/general/list.php", "CListFieldTypeList" => "classes/general/listfieldtypes.php", "CListFieldType" => "classes/general/listfieldtype.php", "CListField" => "classes/general/listfield.php", "CListFieldList" => "classes/general/listfields.php", "CListElementField" => "classes/general/listfield.php", "CListPropertyField" => "classes/general/listfield.php", "CListFields" => "classes/general/listfields.php", "CListFile" => "classes/general/listfile.php", "CListsParameters" => "classes/general/parameters.php", "CListFileControl" => "classes/general/comp_lib.php", "CListsSocnet" => "classes/general/listsocnet.php", "CListsLiveFeed" => "lib/livefeed.php", "BizprocDocument" => "lib/bizprocdocument.php", "bitrix\\lists\\importer" => "lib/importer.php", "bitrix\\lists\\bizprocdocumentlists" => "lib/bizprocdocumentlists.php"));
CJSCore::RegisterExt('lists', array('js' => '/bitrix/js/lists/js/lists.js', 'css' => '/bitrix/js/lists/css/lists.css', 'lang' => BX_ROOT . '/modules/lists/lang/' . LANGUAGE_ID . '/install/js/lists.php', 'rel' => array('core', 'popup', 'json', 'ajax')));
Exemple #17
0
<?
CModule::AddAutoloadClasses('anmaslov.stall',
    array(
        'Anmaslov\Stall\OrderStatusTable' => 'lib/orderstatus.php',
        'Anmaslov\Stall\OrderTable' => 'lib/order.php',
        'Anmaslov\Stall\OrderTable' => 'lib/order.php',
        'StallCart' => 'classes/general/StallCart.php',
        )
);

?>
Exemple #18
0
<?php

CModule::AddAutoloadClasses("bizpcate", array("BPCate" => 'classes/general/bizp.php'));
<?php

CModule::AddAutoloadClasses('webfarrock.iblockproplocation', array('WebFarrockIblockPropLocation' => 'classes/general/iblockproplocation.php'));
Exemple #20
0
 * @author Bitrix <*****@*****.**>
 * @version 1.0
 * @package usertype
 * @todo Добавить подсказку
 */

use Bitrix\Main\Entity;

CModule::AddAutoloadClasses(
	"main",
	array(
		"CUserTypeString" => "classes/general/usertypestr.php",
		"CUserTypeInteger" => "classes/general/usertypeint.php",
		"CUserTypeDouble" => "classes/general/usertypedbl.php",
		"CUserTypeDateTime" => "classes/general/usertypetime.php",
		"CUserTypeDate" => "classes/general/usertypedate.php",
		"CUserTypeBoolean" => "classes/general/usertypebool.php",
		"CUserTypeFile" => "classes/general/usertypefile.php",
		"CUserTypeEnum" => "classes/general/usertypeenum.php",
		"CUserTypeIBlockSection" => "classes/general/usertypesection.php",
		"CUserTypeIBlockElement" => "classes/general/usertypeelement.php",
		"CUserTypeStringFormatted" => "classes/general/usertypestrfmt.php",
	)
);

IncludeModuleLangFile(__FILE__);

/**
 * Данный класс используется для управления метаданными пользовательских свойств.
 *
 * <p>Выборки, Удаление Добавление и обновление метаданных таблицы b_user_field.</p>
create table b_user_field (
Exemple #21
0
}
// 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"));
    } else {
        return False;
    }
}
function GetBasketList($bSkipFUserInit = False)
{
    $fUserID = CSaleBasket::GetBasketUserID($bSkipFUserInit);
    $arRes = array();
    if ($fUserID > 0) {
        $db_res = CSaleBasket::GetList(array("NAME" => "ASC"), array("FUSER_ID" => $fUserID, "LID" => SITE_ID, "ORDER_ID" => "NULL"));
Exemple #22
0
<?php

CModule::IncludeModule("useraddress");
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
$arClasses = array("CUserAddress" => "classes/general/cUserAddress.php");
CModule::AddAutoloadClasses("useraddress", $arClasses);
Exemple #23
0
<?php

global $DBType;
define("SOCSERV_AUTHORISATION_ERROR", 1);
define("SOCSERV_REGISTRATION_DENY", 2);
define("SOCSERV_DEFAULT_HTTP_TIMEOUT", 10);
$arClasses = array("CSocServAuthManager" => "classes/general/authmanager.php", "CSocServAuthDB" => "classes/" . $DBType . "/authmanager.php", "CSocServUtil" => "classes/general/authmanager.php", "CSocServAuth" => "classes/general/authmanager.php", "CSocServOAuthTransport" => "classes/general/oauthtransport.php", "CBitrix24NetOAuthInterface" => "classes/general/bitrix24net.php", "CSocServBitrix24Net" => "classes/general/bitrix24net.php", "CBitrix24NetTransport" => "classes/general/bitrix24net.php", "CSocServFacebook" => "classes/general/facebook.php", "CFacebookInterface" => "classes/general/facebook.php", "CSocServMyMailRu" => "classes/general/mailru.php", "CSocServOpenID" => "classes/general/openid.php", "CSocServYandex" => "classes/general/openid.php", "CSocServMailRu" => "classes/general/openid.php", "CSocServLivejournal" => "classes/general/openid.php", "CSocServLiveinternet" => "classes/general/openid.php", "CSocServBlogger" => "classes/general/openid.php", "CSocServTwitter" => "classes/general/twitter.php", "CTwitterInterface" => "classes/general/twitter.php", "CSocServVKontakte" => "classes/general/vkontakte.php", "CSocServGoogleOAuth" => "classes/general/google.php", "CGoogleOAuthInterface" => "classes/general/google.php", "CSocServGooglePlusOAuth" => "classes/general/googleplus.php", "CGooglePlusOAuthInterface" => "classes/general/googleplus.php", "CSocServLiveIDOAuth" => "classes/general/liveidoauth.php", "CSocServOdnoklassniki" => "classes/general/odnoklassniki.php", "COpenIDClient" => "classes/general/openidclient.php", "CSocServMessage" => "classes/" . $DBType . "/authmanager.php", "CSocServBitrixOAuth" => "classes/general/bitrix24.php", "CBitrixOAuthInterface" => "classes/general/bitrix24.php", "CBitrixPHPAppTransport" => "classes/general/bitrix24.php", "CSocServYandexAuth" => "classes/general/yandex.php", "CYandexOAuthInterface" => "classes/general/yandex.php", "CSocServDropboxAuth" => "classes/general/dropbox.php", "CSocServBoxAuth" => "classes/general/box.php", "CBoxOAuthInterface" => "classes/general/box.php", "CBitrixSeoOAuthInterface" => "classes/general/bitrixseo.php", "CBitrixSeoTransport" => "classes/general/bitrixseo.php");
CModule::AddAutoloadClasses("socialservices", $arClasses);
$arJSDescription = array('js' => '/bitrix/js/socialservices/ss_timeman.js', 'css' => '/bitrix/js/socialservices/css/ss.css', 'rel' => array('popup', 'ajax', 'fx', 'ls', 'date', 'json'), 'lang' => '/bitrix/modules/socialservices/lang/' . LANGUAGE_ID . '/js_socialservices.php');
if (IsModuleInstalled("timeman")) {
    $userSocServEnable = CSocServAuthManager::GetCachedUserOption("user_socserv_enable");
    if ($userSocServEnable != '') {
        $arJSDescription['lang_additional'] = array('IS_ENABLED' => $userSocServEnable);
    }
}
CJSCore::RegisterExt('socserv_timeman', $arJSDescription);
class CSocServEventHandlers
{
    function OnFillSocNetLogEvents(&$arSocNetLogEvents)
    {
        $arSocNetLogEvents["twitter"] = array("ENTITIES" => array(SONET_SUBSCRIBE_ENTITY_USER => array("OPERATION" => "viewprofile"), SONET_SUBSCRIBE_ENTITY_GROUP => array("OPERATION" => "viewsystemevents")), "CLASS_FORMAT" => "CSocServEventHandlers", "METHOD_FORMAT" => "FormatEvent_Data", "FULL_SET" => array("data", "data_comment"), "COMMENT_EVENT" => array("EVENT_ID" => "data_comment", "CLASS_FORMAT" => "CSocServEventHandlers", "METHOD_FORMAT" => "FormatComment_Data"));
    }
    function FormatEvent_Data($arFields, $arParams, $bMail = false)
    {
        $arResult = array("EVENT" => $arFields, "URL" => "");
        if (!CModule::IncludeModule("socialnetwork")) {
            return $arResult;
        }
        if (in_array($arFields["ENTITY_TYPE"], array(SONET_SUBSCRIBE_ENTITY_GROUP, SONET_SUBSCRIBE_ENTITY_USER))) {
            $arResult["ENTITY"] = CSocNetLogTools::FormatEvent_GetEntity($arFields, $arParams, $bMail);
            $rsRight = CSocNetLogRights::GetList(array(), array("LOG_ID" => $arFields["ID"]));
Exemple #24
0
<?php

IncludeModuleLangFile(__FILE__);
define("IM_REVISION", 5);
define("IM_MESSAGE_SYSTEM", "S");
define("IM_MESSAGE_PRIVATE", "P");
define("IM_MESSAGE_GROUP", "G");
define("IM_NOTIFY_CONFIRM", 1);
define("IM_NOTIFY_FROM", 2);
define("IM_NOTIFY_SYSTEM", 4);
define("IM_STATUS_UNREAD", 0);
define("IM_STATUS_NOTIFY", 1);
define("IM_STATUS_READ", 2);
define("IM_SPEED_NOTIFY", 1);
define("IM_SPEED_MESSAGE", 2);
define("IM_SPEED_GROUP", 3);
define("IM_FEATURE_DESKTOP", "DESKTOP");
define("IM_FEATURE_XMPP", "XMPP");
define("IM_FEATURE_MAIL", "MAIL");
global $DBType;
CModule::AddAutoloadClasses("im", array("CIMMessenger" => "classes/general/im_messenger.php", "CIMNotify" => "classes/general/im_notify.php", "CIMContactList" => "classes/" . $DBType . "/im_contact_list.php", "CIMChat" => "classes/general/im_chat.php", "CIMMessage" => "classes/general/im_message.php", "CIMHistory" => "classes/general/im_history.php", "CIMEvent" => "classes/general/im_event.php", "CIMMail" => "classes/general/im_mail.php", "CIMConvert" => "classes/general/im_convert.php", "CIMTableSchema" => "classes/general/im_table_schema.php", "CIMNotifySchema" => "classes/general/im_notify_schema.php"));
CJSCore::RegisterExt('im', array('js' => '/bitrix/js/im/im.js', 'css' => '/bitrix/js/im/css/messenger.css', 'lang' => '/bitrix/modules/im/lang/' . LANGUAGE_ID . '/js_im.php', 'rel' => array('popup', 'ajax', 'fx', 'ls', 'date', 'json')));
Exemple #25
0
// <-- Permissions
// Sonet entity types -->
define('SONET_CRM_LEAD_ENTITY', 'CRMLEAD');
define('SONET_CRM_CONTACT_ENTITY', 'CRMCONTACT');
define('SONET_CRM_COMPANY_ENTITY', 'CRMCOMPANY');
define('SONET_CRM_DEAL_ENTITY', 'CRMDEAL');
define('SONET_CRM_ACTIVITY_ENTITY', 'CRMACTIVITY');
define('SONET_CRM_INVOICE_ENTITY', 'CRMINVOICE');
//<-- Sonet entity types
global $APPLICATION, $DBType, $DB;
IncludeModuleLangFile(__FILE__);
require_once $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/crm/functions.php';
require_once $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/crm/classes/general/crm_usertypecrmstatus.php';
require_once $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/crm/classes/general/crm_usertypecrm.php';
CModule::AddAutoloadClasses('crm', array('CAllCrmLead' => 'classes/general/crm_lead.php', 'CCrmLead' => 'classes/' . $DBType . '/crm_lead.php', 'CCrmLeadWS' => 'classes/general/ws_lead.php', 'CCRMLeadRest' => 'classes/general/rest_lead.php', 'CAllCrmDeal' => 'classes/general/crm_deal.php', 'CCrmDeal' => 'classes/' . $DBType . '/crm_deal.php', 'CAllCrmCompany' => 'classes/general/crm_company.php', 'CCrmCompany' => 'classes/' . $DBType . '/crm_company.php', 'CAllCrmContact' => 'classes/general/crm_contact.php', 'CCrmContact' => 'classes/' . $DBType . '/crm_contact.php', 'CCrmContactWS' => 'classes/general/ws_contact.php', 'CCrmPerms' => 'classes/general/crm_perms.php', 'CCrmRole' => 'classes/general/crm_role.php', 'CCrmFields' => 'classes/general/crm_fields.php', 'CCrmUserType' => 'classes/general/crm_usertype.php', 'CCrmGridOptions' => 'classes/general/crm_grids.php', 'CCrmStatus' => 'classes/general/crm_status.php', 'CCrmFieldMulti' => 'classes/general/crm_field_multi.php', 'CCrmEvent' => 'classes/general/crm_event.php', 'CCrmEMail' => 'classes/general/crm_email.php', 'CCrmVCard' => 'classes/general/crm_vcard.php', 'CCrmActivityTask' => 'classes/general/crm_activity_task.php', 'CCrmActivityCalendar' => 'classes/general/crm_activity_calendar.php', 'CUserTypeCrm' => 'classes/general/crm_usertypecrm.php', 'CUserTypeCrmStatus' => 'classes/general/crm_usertypecrmstatus.php', 'CCrmSearch' => 'classes/general/crm_search.php', 'CCrmBizProc' => 'classes/general/crm_bizproc.php', 'CCrmDocument' => 'classes/general/crm_document.php', 'CCrmDocumentLead' => 'classes/general/crm_document_lead.php', 'CCrmDocumentContact' => 'classes/general/crm_document_contact.php', 'CCrmDocumentCompany' => 'classes/general/crm_document_company.php', 'CCrmDocumentDeal' => 'classes/general/crm_document_deal.php', 'CCrmReportHelper' => 'classes/general/crm_report_helper.php', 'Bitrix\\Crm\\StatusTable' => 'lib/status.php', 'Bitrix\\Crm\\EventTable' => 'lib/event.php', 'Bitrix\\Crm\\EventRelationsTable' => 'lib/event.php', 'Bitrix\\Crm\\DealTable' => 'lib/deal.php', 'Bitrix\\Crm\\LeadTable' => 'lib/lead.php', 'Bitrix\\Crm\\ContactTable' => 'lib/contact.php', 'Bitrix\\Crm\\CompanyTable' => 'lib/company.php', '\\Bitrix\\Crm\\StatusTable' => 'lib/status.php', '\\Bitrix\\Crm\\EventTable' => 'lib/event.php', '\\Bitrix\\Crm\\EventRelationsTable' => 'lib/event.php', '\\Bitrix\\Crm\\DealTable' => 'lib/deal.php', '\\Bitrix\\Crm\\LeadTable' => 'lib/lead.php', '\\Bitrix\\Crm\\ContactTable' => 'lib/contact.php', '\\Bitrix\\Crm\\CompanyTable' => 'lib/company.php', 'CCrmExternalSale' => 'classes/general/crm_external_sale.php', 'CCrmExternalSaleProxy' => 'classes/general/crm_external_sale_proxy.php', 'CCrmExternalSaleImport' => 'classes/general/crm_external_sale_import.php', 'CCrmUtils' => 'classes/general/crm_utils.php', 'CCrmEntityHelper' => 'classes/general/entity_helper.php', 'CAllCrmCatalog' => 'classes/general/crm_catalog.php', 'CCrmCatalog' => 'classes/' . $DBType . '/crm_catalog.php', 'CCrmCurrency' => 'classes/general/crm_currency.php', 'CCrmCurrencyHelper' => 'classes/general/crm_currency_helper.php', 'CCrmProductResult' => 'classes/general/crm_product_result.php', 'CCrmProduct' => 'classes/general/crm_product.php', 'CCrmProductHelper' => 'classes/general/crm_product_helper.php', 'CAllCrmProductRow' => 'classes/general/crm_product_row.php', 'CCrmProductRow' => 'classes/' . $DBType . '/crm_product_row.php', 'CAllCrmInvoice' => 'classes/general/crm_invoice.php', 'CCrmInvoice' => 'classes/' . $DBType . '/crm_invoice.php', 'CAllCrmQuote' => 'classes/general/crm_quote.php', 'CCrmQuote' => 'classes/' . $DBType . '/crm_quote.php', 'CCrmOwnerType' => 'classes/general/crm_owner_type.php', 'CCrmOwnerTypeAbbr' => 'classes/general/crm_owner_type.php', 'Bitrix\\Crm\\ProductTable' => 'lib/product.php', 'Bitrix\\Crm\\ProductRowTable' => 'lib/productrow.php', 'Bitrix\\Crm\\IBlockElementProxyTable' => 'lib/iblockelementproxy.php', 'Bitrix\\Crm\\IBlockElementGrcProxyTable' => 'lib/iblockelementproxy.php', '\\Bitrix\\Crm\\ProductTable' => 'lib/product.php', '\\Bitrix\\Crm\\ProductRowTable' => 'lib/productrow.php', '\\Bitrix\\Crm\\IBlockElementProxyTable' => 'lib/iblockelementproxy.php', '\\Bitrix\\Crm\\IBlockElementGrcProxyTable' => 'lib/iblockelementproxy.php', 'CCrmAccountingHelper' => 'classes/general/crm_accounting_helper.php', 'Bitrix\\Crm\\ExternalSaleTable' => 'lib/externalsale.php', '\\Bitrix\\Crm\\ExternalSaleTable' => 'lib/externalsale.php', 'CCrmExternalSaleHelper' => 'classes/general/crm_external_sale_helper.php', 'CCrmEntityListBuilder' => 'classes/general/crm_entity_list_builder.php', 'CCrmComponentHelper' => 'classes/general/crm_component_helper.php', 'CCrmInstantEditorHelper' => 'classes/general/crm_component_helper.php', 'CAllCrmActivity' => 'classes/general/crm_activity.php', 'CCrmActivity' => 'classes/' . $DBType . '/crm_activity.php', 'CCrmActivityType' => 'classes/general/crm_activity.php', 'CCrmActivityStatus' => 'classes/general/crm_activity.php', 'CCrmActivityPriority' => 'classes/general/crm_activity.php', 'CCrmActivityNotifyType' => 'classes/general/crm_activity.php', 'CCrmActivityStorageType' => 'classes/general/crm_activity.php', 'CCrmContentType' => 'classes/general/crm_activity.php', 'CCrmEnumeration' => 'classes/general/crm_enumeration.php', 'CCrmEntitySelectorHelper' => 'classes/general/crm_entity_selector_helper.php', 'CCrmBizProcHelper' => 'classes/general/crm_bizproc_helper.php', 'CCrmBizProcEventType' => 'classes/general/crm_bizproc_helper.php', 'CCrmUrlUtil' => 'classes/general/crm_url_util.php', 'CCrmAuthorizationHelper' => 'classes/general/crm_authorization_helper.php', 'CCrmWebDavHelper' => 'classes/general/crm_webdav_helper.php', 'CCrmActivityDirection' => 'classes/general/crm_activity.php', 'CCrmViewHelper' => 'classes/general/crm_view_helper.php', 'CCrmSecurityHelper' => 'classes/general/crm_security_helper.php', 'CCrmMailHelper' => 'classes/general/crm_mail_helper.php', 'CCrmNotifier' => 'classes/general/crm_notifier.php', 'CCrmNotifierSchemeType' => 'classes/general/crm_notifier.php', 'CCrmActivityConverter' => 'classes/general/crm_activity_converter.php', 'CCrmDateTimeHelper' => 'classes/general/datetime_helper.php', 'CCrmEMailCodeAllocation' => 'classes/general/crm_email.php', 'CCrmActivityCalendarSettings' => 'classes/general/crm_activity.php', 'CCrmActivityCalendarSettings' => 'classes/general/crm_activity.php', 'CCrmProductReportHelper' => 'classes/general/crm_report_helper.php', 'CCrmReportManager' => 'classes/general/crm_report_helper.php', 'CCrmCallToUrl' => 'classes/general/crm_url_util.php', 'CCrmUrlTemplate' => 'classes/general/crm_url_util.php', 'CCrmFileProxy' => 'classes/general/file_proxy.php', 'CAllCrmMailTemplate' => 'classes/general/mail_template.php', 'CCrmMailTemplate' => 'classes/' . $DBType . '/mail_template.php', 'CCrmMailTemplateScope' => 'classes/general/mail_template.php', 'CCrmTemplateAdapter' => 'classes/general/template_adapter.php', 'CCrmTemplateMapper' => 'classes/general/template_mapper.php', 'CCrmTemplateManager' => 'classes/general/template_manager.php', 'CCrmGridContext' => 'classes/general/crm_grids.php', 'CCrmUserCounter' => 'classes/general/user_counter.php', 'CCrmUserCounterSettings' => 'classes/general/user_counter.php', 'CCrmMobileHelper' => 'classes/general/mobile_helper.php', 'CCrmStatusInvoice' => 'classes/general/crm_status_invoice.php', 'CCrmTax' => 'classes/general/crm_tax.php', 'CCrmVat' => 'classes/general/crm_vat.php', 'CCrmLocations' => 'classes/general/crm_locations.php', 'CCrmPaySystem' => 'classes/general/crm_pay_system.php', 'CCrmRestService' => 'classes/general/restservice.php', 'CCrmFieldInfo' => 'classes/general/field_info.php', 'CCrmFieldInfoAttr' => 'classes/general/field_info.php', 'CCrmActivityEmailSender' => 'classes/general/crm_activity.php', 'CCrmProductSection' => 'classes/general/crm_product_section.php', 'CCrmProductSectionDbResult' => 'classes/general/crm_product_section.php', 'CCrmActivityDbResult' => 'classes/general/crm_activity.php', 'CCrmInvoiceRestService' => 'classes/general/restservice_invoice.php', 'CCrmInvoiceEvent' => 'classes/general/crm_invoice_event.php', 'CCrmInvoiceEventFormat' => 'classes/general/crm_invoice_event.php', 'CCrmLeadReportHelper' => 'classes/general/crm_report_helper.php', 'CCrmInvoiceReportHelper' => 'classes/general/crm_report_helper.php', 'CCrmActivityReportHelper' => 'classes/general/crm_report_helper.php', 'CCrmLiveFeed' => 'classes/general/livefeed.php', 'CCrmLiveFeedMessageRestProxy' => 'classes/general/restservice.php', 'CCrmLiveFeedEntity' => 'classes/general/livefeed.php', 'CCrmLiveFeedEvent' => 'classes/general/livefeed.php', 'CCrmLiveFeedFilter' => 'classes/general/livefeed.php', 'CCrmLiveFeedComponent' => 'classes/general/livefeed.php', 'CAllCrmSonetRelation' => 'classes/general/sonet_relation.php', 'CCrmSonetRelationType' => 'classes/general/sonet_relation.php', 'CCrmSonetRelation' => 'classes/' . $DBType . '/sonet_relation.php', 'CAllCrmSonetSubscription' => 'classes/general/sonet_subscription.php', 'CCrmSonetSubscriptionType' => 'classes/general/sonet_subscription.php', 'CCrmSonetSubscription' => 'classes/' . $DBType . '/sonet_subscription.php', 'CCrmSipHelper' => 'classes/general/sip_helper.php', 'CCrmSaleHelper' => 'classes/general/sale_helper.php', 'CCrmProductFile' => 'classes/general/crm_product_file.php', 'CCrmProductFileControl' => 'classes/general/crm_product_file.php', 'CCrmProductPropsHelper' => 'classes/general/crm_productprops_helper.php', 'CCrmProductSectionHelper' => 'classes/general/crm_product_section_helper.php', '\\Bitrix\\Crm\\Honorific' => 'lib/honorific.php', '\\Bitrix\\Crm\\Conversion\\LeadConverter' => 'lib/conversion/leadconverter.php', '\\Bitrix\\Crm\\Conversion\\EntityConversionConfigItem' => 'lib/conversion/entityconversionconfigitem.php', '\\Bitrix\\Crm\\Conversion\\EntityConversionMapItem' => 'lib/conversion/entityconversionmapitem.php', '\\Bitrix\\Crm\\Conversion\\EntityConversionMap' => 'lib/conversion/entityconversionmap.php', '\\Bitrix\\Crm\\Conversion\\LeadConversionMapper' => 'lib/conversion/leadconversionmapper.php', '\\Bitrix\\Crm\\Conversion\\LeadConversionWizard' => 'lib/conversion/leadconversionwizard.php', '\\Bitrix\\Crm\\Conversion\\LeadConversionPhase' => 'lib/conversion/leadconversionphase.php', '\\Bitrix\\Crm\\Conversion\\LeadConversionConfig' => 'lib/conversion/leadconversionconfig.php', '\\Bitrix\\Crm\\Conversion\\LeadConversionScheme' => 'lib/conversion/leadconversionscheme.php', '\\Bitrix\\Crm\\Conversion\\DealConversionConfig' => 'lib/conversion/dealconversionconfig.php', '\\Bitrix\\Crm\\Conversion\\DealConversionScheme' => 'lib/conversion/dealconversionscheme.php', '\\Bitrix\\Crm\\Conversion\\EntityConversionFileViewer' => 'lib/conversion/entityconversionfileviewer.php', '\\Bitrix\\Crm\\Conversion\\Entity\\EntityConversionMapTable' => 'lib/conversion/entity/entityconversionmap.php', '\\Bitrix\\Crm\\Conversion\\ConversionWizardStep' => 'lib/conversion/conversionwizardstep.php', '\\Bitrix\\Crm\\Conversion\\ConversionWizard' => 'lib/conversion/conversionwizard.php', '\\Bitrix\\Crm\\Synchronization\\UserFieldSynchronizer' => 'lib/synchronization/userfieldsynchronizer.php', '\\Bitrix\\Crm\\Synchronization\\UserFieldSynchronizationException' => 'lib/synchronization/userfieldsynchronizationexception.php', '\\Bitrix\\Crm\\UserField\\UserFieldHistory' => 'lib/userfield/userfieldhistory.php', '\\Bitrix\\Crm\\UserField\\FileViewer' => 'lib/userfield/fileviewer.php', '\\Bitrix\\Crm\\Restriction\\ClientRestriction' => 'lib/restriction/clientrestriction.php', '\\Bitrix\\Crm\\Restriction\\ClientRestrictionManager' => 'lib/restriction/clientrestrictionmanager.php', '\\Bitrix\\Crm\\Restriction\\SelectRestriction' => 'lib/restriction/selectrestriction.php'));
CModule::AddAutoloadClasses('', array('CAdminCalendar' => BX_ROOT . '/modules/main/interface/admin_lib.php'));
//Disable data initialization under agent context
if (CCrmSecurityHelper::GetCurrentUserID() > 0) {
    // Convert LEAD & DEAL PRODUCT  -->
    if (COption::GetOptionString('crm', '~crm_11_0_6_convertion', 'N') !== 'Y') {
        $baseCurrencyID = "USD";
        $rsLang = CLanguage::GetByID("ru");
        if ($arLang = $rsLang->Fetch()) {
            $baseCurrencyID = "RUB";
        } else {
            $rsLang = CLanguage::GetByID("de");
            if ($arLang = $rsLang->Fetch()) {
                $baseCurrencyID = "EUR";
            }
        }
        $arProducts = CCrmStatus::GetStatusList('PRODUCT', true);
Exemple #26
0
<?php

global $DB, $APPLICATION;
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/filter_tools.php";
IncludeModuleLangFile(__FILE__);
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/support/errors.php");
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/support/support_tools.php";
$db_type = strtolower($DB->type);
CModule::AddAutoloadClasses("support", array("CTicket" => "classes/" . $db_type . "/support.php", "CTicketDictionary" => "classes/" . $db_type . "/dictionary.php", "CTicketSLA" => "classes/" . $db_type . "/sla.php", "CTicketReminder" => "classes/" . $db_type . "/reminder.php", "CSupportSuperCoupon" => "classes/general/coupons.php", "CSupportEMail" => "classes/general/email.php", "CSupportUserGroup" => "classes/general/usergroup.php", "CSupportUser2UserGroup" => "classes/general/usertousergroup.php", "CSupportTableFields" => "classes/general/tablefields.php", "CSupportTimetable" => "classes/general/timetable.php", "CSupportTools" => "classes/general/tools.php", "CSupportHolidays" => "classes/general/holidays.php", "CSupportTimetableCache" => "classes/general/timetablecache.php", "CSupportSearch" => "classes/general/search.php"));
Exemple #27
0
<?php

$sPath = '/local/php_interface/custom/';
#
# константы
#
include_once $_SERVER['DOCUMENT_ROOT'] . $sPath . 'constants.php';
#
# подключение кастомных классов
#
CModule::AddAutoloadClasses('', array('CISEventHandlers' => $sPath . 'classes/CISEventHandlers.php', 'CISCity' => $sPath . 'classes/CISCity.php'));
#
# функции (объявлять функции только здесь)
#
include_once $_SERVER['DOCUMENT_ROOT'] . $sPath . 'functions.php';
#
# обработчики событий
#
include_once $_SERVER['DOCUMENT_ROOT'] . $sPath . 'handlers.php';
Exemple #28
0
<?
CModule::AddAutoloadClasses("marketing", array('class_name' => 'classes/class.php'));
?>
Exemple #29
0
define("BLOG_PERMS_DENY", "D");
/* CAN'T EVEN LOOK AT ANY OBJECTS*/
define("BLOG_PERMS_READ", "I");
/* CAN ONLY READ ALL OBJECTS */
define("BLOG_PERMS_PREMODERATE", "K");
/* CAN READ ALL OBJECTS, CAN WRITE OWN HIDDEN OBJECTS */
define("BLOG_PERMS_WRITE", "P");
/* CAN READ ALL OBJECTS, CAN WRITE OWN OBJECTS */
define("BLOG_PERMS_MODERATE", "T");
/* CAN READ ALL OBJECT, CAN WRITE OWN OBJECTS, CAN HIDE AND SHOW ALL OBLECT */
define("BLOG_PERMS_FULL", "W");
/* CAN READ ALL OBJECT, CAN WRITE ALL OBJECTS */
$GLOBALS["AR_BLOG_PERMS"] = array("D" => GetMessage("BLI_P_D"), "I" => GetMessage("BLI_P_I"), "K" => GetMessage("BLI_P_K"), "P" => GetMessage("BLI_P_P"), "T" => GetMessage("BLI_P_T"), "W" => GetMessage("BLI_P_W"));
$GLOBALS["AR_BLOG_PERMS_EVERYONE"] = array("D" => GetMessage("BLI_P_D"), "I" => GetMessage("BLI_P_I"));
$GLOBALS["AR_BLOG_POST_PERMS"] = array(BLOG_PERMS_DENY, BLOG_PERMS_READ, BLOG_PERMS_PREMODERATE, BLOG_PERMS_WRITE, BLOG_PERMS_MODERATE, BLOG_PERMS_FULL);
$GLOBALS["AR_BLOG_COMMENT_PERMS"] = array(BLOG_PERMS_DENY, BLOG_PERMS_READ, BLOG_PERMS_PREMODERATE, BLOG_PERMS_WRITE, BLOG_PERMS_MODERATE, BLOG_PERMS_FULL);
define("BLOG_PERMS_POST", "P");
define("BLOG_PERMS_COMMENT", "C");
define("BLOG_PUBLISH_STATUS_DRAFT", "D");
define("BLOG_PUBLISH_STATUS_READY", "K");
define("BLOG_PUBLISH_STATUS_PUBLISH", "P");
$GLOBALS["AR_BLOG_PUBLISH_STATUS"] = array("D" => GetMessage("BLI_PS_D"), "K" => GetMessage("BLI_PS_K"), "P" => GetMessage("BLI_PS_P"));
define("BLOG_BY_USER_ID", 1);
define("BLOG_BY_BLOG_USER_ID", 2);
define("BLOG_ADD", 1);
define("BLOG_CHANGE", 2);
define("BLOG_RESET", 3);
$GLOBALS["AR_BLOG_RESERVED_NAMES"] = array("admin", "users", "group", "rss", "new", "user", "user_friends", "search", "user_settings", "user_settings_edit", "group_edit", "blog_edit", "category_edit", "post_edit", "draft", "moderation", "trackback", "post", "post_rss", "rss", "rss_all", "index");
$GLOBALS["AR_BLOG_POST_RESERVED_CODES"] = array("admin", "users", "index", "group", "blog", "user", "user_friends", "search", "user_settings", "user_settings_edit", "group_edit", "blog_edit", "category_edit", "post_edit", "draft", "moderation", "trackback", "post", "post_rss", "rss", "rss_all", "new");
CModule::AddAutoloadClasses("blog", array("CBlog" => $DBType . "/blog.php", "CBlogCandidate" => $DBType . "/blog_candid.php", "CBlogGroup" => $DBType . "/blog_group.php", "CBlogImage" => $DBType . "/blog_image.php", "CBlogPost" => $DBType . "/blog_post.php", "CBlogCategory" => $DBType . "/blog_category.php", "CBlogComment" => $DBType . "/blog_comment.php", "CBlogUser" => $DBType . "/blog_user.php", "CBlogUserGroup" => $DBType . "/blog_user_group.php", "CBlogTrackback" => $DBType . "/blog_trackback.php", "CBlogUserGroupPerms" => $DBType . "/blog_user_group_perms.php", "CBlogSitePath" => $DBType . "/blog_site_path.php", "CBlogSmile" => $DBType . "/smile.php", "CBlogPostCategory" => $DBType . "/blog_post_category.php", "CBlogSearch" => "general/blog_search.php", "CBlogSoNetPost" => "general/sonet.php", "blogTextParser" => "general/functions.php", "CBlogTools" => "general/functions.php", "CBlogMetaWeblog" => "general/blog_metaweblog.php", "CRatingsComponentsBlog" => $DBType . "/ratings_components.php", "CBlogNotifySchema" => "general/blog_notify_schema.php"));
Exemple #30
0
<?php

if (!defined("CACHED_b_sec_iprule")) {
}
// define("CACHED_b_sec_iprule", 36000);
if (!defined("CACHED_b_sec_filter_mask")) {
}
// define("CACHED_b_sec_filter_mask", 36000);
if (!defined("CACHED_b_sec_frame_mask")) {
}
// define("CACHED_b_sec_frame_mask", 36000);
if (!defined("CACHED_b_sec_redirect_url")) {
}
// define("CACHED_b_sec_redirect_url", 36000);
global $DB;
CModule::AddAutoloadClasses("security", array("CSecurityIPRule" => "classes/general/iprule.php", "CSecurityFilter" => "classes/general/filter.php", "CSecurityHtmlEntity" => "classes/general/html_entity.php", "CSecurityFilterMask" => "classes/general/filter_mask.php", "CSecurityXSSDetect" => "classes/general/post_filter.php", "CSecurityXSSDetectVariables" => "classes/general/post_filter_variables.php", "CSecuritySessionVirtual" => "classes/general/session_virtual.php", "CSecuritySessionDB" => "classes/general/session_db.php", "CSecuritySessionMC" => "classes/general/session_mc.php", "CSecuritySession" => "classes/general/session.php", "CSecurityDB" => "classes/" . strtolower($DB->type) . "/database.php", "CSecurityUser" => "classes/general/user.php", "CSecurityRedirect" => "classes/general/redirect.php", "CSecurityAntiVirus" => "classes/general/antivirus.php", "CSecurityFrame" => "classes/general/frame.php", "CSecurityFrameMask" => "classes/general/frame.php", "CSecurityEvent" => "classes/general/event.php", "CSecurityEventMessageFormatter" => "classes/general/event_message.php", "CSecuritySystemInformation" => "classes/general/system_information.php", "CSecurityTemporaryStorage" => "classes/general/temporary_storage.php", "CSecuritySiteChecker" => "classes/general/site_checker.php", "CSecurityBaseTest" => "classes/general/tests/base_test.php", "CSecurityTestsPackage" => "classes/general/tests/tests_package.php", "CSecurityCriticalLevel" => "classes/general/tests/critical_level.php", "CSecurityCloudMonitorTest" => "classes/general/tests/cloud_monitor.php", "CSecurityCloudMonitorRequest" => "classes/general/tests/cloud_monitor_request.php", "CSecurityEnvironmentTest" => "classes/general/tests/environment.php", "CSecurityFilePermissionsTest" => "classes/general/tests/file_permissions.php", "CSecurityPhpConfigurationTest" => "classes/general/tests/php_configuration.php", "CSecuritySiteConfigurationTest" => "classes/general/tests/site_configuration.php", "CSecurityTaintCheckingTest" => "classes/general/tests/taint_checking.php", "CSecurityUserTest" => "classes/general/tests/user.php", "CSecurityRequirementsException" => "classes/general/requirements_exception.php", "CSecurityJsonHelper" => "classes/general/json.php"));