Skip to content

Instantly share code, notes, and snippets.

@gowizzard
gowizzard / bitrix24_api.postman_collection.json
Last active February 22, 2023 08:04
An little collection for postman for the crm module of bitrix24.
{
"info": {
"_postman_id": "1c3571f5-d089-4184-97a8-83339c44d29e",
"name": "Bitrix24 API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "CRM",
"item": [
@derekshirk
derekshirk / acf-inline-svg.php
Created July 20, 2016 22:14
Output Inline SVGs from ACF image field
<?php
/* ————————————————————————— */
/* ACF Inline SVGs
/* ————————————————————————— */
$repeater = 'repeater_field_name'
if ( have_rows( $repeater ) ): ?>
<section class="content-main">
<div class="container"> <?php
@mborodov
mborodov / bitrix_api_sample_app.php
Created March 3, 2016 17:41
Bitrix application 3 type with authorization
<?php
// for log errors
error_reporting(E_ALL);
ini_set('display_errors', 1);
// autoload classes
include_once __DIR__.'/vendor/autoload.php';
// define variables
const APPLICATION_ID = 'local.56d4c44e94a076.41291969';
/* КОНФИГИ ДЛЯ ПРИЛОЖЕНИЯ */
GLOBAL $CONGIG_BX24_INTERVOLGA;
$CONGIG_BX24_INTERVOLGA = array(
'client_id' => 'bc5f97fab2d24d39724faef110c7b10a',
'secret' => '32aa9879cf1a4e2b6d6c7db5c2a65f26',
'domain' => 'example.bitrix24.ru',
'redirect_uri' => 'http://127.0.0.1/company/index.php/',
'scope' => array('user', 'task')
);
///
@thatsokaybaby
thatsokaybaby / secureLogin.js.patch
Created November 19, 2012 17:23
SecureLogin 1.0.1 / fix google/amazon login
--- secureLogin.js Mon Nov 19 07:08:50 2012
+++ secureLogin.js Wed Nov 21 08:01:20 2012
@@ -836,7 +836,7 @@
// Skip disabled elements or elements without a "name":
if(!elements[i].name || elements[i].disabled)
continue;
- if(elements[i].type == 'text') {
+ if(elements[i].type == 'text' || elements[i].type == 'email') {
// input of type "text" found, this is no password only form:
inputTextFound = true;