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_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php"); | |
CModule::IncludeModule("iblock"); | |
if($_SERVER["REQUEST_METHOD"] == "POST"){ | |
$arResult = array( | |
'errors' => array(), | |
'email' => 'empty' | |
); | |
$metro = trim($_POST['metro']); | |
$login = trim($_POST['login']); |
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
function readURL(input) { | |
if (input.files && input.files[0]) { | |
var reader = new FileReader(); | |
reader.onload = function (e) { | |
$('#blah').attr('src', e.target.result); | |
} | |
reader.readAsDataURL(input.files[0]); | |
} |
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
<script> | |
ymaps.ready(init); | |
function init(){ | |
// Создаем карту | |
var map = new ymaps.Map("map", { | |
center: [55, 37], // координаты центра карты, при загрузке | |
zoom: 5 // коэффициент масштабирования | |
}); |
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
$res->GetPageNavStringEx($navComponentObject, "Объекты", ".default"); |
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
[ID] => 22100 | |
[~ID] => 22100 | |
[IBLOCK_ID] => 4 | |
[~IBLOCK_ID] => 4 | |
[CODE] => matrix_uroven_lazernyy_180mm_220mm_shtativ_4_glazka | |
[~CODE] => matrix_uroven_lazernyy_180mm_220mm_shtativ_4_glazka | |
[XML_ID] => 1a9ed06d-a39c-11e4-ae85-f835ddc04953 | |
[~XML_ID] => 1a9ed06d-a39c-11e4-ae85-f835ddc04953 | |
[NAME] => MATRIX Уровень лазерный,180мм,220мм штатив,4 глазка | |
[~NAME] => MATRIX Уровень лазерный,180мм,220мм штатив,4 глазка |
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
Array | |
( | |
[0] => Array | |
( | |
[ID] => 7 | |
[~ID] => 7 | |
[TIMESTAMP_X] => 22.05.2016 14:11:16 | |
[~TIMESTAMP_X] => 22.05.2016 14:11:16 | |
[MODIFIED_BY] => 1 | |
[~MODIFIED_BY] => 1 |
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
$(document).ready(function(){ | |
$("#add-obj").submit(function(){ | |
var fObj = $(this); | |
var formData = $(this).serialize(); | |
$.ajax({ | |
url: fObj.attr('action'), | |
type: 'GET', | |
data: formData, | |
processData: false, | |
contentType: false, |
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"); | |
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/captcha.php"); | |
require('PHPMailer/PHPMailerAutoload.php'); | |
global $APPLICATION; | |
CModule::IncludeModule('iblock'); | |
if($_SERVER["REQUEST_METHOD"] == "POST"){ | |
$cpt = new CCaptcha(); |
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/header.php"); | |
echo $USER->Update(1,array("PASSWORD"=>'Bitrix*123456')); | |
echo $USER->LAST_ERROR; | |
require($_SERVER['DOCUMENT_ROOT']."/bitrix/footer.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
<? if (!empty($arResult)) { ?> | |
<ul class="open"> | |
<? | |
$previousLevel = 0; | |
$i = 0; | |
foreach ($arResult as $arItem) { | |
if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel) | |
echo str_repeat('</ul><div class="btn"></div></li>', ($previousLevel - $arItem["DEPTH_LEVEL"])); | |
?> |