location /.well-known/traffic-advice {
default_type "application/trafficadvice+json; charset=utf-8";
return 200 '[{"user_agent":"prefetch-proxy","fraction": 0.2}]';
}
location /.well-known/traffic-advice {
default_type "application/trafficadvice+json; charset=utf-8";
return 200 '[{"user_agent": "prefetch-proxy", "disallow": true}]';
}
location /.well-known/traffic-advice {
default_type "application/trafficadvice+json; charset=utf-8";
return 200 '[{"user_agent":"prefetch-proxy","google_prefetch_proxy_eap":{"fraction": 1.0}}]';
}
$books = [
['ISBN', 'title', 'author', 'publisher', 'ctry' ],
[618260307, 'The Hobbit', 'J. R. R. Tolkien', 'Houghton Mifflin', 'USA'],
[908606664, 'Slinky Malinki', 'Lynley Dodd', 'Mallinson Rendel', 'NZ']
];
$xlsx = SimpleXLSXGen::fromArray( $books );
$xlsx->saveAs('books.xlsx');
// $xlsx->downloadAs('books.xlsx');
if ( $xls = SimpleXLS::parse('book.xls') ) {
print_r( $xls->rows() );
} else {
echo SimpleXLS::parseError();
}
Array
(
[0] => Array
(
[0] => ISBN
[1] => title
[2] => author
[3] => publisher
[4] => ctry
)
[1] => Array
(
[0] => 618260307
[1] => The Hobbit
[2] => J. R. R. Tolkien
[3] => Houghton Mifflin
[4] => USA
)
)
if ( $xlsx = SimpleXLSX::parse('book.xlsx') ) {
print_r( $xlsx->rows() );
} else {
echo SimpleXLSX::parseError();
}
Array
(
[0] => Array
(
[0] => ISBN
[1] => title
[2] => author
[3] => publisher
[4] => ctry
)
[1] => Array
(
[0] => 618260307
[1] => The Hobbit
[2] => J. R. R. Tolkien
[3] => Houghton Mifflin
[4] => USA
)
)
// libraries/joomla/database/driver/mysqli.php
// добавь после строки 559: $this->cursor = @mysqli_query($this->connection, $query);
if (strpos($query, 'WWW.ZLOVRED')) { // замени на свой
mail( 'адрес для отладки@example.com', 'Hack!', print_r( debug_backtrace(), true ));
}
var scripts = ['/style/jquery-1.7.1.min.js','/style/jquery.boxy.min.js','/style/smspilot.js?v2.3'];
var scripts_head = document.getElementsByTagName('head')[0] || document.documentElement;
var scripts_cb = [];
function scripts_ready( callback ) {
scripts_cb[ scripts_cb.length ] = callback;
}
function scripts_loaded() {
scripts.splice(0,1);
if (scripts.length > 0) {
scripts_load();
} else {
for( var i = 0; i<scripts_cb.length; i++) {
scripts_cb[i]();
}
}
}
function scripts_load() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.src = scripts[0];
script.onload = scripts_loaded;
// script.onerror = onerror;
script.onreadystatechange = function () {
var state = this.readyState;
if (state === 'loaded' || state === 'complete') {
script.onreadystatechange = null;
scripts_loaded();
}
};
scripts_head.insertBefore(script, scripts_head.firstChild);
}
window.setTimeout('scripts_load()', 50);