Google Sitemap by BestWebSoft - Version 1.10

Version Description

  • 24.07.2012 =
  • Bugfix : Cross Site Request Forgery bug was fixed.
  • Update : We updated all functionality for wordpress 3.4.1.
Download this release

Release Info

Developer bestwebsoft
Plugin Icon 128x128 Google Sitemap by BestWebSoft
Version 1.10
Comparing to
See all releases

Code changes from version 1.09 to 1.10

google-sitemap-plugin.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Google sitemap plugin
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin to add google sitemap file in google webmaster tools account.
6
  Author: BestWebSoft
7
- Version: 1.09
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
@@ -53,7 +53,8 @@ if( ! function_exists( 'bws_add_menu_render' ) ) {
53
  array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://wordpress.org/extend/plugins/gallery-plugin/', 'http://bestwebsoft.com/plugin/gallery-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', '' ),
54
  array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://wordpress.org/extend/plugins/adsense-plugin/', 'http://bestwebsoft.com/plugin/google-adsense-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=adsense-plugin.php' ),
55
  array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://wordpress.org/extend/plugins/custom-search-plugin/', 'http://bestwebsoft.com/plugin/custom-search-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_search.php' ),
56
- array( 'quotes_and_tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://wordpress.org/extend/plugins/quotes-and-tips/', 'http://bestwebsoft.com/plugin/quotes-and-tips/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=quotes-and-tips.php' )
 
57
  );
