1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 07:06:45 +02:00

Rename variable

This commit is contained in:
Jakub Vrana
2025-03-28 22:44:24 +01:00
parent 4e1e638f98
commit 1f88485a3c
13 changed files with 13 additions and 13 deletions

View File

@@ -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");

View File

@@ -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");

View File

@@ -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

View File

@@ -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

View File

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

View File

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

View File

@@ -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;

View File

@@ -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");

View File

@@ -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");

View File

@@ -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("=");

View File

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

View File

@@ -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");

View File

@@ -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");