]> git.joonet.de Git - adminer.git/commitdiff
Rename variable
authorJakub Vrana <jakub@vrana.cz>
Fri, 28 Mar 2025 21:44:24 +0000 (22:44 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 28 Mar 2025 21:58:03 +0000 (22:58 +0100)
13 files changed:
adminer/drivers/mssql.inc.php
adminer/drivers/mysql.inc.php
adminer/drivers/oracle.inc.php
adminer/drivers/pgsql.inc.php
adminer/drivers/sqlite.inc.php
adminer/include/auth.inc.php
adminer/include/driver.inc.php
plugins/drivers/clickhouse.php
plugins/drivers/elastic.php
plugins/drivers/firebird.php
plugins/drivers/imap.php
plugins/drivers/mongo.php
plugins/drivers/simpledb.php

index b0075f36f2c5da1fc544e52f18ab2c7ed3b45b0a..8833583cb911296cbd95bb72a226fb38ac5353d0 100644 (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");
index 0c962d4e320ae6fb1280a5421af008fa5d237a82..c6545d9ea5b9c1432960f7c088d683a7ec3f1b26 100644 (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");
index 63a6534caeef6c08200b8c1ddb4ea016adcc78ac..35841bfcfc33f08e34b14a72279a21d9c20cbcab 100644 (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
index d12c2769410b020a731c290fa17ea7c4ea553cfd..03583da9ef6c98ac00dcc078d0297fa434d9cbf0 100644 (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
index 9954b940c9820041ab1feeac11715699a3f50d45..67bbfb20917f6e590918a89909153e99f87b1586 100644 (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));
index 946c88cabbfe300a14c3b6d250c507c1058b6b6c..3db0f94c5b2e082dce68398da12625d9c34f6b85 100644 (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;
 }
index e21c3c5731fc29d97a5ab24f660cd61305baf40c..723cf7055b2f1790c4c3a4a2dafbcd306a78050f 100644 (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;
index 45d8904a7cd97e2eee0cffea12d3d0c20f1dae84..b972653122e8b4fbcf219ea99827fae4bc552ae5 100644 (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");
index f7dca161552bc1360d9a7e410cd4b97815228d51..e3bb5c6179270506740ff9394065e3efe699db00 100644 (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");
index 4bef5a0a702cab493bde354214b9f7f5d55c0555..0b4fe2d9eca7de87c471ba88644ad1841839c82d 100644 (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("=");
index 17e5d73dc90b3cdc23226a2c6a681ec8f9c9165c..e43cfd532c7014509ec28f7762cefda02cc961f9 100644 (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");
        }
index 6988258d3ee182a6b4d90de197f04f6069cba11f..12f9287f4df6b637149e8337f5e8b5e633ccf27e 100644 (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");
index f1a36917772aafd9766864edfdab9c6c1309cb93..1980bb1f9b60f5777dc4d3e5ecb88436e67009ca 100644 (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");