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 | |
/** | |
* csv.php | |
* Функция чтения из csv файла | |
* | |
* @author: swvitaliy ([email protected]) | |
*/ | |
class CsvException extends Exception {} |
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
/* | |
cross domain request ( script src) | |
todo: | |
- Исправить вызов события complete | |
- Не создавать объект запроса сразу, а искать в пуле и инициализировать | |
найденный актуальными значениями полей объекта xdr и входными параметрами | |
( или создавать новый, если не был найден ) | |
- Исправить удаление переменной результата ( сейчас удаляется весь объект, | |
с которого начинается путь к ней ) |
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
var canvZo_0mer = canvZo_0mer || {}; | |
;(function(zoomer) | |
{ | |
zoomer._element = null; | |
zoomer._widthZoom = 1.0; | |
zoomer._heightZoom = 1.0; | |
zoomer.element = function(value) |
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 uniqName(name, d, allProp, nameProp) | |
{ | |
d = d || 0; | |
var i, r, fun = arguments.callee, _name = name, | |
_allProp = allProp, _nameProp = nameProp; | |
function next() | |
{ | |
if ( d === 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
;(function(ns) | |
{ | |
var color = {}; | |
color.reHexTest = /^\s*#[\da-fA-F]{1,6}\s*$/; | |
color.reRgbTest = /^\s*rgb\s*\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)\s*$/i; | |
color.reRgbExec = /^\s*rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*$/i; | |
color.reHexExec = /^\s*#([\da-fA-F]{1,2})([\da-fA-F]{1,2})?([\da-fA-F]{1,2})?\s*$/; |
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 Delegate() | |
{ | |
} | |
Delegate.REMOVED_ITEM_LIMIT = 100; | |
Delegate.prototype.init = function() | |
{ | |
this.callbacks = []; |
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 | |
class Ftp_Exception extends Exception | |
{ | |
} | |
class Ftp | |
{ | |
protected static function trim_path($path) { | |
return trim($path, "\t\n\r\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
<?php | |
class db { | |
/** | |
* @var null|array | |
*/ | |
protected static $config = null; | |
/** | |
* @var null|db | |
*/ |
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 | |
class cURLError extends Exception | |
{ | |
} | |
class cURL | |
{ | |
public static function get_refferer () { | |
return 'http://google.com'; |
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 | |
class RssGenerator { | |
public static $rssFields = array('title', 'link', 'description', 'language', 'pubDate', | |
'lastBuildDate', 'docs', 'generator', 'managingEditor', 'webMaster'); | |
public static $feedFields = array ('title', 'link', 'description', 'pubDate'); | |
private $options = array(); | |
private $feeds = array(); | |
protected function expect (array $array, $fields, $extends = false) { | |
$result = array(); |