From 0b5a3d565a9ebd35ad6a991c222591c6e51f33f0 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Wed, 26 Dec 2018 02:20:48 +0530 Subject: [PATCH] Updated to version 4.7.0 --- README.md | 12 +- manifest.json | 2 +- sources/root_access_disabled/adminer.php | 2206 +++++++++++----------- sources/with_root_access/index.php | 2206 +++++++++++----------- 4 files changed, 2312 insertions(+), 2114 deletions(-) diff --git a/README.md b/README.md index 92b8d9d..aeb33f7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Adminer for Yunohost -Shipped Version: **4.6.3** +[![Integration level](https://dash.yunohost.org/integration/adminer.svg)](https://ci-apps.yunohost.org/jenkins/job/adminer%20%28Community%29/lastBuild/consoleFull) + +[![Install Adminer with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=adminer) +
+Shipped Version: **4.7.0** Adminer (formerly phpMinAdmin better alternate to phpmyadmin) is a full-featured database management tool written in PHP.
http://www.adminer.org


@@ -13,9 +17,3 @@ If you have problems with drivers see here: https://www.adminer.org/en/drivers.<

Replace phpMyAdmin with Adminer and you will get a tidier user interface, better support for MySQL features, higher performance and more security. See detailed comparison https://www.adminer.org/en/phpmyadmin/

Adminer development priorities are: 1. Security, 2. User experience, 3. Performance, 4. Feature set, 5. Size.

-# To-do -- [X] Installation and remove script. -- [X] Upgrade script -- [X] Backup and restore script. -- [ ] Check hash for source -- [ ] Option to add admin user access if the app is not piblic. diff --git a/manifest.json b/manifest.json index f1ae1a4..c9292f7 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Database management in a single PHP file", "fr": "Gestionnaire de base de données en un seul fichier PHP" }, - "version": "4.6.3", + "version": "4.7.0", "url": "https://www.adminer.org/", "license": "free", "maintainer": { diff --git a/sources/root_access_disabled/adminer.php b/sources/root_access_disabled/adminer.php index 2f9f265..bd8f71b 100644 --- a/sources/root_access_disabled/adminer.php +++ b/sources/root_access_disabled/adminer.php @@ -5,181 +5,181 @@ * @copyright 2007 Jakub Vrana * @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) -* @version 4.6.3 -*/error_reporting(6135);$Wc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($Wc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Di=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Di)$$X=$Di;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function -connection(){global$g;return$g;}function +* @version 4.7.0 +*/error_reporting(6135);$Wc=!preg_match('~^(unsafe_raw)?$~',ini_get("filter.default"));if($Wc||ini_get("filter.default_flags")){foreach(array('_GET','_POST','_COOKIE','_SERVER')as$X){$Hi=filter_input_array(constant("INPUT$X"),FILTER_UNSAFE_RAW);if($Hi)$$X=$Hi;}}if(function_exists("mb_internal_encoding"))mb_internal_encoding("8bit");function +connection(){global$h;return$h;}function adminer(){global$b;return$b;}function version(){global$ia;return$ia;}function -idf_unescape($u){$ne=substr($u,-1);return -str_replace($ne.$ne,$ne,substr($u,1,-1));}function +idf_unescape($v){$pe=substr($v,-1);return +str_replace($pe.$pe,$pe,substr($v,1,-1));}function escape_string($X){return substr(q($X),1,-1);}function number($X){return preg_replace('~[^0-9]+~','',$X);}function number_type(){return'((?$W){unset($ng[$y][$ce]);if(is_array($W)){$ng[$y][stripslashes($ce)]=$W;$ng[]=&$ng[$y][stripslashes($ce)];}else$ng[$y][stripslashes($ce)]=($Wc?$W:stripslashes($W));}}}}function -bracket_escape($u,$Oa=false){static$oi=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return -strtr($u,($Oa?array_flip($oi):$oi));}function -min_version($Ui,$Ae="",$h=null){global$g;if(!$h)$h=$g;$ih=$h->server_info;if($Ae&&preg_match('~([\d.]+)-MariaDB~',$ih,$B)){$ih=$B[1];$Ui=$Ae;}return(version_compare($ih,$Ui)>=0);}function -charset($g){return(min_version("5.5.3",0,$g)?"utf8mb4":"utf8");}function -script($sh,$ni="\n"){return"$sh$ni";}function -script_src($Ii){return"\n";}function +remove_slashes($rg,$Wc=false){if(get_magic_quotes_gpc()){while(list($z,$X)=each($rg)){foreach($X +as$ee=>$W){unset($rg[$z][$ee]);if(is_array($W)){$rg[$z][stripslashes($ee)]=$W;$rg[]=&$rg[$z][stripslashes($ee)];}else$rg[$z][stripslashes($ee)]=($Wc?$W:stripslashes($W));}}}}function +bracket_escape($v,$Oa=false){static$ti=array(':'=>':1',']'=>':2','['=>':3','"'=>':4');return +strtr($v,($Oa?array_flip($ti):$ti));}function +min_version($Yi,$De="",$i=null){global$h;if(!$i)$i=$h;$mh=$i->server_info;if($De&&preg_match('~([\d.]+)-MariaDB~',$mh,$B)){$mh=$B[1];$Yi=$De;}return(version_compare($mh,$Yi)>=0);}function +charset($h){return(min_version("5.5.3",0,$h)?"utf8mb4":"utf8");}function +script($wh,$si="\n"){return"$wh$si";}function +script_src($Mi){return"\n";}function nonce(){return' nonce="'.get_nonce().'"';}function target_blank(){return' target="_blank" rel="noreferrer noopener"';}function -h($Q){return -str_replace("\0","�",htmlspecialchars($Q,ENT_QUOTES,'utf-8'));}function -nl_br($Q){return -str_replace("\n","
",$Q);}function -checkbox($C,$Y,$fb,$je="",$pf="",$kb="",$ke=""){$I="".($pf?script("qsl('input').onclick = function () { $pf };",""):"");return($je!=""||$kb?"$I".h($je)."":$I);}function -optionlist($vf,$ch=null,$Mi=false){$I="";foreach($vf -as$ce=>$W){$wf=array($ce=>$W);if(is_array($W)){$I.='';$wf=$W;}foreach($wf -as$y=>$X)$I.=''.h($X);if(is_array($W))$I.='';}return$I;}function -html_select($C,$vf,$Y="",$of=true,$ke=""){if($of)return"".(is_string($of)?script("qsl('select').onchange = function () { $of };",""):"");$I="";foreach($vf -as$y=>$X)$I.="";return$I;}function -select_input($Ka,$vf,$Y="",$of="",$Zf=""){$Sh=($vf?"select":"input");return"<$Sh$Ka".($vf?">