All in One SEO Pack - Version 1.4.3.7

Version Description

Download this release

Release Info

Developer uberdose
Plugin Icon 128x128 All in One SEO Pack
Version 1.4.3.7
Comparing to
See all releases

Code changes from version 1.4.3.6 to 1.4.3.7

all_in_one_seo_pack-pl_PL.mo CHANGED
Binary file
all_in_one_seo_pack.php CHANGED
@@ -4,13 +4,13 @@
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
- Version: 1.4.3.6
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
11
 
12
  /*
13
- Copyright (C) 2007 uberdose (seopack AT uberdose DOT com)
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
- var $version = "1.4.3.6";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
@@ -752,6 +752,11 @@ class All_in_One_SEO_Pack {
752
  }
753
  }
754
 
 
 
 
 
 
755
  function is_directory_writable($directory) {
756
  $filename = $directory . '/' . 'tmp_file_' . time();
757
  $fh = @fopen($filename, 'w');
@@ -787,7 +792,9 @@ class All_in_One_SEO_Pack {
787
  delete_post_meta($id, 'keywords');
788
  delete_post_meta($id, 'description');
789
  delete_post_meta($id, 'title');
790
- delete_post_meta($id, 'aiosp_disable');
 
 
791
  //delete_post_meta($id, 'aiosp_meta');
792
 
793
  if (isset($keywords) && !empty($keywords)) {
@@ -799,7 +806,7 @@ class All_in_One_SEO_Pack {
799
  if (isset($title) && !empty($title)) {
800
  add_post_meta($id, 'title', $title);
801
  }
802
- if (isset($aiosp_disable) && !empty($aiosp_disable)) {
803
  add_post_meta($id, 'aiosp_disable', $aiosp_disable);
804
  }
805
  /*
@@ -892,11 +899,12 @@ class All_in_One_SEO_Pack {
892
  }
893
  // End -->
894
  </script>
 
 
895
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
896
- <table style="margin-bottom:40px; margin-top:30px;">
897
  <tr>
898
  <th style="text-align:left;" colspan="2">
899
- <a target="__blank" href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></a>
900
  </th>
901
  </tr>
902
  <tr>
@@ -917,6 +925,7 @@ class All_in_One_SEO_Pack {
917
  <th><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></th>
918
  </tr>
919
 
 
920
  <tr>
921
  <th scope="row" style="text-align:right; vertical-align:top;">
922
  <?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
@@ -925,6 +934,7 @@ class All_in_One_SEO_Pack {
925
  <input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
926
  </td>
927
  </tr>
 
928
 
929
  <!--
930
  <tr>
@@ -933,6 +943,8 @@ class All_in_One_SEO_Pack {
933
  </tr>
934
  -->
935
  </table>
 
 
936
  <?php
937
  }
938
 
@@ -955,13 +967,10 @@ class All_in_One_SEO_Pack {
955
  }
956
  // End -->
957
  </script>
 
 
958
  <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
959
- <table style="margin-bottom:40px; margin-top:30px;">
960
- <tr>
961
- <th style="text-align:left;" colspan="2">
962
- <a target="__blank" href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack')?></a>
963
- </th>
964
- </tr>
965
  <tr>
966
  <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
967
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80" tabindex="1000"/></td>
@@ -979,6 +988,7 @@ class All_in_One_SEO_Pack {
979
  <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
980
  </tr>
981
 
 
982
  <tr>
983
  <th scope="row" style="text-align:right; vertical-align:top;">
984
  <?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
@@ -987,6 +997,7 @@ class All_in_One_SEO_Pack {
987
  <input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
988
  </td>
989
  </tr>
 
990
 
991
  <!--
992
  <tr>
@@ -995,6 +1006,7 @@ class All_in_One_SEO_Pack {
995
  </tr>
996
  -->
997
  </table>
 
998
  <?php
999
  }
1000
 
4
  Plugin Name: All in One SEO Pack
5
  Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
6
  Description: Out-of-the-box SEO for your Wordpress blog.
7
+ Version: 1.4.3.7
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
11
 
12
  /*
13
+ Copyright (C) 2007 uberdose.com (seopack AT uberdose DOT com)
14
 
15
  This program is free software; you can redistribute it and/or modify
16
  it under the terms of the GNU General Public License as published by
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.4.3.7";
32
 
33
  /** Max numbers of chars in auto-generated description */
