Version Description
Download this release
Release Info
| Developer | uberdose |
| Plugin | |
| Version | 1.3.7.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.7.4 to 1.3.7.5
- all_in_one_seo_pack-bg_BG.mo +0 -0
- all_in_one_seo_pack-de_DE.mo +0 -0
- all_in_one_seo_pack.php +109 -14
- all_in_one_seo_pack.pot +11 -0
all_in_one_seo_pack-bg_BG.mo
CHANGED
|
Binary file
|
all_in_one_seo_pack-de_DE.mo
CHANGED
|
Binary file
|
all_in_one_seo_pack.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 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.3.7.
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
|
@@ -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.3.7.
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
|
@@ -47,6 +47,12 @@ class All_in_One_SEO_Pack {
|
|
| 47 |
/** The title before rewriting */
|
| 48 |
var $orig_title = '';
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
function template_redirect() {
|
| 51 |
if (is_feed()) {
|
| 52 |
return;
|
|
@@ -62,9 +68,12 @@ class All_in_One_SEO_Pack {
|
|
| 62 |
}
|
| 63 |
|
| 64 |
function init() {
|
| 65 |
-
if(function_exists('load_plugin_textdomain')) {
|
| 66 |
load_plugin_textdomain('all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack');
|
| 67 |
}
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
|
| 70 |
function is_static_front_page() {
|
|
@@ -575,6 +584,72 @@ class All_in_One_SEO_Pack {
|
|
| 575 |
return implode(',', $keywords_ar);
|
| 576 |
}
|
| 577 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 578 |
function post_meta_tags($id) {
|
| 579 |
$awmp_edit = $_POST["aiosp_edit"];
|
| 580 |
if (isset($awmp_edit) && !empty($awmp_edit)) {
|
|
@@ -788,6 +863,12 @@ class All_in_One_SEO_Pack {
|
|
| 788 |
if (function_exists('wp_cache_flush')) {
|
| 789 |
wp_cache_flush();
|
| 790 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 791 |
}
|
| 792 |
|
| 793 |
?>
|
|
@@ -798,11 +879,33 @@ class All_in_One_SEO_Pack {
|
|
| 798 |
<div class="wrap">
|
| 799 |
<h2><?php _e('All in One SEO Plugin Options', 'all_in_one_seo_pack'); ?></h2>
|
| 800 |
<p>
|
| 801 |
-
<?php _e("This is version ", 'all_in_one_seo_pack') ?><?php _e("$this->version
|
| 802 |
-
|
| 803 |
-
href="http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/"
|
| 804 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 805 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 806 |
<script type="text/javascript">
|
| 807 |
<!--
|
| 808 |
function toggleVisibility(id) {
|
|
@@ -814,14 +917,6 @@ href="http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/"><p
|
|
| 814 |
}
|
| 815 |
//-->
|
| 816 |
</script>
|
| 817 |
-
<p>
|
| 818 |
-
<a target="_blank" title="<?php _e('FAQ', 'all_in_one_seo_pack') ?>"
|
| 819 |
-
href="http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/"><?php _e('FAQ', 'all_in_one_seo_pack') ?></a>
|
| 820 |
-
| <a target="_blank" title="<?php _e('All in One SEO Plugin Feedback', 'all_in_one_seo_pack') ?>"
|
| 821 |
-
href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond"><?php _e('Feedback', 'all_in_one_seo_pack') ?></a>
|
| 822 |
-
| <a target="_blank" title="<?php _e('All in One SEO Plugin Translations', 'all_in_one_seo_pack') ?>"
|
| 823 |
-
href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><?php _e('Translations', 'all_in_one_seo_pack') ?></a>
|
| 824 |
-
</p>
|
| 825 |
<form name="dofollow" action="" method="post">
|
| 826 |
<table>
|
| 827 |
|
| 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.3.7.5
|
| 8 |
Author: uberdose
|
| 9 |
Author URI: http://wp.uberdose.com/
|
| 10 |
*/
|
| 28 |
|
| 29 |
class All_in_One_SEO_Pack {
|
| 30 |
|
| 31 |
+
var $version = "1.3.7.5";
|
| 32 |
|
| 33 |
/** Max numbers of chars in auto-generated description */
|
| 34 |
var $maximum_description_length = 160;
|
| 47 |
/** The title before rewriting */
|
| 48 |
var $orig_title = '';
|
| 49 |
|
| 50 |
+
/** Temp filename for the latest version. */
|
| 51 |
+
var $upgrade_filename = 'temp.zip';
|
| 52 |
+
|
| 53 |
+
/** Where to extract the downloaded newest version. */
|
| 54 |
+
var $upgrade_folder;
|
| 55 |
+
|
| 56 |
function template_redirect() {
|
| 57 |
if (is_feed()) {
|
| 58 |
return;
|
| 68 |
}
|
| 69 |
|
| 70 |
function init() {
|
| 71 |
+
if (function_exists('load_plugin_textdomain')) {
|
| 72 |
load_plugin_textdomain('all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack');
|
| 73 |
}
|
| 74 |
+
|
| 75 |
+
$this->upgrade_filename = dirname(__FILE__) . '/' . $this->upgrade_filename;
|
| 76 |
+
$this->upgrade_folder = dirname(__FILE__);
|
| 77 |
}
|
| 78 |
|
| 79 |
function is_static_front_page() {
|
| 584 |
return implode(',', $keywords_ar);
|
| 585 |
}
|
| 586 |
|
| 587 |
+
function get_url($filename) {
|
| 588 |
+
if (function_exists('file_get_contents')) {
|
| 589 |
+
$file = @file_get_contents($filename);
|
| 590 |
+
} else {
|
| 591 |
+
$curl = curl_init($filename);
|
| 592 |
+
curl_setopt($curl, CURLOPT_HEADER, 0);
|
| 593 |
+
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
| 594 |
+
$file = curl_exec($curl);
|
| 595 |
+
}
|
| 596 |
+
return $file;
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
function download_newest_version() {
|
| 600 |
+
$success = true;
|
| 601 |
+
$file = $this->get_url("http://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip");
|
| 602 |
+
$fh = fopen($this->upgrade_filename, 'w');
|
| 603 |
+
if (!fwrite($fh, $file)) {
|
| 604 |
+
$success = false;
|
| 605 |
+
}
|
| 606 |
+
fclose($fh);
|
| 607 |
+
return $success;
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
function install_newest_version() {
|
| 611 |
+
$success = $this->download_newest_version();
|
| 612 |
+
if ($success) {
|
| 613 |
+
$success = $this->extract_plugin();
|
| 614 |
+
unlink($this->upgrade_filename);
|
| 615 |
+
}
|
| 616 |
+
return $success;
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
+
function extract_plugin() {
|
| 620 |
+
if (!class_exists('PclZip')) {
|
| 621 |
+
require_once ('pclzip.lib.php');
|
| 622 |
+
}
|
| 623 |
+
$archive = new PclZip($this->upgrade_filename);
|
| 624 |
+
$files = $archive->extract(PCLZIP_OPT_STOP_ON_ERROR, PCLZIP_OPT_REPLACE_NEWER, PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_OPT_PATH, $this->upgrade_folder);
|
| 625 |
+
if (is_array($files)) {
|
| 626 |
+
return true;
|
| 627 |
+
} else {
|
| 628 |
+
return false;
|
| 629 |
+
}
|
| 630 |
+
}
|
| 631 |
+
|
| 632 |
+
function is_directory_writable($directory) {
|
| 633 |
+
$filename = $directory . '/' . 'tmp_file_' . time();
|
| 634 |
+
$fh = @fopen($filename, 'w');
|
| 635 |
+
if (!$fh) {
|
| 636 |
+
return false;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
$written = fwrite($fh, "test");
|
| 640 |
+
fclose($fh);
|
| 641 |
+
unlink($filename);
|
| 642 |
+
if ($written) {
|
| 643 |
+
return true;
|
| 644 |
+
} else {
|
| 645 |
+
return false;
|
| 646 |
+
}
|
| 647 |
+
}
|
| 648 |
+
|
| 649 |
+
function is_upgrade_directory_writable() {
|
| 650 |
+
return $this->is_directory_writable($this->upgrade_folder);
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
function post_meta_tags($id) {
|
| 654 |
$awmp_edit = $_POST["aiosp_edit"];
|
| 655 |
if (isset($awmp_edit) && !empty($awmp_edit)) {
|
| 863 |
if (function_exists('wp_cache_flush')) {
|
| 864 |
wp_cache_flush();
|
| 865 |
}
|
| 866 |
+
} elseif ($_POST['aiosp_upgrade']) {
|
| 867 |
+
$message = __("Upgraded to newest version. Please revisit the options page to make sure you see the newest version.", 'all_in_one_seo_pack');
|
| 868 |
+
$success = $this->install_newest_version();
|
| 869 |
+
if (!$success) {
|
| 870 |
+
$message = __("Upgrade failed.", 'all_in_one_seo_pack');
|
| 871 |
+
}
|
| 872 |
}
|
| 873 |
|
| 874 |
?>
|
| 879 |
<div class="wrap">
|
| 880 |
<h2><?php _e('All in One SEO Plugin Options', 'all_in_one_seo_pack'); ?></h2>
|
| 881 |
<p>
|
| 882 |
+
<?php _e("This is version ", 'all_in_one_seo_pack') ?><?php _e("$this->version ", 'all_in_one_seo_pack') ?>
|
| 883 |
+
<a target="_blank" title="<?php _e('All in One SEO Plugin Release History', 'all_in_one_seo_pack')?>"
|
| 884 |
+
href="http://wp.uberdose.com/2007/07/27/all-in-one-seo-pack-release-history/"><?php _e("Should I upgrade?", 'all_in_one_seo_pack')?>
|
| 885 |
</a>
|
| 886 |
+
| <a target="_blank" title="<?php _e('FAQ', 'all_in_one_seo_pack') ?>"
|
| 887 |
+
href="http://wp.uberdose.com/2007/07/11/all-in-one-seo-pack-faq/"><?php _e('FAQ', 'all_in_one_seo_pack') ?></a>
|
| 888 |
+
| <a target="_blank" title="<?php _e('All in One SEO Plugin Feedback', 'all_in_one_seo_pack') ?>"
|
| 889 |
+
href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/#respond"><?php _e('Feedback', 'all_in_one_seo_pack') ?></a>
|
| 890 |
+
| <a target="_blank" title="<?php _e('All in One SEO Plugin Translations', 'all_in_one_seo_pack') ?>"
|
| 891 |
+
href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><?php _e('Translations', 'all_in_one_seo_pack') ?></a>
|
| 892 |
</p>
|
| 893 |
+
<p>
|
| 894 |
+
<?php
|
| 895 |
+
$canwrite = $this->is_upgrade_directory_writable();
|
| 896 |
+
//$canwrite = false;
|
| 897 |
+
?>
|
| 898 |
+
<form name="dofollow" action="" method="post">
|
| 899 |
+
<input type="submit" <?php if (!$canwrite) echo(' disabled="disabled" ');?> name="aiosp_upgrade" value="<?php _e('One Click Upgrade', 'all_in_one_seo_pack')?> »" />
|
| 900 |
+
<strong><?php _e("(Remember: Backup early, backup often!)") ?></strong>
|
| 901 |
+
</form>
|
| 902 |
+
<p></p>
|
| 903 |
+
|
| 904 |
+
<?php if (!$canwrite) {
|
| 905 |
+
echo("<p><strong>"); echo(sprintf(__("Please make sure that %s is writable."), $this->upgrade_folder)); echo("</p></strong>");
|
| 906 |
+
} ?>
|
| 907 |
+
</p>
|
| 908 |
+
|
| 909 |
<script type="text/javascript">
|
| 910 |
<!--
|
| 911 |
function toggleVisibility(id) {
|
| 917 |
}
|
| 918 |
//-->
|
| 919 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 920 |
<form name="dofollow" action="" method="post">
|
| 921 |
<table>
|
| 922 |
|
all_in_one_seo_pack.pot
CHANGED
|
@@ -204,3 +204,14 @@ msgstr ""
|
|
| 204 |
msgid "%wp_title% - The original wordpress title, e.g. post_title for posts"
|
| 205 |
msgstr ""
|
| 206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
msgid "%wp_title% - The original wordpress title, e.g. post_title for posts"
|
| 205 |
msgstr ""
|
| 206 |
|
| 207 |
+
msgid "Upgraded to newest version. Please revisit the options page to make sure you see the newest version."
|
| 208 |
+
msgstr ""
|
| 209 |
+
|
| 210 |
+
msgid "Upgrade failed."
|
| 211 |
+
msgstr ""
|
| 212 |
+
|
| 213 |
+
msgid "(Remember: Backup early, backup often!)"
|
| 214 |
+
msgstr ""
|
| 215 |
+
|
| 216 |
+
msgid "Please make sure that %s is writable."
|
| 217 |
+
msgstr ""
|
