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
-- Table 1 | |
create table ip_events | |
( | |
ip_address varchar(45) not null, | |
login_time timestamp not null, | |
event_type varchar(16) not null, | |
username varchar(255) not null | |
) | |
collate = utf8mb4_unicode_ci; |
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
<template> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<div class="panel panel-default"> | |
<div class="panel-heading">Add bounty</div> | |
<div class="panel-body"> | |
<a :href="back_url" class="btn btn-default">Back</a> | |
</div> |
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> | |
function sendFileRequest(el) { | |
var form = $(el).parents('form'); | |
var data = form.serialize(); | |
$(el).addClass('wait'); | |
$.post(form.attr('action'),data,function (response) { | |
$(el).removeClass('wait'); | |
try{ | |
response = JSON.parse(response); | |
}catch(e){} |
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 | |
namespace App\Library\Api; | |
use App\Library\Contracts\AssetsApi; | |
use App\Library\Entity\Wallet; | |
use GuzzleHttp\Exception\ClientException; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Support\Facades\Cache; | |
class DashApi implements AssetsApi |
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
#!/bin/bash | |
FILE_IN=$HOME"/www/neoinsant.f5-test.ru/cron/users/users.json" | |
SECRET_KEY="123456798654321" | |
UPDATE_URL="http://f5-test.ru/cron/vip_user_upload.php?secret=$SECRET_KEY" | |
DATE=`date +%F_%H-%M-%S` | |
LOG_FILE=$HOME"/www/f5-test.ru/cron/users/log/vip_users-$DATE.log" |
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
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresByType image/jpeg "access plus 3 day" | |
ExpiresByType image/gif "access plus 3 day" | |
</IfModule> |
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
SELECT uc.* , el.*, ib.* | |
FROM oc_iblock_element as el | |
LEFT JOIN oc_iblock as ib ON el.IBLOCK_ID=ib.ID | |
LEFT JOIN oc_iblock_user_checkout as uc ON uc.USER_ID='98' and uc.IBLOCK_ID=el.IBLOCK_ID | |
WHERE | |
IF( | |
( SELECT COUNT(uuc.ID) FROM oc_iblock_user_checkout as uuc WHERE uuc.USER_ID='98' AND uuc.IBLOCK_ID=el.IBLOCK_ID) | |
,el.DATE_CREATE > uc.DATE AND el.ACTIVE = 'Y', el.ACTIVE = 'Y') |
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
protected static function getShipmentsInfo(Order $order) | |
{ | |
$result = array(); | |
$shipments = $order->getShipmentCollection(); | |
/** @var \Bitrix\Sale\Shipment $shipment */ | |
foreach($shipments as $shipment) | |
{ | |
if($shipment->isSystem()) | |
continue; |
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
<? | |
use Bitrix\Main; | |
spl_autoload_register( | |
function ($class) { | |
$class = str_replace('\\', '/', $class); | |
include $_SERVER["DOCUMENT_ROOT"] . "/local/php_interface/classes/" . $class . '.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
<?require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); | |
use \Bitrix\Main\Loader; | |
use \Bitrix\Main\Web\Json; | |
use \Bitrix\Main\Application; | |
use \F5Studio\Application\Application as App; | |
$request = Application::getInstance()->getContext()->getRequest(); |
NewerOlder