34
  var $maximum_description_length = 160;
752
  }
753
  }
754
 
755
+ /** crude approximization of whether current user is an admin */
756
+ function is_admin() {
757
+ return current_user_can('level_8');
758
+ }
759
+
760
  function is_directory_writable($directory) {
761
  $filename = $directory . '/' . 'tmp_file_' . time();
762
  $fh = @fopen($filename, 'w');
792
  delete_post_meta($id, 'keywords');
793
  delete_post_meta($id, 'description');
794
  delete_post_meta($id, 'title');
795
+ if ($this->is_admin()) {
796
+ delete_post_meta($id, 'aiosp_disable');
797
+ }
798
  //delete_post_meta($id, 'aiosp_meta');
799
 
800
  if (isset($keywords) && !empty($keywords)) {
806
  if (isset($title) && !empty($title)) {
807
  add_post_meta($id, 'title', $title);
808
  }
809
+ if (isset($aiosp_disable) && !empty($aiosp_disable) && $this->is_admin()) {
810
  add_post_meta($id, 'aiosp_disable', $aiosp_disable);
811
  }
812
  /*
899
  }
900
  // End -->
901
  </script>
902
+ <fieldset id="seodiv" class="dbx-box">
903
+ <h3 class="dbx-handle"><a style="color:white" target="__blank" href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></a></h3>
904
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
905
+ <table style="margin-bottom:40px">
906
  <tr>
907
  <th style="text-align:left;" colspan="2">
 
908
  </th>
909
  </tr>
910
  <tr>
925
  <th><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></th>
926
  </tr>
927
 
928
+ <?php if ($this->is_admin()) { ?>
929
  <tr>
930
  <th scope="row" style="text-align:right; vertical-align:top;">
931
  <?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
934
  <input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
935
  </td>
936
  </tr>
937
+ <?php } ?>
938
 
939
  <!--
940
  <tr>
943
  </tr>
944
  -->
945
  </table>
946
+ </fieldset>
947
+
948
  <?php
949
  }
950
 
967
  }
968
  // End -->
969
  </script>
970
+ <fieldset id="seodiv" class="dbx-box">
971
+ <h3 class="dbx-handle"><a style="color:white" target="__blank" href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/"><?php _e('All in One SEO Pack', 'all_in_one_seo_pack') ?></a></h3>
972
  <input value="aiosp_edit" type="hidden" name="aiosp_edit"/>
973
+ <table style="margin-bottom:40px;">
 
 
 
 
 
974
  <tr>
975
  <th scope="row" style="text-align:right;"><?php _e('Title:', 'all_in_one_seo_pack') ?></th>
976
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80" tabindex="1000"/></td>
988
  <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80" tabindex="1002"/></td>
989
  </tr>
990
 
991
+ <?php if ($this->is_admin()) { ?>
992
  <tr>
993
  <th scope="row" style="text-align:right; vertical-align:top;">
994
  <?php _e('Disable on this page/post:', 'all_in_one_seo_pack')?>
997
  <input type="checkbox" name="aiosp_disable" <?php if ($aiosp_disable) echo "checked=\"1\""; ?>/>
998
  </td>
999
  </tr>
1000
+ <?php } ?>
1001
 
1002
  <!--
1003
  <tr>
1006
  </tr>
1007
  -->
1008
  </table>
1009
+ </fieldset>
1010
  <?php
1011
  }
1012