fixes PHP 8.1
Dieser Commit ist enthalten in:
Ursprung
4ff23df02e
Commit
56013aa610
|
@ -33,7 +33,7 @@
|
||||||
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
|
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
|
||||||
RewriteCond %{QUERY_STRING} ftp://.*$ [NC,OR]
|
RewriteCond %{QUERY_STRING} ftp://.*$ [NC,OR]
|
||||||
RewriteCond %{QUERY_STRING} http[s]*://.*$ [NC]
|
RewriteCond %{QUERY_STRING} http[s]*://.*$ [NC]
|
||||||
RewriteRule ^.* - [F,L] # all matching conditions from above will end in nirvana
|
RewriteRule ^.* - [F,L,DPI] # all matching conditions from above will end in nirvana
|
||||||
|
|
||||||
# Rewrite request to root to front_content.php
|
# Rewrite request to root to front_content.php
|
||||||
RewriteRule ^$ front_content.php [QSA,L]
|
RewriteRule ^$ front_content.php [QSA,L]
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
RewriteRule ^.*$ - [NC,L]
|
RewriteRule ^.*$ - [NC,L,DPI]
|
||||||
|
|
||||||
# Pass other requests to front_content.php
|
# Pass other requests to front_content.php
|
||||||
RewriteRule ^.*$ front_content.php [QSA,NC,L]
|
RewriteRule ^.*$ front_content.php [QSA,NC,L]
|
||||||
|
|
|
@ -92,6 +92,10 @@ class DB_Sql extends DB_Sql_Abstract {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PHP 8.1 fix
|
||||||
|
$driver = new mysqli_driver();
|
||||||
|
$driver->report_mode = MYSQLI_REPORT_OFF;
|
||||||
|
|
||||||
$dbh = mysqli_init();
|
$dbh = mysqli_init();
|
||||||
//print_r($dbh);
|
//print_r($dbh);
|
||||||
if (!$dbh) {
|
if (!$dbh) {
|
||||||
|
@ -123,7 +127,7 @@ class DB_Sql extends DB_Sql_Abstract {
|
||||||
$aCon['socket'] = null;
|
$aCon['socket'] = null;
|
||||||
}
|
}
|
||||||
if (!isset($aCon['flags'])) {
|
if (!isset($aCon['flags'])) {
|
||||||
$aCon['flags'] = null;
|
$aCon['flags'] = MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT;
|
||||||
}
|
}
|
||||||
if (!isset($aCon['database'])) {
|
if (!isset($aCon['database'])) {
|
||||||
$aCon['database'] = null;
|
$aCon['database'] = null;
|
||||||
|
@ -326,30 +330,30 @@ class DB_Sql extends DB_Sql_Abstract {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see DB_Sql_Abstract::_metaData()
|
* @see DB_Sql_Abstract::_metaData()
|
||||||
* * Due to compatibility problems with Table we changed the behavior
|
* * Due to compatibility problems with Table we changed the behavior
|
||||||
* of metadata();
|
* of metadata();
|
||||||
* depending on $full, metadata returns the following values:
|
* depending on $full, metadata returns the following values:
|
||||||
*
|
*
|
||||||
* - full is false (default):
|
* - full is false (default):
|
||||||
* $result[]:
|
* $result[]:
|
||||||
* [0]["table"] table name
|
* [0]["table"] table name
|
||||||
* [0]["name"] field name
|
* [0]["name"] field name
|
||||||
* [0]["type"] field type
|
* [0]["type"] field type
|
||||||
* [0]["len"] field length
|
* [0]["len"] field length
|
||||||
* [0]["flags"] field flags
|
* [0]["flags"] field flags
|
||||||
*
|
*
|
||||||
* - full is true
|
* - full is true
|
||||||
* $result[]:
|
* $result[]:
|
||||||
* ["num_fields"] number of metadata records
|
* ["num_fields"] number of metadata records
|
||||||
* [0]["table"] table name
|
* [0]["table"] table name
|
||||||
* [0]["name"] field name
|
* [0]["name"] field name
|
||||||
* [0]["type"] field type
|
* [0]["type"] field type
|
||||||
* [0]["len"] field length
|
* [0]["len"] field length
|
||||||
* [0]["flags"] field flags
|
* [0]["flags"] field flags
|
||||||
* ["meta"][field name] index of field named "field name"
|
* ["meta"][field name] index of field named "field name"
|
||||||
* This last one could be used if you have a field name, but no index.
|
* This last one could be used if you have a field name, but no index.
|
||||||
* Test: if (isset($result['meta']['myfield'])) { ...
|
* Test: if (isset($result['meta']['myfield'])) { ...
|
||||||
*/
|
*/
|
||||||
protected function _metaData($table = '', $full = false) {
|
protected function _metaData($table = '', $full = false) {
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
@ -392,7 +396,7 @@ class DB_Sql extends DB_Sql_Abstract {
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
while ($finfo = $id->fetch_field()) {
|
while ($finfo = $id->fetch_field()) {
|
||||||
//rint_r($finfo);
|
//rint_r($finfo);
|
||||||
$res[$count]['table'] = $finfo->table;
|
$res[$count]['table'] = $finfo->table;
|
||||||
$res[$count]['name'] = $finfo->name;
|
$res[$count]['name'] = $finfo->name;
|
||||||
$res[$count]['type'] = $this->_aDataTypes[$finfo->type];
|
$res[$count]['type'] = $this->_aDataTypes[$finfo->type];
|
||||||
|
@ -440,7 +444,7 @@ class DB_Sql extends DB_Sql_Abstract {
|
||||||
$return[$i]['table_name'] = $info[0];
|
$return[$i]['table_name'] = $info[0];
|
||||||
$return[$i]['tablespace_name'] = $this->Database;
|
$return[$i]['tablespace_name'] = $this->Database;
|
||||||
$return[$i]['database'] = $this->Database;
|
$return[$i]['database'] = $this->Database;
|
||||||
$i ++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
mysqli_free_result($h);
|
mysqli_free_result($h);
|
||||||
|
|
Laden…
In neuem Issue referenzieren