Absolutely Glamorous Custom Admin - Version 1.3.3

Version Description

  • Fixed compatibility issues with MailPoet plugin
Download this release

Release Info

Developer argonius
Plugin Icon 128x128 Absolutely Glamorous Custom Admin
Version 1.3.3
Comparing to
See all releases

Code changes from version 1.3.2 to 1.3.3

Files changed (4) hide show
  1. ajax.php +0 -59
  2. plugin.php +3 -5
  3. readme.txt +8 -2
  4. uninstall.php +1 -0
ajax.php DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- if ($_SERVER['REQUEST_METHOD'] == 'POST') {
3
-
4
-
5
- function saveScript($data,$type){
6
- $customScriptName =dirname(__FILE__)."/script/mine.js";
7
- if($type == 'css'){
8
- $customScriptName =dirname(__FILE__)."/style/mine.css";
9
- }
10
- $customScript = fopen($customScriptName, 'w');
11
- fwrite($customScript, $data);
12
- fclose($customScript);
13
- }
14
-
15
- ?>
16
- <?php
17
- require_once('../../../wp-load.php');
18
- require_once('../../../wp-admin/includes/admin.php');
19
-
20
- //$current_user = wp_get_current_user();
21
- global $user_level;
22
-
23
- //print_r($user_level);
24
-
25
-
26
- define('DOING_AJAX', true);
27
- define('WP_ADMIN', true);
28
-
29
- if ( ! isset( $_POST['action'] ) )
30
- die('-15');
31
-
32
-
33
- @header('Content-Type: text/html; charset=' . get_option('blog_charset'));
34
- send_nosniff_header();
35
-
36
- do_action('admin_init');
37
-
38
- if ( ! is_user_logged_in() ) {
39
- die('-14');
40
- }else{
41
- //if user admin
42
- if($user_level > 9){
43
- if ( isset( $_POST['action'] ) ) {
44
- if($_POST['action'] == 'savecss' ){
45
- if(isset($_POST['data'])){
46
- saveScript($_POST['data'], "css");
47
- }
48
- }else if($_POST['action'] == 'savejs'){
49
- if(isset($_POST['data'])){
50
- saveScript(stripslashes($_POST['data']), "js");
51
- }
52
- }
53
- }
54
- }
55
- }
56
- }else{
57
- echo 'Please do not try this any more. Thanks.';
58
- }
59
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
4
  Plugin URI: http://agca.argonius.com/ag-custom-admin/category/ag_custom_admin
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Argonius
7
- Version: 1.3.2
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2014. Argonius (email : info@argonius.com)
@@ -54,7 +54,7 @@ class AGCA{
54
  /*Initialize properties*/
55
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
56
  //fb($this->colorizer);
57
- $this->agca_version = "1.3.2";
58
 
59
  /*upload images programmaticaly*/
60
  //TODO upload with AJAX one by one, use post data to send urls one by one
@@ -282,9 +282,7 @@ class AGCA{
282
  </script>
283
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css?ver=<?php echo $this->agca_version; ?>" />
284
  <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js?ver=<?php echo $this->agca_version; ?>"></script>
285
- <?php if($this->context == "admin"){ ?>
286
- <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js"></script>
287
- <?php }
288
  echo $this->templateCustomizations;
289
 
290
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($this->admin_capability())))){
4
  Plugin URI: http://agca.argonius.com/ag-custom-admin/category/ag_custom_admin
5
  Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
6
  Author: Argonius
7
+ Version: 1.3.3
8
  Author URI: http://www.argonius.com/
9
 
10
  Copyright 2014. Argonius (email : info@argonius.com)
54
  /*Initialize properties*/
55
  $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
56
  //fb($this->colorizer);
57
+ $this->agca_version = "1.3.3";
58
 
59
  /*upload images programmaticaly*/
60
  //TODO upload with AJAX one by one, use post data to send urls one by one
282
  </script>
283
  <link rel="stylesheet" type="text/css" href="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>style/ag_style.css?ver=<?php echo $this->agca_version; ?>" />
284
  <script type="text/javascript" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>script/ag_script.js?ver=<?php echo $this->agca_version; ?>"></script>
285
+ <?php
 
 
286
  echo $this->templateCustomizations;
287
 
288
  if(!((get_option('agca_role_allbutadmin')==true) and (current_user_can($this->admin_capability())))){
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: argonius
3
  Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-development
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
- Tested up to: 3.8
7
- Stable tag: 1.3.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -145,6 +145,9 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = 1.3.2 =
149
  * Bug fixes
150
 
@@ -360,6 +363,9 @@ Plugin should be always up-to-date with latest WordPress release. If you have fo
360
 
361
  == Upgrade Notice ==
362
 
 
 
 
363
  = 1.3.2 =
364
  Bug fixes
365
 
3
  Donate link: http://agca.argonius.com/ag-custom-admin/support-for-future-development
4
  Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
5
  Requires at least: 3.0
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
145
 
146
  == Changelog ==
147
 
148
+ = 1.3.3 =
149
+ * Fixed compatibility issues with MailPoet plugin
150
+
151
  = 1.3.2 =
152
  * Bug fixes
153
 
363
 
364
  == Upgrade Notice ==
365
 
366
+ = 1.3.3 =
367
+ * Fixed compatibility issues with MailPoet plugin
368
+
369
  = 1.3.2 =
370
  Bug fixes
371
 
uninstall.php CHANGED
@@ -2,6 +2,7 @@
2
  // die if not uninstalling
3
  if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
4
  exit ();
 
5
  delete_option( 'agca_role_allbutadmin' );
6
  delete_option( 'agca_screen_options_menu' );
7
  delete_option( 'agca_help_menu' );
2
  // die if not uninstalling
3
  if( !defined( 'WP_UNINSTALL_PLUGIN' ) )
4
  exit ();
5
+
6
  delete_option( 'agca_role_allbutadmin' );
7
  delete_option( 'agca_screen_options_menu' );
8
  delete_option( 'agca_help_menu' );