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 | |
$files = glob(dirname(__FILE__).'/*', GLOB_BRACE); | |
// var_dump($files); | |
function Delete($path) | |
{ | |
if (is_dir($path) === true) | |
{ | |
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::CHILD_FIRST); |
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
require_once(__DIR__.'/../../../../../../components/com_jshopping/lib/image.lib.php'); | |
use ImageLib; | |
// тут еще класс, вырвано из контекста | |
function uploadImage($url,$image_name) | |
{ | |
// Блин у шоппинга не вижу такой стандартной функции, ну как так? | |
// Заливаем картинки и создаем миниатюры и прочее |
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 | |
/** | |
* @package ${NAMESPACE} | |
* @subpackage | |
* | |
* @copyright A copyright | |
* @license A "Slug" license name e.g. GPL2 | |
*/ | |
use ws_xml_import\XMLExport; |
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 | |
/** | |
* @package ${NAMESPACE} | |
* @subpackage | |
* | |
* @copyright A copyright | |
* @license A "Slug" license name e.g. GPL2 | |
*/ | |
const _JEXEC = 1; |
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
function urlencodeFull($string) | |
{ | |
$ar=explode('://',$string); | |
foreach ($ar as $key=>$item) | |
{ | |
$last=explode("/",$item); | |
foreach ($last as $subkey=>$subitem) | |
{ | |
$last[$subkey]=rawurlencode($subitem); |
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 | |
/** | |
* @package ${NAMESPACE} | |
* @subpackage | |
* | |
* @copyright A copyright | |
* @license A "Slug" license name e.g. GPL2 | |
*/ | |
require_once __DIR__."/helpers/xml.seblod.php"; |
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
// код для модуля (джумлы, но не только) для вставки яндекс карты отложенно на 4 секунды для улучшения показателей Google PageSpeed | |
// смените url перед использованием | |
<div id="ymaps111" style="display: block; width: 100%; height: 500px;"></div> | |
<script type="text/javascript"> | |
function loadScript(url, callback){ | |
var script = document.createElement("script"); | |
if (script.readyState){ // IE | |
script.onreadystatechange = function(){ | |
if (script.readyState == "loaded" || |
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
/** @OnlyCurrentDoc */ | |
function ChangeIt() | |
{ | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
//var cell = sheet.getRange('A1:D7'); | |
var cell =sheet.getDataRange(); | |
cell.setValues(cell.getValues().map(blackBox_)); | |
} |
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
<field | |
name="field_title" | |
type="sql" | |
label="Select a field for title" | |
query="SELECT id, title FROM #__fields WHERE context LIKE '%com_content.article%' AND state=1" | |
key_field="id" | |
value_field="title" | |
required="true" | |
> |