mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 06:37:33 +02:00
Compile: Strip types
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
## Features
|
## Features
|
||||||
- **Supports:** MySQL, MariaDB, PostgreSQL, CockroachDB, SQLite, MS SQL, Oracle
|
- **Supports:** MySQL, MariaDB, PostgreSQL, CockroachDB, SQLite, MS SQL, Oracle
|
||||||
- **Plugins for:** Elasticsearch, SimpleDB, MongoDB, Firebird, ClickHouse, IMAP
|
- **Plugins for:** Elasticsearch, SimpleDB, MongoDB, Firebird, ClickHouse, IMAP
|
||||||
- **Requirements:** PHP 5.3+
|
- **Requirements:** PHP 5.3+ (compiled file), PHP 7.4+ (source codes)
|
||||||
|
|
||||||
## Screenshot
|
## Screenshot
|
||||||

|

|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
If downloaded from Git then run: `git submodule update --init`
|
If downloaded from Git then run: `git submodule update --init`
|
||||||
|
@@ -353,6 +353,9 @@ if ($_SESSION["lang"]) {
|
|||||||
$file = str_replace('echo script_src("static/editing.js");' . "\n", "", $file); // merged into functions.js
|
$file = str_replace('echo script_src("static/editing.js");' . "\n", "", $file); // merged into functions.js
|
||||||
$file = preg_replace('~\s+echo script_src\("\.\./externals/jush/modules/jush-(textarea|txt|js|" \. JUSH \. ")\.js"\);~', '', $file); // merged into jush.js
|
$file = preg_replace('~\s+echo script_src\("\.\./externals/jush/modules/jush-(textarea|txt|js|" \. JUSH \. ")\.js"\);~', '', $file); // merged into jush.js
|
||||||
$file = preg_replace('~echo .*/jush(-dark)?.css\'>.*~', '', $file); // merged into default.css or dark.css
|
$file = preg_replace('~echo .*/jush(-dark)?.css\'>.*~', '', $file); // merged into default.css or dark.css
|
||||||
|
if (function_exists('stripTypes')) {
|
||||||
|
$file = stripTypes($file);
|
||||||
|
}
|
||||||
$file = preg_replace_callback("~compile_file\\('([^']+)'(?:, '([^']*)')?\\)~", 'compile_file', $file); // integrate static files
|
$file = preg_replace_callback("~compile_file\\('([^']+)'(?:, '([^']*)')?\\)~", 'compile_file', $file); // integrate static files
|
||||||
$replace = 'preg_replace("~\\\\\\\\?.*~", "", ME) . "?file=\1&version=' . $VERSION . '"';
|
$replace = 'preg_replace("~\\\\\\\\?.*~", "", ME) . "?file=\1&version=' . $VERSION . '"';
|
||||||
$file = preg_replace('~\.\./adminer/static/(default\.css)~', '<?php echo h(' . $replace . '); ?>', $file);
|
$file = preg_replace('~\.\./adminer/static/(default\.css)~', '<?php echo h(' . $replace . '); ?>', $file);
|
||||||
|
@@ -52,9 +52,8 @@ parameters:
|
|||||||
scanFiles:
|
scanFiles:
|
||||||
- compile.php # compile_file()
|
- compile.php # compile_file()
|
||||||
excludePaths:
|
excludePaths:
|
||||||
- adminer/adminer-plugins/
|
- adminer/adminer-plugins*
|
||||||
- adminer/lang/
|
- adminer/lang/
|
||||||
- adminer/adminer-plugins.php
|
|
||||||
- adminer/designs.php
|
- adminer/designs.php
|
||||||
- adminer/elastic.php
|
- adminer/elastic.php
|
||||||
- adminer/sqlite.php
|
- adminer/sqlite.php
|
||||||
|
Reference in New Issue
Block a user