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
// Atom | |
header('Content-type: application/atom+xml'); | |
// CSS | |
header('Content-type: text/css'); | |
// Javascript | |
header('Content-type: text/javascript'); | |
//JPEG Image | |
header('Content-type: image/jpeg'); | |
//JSON | |
header('Content-type: application/json'); |
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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
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
/** | |
* парсит формы в html. Выбирает input[type=text], input[type=hidden] и textarea | |
* | |
* @return массив объектов form() | |
*/ | |
public function extract() | |
{ | |
$dom = new DOMDocument(); | |
$dom->loadXML(self::$saw->get('form')->toXml()); | |
$xpath = new DOMXPath($dom); |
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
/** | |
* Class form | |
* just a container | |
*/ | |
class form implements IteratorAggregate | |
{ | |
private $_formAction; | |
private $_formMethod; | |
private $_inputs; |
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
*** 397,403 **** | |
//Set query again in the URI | |
$uri->setQuery($query); | |
! $uri->setPath($route); | |
} | |
protected function _processParseRules(&$uri) | |
--- 397,403 ---- |
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.body.onselectstart = function () { | |
return 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
document.onmousedown = function(event) { | |
if (event.button == 2) { | |
return 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
function asyncInject(array, fn, delay) { | |
var i = 0; | |
window.setTimeout(function iter() { | |
if (i === array.length) { | |
return; | |
} | |
fn.call(array, array[i], i++); | |
window.setTimeout(iter, delay); | |
}, 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
window.echo = (function (window, document) { | |
'use strict'; | |
var Echo = function (elem) { | |
this.elem = elem; | |
this.render(); | |
this.listen(); | |
}; | |
var echoStore = []; |
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
$queries = array( | |
'delete from `s_robots_log` where YEAR(dtlabel) <> YEAR(CURDATE())', | |
'delete from `s_visits_log` where YEAR(dtlabel) <> YEAR(CURDATE())', | |
'truncate table `s_robots_stat`', | |
// 'truncate table `s_visits_stat`', | |
'truncate table a_ua_ranges', | |
'truncate table a_log', | |
'truncate table a_http_error', | |
// restore stats |
OlderNewer