58
  foreach($array_plugins as $plugins) {
59
  if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) {
@@ -212,11 +213,11 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
212
  $url_robot = ABSPATH . "robots.txt";
213
  $url_sitemap = ABSPATH . "sitemap.xml";
214
  $message = "";
215
- if( isset( $_POST['gglstmp_new'] ) ) {
216
  $message = __( "Your sitemap file was created in the root directory of the site. ", 'sitemap' );
217
  gglstmp_sitemapcreate();
218
  }
219
- if( isset( $_REQUEST['gglstmp_submit'] ) ) {
220
  $gglstmp_settings = isset( $_REQUEST['gglstmp_settings'] ) ? $_REQUEST['gglstmp_settings'] : array() ;
221
  update_option( 'gglstmp_settings', $gglstmp_settings );
222
  $message .= __( "Options saved." , 'sitemap' );
@@ -289,11 +290,12 @@ if ( !function_exists ( 'gglstmp_settings_page' ) ) {
289
  <p class="submit">
290
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
291
  </p>
 
292
  </form>
293
  </div>
294
  <?php
295
  //============================ Adding location of sitemap file to the robots.txt =============
296
- if( isset( $_POST['gglstmp_checkbox'] ) ){
297
  if ( file_exists( $url_robot ) ) {
298
  $fp = fopen( ABSPATH . 'robots.txt', "a+" );
299
  $flag = false;
4
  Plugin URI: http://bestwebsoft.com/plugin/
5
  Description: Plugin to add google sitemap file in google webmaster tools account.
6
  Author: BestWebSoft
7
+ Version: 1.10
8
  Author URI: http://bestwebsoft.com/
9
  License: GPLv2 or later
10
  */
53
  array( 'gallery-plugin\/gallery-plugin.php', 'Gallery', 'http://wordpress.org/extend/plugins/gallery-plugin/', 'http://bestwebsoft.com/plugin/gallery-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Gallery+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', '' ),
54
  array( 'adsense-plugin\/adsense-plugin.php', 'Google AdSense Plugin', 'http://wordpress.org/extend/plugins/adsense-plugin/', 'http://bestwebsoft.com/plugin/google-adsense-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Adsense+Plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=adsense-plugin.php' ),
55
  array( 'custom-search-plugin\/custom-search-plugin.php', 'Custom Search Plugin', 'http://wordpress.org/extend/plugins/custom-search-plugin/', 'http://bestwebsoft.com/plugin/custom-search-plugin/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Search+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_search.php' ),
56
+ array( 'quotes_and_tips\/quotes-and-tips.php', 'Quotes and Tips', 'http://wordpress.org/extend/plugins/quotes-and-tips/', 'http://bestwebsoft.com/plugin/quotes-and-tips/', '/wp-admin/plugin-install.php?tab=search&type=term&s=Quotes+and+Tips+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=quotes-and-tips.php' ),
57
+ array( 'updater\/updater.php', 'Updater', 'http://wordpress.org/extend/plugins/updater/', 'http://bestwebsoft.com/plugin/updater/', '/wp-admin/plugin-install.php?tab=search&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' )
58
  );
59
  foreach($array_plugins as $plugins) {
60
  if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) {
213
  $url_robot = ABSPATH . "robots.txt";
214
  $url_sitemap = ABSPATH . "sitemap.xml";
215
  $message = "";
216
+ if( isset( $_POST['gglstmp_new'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ) {
217
  $message = __( "Your sitemap file was created in the root directory of the site. ", 'sitemap' );
218
  gglstmp_sitemapcreate();
219
  }
220
+ if( isset( $_REQUEST['gglstmp_submit'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ) {
221
  $gglstmp_settings = isset( $_REQUEST['gglstmp_settings'] ) ? $_REQUEST['gglstmp_settings'] : array() ;
222
  update_option( 'gglstmp_settings', $gglstmp_settings );
223
  $message .= __( "Options saved." , 'sitemap' );
290
  <p class="submit">
291
  <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
292
  </p>
293
+ <?php wp_nonce_field( plugin_basename(__FILE__), 'gglstmp_nonce_name' ); ?>
294
  </form>
295
  </div>
296
  <?php
297
  //============================ Adding location of sitemap file to the robots.txt =============
298
+ if( isset( $_POST['gglstmp_checkbox'] ) && check_admin_referer( plugin_basename(__FILE__), 'gglstmp_nonce_name' ) ){
299
  if ( file_exists( $url_robot ) ) {
300
  $fp = fopen( ABSPATH . 'robots.txt', "a+" );
301
  $flag = false;
languages/sitemap-ar_AR.mo CHANGED
Binary file
languages/sitemap-ar_AR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-06-27 18:34+0300\n"
6
- "PO-Revision-Date: 2012-06-27 18:35+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: Albayan Design, hani aladoli <info@albayan-design.com, darkking8@gmail.com>\n"
9
  "Language: \n"
@@ -28,7 +28,7 @@ msgid "Read more"
28
  msgstr "اقراء المزيد..."
29
 
30
  #: google-sitemap-plugin.php:88
31
- #: google-sitemap-plugin.php:517
32
  msgid "Settings"
33
  msgstr "الاعدادات"
34
 
@@ -146,51 +146,51 @@ msgstr "ارغب في الحصول علي البيانات هذه الموقع
146
  msgid "Save Changes"
147
  msgstr "حفظ الاعدادات"
148
 
149
- #: google-sitemap-plugin.php:331
150
  msgid "You must enter login and password"
151
  msgstr "يجب عليك كتابة اسم الدخول والرقم السري"
152
 
153
- #: google-sitemap-plugin.php:334
154
  msgid "You must choose at least one action"
155
  msgstr "يجب عليك اختيار عملية واحدة علي الاقل"
156
 
157
- #: google-sitemap-plugin.php:364
158
  msgid "Login and password don\\'t match, try again, please"
159
  msgstr "اسم الدخول والرقم السري // غير مطابقة , الرجاء اعادة المحاولة مرة اخري"
160
 
161
- #: google-sitemap-plugin.php:423
162
  msgid "Info about this site in google webmaster tools"
163
  msgstr "المعلومات عن هذه الموقع في google webmaster tools"
164
 
165
- #: google-sitemap-plugin.php:425
166
  msgid "This site is not added to the google webmaster tools account"
167
  msgstr "هذه الموقع غير مضاف الي حساب google webmaster tools"
168
 
169
- #: google-sitemap-plugin.php:446
170
  msgid "Site url: "
171
  msgstr "رابط الموقع :"
172
 
173
- #: google-sitemap-plugin.php:447
174
  msgid "Site verification: "
175
  msgstr "كود التحقق لهذه الموقع :"
176
 
177
- #: google-sitemap-plugin.php:449
178
  msgid "verificated"
179
  msgstr "التحقق"
180
 
181
- #: google-sitemap-plugin.php:451
182
  msgid "non verificated"
183
  msgstr "لا يوجد تحقق"
184
 
185
- #: google-sitemap-plugin.php:452
186
  msgid "Sitemap file: "
187
  msgstr "ملف الخريطة :"
188
 
189
- #: google-sitemap-plugin.php:454
190
  msgid "added"
191
  msgstr "اضيفت"
192
 
193
- #: google-sitemap-plugin.php:456
194
  msgid "not added"
195
  msgstr "لم تضاف"
196
 
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:49+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:49+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: Albayan Design, hani aladoli <info@albayan-design.com, darkking8@gmail.com>\n"
9
  "Language: \n"
28
  msgstr "اقراء المزيد..."
29
 
30
  #: google-sitemap-plugin.php:88
31
+ #: google-sitemap-plugin.php:518
32
  msgid "Settings"
33
  msgstr "الاعدادات"
34
 
146
  msgid "Save Changes"
147
  msgstr "حفظ الاعدادات"
148
 
149
+ #: google-sitemap-plugin.php:332
150
  msgid "You must enter login and password"
151
  msgstr "يجب عليك كتابة اسم الدخول والرقم السري"
152
 
153
+ #: google-sitemap-plugin.php:335
154
  msgid "You must choose at least one action"
155
  msgstr "يجب عليك اختيار عملية واحدة علي الاقل"
156
 
157
+ #: google-sitemap-plugin.php:365
158
  msgid "Login and password don\\'t match, try again, please"
159
  msgstr "اسم الدخول والرقم السري // غير مطابقة , الرجاء اعادة المحاولة مرة اخري"
160
 
161
+ #: google-sitemap-plugin.php:424
162
  msgid "Info about this site in google webmaster tools"
163
  msgstr "المعلومات عن هذه الموقع في google webmaster tools"
164
 
165
+ #: google-sitemap-plugin.php:426
166
  msgid "This site is not added to the google webmaster tools account"
167
  msgstr "هذه الموقع غير مضاف الي حساب google webmaster tools"
168
 
169
+ #: google-sitemap-plugin.php:447
170
  msgid "Site url: "
171
  msgstr "رابط الموقع :"
172
 
173
+ #: google-sitemap-plugin.php:448
174
  msgid "Site verification: "
175
  msgstr "كود التحقق لهذه الموقع :"
176
 
177
+ #: google-sitemap-plugin.php:450
178
  msgid "verificated"
179
  msgstr "التحقق"
180
 
181
+ #: google-sitemap-plugin.php:452
182
  msgid "non verificated"
183
  msgstr "لا يوجد تحقق"
184
 
185
+ #: google-sitemap-plugin.php:453
186
  msgid "Sitemap file: "
187
  msgstr "ملف الخريطة :"
188
 
189
+ #: google-sitemap-plugin.php:455
190
  msgid "added"
191
  msgstr "اضيفت"
192
 
193
+ #: google-sitemap-plugin.php:457
194
  msgid "not added"
195
  msgstr "لم تضاف"
196
 
languages/sitemap-ru_RU.mo CHANGED
Binary file
languages/sitemap-ru_RU.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-06-27 18:35+0300\n"
6
- "PO-Revision-Date: 2012-06-27 18:35+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
@@ -28,7 +28,7 @@ msgid "Read more"
28
  msgstr "Подробнее..."
29
 
30
  #: google-sitemap-plugin.php:88
31
- #: google-sitemap-plugin.php:517
32
  msgid "Settings"
33
  msgstr "Настройки"
34
 
@@ -146,51 +146,51 @@ msgstr "Я хочу получить информацию об этом сайт
146
  msgid "Save Changes"
147
  msgstr "Сохранить изменения"
148
 
149
- #: google-sitemap-plugin.php:331
150
  msgid "You must enter login and password"
151
  msgstr "Вы должны ввести логин и пароль"
152
 
153
- #: google-sitemap-plugin.php:334
154
  msgid "You must choose at least one action"
155
  msgstr "Вы должны выбрать одно из действий"
156
 
157
- #: google-sitemap-plugin.php:364
158
  msgid "Login and password don\\'t match, try again, please"
159
  msgstr "Логин и пароль введены неправильно, попробуйте еще раз"
160
 
161
- #: google-sitemap-plugin.php:423
162
  msgid "Info about this site in google webmaster tools"
163
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
164
 
165
- #: google-sitemap-plugin.php:425
166
  msgid "This site is not added to the google webmaster tools account"
167
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
168
 
169
- #: google-sitemap-plugin.php:446
170
  msgid "Site url: "
171
  msgstr "Урл сайта:"
172
 
173
- #: google-sitemap-plugin.php:447
174
  msgid "Site verification: "
175
  msgstr "Верификация сайта:"
176
 
177
- #: google-sitemap-plugin.php:449
178
  msgid "verificated"
179
  msgstr "верифицровано"
180
 
181
- #: google-sitemap-plugin.php:451
182
  msgid "non verificated"
183
  msgstr "не верефицирован"
184
 
185
- #: google-sitemap-plugin.php:452
186
  msgid "Sitemap file: "
187
  msgstr "Файл карты сайта:"
188
 
189
- #: google-sitemap-plugin.php:454
190
  msgid "added"
191
  msgstr "добавлен"
192
 
193
- #: google-sitemap-plugin.php:456
194
  msgid "not added"
195
  msgstr "не добавлен"
196
 
2
  msgstr ""
3
  "Project-Id-Version: google-sitemap-plugin\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-24 19:49+0300\n"
6
+ "PO-Revision-Date: 2012-07-24 19:49+0300\n"
7
  "Last-Translator: zos <zos@bestwebsoft.com>\n"
8
  "Language-Team: bestwebsoft.com <plugin@bestwebsoft.com>\n"
9
  "Language: \n"
28
  msgstr "Подробнее..."
29
 
30
  #: google-sitemap-plugin.php:88
31
+ #: google-sitemap-plugin.php:518
32
  msgid "Settings"
33
  msgstr "Настройки"
34
 
146
  msgid "Save Changes"
147
  msgstr "Сохранить изменения"
148
 
149
+ #: google-sitemap-plugin.php:332
150
  msgid "You must enter login and password"
151
  msgstr "Вы должны ввести логин и пароль"
152
 
153
+ #: google-sitemap-plugin.php:335
154
  msgid "You must choose at least one action"
155
  msgstr "Вы должны выбрать одно из действий"
156
 
157
+ #: google-sitemap-plugin.php:365
158
  msgid "Login and password don\\'t match, try again, please"
159
  msgstr "Логин и пароль введены неправильно, попробуйте еще раз"
160
 
161
+ #: google-sitemap-plugin.php:424
162
  msgid "Info about this site in google webmaster tools"
163
  msgstr "Я хочу получить информацию об этом сайте из Google webmaster tools"
164
 
165
+ #: google-sitemap-plugin.php:426
166
  msgid "This site is not added to the google webmaster tools account"
167
  msgstr "Я хочу добавить этот сайт в Google webmaster tools"
168
 
169
+ #: google-sitemap-plugin.php:447
170
  msgid "Site url: "
171
  msgstr "Урл сайта:"
172
 
173
+ #: google-sitemap-plugin.php:448
174
  msgid "Site verification: "
175
  msgstr "Верификация сайта:"
176
 
177
+ #: google-sitemap-plugin.php:450
178
  msgid "verificated"
179
  msgstr "верифицровано"
180
 
181
+ #: google-sitemap-plugin.php:452
182
  msgid "non verificated"
183
  msgstr "не верефицирован"
184
 
185
+ #: google-sitemap-plugin.php:453
186
  msgid "Sitemap file: "
187
  msgstr "Файл карты сайта:"
188
 
189
+ #: google-sitemap-plugin.php:455
190
  msgid "added"
191
  msgstr "добавлен"
192
 
193
+ #: google-sitemap-plugin.php:457
194
  msgid "not added"
195
  msgstr "не добавлен"
196
 
readme.txt CHANGED
@@ -4,7 +4,9 @@ Donate link: http://bestwebsoft.com/
4
  Tags: sitemap, google sitemap, google api, google webmaster tools, stmap, gogle sitemap, sitemp, google api sitemap, api sitemap, webmaster sitemap, webmaster tols, google stmp
5
  Requires at least: 2.9
6
  Tested up to: 3.4
7
- Stable tag: 1.09
 
 
8
 
9
  This plugin allows you to add sitemap file to google webmaster tools.
10
 
@@ -68,6 +70,10 @@ In the WordPress admin panel go to "Plugins", find "Google sitemap" plugin and p
68
 
69
  == Changelog ==
70
 
 
 
 
 
71
  = V1.09 - 27.06.2012 =
72
  * New: Added Arabic language file for plugin.
73
  * Bugfix: Create new sitemap file and Add sitemap file path in robots.txt errors were fixed.
@@ -99,6 +105,9 @@ In the WordPress admin panel go to "Plugins", find "Google sitemap" plugin and p
99
 
100
  == Upgrade Notice ==
101
 
 
 
 
102
  = V1.09 =
103
  Added Arabic language file for plugin. Create new sitemap file and Add sitemap file path in robots.txt errors were fixed. We updated all functionality for wordpress 3.4.
104
 
4
  Tags: sitemap, google sitemap, google api, google webmaster tools, stmap, gogle sitemap, sitemp, google api sitemap, api sitemap, webmaster sitemap, webmaster tols, google stmp
5
  Requires at least: 2.9
6
  Tested up to: 3.4
7
+ Stable tag: 1.10
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  This plugin allows you to add sitemap file to google webmaster tools.
12
 
70
 
71
  == Changelog ==
72
 
73
+ = V1.10 - 24.07.2012 =
74
+ * Bugfix : Cross Site Request Forgery bug was fixed.
75
+ * Update : We updated all functionality for wordpress 3.4.1.
76
+
77
  = V1.09 - 27.06.2012 =
78
  * New: Added Arabic language file for plugin.
79
  * Bugfix: Create new sitemap file and Add sitemap file path in robots.txt errors were fixed.
105
 
106
  == Upgrade Notice ==
107
 
108
+ = V1.10 =
109
+ Cross Site Request Forgery bug was fixed. We updated all functionality for wordpress 3.4.1.
110
+
111
  = V1.09 =
112
  Added Arabic language file for plugin. Create new sitemap file and Add sitemap file path in robots.txt errors were fixed. We updated all functionality for wordpress 3.4.
113