mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 07:06:45 +02:00
Rename variable
This commit is contained in:
@@ -200,7 +200,7 @@ if (isset($_GET["mssql"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("SQLSRV", "PDO_SQLSRV", "PDO_DBLIB");
|
||||
static array $extensions = array("SQLSRV", "PDO_SQLSRV", "PDO_DBLIB");
|
||||
static string $jush = "mssql";
|
||||
|
||||
public array $insertFunctions = array("date|time" => "getdate");
|
||||
|
@@ -212,7 +212,7 @@ if (!defined('Adminer\DRIVER')) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
/** @var list<string> */ static array $possibleDrivers = array("MySQLi", "MySQL", "PDO_MySQL");
|
||||
/** @var list<string> */ static array $extensions = array("MySQLi", "MySQL", "PDO_MySQL");
|
||||
static string $jush = "sql"; // JUSH identifier
|
||||
|
||||
/** @var list<string> */ public array $unsigned = array("unsigned", "zerofill", "unsigned zerofill");
|
||||
|
@@ -120,7 +120,7 @@ if (isset($_GET["oracle"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("OCI8", "PDO_OCI");
|
||||
static array $extensions = array("OCI8", "PDO_OCI");
|
||||
static string $jush = "oracle";
|
||||
|
||||
public array $insertFunctions = array( //! no parentheses
|
||||
|
@@ -168,7 +168,7 @@ if (isset($_GET["pgsql"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("PgSQL", "PDO_PgSQL");
|
||||
static array $extensions = array("PgSQL", "PDO_PgSQL");
|
||||
static string $jush = "pgsql";
|
||||
|
||||
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "ILIKE", "ILIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL"); // no "SQL" to avoid CSRF
|
||||
|
@@ -106,7 +106,7 @@ if (isset($_GET["sqlite"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("SQLite3", "PDO_SQLite");
|
||||
static array $extensions = array("SQLite3", "PDO_SQLite");
|
||||
static string $jush = "sqlite";
|
||||
|
||||
protected array $types = array(array("integer" => 0, "real" => 0, "numeric" => 0, "text" => 0, "blob" => 0));
|
||||
|
@@ -167,7 +167,7 @@ function auth_error(string $error, array &$permanent) {
|
||||
if (isset($_GET["username"]) && !class_exists('Adminer\Db')) {
|
||||
unset($_SESSION["pwds"][DRIVER]);
|
||||
unset_permanent($permanent);
|
||||
page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", Driver::$possibleDrivers)), false);
|
||||
page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", Driver::$extensions)), false);
|
||||
page_footer("auth");
|
||||
exit;
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ function get_driver(string $id): string {
|
||||
}
|
||||
|
||||
abstract class SqlDriver {
|
||||
/** @var list<string> */ static array $possibleDrivers = array();
|
||||
/** @var list<string> */ static array $extensions = array(); // possible extensions
|
||||
static string $jush; // JUSH identifier
|
||||
|
||||
protected Db $conn;
|
||||
|
@@ -117,7 +117,7 @@ if (isset($_GET["clickhouse"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("allow_url_fopen");
|
||||
static array $extensions = array("allow_url_fopen");
|
||||
static string $jush = "clickhouse";
|
||||
|
||||
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL");
|
||||
|
@@ -104,7 +104,7 @@ if (isset($_GET["elastic"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("json + allow_url_fopen");
|
||||
static array $extensions = array("json + allow_url_fopen");
|
||||
static string $jush = "elastic";
|
||||
|
||||
public array $insertFunctions = array("json");
|
||||
|
@@ -85,7 +85,7 @@ if (isset($_GET["firebird"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("interbase");
|
||||
static array $extensions = array("interbase");
|
||||
static string $jush = "firebird";
|
||||
|
||||
public array $operators = array("=");
|
||||
|
@@ -140,7 +140,7 @@ if (isset($_GET["imap"])) {
|
||||
}
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("imap");
|
||||
static array $extensions = array("imap");
|
||||
static string $jush = "imap";
|
||||
public array $insertFunctions = array("json");
|
||||
}
|
||||
|
@@ -294,7 +294,7 @@ if (isset($_GET["mongo"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("mongodb");
|
||||
static array $extensions = array("mongodb");
|
||||
static string $jush = "mongo";
|
||||
|
||||
public array $insertFunctions = array("json");
|
||||
|
@@ -111,7 +111,7 @@ if (isset($_GET["simpledb"])) {
|
||||
|
||||
|
||||
class Driver extends SqlDriver {
|
||||
static array $possibleDrivers = array("SimpleXML + allow_url_fopen");
|
||||
static array $extensions = array("SimpleXML + allow_url_fopen");
|
||||
static string $jush = "simpledb";
|
||||
|
||||
public array $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");
|
||||
|
Reference in New Issue
Block a user