Version Description
- Compatible with WordPress 3.x
Download this release
Release Info
Developer | arisoft |
Plugin | ARI Adminer – WordPress Database Manager |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- ari-adminer.php +8 -3
- includes/class-plugin.php +1 -1
- includes/defines.php +1 -1
- includes/views/adminer-runner/tmpl/default.php +11 -1
- includes/views/connections/class-html.php +6 -5
- includes/views/connections/tmpl/default.php +1 -1
- readme.txt +10 -4
ari-adminer.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: ARI Adminer
|
4 |
Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
5 |
Description: Powerful, compact and easy to use database manager plugin for WordPress.
|
6 |
-
Version: 1.0.
|
7 |
Author: ARI Soft
|
8 |
Author URI: http://www.ari-soft.com
|
9 |
Text Domain: ari-adminer
|
@@ -17,6 +17,11 @@ define( 'ARIADMINER_EXEC_FILE', __FILE__ );
|
|
17 |
define( 'ARIADMINER_URL', plugin_dir_url( __FILE__ ) );
|
18 |
define( 'ARIADMINER_PATH', plugin_dir_path( __FILE__ ) );
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
if ( ! function_exists( 'ari_adminer_init' ) ) {
|
21 |
function ari_adminer_init() {
|
22 |
if ( defined( 'ARIADMINER_INITED' ) )
|
@@ -53,7 +58,7 @@ if ( ! function_exists( 'ari_adminer_init' ) ) {
|
|
53 |
if ( ! function_exists( 'ari_adminer_activation_check' ) ) {
|
54 |
function ari_adminer_activation_check() {
|
55 |
$min_php_version = '5.4.0';
|
56 |
-
$min_wp_version = '4
|
57 |
|
58 |
$current_wp_version = get_bloginfo( 'version' );
|
59 |
$current_php_version = PHP_VERSION;
|
@@ -88,7 +93,7 @@ if ( ! function_exists( 'ari_adminer_activation_check' ) ) {
|
|
88 |
sprintf(
|
89 |
__( '"ARI Adminer" can not be activated. It requires PHP version 5.4.0+ with SPL extension and WordPress 4.0+.<br /><br /><b>Recommendations:</b> %s.<br /><br /><a href="%s" class="button button-primary">Back</a>', 'ari-adminer' ),
|
90 |
join( ', ', $recommendations ),
|
91 |
-
get_dashboard_url()
|
92 |
)
|
93 |
);
|
94 |
} else {
|
3 |
Plugin Name: ARI Adminer
|
4 |
Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
5 |
Description: Powerful, compact and easy to use database manager plugin for WordPress.
|
6 |
+
Version: 1.0.5
|
7 |
Author: ARI Soft
|
8 |
Author URI: http://www.ari-soft.com
|
9 |
Text Domain: ari-adminer
|
17 |
define( 'ARIADMINER_URL', plugin_dir_url( __FILE__ ) );
|
18 |
define( 'ARIADMINER_PATH', plugin_dir_path( __FILE__ ) );
|
19 |
|
20 |
+
if ( ! defined( 'ARI_WP_LEGACY' ) ) {
|
21 |
+
$current_wp_version = get_bloginfo( 'version' );
|
22 |
+
define( 'ARI_WP_LEGACY', version_compare( $current_wp_version, '4.0', '<' ) );
|
23 |
+
}
|
24 |
+
|
25 |
if ( ! function_exists( 'ari_adminer_init' ) ) {
|
26 |
function ari_adminer_init() {
|
27 |
if ( defined( 'ARIADMINER_INITED' ) )
|
58 |
if ( ! function_exists( 'ari_adminer_activation_check' ) ) {
|
59 |
function ari_adminer_activation_check() {
|
60 |
$min_php_version = '5.4.0';
|
61 |
+
$min_wp_version = '3.4';
|
62 |
|
63 |
$current_wp_version = get_bloginfo( 'version' );
|
64 |
$current_php_version = PHP_VERSION;
|
93 |
sprintf(
|
94 |
__( '"ARI Adminer" can not be activated. It requires PHP version 5.4.0+ with SPL extension and WordPress 4.0+.<br /><br /><b>Recommendations:</b> %s.<br /><br /><a href="%s" class="button button-primary">Back</a>', 'ari-adminer' ),
|
95 |
join( ', ', $recommendations ),
|
96 |
+
get_dashboard_url( get_current_user_id() )
|
97 |
)
|
98 |
);
|
99 |
} else {
|
includes/class-plugin.php
CHANGED
@@ -40,7 +40,7 @@ class Plugin extends Ari_Plugin {
|
|
40 |
ARIADMINER_CAPABILITY_RUN,
|
41 |
'ari-adminer',
|
42 |
array( $this, 'display_adminer_runner' ),
|
43 |
-
'dashicons-admin-tools'
|
44 |
);
|
45 |
|
46 |
$pages[] = add_submenu_page(
|
40 |
ARIADMINER_CAPABILITY_RUN,
|
41 |
'ari-adminer',
|
42 |
array( $this, 'display_adminer_runner' ),
|
43 |
+
! ARI_WP_LEGACY ? 'dashicons-admin-tools' : ''
|
44 |
);
|
45 |
|
46 |
$pages[] = add_submenu_page(
|
includes/defines.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
define( 'ARIADMINER_VERSION', '1.0.
|
3 |
define( 'ARIADMINER_SLUG', 'ari-adminer' );
|
4 |
define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
|
5 |
define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
|
1 |
<?php
|
2 |
+
define( 'ARIADMINER_VERSION', '1.0.5' );
|
3 |
define( 'ARIADMINER_SLUG', 'ari-adminer' );
|
4 |
define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
|
5 |
define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
|
includes/views/adminer-runner/tmpl/default.php
CHANGED
@@ -27,8 +27,18 @@ $run_url = Helper::build_url(
|
|
27 |
<li>
|
28 |
<a href="https://twitter.com/ARISoft" target="_blank"><?php _e( 'Follow us on Twitter', 'ari-adminer' ); ?></a>
|
29 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
<li>
|
31 |
-
<a href="http://wp-quiz.ari-soft.com" target="_blank"
|
32 |
</li>
|
33 |
</ul>
|
34 |
</div>
|
27 |
<li>
|
28 |
<a href="https://twitter.com/ARISoft" target="_blank"><?php _e( 'Follow us on Twitter', 'ari-adminer' ); ?></a>
|
29 |
</li>
|
30 |
+
</ul>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<div class="postbox">
|
34 |
+
<h3><?php _e( 'Other plugins', 'ari-adminer' ); ?></h3>
|
35 |
+
<div class="inside">
|
36 |
+
<ul>
|
37 |
+
<li>
|
38 |
+
<a href="http://wp-quiz.ari-soft.com/plugins/wordpress-fancy-lightbox.html" target="_blank" title="Best Lightbox Plugin for WordPress"><strong>ARI Fancy Lightbox</strong><?php _e( ' is the best lightbox plugin', 'ari-adminer' ); ?></a>
|
39 |
+
</li>
|
40 |
<li>
|
41 |
+
<a href="http://wp-quiz.ari-soft.com" target="_blank" title="Viral Quiz Builder for WordPress"><strong>ARI Stream Quiz</strong><?php _e( ' is viral quiz builder', 'ari-adminer' ); ?></a>
|
42 |
</li>
|
43 |
</ul>
|
44 |
</div>
|
includes/views/connections/class-html.php
CHANGED
@@ -82,7 +82,7 @@ class Html extends Base {
|
|
82 |
|
83 |
'class' => 'check-column',
|
84 |
|
85 |
-
'header_tag' => 'td',
|
86 |
|
87 |
'tag' => 'th',
|
88 |
|
@@ -139,10 +139,11 @@ class Html extends Base {
|
|
139 |
|
140 |
$html .= '</div>';
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
|
|
146 |
|
147 |
return $html;
|
148 |
}
|
82 |
|
83 |
'class' => 'check-column',
|
84 |
|
85 |
+
'header_tag' => ARI_WP_LEGACY ? 'th' : 'td',
|
86 |
|
87 |
'tag' => 'th',
|
88 |
|
139 |
|
140 |
$html .= '</div>';
|
141 |
|
142 |
+
if ( ! ARI_WP_LEGACY )
|
143 |
+
$html .= sprintf(
|
144 |
+
'<button type="button" class="toggle-row"><span class="screen-reader-text">%1$s</span></button>',
|
145 |
+
__( 'Show more details', 'ari-adminer' )
|
146 |
+
);
|
147 |
|
148 |
return $html;
|
149 |
}
|
includes/views/connections/tmpl/default.php
CHANGED
@@ -13,7 +13,7 @@ $action_url = Helper::build_url(
|
|
13 |
);
|
14 |
$tmpl_path = dirname( __FILE__ ) . '/';
|
15 |
?>
|
16 |
-
<a href="#" class="page-title-action" id="btnAddConnection"><?php _e( 'Add New', 'ari-adminer' ); ?></a>
|
17 |
<hr class="wp-header-end">
|
18 |
<form action="<?php echo esc_url( $action_url ); ?>" method="POST">
|
19 |
<div>
|
13 |
);
|
14 |
$tmpl_path = dirname( __FILE__ ) . '/';
|
15 |
?>
|
16 |
+
<a href="#" class="<?php if ( ARI_WP_LEGACY ): ?>add-new-h2<?php else: ?>page-title-action<?php endif; ?>" id="btnAddConnection"><?php _e( 'Add New', 'ari-adminer' ); ?></a>
|
17 |
<hr class="wp-header-end">
|
18 |
<form action="<?php echo esc_url( $action_url ); ?>" method="POST">
|
19 |
<div>
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: arisoft
|
3 |
Donate link: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
4 |
Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
|
5 |
-
Requires at least: 4
|
6 |
-
Tested up to: 4.7.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -43,7 +43,7 @@ More information can be found in [user's guide](http://www.ari-soft.com/docs/wor
|
|
43 |
|
44 |
**Do you like the plugin and want to say about it?** Write a review and get a rating [here](https://wordpress.org/support/plugin/ari-adminer/reviews/).
|
45 |
|
46 |
-
**Are interested in other our WordPress plugins?** Check [ARI Stream Quiz](https://wordpress.org/plugins/ari-stream-quiz/)
|
47 |
|
48 |
|
49 |
== Installation ==
|
@@ -69,6 +69,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
|
|
69 |
|
70 |
== Changelog ==
|
71 |
|
|
|
|
|
|
|
72 |
= 1.0.4 =
|
73 |
* Improve uninstall routine
|
74 |
|
@@ -87,6 +90,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
|
|
87 |
|
88 |
== Upgrade Notice ==
|
89 |
|
|
|
|
|
|
|
90 |
= 1.0.4 =
|
91 |
* Improve uninstall routine
|
92 |
|
2 |
Contributors: arisoft
|
3 |
Donate link: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
|
4 |
Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
|
5 |
+
Requires at least: 3.4
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.0.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
43 |
|
44 |
**Do you like the plugin and want to say about it?** Write a review and get a rating [here](https://wordpress.org/support/plugin/ari-adminer/reviews/).
|
45 |
|
46 |
+
**Are interested in other our WordPress plugins?** Check [ARI Fancy Lightbox](https://wordpress.org/plugins/ari-fancy-lightbox/) is the best lightbox plugin with social and viral features and [ARI Stream Quiz](https://wordpress.org/plugins/ari-stream-quiz/) is WordPress Viral Quiz Builder plugin.
|
47 |
|
48 |
|
49 |
== Installation ==
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
= 1.0.5 =
|
73 |
+
* Compatible with WordPress 3.x
|
74 |
+
|
75 |
= 1.0.4 =
|
76 |
* Improve uninstall routine
|
77 |
|
90 |
|
91 |
== Upgrade Notice ==
|
92 |
|
93 |
+
= 1.0.5 =
|
94 |
+
* Compatible with WordPress 3.x
|
95 |
+
|
96 |
= 1.0.4 =
|
97 |
* Improve uninstall routine
|
98 |
|