This file contains 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 | |
use Bitrix\Main\Application; | |
$connection = Application::getConnection(); | |
$sqlHelper = $connection->getSqlHelper(); | |
$sql = "SELECT ID FROM b_user WHERE LOGIN = '".$sqlHelper->forSql($login, 50)."'"; | |
//$connection->query($sql, $limit); | |
//$connection->query($sql, $offset, $limit); |
This file contains 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
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This file contains 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 | |
/** Выводит / возвращает Dump SQL запроса Bitrix D7 и старого ядра */ | |
if( !function_exists('_dumpSQL') ){ | |
function _dumpSQL(callable $callback, array $params = []) | |
{ | |
$result = []; | |
if($params['user'] == 'all' || $GLOBALS['USER']-> isAdmin() ){ |
OlderNewer