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 ));
}