]> git.joonet.de Git - adminer.git/commitdiff
Add comments to places processed by compile.php
authorJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:18:09 +0000 (02:18 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 15 Mar 2025 01:26:16 +0000 (02:26 +0100)
adminer/file.inc.php
adminer/include/adminer.inc.php
adminer/include/bootstrap.inc.php
adminer/include/design.inc.php
adminer/include/lang.inc.php
adminer/index.php

index 7254f6258c07c09f1f078c53f0d538a871c13405..25092131d66a6f141ac83c15360ec561f69d0ce4 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace Adminer;
 
+// this is matched by compile.php
 // caching headers added in compile.php
 
 if ($_GET["file"] == "favicon.ico") {
index 55448c507a04cdd05121cea5a7f77eb5c0a01e8e..197bb2e5a316d9136e8b9f85decf1fa5c3367176 100644 (file)
@@ -98,6 +98,7 @@ class Adminer {
        * @return bool true to link favicon.ico
        */
        function head($dark = null) {
+               // this is matched by compile.php
                echo "<link rel='stylesheet' href='../externals/jush/jush.css'>\n";
                echo ($dark !== false ? "<link rel='stylesheet'" . ($dark ? "" : " media='(prefers-color-scheme: dark)'") . " href='../externals/jush/jush-dark.css'>\n" : "");
                return true;
@@ -123,8 +124,10 @@ class Adminer {
        function loginForm() {
                global $drivers;
                echo "<table class='layout'>\n";
+               // this is matched by compile.php
                echo $this->loginFormField('driver', '<tr><th>' . lang('System') . '<td>', html_select("auth[driver]", $drivers, DRIVER, "loginDriver(this);"));
                echo $this->loginFormField('server', '<tr><th>' . lang('Server') . '<td>', '<input name="auth[server]" value="' . h(SERVER) . '" title="hostname[:port]" placeholder="localhost" autocapitalize="off">');
+               // this is matched by compile.php
                echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input name="auth[username]" id="username" autofocus value="' . h($_GET["username"]) . '" autocomplete="username" autocapitalize="off">' . script("qs('#username').form['auth[driver]'].onchange();"));
                echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]" autocomplete="current-password">');
                echo $this->loginFormField('db', '<tr><th>' . lang('Database') . '<td>', '<input name="auth[db]" value="' . h($_GET["db"]) . '" autocapitalize="off">');
@@ -990,6 +993,7 @@ class Adminer {
 </span>
 </h1>
 <?php
+               // this is matched by compile.php
                switch_lang();
                if ($missing == "auth") {
                        $output = "";
@@ -1014,6 +1018,7 @@ class Adminer {
                                $connection->select_db(DB);
                                $tables = table_status('', true);
                        }
+                       // this is matched by compile.php
                        echo script_src("../externals/jush/modules/jush.js");
                        echo script_src("../externals/jush/modules/jush-textarea.js");
                        echo script_src("../externals/jush/modules/jush-txt.js");
index f9f3768fb453fb2da8a8a038583e102306f039ed..ae06599b6c472642ae5988455f09db9f40a97896 100644 (file)
@@ -3,6 +3,7 @@ namespace Adminer;
 
 include "../adminer/include/version.inc.php";
 include "../adminer/include/errors.inc.php";
+// this is matched by compile.php
 include "../adminer/include/coverage.inc.php";
 
 // disable filter.default
@@ -74,6 +75,7 @@ include "../adminer/drivers/oracle.inc.php";
 include "../adminer/drivers/mssql.inc.php";
 include "./include/adminer.inc.php";
 $adminer = (function_exists('adminer_object') ? adminer_object() : new Adminer);
+// this is matched by compile.php
 include "../adminer/drivers/mysql.inc.php"; // must be included as last driver
 
 define('Adminer\JUSH', Driver::$jush);
index 2b9a72db1db33c246597a17a4ae72f5107906a30..97a78447c6b8df5beedf6b17c5c2d76b805ed052 100644 (file)
@@ -40,6 +40,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
        foreach ($css as $val) {
                echo "<link rel='stylesheet' href='" . h($val) . "'>\n";
        }
+       // this is matched by compile.php
        echo script_src("../adminer/static/functions.js");
        echo script_src("static/editing.js");
        ?>
index 4477ccc5aacdbf3aa58f5408d3f45b2a6ee20517..accff558a29ebe3f7f7e140dfc0fa647336afdb4 100644 (file)
@@ -63,10 +63,12 @@ function get_lang() {
 * @param int
 * @return string
 */
+// this is matched by compile.php
 function lang($idf, $number = null) {
        global $LANG, $translations;
        $translation = ($translations[$idf] ?: $idf);
        if (is_array($translation)) {
+               // this is matched by compile.php
                $pos = ($number == 1 ? 0
                        : ($LANG == 'cs' || $LANG == 'sk' ? ($number && $number < 5 ? 1 : 2) // different forms for 1, 2-4, other
                        : ($LANG == 'fr' ? (!$number ? 0 : 1) // different forms for 0-1, other
index 780652309517e8e52cd95fefccc71a67c7853920..53f4bdfd8af05baeac99584a3f5819a7908c6ed5 100644 (file)
@@ -6,6 +6,7 @@
 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
 */
+// this is matched by compile.php
 
 namespace Adminer;
 
@@ -15,6 +16,7 @@ include "./include/tmpfile.inc.php";
 if (isset($_GET["select"]) && ($_POST["edit"] || $_POST["clone"]) && !$_POST["save"]) {
        $_GET["edit"] = $_GET["select"];
 }
+// this is matched by compile.php
 if (isset($_GET["callf"])) {
        $_GET["call"] = $_GET["callf"];
 }