This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Важливо!!! | |
передпочатком зробити копію dbconn.php та .settings.php!!! | |
Копія даних файлів не зберігається | |
*/ | |
function get_tables($connect) | |
{ | |
$tableList = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
В консолі бітрикс /bitrix/admin/php_command_line.php виконуємо код нижче. Замінивши $module_id на ID вашого модуля. | |
Поправити path якщо установлення з /local/ | |
*/ | |
$module_id = 'ovv.testmodule'; // ID модуля | |
$module_class = str_replace('.','_', $module_id); | |
if(@file_exists($DOCUMENT_ROOT."/bitrix/modules/".$module_id."/install/index.php")) | |
{ | |
include_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/".$module_id."/install/index.php"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
ob_start(); | |
$ElementID = $APPLICATION->IncludeComponent( | |
"bitrix:catalog.element", | |
'catalog', | |
$arPrepareParams, | |
$component | |
); | |
$component = ob_get_clean(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); | |
use Bitrix\Sale; | |
use Bitrix\Main\Loader; | |
use Bitrix\Main\Data\Cache; | |
use \Bitrix\Iblock\ElementTable; | |
use \Bitrix\Iblock\SectionTable; | |
Loader::includeModule('iblock'); | |
Loader::includeModule('sale'); | |
Loader::includeModule('currency'); | |
$this->setFrameMode(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// Створення замовлення вруну | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
global $USER; | |
use \Bitrix\Main, | |
\Bitrix\Main\Localization\Loc as Loc, | |
Bitrix\Main\Loader, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Важливо!!! | |
передпочатком зробити копію dbconn.php та .settings.php!!! | |
Копія даних файлів не зберігається | |
*/ | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/php_interface/dbconn.php"); | |
if (!mysql_connect($DBHost, $DBLogin, $DBPassword)) { | |
print 'Could not connect to mysql'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
на сторінці - /bitrix/admin/dump.php?lang=ru , добавляємо скрипт щоб запустився наступний крок - | |
sessid - потрібно вставити свій ІД сесії | |
*/ | |
window.setTimeout("if(!stop)AjaxSend('?process=Y&sessid=35f522eb99ca6463f37d8ce733e0e48e')",2000); | |
/* | |
Або як варіант створити свою сторіку php із викликом в так - | |
/bitrix/admin/dump.php?lang=ru&sessid=35f522eb99ca6463f37d8ce733e0e48e&process=Y | |
sessid - потрібно вставити свій ІД сесії | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Проставити права доступу для Arduino Linux Mint | |
sudo chmod a+rw /dev/ttyACM0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//Помилка: | |
/* | |
2016-12-25 10:13:52 - Host: host:80 - UNCAUGHT_EXCEPTION - [Error] | |
Call to undefined function Bitrix\Main\DB\mysql_connect() (0) | |
/home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:45 | |
#0: Bitrix\Main\DB\MysqlConnection->connectInternal() | |
/home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:103 | |
#1: Bitrix\Main\DB\MysqlConnection->queryInternal(string, array, NULL) | |
/home/bitrix/www/bitrix/modules/main/lib/db/connection.php:329 |
NewerOlder