Platinum SEO Pack - Version 1.0

Version Description

Download this release

Release Info

Developer Rajesh Babu
Plugin Icon 128x128 Platinum SEO Pack
Version 1.0
Comparing to
See all releases

Version 1.0

platinum-seo-pack.po ADDED
@@ -0,0 +1,546 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: platinum-seo-pack\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-06-28 13:30+0530\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Rajesh <rrajeshbab@gmail.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: E:\\wordpress-2.5\\platinum-seo-pack(2)\\wp-server\\trunk\n"
15
+
16
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:876
17
+ #, php-format
18
+ msgid "Could not download distribution (%s)"
19
+ msgstr ""
20
+
21
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:879
22
+ #, php-format
23
+ msgid "Could not download distribution (%s): %s"
24
+ msgstr ""
25
+
26
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:886
27
+ #, php-format
28
+ msgid "Could not open %s for writing"
29
+ msgstr ""
30
+
31
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:888
32
+ #, php-format
33
+ msgid "Please make sure %s is writable"
34
+ msgstr ""
35
+
36
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:894
37
+ #, php-format
38
+ msgid "Could not write to %s"
39
+ msgstr ""
40
+
41
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1042
42
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1049
43
+ msgid "Platinum SEO Pack"
44
+ msgstr ""
45
+
46
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1055
47
+ msgid "Click here for Support"
48
+ msgstr ""
49
+
50
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1063
51
+ msgid "Title:"
52
+ msgstr ""
53
+
54
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1067
55
+ msgid "Description:"
56
+ msgstr ""
57
+
58
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1072
59
+ msgid " characters. Most search engines use a maximum of 160 chars for the description."
60
+ msgstr ""
61
+
62
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1076
63
+ msgid "Keywords (comma separated):"
64
+ msgstr ""
65
+
66
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1082
67
+ msgid "PSP Meta Index and Nofollow Tags:"
68
+ msgstr ""
69
+
70
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1093
71
+ msgid "NOARCHIVE this page/post:"
72
+ msgstr ""
73
+
74
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1101
75
+ msgid "NOSNIPPET of this page/post:"
76
+ msgstr ""
77
+
78
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1109
79
+ msgid "Disable on this page/post:"
80
+ msgstr ""
81
+
82
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1138
83
+ msgid "Platinum SEO"
84
+ msgstr ""
85
+
86
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1171
87
+ msgid "Platinum SEO Options Updated."
88
+ msgstr ""
89
+
90
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1216
91
+ msgid "Upgraded to newest version. Please revisit the options page to ensure you see the newest version."
92
+ msgstr ""
93
+
94
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1219
95
+ msgid "Upgrade failed"
96
+ msgstr ""
97
+
98
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1234
99
+ msgid "Platinum SEO Plugin Options"
100
+ msgstr ""
101
+
102
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1236
103
+ msgid "This is version "
104
+ msgstr ""
105
+
106
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1238
107
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1239
108
+ msgid "FAQ"
109
+ msgstr ""
110
+
111
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1240
112
+ msgid "Platinum SEO Plugin Feedback"
113
+ msgstr ""
114
+
115
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1241
116
+ msgid "Feedback"
117
+ msgstr ""
118
+
119
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1242
120
+ msgid "Donations for Platinum SEO Plugin"
121
+ msgstr ""
122
+
123
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1243
124
+ msgid "Please Donate"
125
+ msgstr ""
126
+
127
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1252
128
+ msgid "One Click Upgrade"
129
+ msgstr ""
130
+
131
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1253
132
+ msgid "(Remember: Backup early, backup often!)"
133
+ msgstr ""
134
+
135
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1259
136
+ #, php-format
137
+ msgid "Please make sure that %s is writable."
138
+ msgstr ""
139
+
140
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1275
141
+ msgid "Click on option titles to get help!"
142
+ msgstr ""
143
+
144
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1282
145
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1298
146
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1314
147
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1330
148
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1346
149
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1373
150
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1398
151
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1420
152
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1441
153
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1462
154
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1483
155
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1505
156
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1527
157
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1547
158
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1562
159
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1578
160
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1594
161
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1610
162
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1626
163
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1642
164
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1658
165
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1674
166
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1690
167
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1706
168
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1722
169
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1738
170
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1754
171
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1770
172
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1786
173
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1802
174
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1818
175
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1834
176
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1850
177
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1866
178
+ msgid "Click for Help!"
179
+ msgstr ""
180
+
181
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1283
182
+ msgid "Home Title:"
183
+ msgstr ""
184
+
185
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1290
186
+ msgid "As the name implies, this will be the title of your homepage. This is independent of any other option. If not set, the default blog title will get used."
187
+ msgstr ""
188
+
189
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1299
190
+ msgid "Home Description:"
191
+ msgstr ""
192
+
193
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1306
194
+ msgid "The META description for your homepage. The default is no META description, if this is not set."
195
+ msgstr ""
196
+
197
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1315
198
+ msgid "Home Keywords (comma separated):"
199
+ msgstr ""
200
+
201
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1322
202
+ msgid "A comma separated list of the most important keywords for your site homepage. Use optimal number of keywords."
203
+ msgstr ""
204
+
205
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1331
206
+ msgid "Rewrite Titles:"
207
+ msgstr ""
208
+
209
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1338
210
+ msgid "Note that this is all about the title tag. This is what you see in your browser's window title bar. This is NOT visible on a page, only in the window title bar and of course in the source. If set, all page, post, category, search and archive page titles get rewritten. You can specify the format for most of them. For example: The default templates puts the title tag of posts like this: Blog Archive >> Blog Name >> Post Title. But this is far from optimal. With the default post title format, Rewrite Title rewrites this to Post Title | Blog Name. If you have manually defined a title (in one of the text fields for Platinum SEO Plugin input) this will become the title of your post in the format string."
211
+ msgstr ""
212
+
213
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1347
214
+ msgid "Post Title Format:"
215
+ msgstr ""
216
+
217
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1354
218
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1381
219
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1406
220
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1428
221
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1449
222
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1470
223
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1491
224
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1513
225
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1536
226
+ msgid "The following macros are supported:"
227
+ msgstr ""
228
+
229
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1356
230
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1383
231
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1408
232
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1430
233
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1451
234
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1472
235
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1493
236
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1515
237
+ msgid "%blog_title% - Your blog title"
238
+ msgstr ""
239
+
240
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1357
241
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1384
242
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1409
243
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1431
244
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1452
245
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1473
246
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1494
247
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1516
248
+ msgid "%blog_description% - Your blog description"
249
+ msgstr ""
250
+
251
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1358
252
+ msgid "%post_title% - The original title of the post"
253
+ msgstr ""
254
+
255
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1359
256
+ msgid "%category_title% - The (main) category of the post"
257
+ msgstr ""
258
+
259
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1360
260
+ msgid "%category% - Alias for %category_title%"
261
+ msgstr ""
262
+
263
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1361
264
+ msgid "%post_author_login% - This post author's login"
265
+ msgstr ""
266
+
267
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1362
268
+ msgid "%post_author_nicename% - This post author's nicename"
269
+ msgstr ""
270
+
271
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1363
272
+ msgid "%post_author_firstname% - This post author's first name (capitalized)"
273
+ msgstr ""
274
+
275
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1364
276
+ msgid "%post_author_lastname% - This post author's last name (capitalized)"
277
+ msgstr ""
278
+
279
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1374
280
+ msgid "Page Title Format:"
281
+ msgstr ""
282
+
283
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1385
284
+ msgid "%page_title% - The original title of the page"
285
+ msgstr ""
286
+
287
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1386
288
+ msgid "%page_author_login% - This page author's login"
289
+ msgstr ""
290
+
291
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1387
292
+ msgid "%page_author_nicename% - This page author's nicename"
293
+ msgstr ""
294
+
295
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1388
296
+ msgid "%page_author_firstname% - This page author's first name (capitalized)"
297
+ msgstr ""
298
+
299
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1389
300
+ msgid "%page_author_lastname% - This page author's last name (capitalized)"
301
+ msgstr ""
302
+
303
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1399
304
+ msgid "Category Title Format:"
305
+ msgstr ""
306
+
307
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1410
308
+ msgid "%category_title% - The original title of the category"
309
+ msgstr ""
310
+
311
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1411
312
+ msgid "%category_description% - The description of the category"
313
+ msgstr ""
314
+
315
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1421
316
+ msgid "Archive Title Format:"
317
+ msgstr ""
318
+
319
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1432
320
+ msgid "%date% - The original archive title given by wordpress, e.g. \"2007\" or \"2007 August\""
321
+ msgstr ""
322
+
323
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1442
324
+ msgid "Tag Title Format:"
325
+ msgstr ""
326
+
327
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1453
328
+ msgid "%tag% - The name of the tag"
329
+ msgstr ""
330
+
331
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1463
332
+ msgid "Search Title Format:"
333
+ msgstr ""
334
+
335
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1474
336
+ msgid "%search% - What was searched for"
337
+ msgstr ""
338
+
339
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1484
340
+ msgid "Description Format:"
341
+ msgstr ""
342
+
343
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1495
344
+ msgid "%description% - The original description as determined by the plugin, for e.g. the excerpt if one is set or an auto-generated one, if that option is set"
345
+ msgstr ""
346
+
347
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1496
348
+ msgid "%wp_title% - The original wordpress title, for e.g. post title for posts"
349
+ msgstr ""
350
+
351
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1506
352
+ msgid "404 Title Format:"
353
+ msgstr ""
354
+
355
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1517
356
+ msgid "%request_url% - The original URL path, like \"/url-that-does-not-exist/\""
357
+ msgstr ""
358
+
359
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1518
360
+ msgid "%request_words% - The URL path in human readable form, like \"Url That Does Not Exist\""
361
+ msgstr ""
362
+
363
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1528
364
+ msgid "Paged Format:"
365
+ msgstr ""
366
+
367
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1535
368
+ msgid "This string gets appended/prepended to titles when they are for paged index pages (like home or archive pages)."
369
+ msgstr ""
370
+
371
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1538
372
+ msgid "%page% - The page number"
373
+ msgstr ""
374
+
375
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1548
376
+ msgid "Use Categories for META keywords:"
377
+ msgstr ""
378
+
379
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1554
380
+ msgid "Check this if you want your categories for a given post used as the META keywords for this post (in addition to any keywords and tags you specify on the post edit page)."
381
+ msgstr ""
382
+
383
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1563
384
+ msgid "Use noindex for Categories:"
385
+ msgstr ""
386
+
387
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1570
388
+ msgid "Check this for excluding category pages from being crawled. Might help to avoid duplicate content."
389
+ msgstr ""
390
+
391
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1579
392
+ msgid "Use noindex for Date based Archives:"
393
+ msgstr ""
394
+
395
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1586
396
+ msgid "Check this for excluding date based archive pages from being crawled. Useful for avoiding duplicate content."
397
+ msgstr ""
398
+
399
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1595
400
+ msgid "Use noindex for Tag Archives:"
401
+ msgstr ""
402
+
403
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1602
404
+ msgid "Check this for excluding tag pages from being crawled. Might help to avoid duplicate content."
405
+ msgstr ""
406
+
407
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1611
408
+ msgid "Use noindex for comments RSS feeds:"
409
+ msgstr ""
410
+
411
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1618
412
+ msgid "Check this for excluding comments RSS feeds from being indexed."
413
+ msgstr ""
414
+
415
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1627
416
+ msgid "Use noindex for all RSS feeds:"
417
+ msgstr ""
418
+
419
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1634
420
+ msgid "Check this for excluding all RSS feeds from being indexed."
421
+ msgstr ""
422
+
423
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1643
424
+ msgid "Use noindex for Search result pages on the site:"
425
+ msgstr ""
426
+
427
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1650
428
+ msgid "Check this for excluding all search result pages from being indexed."
429
+ msgstr ""
430
+
431
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1659
432
+ msgid "Use noindex for sub pages of home:"
433
+ msgstr ""
434
+
435
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1666
436
+ msgid "Check this for excluding all sub pages of home from being indexed."
437
+ msgstr ""
438
+
439
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1675
440
+ msgid "Use noindex for author archives:"
441
+ msgstr ""
442
+
443
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1682
444
+ msgid "Check this for excluding author archives from being indexed."
445
+ msgstr ""
446
+
447
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1691
448
+ msgid "Add noodp meta tag:"
449
+ msgstr ""
450
+
451
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1698
452
+ msgid "Check this for adding noopd meta tag."
453
+ msgstr ""
454
+
455
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1707
456
+ msgid "Add noydir meta tag:"
457
+ msgstr ""
458
+
459
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1714
460
+ msgid "Check this for adding noydir meta tag."
461
+ msgstr ""
462
+
463
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1723
464
+ msgid "nofollow category listings on pages:"
465
+ msgstr ""
466
+
467
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1730
468
+ msgid "Check this to nofollow category listings on pages."
469
+ msgstr ""
470
+
471
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1739
472
+ msgid "nofollow category listings on posts:"
473
+ msgstr ""
474
+
475
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1746
476
+ msgid "Check this to nofollow category listings on posts (Not recommended)"
477
+ msgstr ""
478
+
479
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1755
480
+ msgid "nofollow external links on front page:"
481
+ msgstr ""
482
+
483
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1762
484
+ msgid "Check this to nofollow external links on front page including home,category,author,tag and search pages."
485
+ msgstr ""
486
+
487
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1771
488
+ msgid "nofollow login and registration links:"
489
+ msgstr ""
490
+
491
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1778
492
+ msgid "Check this to nofollow login and registration links"
493
+ msgstr ""
494
+
495
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1787
496
+ msgid "nofollow links to tag pages:"
497
+ msgstr ""
498
+
499
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1794
500
+ msgid "Check this to nofollow links to tag pages"
501
+ msgstr ""
502
+
503
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1803
504
+ msgid "Autogenerate Descriptions:"
505
+ msgstr ""
506
+
507
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1810
508
+ msgid "Check this and your META descriptions will get autogenerated, if there's no excerpt."
509
+ msgstr ""
510
+
511
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1819
512
+ msgid "Additional Post Headers:"
513
+ msgstr ""
514
+
515
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1826
516
+ msgid "What you enter here will be copied verbatim to your header on post pages. You can enter whatever additional headers you want here, even references to stylesheets or google, yahoo, msn verification links."
517
+ msgstr ""
518
+
519
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1835
520
+ msgid "Additional Page Headers:"
521
+ msgstr ""
522
+
523
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1842
524
+ msgid "What you enter here will be copied verbatim to your header on pages. You can enter whatever additional headers you want here, even references to stylesheets or google, yahoo, msn verification links"
525
+ msgstr ""
526
+
527
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1851
528
+ msgid "Additional Home Headers:"
529
+ msgstr ""
530
+
531
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1858
532
+ msgid "What you enter here will be copied verbatim to your header on the home page. You can enter whatever additional headers you want here, even references to stylesheets or google, yahoo, msn verification links"
533
+ msgstr ""
534
+
535
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1867
536
+ msgid "Log important events:"
537
+ msgstr ""
538
+
539
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1874
540
+ msgid "Check this and Platinum SEO pack will create a log of important events (platinum_seo_pack.log) in its plugin directory which might help debugging it. Make sure this directory is writable."
541
+ msgstr ""
542
+
543
+ #: E:\wordpress-2.5\platinum-seo-pack(2)\wp-server\trunk/platinum_seo_pack.php:1883
544
+ msgid "Update Options"
545
+ msgstr ""
546
+
platinum_seo_pack-ru_RU.mo ADDED
Binary file
platinum_seo_pack.php ADDED
@@ -0,0 +1,1975 @@
1
+ <?php
2
+
3
+ /*
4
+ Plugin Name: Platinum SEO Pack
5
+ Plugin URI: http://techblissonline.com/platinum-seo-pack/
6
+ Description: Complete SEO solution for your Wordpress blog.
7
+ Version: 1.0
8
+ Author: Techblissonline Dot Com (previous authors:Uberdose, joost de valk)
9
+ Author URI: http://techblissonline.com/
10
+ */
11
+
12
+ /*
13
+ Copyright (C) 2008 techblissonline.com (platinumseopack AT techblissonline 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
17
+ the Free Software Foundation; either version 3 of the License, or
18
+ (at your option) any later version.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
27
+ */
28
+
29
+ class Platinum_SEO_Pack {
30
+
31
+ var $version = "1.0";
32
+
33
+ /** Max numbers of chars in auto-generated description */
34
+ var $max_description_length = 160;
35
+
36
+ /** Minimum number of chars an excerpt should be so that it can be used
37
+ * as description. Touch only if you know what you're doing
38
+ */
39
+ var $min_description_length = 1;
40
+
41
+ //var $ob_start_detected = false;
42
+
43
+ var $title_start = -1;
44
+
45
+ var $title_end = -1;
46
+
47
+ /** The title before rewriting */
48
+ var $orig_title = '';
49
+
50
+ /** Temp filename for the latest version. */
51
+ var $upgrade_filename = 'psptemp.zip';
52
+
53
+ /** Where to extract the downloaded newest version. */
54
+ var $upgrade_folder;
55
+
56
+ /** Any error in upgrading. */
57
+ var $upgrade_error;
58
+
59
+ /** Which zip to download in order to upgrade .*/
60
+ var $upgrade_url = 'http://downloads.wordpress.org/plugin/platinum-seo-pack.zip';
61
+
62
+ /** Filename of log file. */
63
+ var $log_file;
64
+
65
+ /** Flag whether there should be logging. */
66
+ var $do_log;
67
+
68
+ var $wp_version;
69
+
70
+ function Platinum_SEO_Pack() {
71
+ global $wp_version;
72
+ $this->wp_version = $wp_version;
73
+
74
+ $this->log_file = dirname(__FILE__) . '/platinum_seo_pack.log';
75
+ if (get_option('aiosp_do_log')) {
76
+ $this->do_log = true;
77
+ } else {
78
+ $this->do_log = false;
79
+ }
80
+
81
+ $this->upgrade_filename = dirname(__FILE__) . '/' . $this->upgrade_filename;
82
+ $this->upgrade_folder = dirname(__FILE__);
83
+ }
84
+
85
+ // Check if a given slug belongs to a post in the database
86
+ function does_post_exist( $slug ) {
87
+
88
+ global $wpdb;
89
+
90
+ if( $ID = $wpdb->get_var( 'SELECT ID FROM '.$wpdb->posts.' WHERE post_name = "'.$slug.'" AND post_status = "publish" ' ) ) {
91
+ return $ID;
92
+ }
93
+ else {
94
+ return false;
95
+ }
96
+
97
+ }
98
+
99
+ //301 redirect to new permalink
100
+ function redirect_to_new_location( $post_new_location ) {
101
+
102
+ //301 redirect to new location
103
+ header( "HTTP/1.1 301 Moved Permanently" );
104
+ header( "Location: $post_new_location" );
105
+ }
106
+
107
+
108
+ // When the post is not found, and is_404() == true, verify if the requested slug belongs to a post in the database.
109
+
110
+ function has_permalink_changed() {
111
+
112
+ if( is_404() ) {
113
+
114
+ $slug = basename( $_SERVER['REQUEST_URI'] );
115
+
116
+ if( $ID = $this->does_post_exist( $slug )) {
117
+
118
+ $this->redirect_to_new_location( get_permalink( $ID ));
119
+
120
+ }
121
+ }
122
+ }
123
+
124
+ function apply_seo_title() {
125
+ global $wp_query;
126
+ $post = $wp_query->get_queried_object();
127
+
128
+ if (is_feed()) {
129
+ return;
130
+ }
131
+
132
+ if (is_single() || is_page()) {
133
+ $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_disable', true)));
134
+ if ($psp_disable) {
135
+ return;
136
+ }
137
+ }
138
+
139
+ if (get_option('aiosp_rewrite_titles')) {
140
+ ob_start(array($this, 'callback_for_title_rewrite'));
141
+ }
142
+ }
143
+
144
+ function callback_for_title_rewrite($content) {
145
+
146
+ $content = $this->rewrite_title($content);
147
+ if (get_option('psp_nofollow_ext_links')){
148
+ $content = $this->nofollow_home_category($content);
149
+ }
150
+
151
+ return $content;
152
+ }
153
+
154
+ function init() {
155
+ if (function_exists('load_plugin_textdomain')) {
156
+ load_plugin_textdomain('platinum_seo_pack', 'wp-content/plugins/platinum-seo-pack');
157
+ }
158
+ }
159
+
160
+ function is_static_front_page() {
161
+ global $wp_query;
162
+ $post = $wp_query->get_queried_object();
163
+ return get_option('show_on_front') == 'page' && is_page() && $post->ID == get_option('page_on_front');
164
+ }
165
+
166
+ function is_static_posts_page() {
167
+ global $wp_query;
168
+ $post = $wp_query->get_queried_object();
169
+ return get_option('show_on_front') == 'page' && is_home() && $post->ID == get_option('page_for_posts');
170
+ }
171
+
172
+ function add_nofollow($matches) {
173
+ $origin = get_bloginfo('wpurl');
174
+ if ((strpos($matches[2],$origin)) === false && ( strpos($matches[1],'rel="nofollow"') === false ) && ( strpos($matches[3],'rel="nofollow"') === false ) ) {
175
+ $nofollow = ' rel="nofollow" ';
176
+ } else {
177
+ $nofollow = '';
178
+ }
179
+ return '<a href="' . $matches[2] . '"' . $nofollow . $matches[1] . $matches[3] . '>' . $matches[4] . '</a>';
180
+ }
181
+
182
+ function nofollow_home_category($output) {
183
+ // Loop through the content of each post and add a nofollow to links on home page or a category page.
184
+ if (is_home() || is_category() ||is_search() || (function_exists(is_tag) && is_tag()) || is_author()) {
185
+ $anchorPattern = '/<a (.*?)href="(.*?)"(.*?)>(.*?)<\/a>/i';
186
+ $output = preg_replace_callback($anchorPattern,array(get_class($this),'add_nofollow'),$output);
187
+ }
188
+ return $output;
189
+ }
190
+
191
+ function noindex_feed() {
192
+
193
+ echo '<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />'."\n";
194
+ }
195
+
196
+ function nofollow_link($output) {
197
+
198
+ return str_replace('<a ','<a rel="nofollow" ',$output);
199
+
200
+ }
201
+
202
+
203
+ function nofollow_category_listing($output) {
204
+
205
+ if ( (get_option('psp_nofollow_cat_posts') && (is_single() || is_search()) ) || (get_option('psp_nofollow_cat_pages') && (is_home() || is_page() || is_category() || is_tag()) ) ) {
206
+
207
+ $output = $this->nofollow_link($output);
208
+ return $output;
209
+
210
+ } else {
211
+
212
+ return $output;
213
+ }
214
+ }
215
+
216
+ function nofollow_taglinks($output) {
217
+
218
+ $output = str_replace('rel="tag"','rel="nofollow tag"',$output);
219
+ return $output;
220
+ }
221
+
222
+ function echo_to_blog_header() {
223
+ if (is_feed()) {
224
+ return;
225
+ }
226
+
227
+ global $wp_query;
228
+ $post = $wp_query->get_queried_object();
229
+ $meta_string = null;
230
+ $meta = null;
231
+
232
+ //echo("wp_head() " . wp_title('', false) . " is_home() => " . is_home() . ", is_page() => " . is_page() . ", is_single() => " . is_single() . ", is_static_front_page() => " . $this->is_static_front_page() . ", is_static_posts_page() => " . $this->is_static_posts_page());
233
+
234
+ if (is_single() || is_page()) {
235
+ $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_disable', true)));
236
+
237
+ if ($psp_disable) {
238
+ return;
239
+ }
240
+
241
+ //$pspmeta = $_POST["psp_robotsmeta"];
242
+ $pspmeta = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'robotsmeta', true)));
243
+
244
+ if (isset($pspmeta) && !empty($pspmeta)) {
245
+
246
+ $meta = $pspmeta;
247
+
248
+ } else {
249
+
250
+ $meta .= "index,follow";
251
+
252
+ }
253
+ $psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_noarchive', true)));
254
+ if ($psp_noarchive) {
255
+ if ($meta != "") {
256
+ $meta .= ",";
257
+ }
258
+
259
+ $meta .= "noarchive";
260
+
261
+ }
262
+
263
+ $psp_nosnippet = htmlspecialchars(stripcslashes(get_post_meta($post->ID, 'psp_nosnippet', true)));
264
+ if ($psp_nosnippet) {
265
+ if ($meta != "") {
266
+ $meta .= ",";
267
+ }
268
+
269
+ $meta .= "nosnippet";
270
+
271
+ }
272
+
273
+ } else if ( (is_author() && get_option('psp_author_archives_noindex')) || (is_category() && get_option('psp_category_noindex')) || (is_date() && get_option('psp_archive_noindex')) || (is_search() && get_option('psp_search_results_noindex')) || (function_exists(is_tag) && is_tag() && get_option('psp_tags_noindex')) ) {
274
+ $meta .= "noindex,follow";
275
+
276
+ } else if (is_home()) {
277
+ if (get_option('psp_sub_pages_home_noindex') && get_query_var('paged') > 1) {
278
+ $meta .= "noindex,follow";
279
+ } else {
280
+ $meta .= "index,follow";
281
+ }
282
+ }else if ((function_exists(is_tag) && is_tag() && !get_option('psp_tags_noindex'))|| (is_category() && !get_option('psp_category_noindex')) || (is_author() && !get_option('psp_author_archives_noindex')) || (is_date() && !get_option('psp_archive_noindex')) || (is_search() && !get_option('psp_search_results_noindex')) || (is_author() && !get_option('psp_author_archives_noindex')) ) {
283
+ if (get_option('psp_sub_pages_home_noindex') && get_query_var('paged') > 1) {
284
+ $meta .= "noindex,follow";
285
+ } else {
286
+ $meta .= "index,follow";
287
+ }
288
+ }
289
+ if (get_option('psp_noodp_metatag')) {
290
+
291
+ if ($meta != "") {
292
+ $meta .= ",";
293
+ }
294
+
295
+ $meta .= "noodp";
296
+ }
297
+
298
+ if (get_option('psp_noydir_metatag')) {
299
+
300
+ if ($meta != "") {
301
+ $meta .= ",";
302
+ }
303
+
304
+ $meta .= "noydir";
305
+
306
+ }
307
+
308
+ if ($meta != "" || isset($meta)) {
309
+
310
+ if ($meta_string != "" || isset($meta_string)) {
311
+
312
+ $meta_string .= "\n";
313
+ }
314
+
315
+ $meta_string .= '<meta name="robots" content="'.$meta.'" />';
316
+
317
+ }
318
+
319
+ echo "\n<!-- platinum seo pack $this->version ";
320
+ if ($this->ob_start_detected) {
321
+ echo "ob_start_detected ";
322
+ }
323
+ echo "[$this->title_start,$this->title_end] ";
324
+ echo "-->\n";
325
+
326
+ if ((is_home() && get_option('aiosp_home_keywords')) || $this->is_static_front_page()) {
327
+ $keywords = trim($this->internationalize(get_option('aiosp_home_keywords')));
328
+ } else {
329
+ $keywords = $this->get_all_keywords();
330
+ }
331
+ if (is_single() || is_page()) {
332
+ if ($this->is_static_front_page()) {
333
+ $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
334
+ } else {
335
+ $description = $this->get_post_description($post);
336
+ }
337
+ } else if (is_home()) {
338
+ $description = trim(stripcslashes($this->internationalize(get_option('aiosp_home_description'))));
339
+ } else if (is_category()) {
340
+ $description = $this->internationalize(category_description());
341
+ }
342
+
343
+ if (isset($description) && (strlen($description) > $this->min_description_length) && !(is_home() && is_paged())) {
344
+ $description = trim(strip_tags($description));
345
+ $description = str_replace('"', '', $description);
346
+
347
+ // replace newlines on mac / windows?
348
+ $description = str_replace("\r\n", ' ', $description);
349
+
350
+ // maybe linux uses this alone
351
+ $description = str_replace("\n", ' ', $description);
352
+
353
+ if (isset($meta_string)) {
354
+ $meta_string .= "\n";
355
+ } else {
356
+ $meta_string = '';
357
+ }
358
+
359
+ // description format
360
+ $description_format = get_option('aiosp_description_format');
361
+ if (!isset($description_format) || empty($description_format)) {
362
+ $description_format = "%description%";
363
+ }
364
+ $description = str_replace('%description%', $description, $description_format);
365
+ $description = str_replace('%blog_title%', get_bloginfo('name'), $description);
366
+ $description = str_replace('%blog_description%', get_bloginfo('description'), $description);
367
+ $description = str_replace('%wp_title%', $this->get_original_title(), $description);
368
+
369
+ $meta_string .= sprintf("<meta name=\"description\" content=\"%s\" />", $description);
370
+ }
371
+
372
+ if (isset ($keywords) && !empty($keywords) && !(is_home() && is_paged())) {
373
+ if (isset($meta_string)) {
374
+ $meta_string .= "\n";
375
+ }
376
+ $meta_string .= sprintf("<meta name=\"keywords\" content=\"%s\" />", $keywords);
377
+ }
378
+
379
+ $page_meta = stripcslashes(get_option('aiosp_page_meta_tags'));
380
+ $post_meta = stripcslashes(get_option('aiosp_post_meta_tags'));
381
+ $home_meta = stripcslashes(get_option('aiosp_home_meta_tags'));
382
+ if (is_page() && isset($page_meta) && !empty($page_meta)) {
383
+ if (isset($meta_string)) {
384
+ $meta_string .= "\n";
385
+ }
386
+ echo "\n$page_meta";
387
+ }
388
+
389
+ if (is_single() && isset($post_meta) && !empty($post_meta)) {
390
+ if (isset($meta_string)) {
391
+ $meta_string .= "\n";
392
+ }
393
+ $meta_string .= "$post_meta";
394
+ }
395
+
396
+ if (is_home() && !empty($home_meta)) {
397
+ if (isset($meta_string)) {
398
+ $meta_string .= "\n";
399
+ }
400
+ $meta_string .= "$home_meta";
401
+ }
402
+
403
+ if ($meta_string != null) {
404
+ echo "$meta_string\n";
405
+ }
406
+
407
+ echo "<!-- /platinum one seo pack -->\n";
408
+ }
409
+
410
+ function get_post_description($post) {
411
+ $description = trim(stripcslashes($this->internationalize(get_post_meta($post->ID, "description", true))));
412
+ if (!$description) {
413
+ $description = $this->trim_excerpt_without_filters_full_length($this->internationalize($post->post_excerpt));
414
+ if (!$description && get_option("aiosp_generate_descriptions")) {
415
+ $description = $this->trim_excerpt_without_filters($this->internationalize($post->post_content));
416
+ }
417
+ }
418
+
419
+ // "internal whitespace trim"
420
+ $description = preg_replace("/\s\s+/", " ", $description);
421
+
422
+ return $description;
423
+ }
424
+
425
+ function replace_title($content, $title) {
426
+ $title = trim(strip_tags($title));
427
+
428
+ $title_tag_start = "<title>";
429
+ $title_tag_end = "</title>";
430
+ $len_start = strlen($title_tag_start);
431
+ $len_end = strlen($title_tag_end);
432
+ $title = stripcslashes(trim($title));
433
+ $start = strpos($content, $title_tag_start);
434
+ $end = strpos($content, $title_tag_end);
435
+
436
+ $this->title_start = $start;
437
+ $this->title_end = $end;
438
+ $this->orig_title = $title;
439
+
440
+ if ($start && $end) {
441
+ $header = substr($content, 0, $start + $len_start) . $title . substr($content, $end);
442
+ } else {
443
+ // this breaks some sitemap plugins (like wpg2)
444
+ //$header = $content . "<title>$title</title>";
445
+
446
+ $header = $content;
447
+ }
448
+
449
+ return $header;
450
+ }
451
+
452
+ function internationalize($in) {
453
+ if (function_exists('langswitch_filter_langs_with_message')) {
454
+ $in = langswitch_filter_langs_with_message($in);
455
+ }
456
+ if (function_exists('polyglot_filter')) {
457
+ $in = polyglot_filter($in);
458
+ }
459
+ if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
460
+ $in = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($in);
461
+ }
462
+ $in = apply_filters('localization', $in);
463
+ return $in;
464
+ }
465
+
466
+ /** @return The original title as delivered by WP (well, in most cases) */
467
+ function get_original_title() {
468
+ global $wp_query;
469
+ if (!$wp_query) {
470
+ return null;
471
+ }
472
+
473
+ $post = $wp_query->get_queried_object();
474
+
475
+ // the_search_query() is not suitable, it cannot just return
476
+ global $s;
477
+
478
+ $title = null;
479
+
480
+ if (is_home()) {
481
+ $title = get_option('blogname');
482
+ } else if (is_single()) {
483
+ $title = $this->internationalize(wp_title('', false));
484
+ } else if (is_search() && isset($s) && !empty($s)) {
485
+ if (function_exists('attribute_escape')) {
486
+ $search = attribute_escape(stripcslashes($s));
487
+ } else {
488
+ $search = wp_specialchars(stripcslashes($s), true);
489
+ }
490
+ $search = $this->capitalize($search);
491
+ $title = $search;
492
+ } else if (is_category() && !is_feed()) {
493
+ //$category_description = $this->internationalize(category_description());
494
+ $category_name = ucwords($this->internationalize(single_cat_title('', false)));
495
+ $title = $category_name;
496
+ } else if (is_page()) {
497
+ $title = $this->internationalize(wp_title('', false));
498
+ } else if (function_exists('is_tag') && is_tag()) {
499
+ global $utw;
500
+ if ($utw) {
501
+ $tags = $utw->GetCurrentTagSet();
502
+ $tag = $tags[0]->tag;
503
+ $tag = str_replace('-', ' ', $tag);
504
+ } else {
505
+ // wordpress > 2.3
506
+ $tag = $this->internationalize(wp_title('', false));
507
+ }
508
+ if ($tag) {
509
+ $title = $tag;
510
+ }
511
+ } else if (is_archive()) {
512
+ $title = $this->internationalize(wp_title('', false));
513
+ } else if (is_404()) {
514
+ $title_format = get_option('aiosp_404_title_format');
515
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
516
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
517
+ $new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
518
+ $new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
519
+ $title = $new_title;
520
+ }
521
+
522
+ return trim($title);
523
+ }
524
+
525
+ function paged_title($title) {
526
+ // the page number if paged
527
+ global $paged;
528
+
529
+ // simple tagging support
530
+ global $STagging;
531
+
532
+ if (is_paged() || (isset($STagging) && $STagging->is_tag_view() && $paged)) {
533
+ $part = $this->internationalize(get_option('aiosp_paged_format'));
534
+ if (isset($part) || !empty($part)) {
535
+ $part = " " . trim($part);
536
+ $part = str_replace('%page%', $paged, $part);
537
+ $this->log("paged_title() [$title] [$part]");
538
+ $title .= $part;
539
+ }
540
+ }
541
+ return $title;
542
+ }
543
+
544
+ function rewrite_title($header) {
545
+ global $wp_query;
546
+ if (!$wp_query) {
547
+ $header .= "<!-- no wp_query found! -->\n";
548
+ return $header;
549
+ }
550
+
551
+ $post = $wp_query->get_queried_object();
552
+
553
+ // the_search_query() is not suitable, it cannot just return
554
+ global $s;
555
+
556
+ // simple tagging support
557
+ global $STagging;
558
+
559
+ if (is_home()) {
560
+ $title = $this->internationalize(get_option('aiosp_home_title'));
561
+ if (empty($title)) {
562
+ $title = $this->internationalize(get_option('blogname'));
563
+ }
564
+ $title = $this->paged_title($title);
565
+ $header = $this->replace_title($header, $title);
566
+ } else if (is_single()) {
567
+ // we're not in the loop :(
568
+ $authordata = get_userdata($post->post_author);
569
+ $categories = get_the_category($post->ID);
570
+ $category = '';
571
+ if (count($categories) > 0) {
572
+ $category = $categories[0]->cat_name;
573
+ }
574
+ $title = $this->internationalize(get_post_meta($post->ID, "title", true));
575
+ if (!$title) {
576
+ $title = $this->internationalize(get_post_meta($post->ID, "title_tag", true));
577
+ if (!$title) {
578
+ $title = $this->internationalize(wp_title('', false));
579
+ }
580
+ }
581
+ $title_format = get_option('aiosp_post_title_format');
582
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
583
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
584
+ $new_title = str_replace('%post_title%', $title, $new_title);
585
+ $new_title = str_replace('%category%', $category, $new_title);
586
+ $new_title = str_replace('%category_title%', $category, $new_title);
587
+ $new_title = str_replace('%post_author_login%', $authordata->user_login, $new_title);
588
+ $new_title = str_replace('%post_author_nicename%', $authordata->user_nicename, $new_title);
589
+ $new_title = str_replace('%post_author_firstname%', ucwords($authordata->first_name), $new_title);
590
+ $new_title = str_replace('%post_author_lastname%', ucwords($authordata->last_name), $new_title);
591
+ $title = $new_title;
592
+ $title = trim($title);
593
+ $header = $this->replace_title($header, $title);
594
+ } else if (is_search() && isset($s) && !empty($s)) {
595
+ if (function_exists('attribute_escape')) {
596
+ $search = attribute_escape(stripcslashes($s));
597
+ } else {
598
+ $search = wp_specialchars(stripcslashes($s), true);
599
+ }
600
+ $search = $this->capitalize($search);
601
+ $title_format = get_option('aiosp_search_title_format');
602
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
603
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
604
+ $title = str_replace('%search%', $search, $title);
605
+ $header = $this->replace_title($header, $title);
606
+ } else if (is_category() && !is_feed()) {
607
+ $category_description = $this->internationalize(category_description());
608
+ $category_name = ucwords($this->internationalize(single_cat_title('', false)));
609
+ $title_format = get_option('aiosp_category_title_format');
610
+ $title = str_replace('%category_title%', $category_name, $title_format);
611
+ $title = str_replace('%category_description%', $category_description, $title);
612
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title);
613
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
614
+ $title = $this->paged_title($title);
615
+ $header = $this->replace_title($header, $title);
616
+ } else if (is_page()) {
617
+ // we're not in the loop :(
618
+ $authordata = get_userdata($post->post_author);
619
+ if ($this->is_static_front_page()) {
620
+ if ($this->internationalize(get_option('aiosp_home_title'))) {
621
+ $header = $this->replace_title($header, $this->internationalize(get_option('aiosp_home_title')));
622
+ }
623
+ } else {
624
+ $title = $this->internationalize(get_post_meta($post->ID, "title", true));
625
+ if (!$title) {
626
+ $title = $this->internationalize(wp_title('', false));
627
+ }
628
+ $title_format = get_option('aiosp_page_title_format');
629
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
630
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
631
+ $new_title = str_replace('%page_title%', $title, $new_title);
632
+ $new_title = str_replace('%page_author_login%', $authordata->user_login, $new_title);
633
+ $new_title = str_replace('%page_author_nicename%', $authordata->user_nicename, $new_title);
634
+ $new_title = str_replace('%page_author_firstname%', ucwords($authordata->first_name), $new_title);
635
+ $new_title = str_replace('%page_author_lastname%', ucwords($authordata->last_name), $new_title);
636
+ $title = trim($new_title);
637
+ $header = $this->replace_title($header, $title);
638
+ }
639
+ } else if (function_exists('is_tag') && is_tag()) {
640
+ global $utw;
641
+ if ($utw) {
642
+ $tags = $utw->GetCurrentTagSet();
643
+ $tag = $tags[0]->tag;
644
+ $tag = str_replace('-', ' ', $tag);
645
+ } else {
646
+ // wordpress > 2.3
647
+ $tag = $this->internationalize(wp_title('', false));
648
+ }
649
+ if ($tag) {
650
+ $tag = $this->capitalize($tag);
651
+ $title_format = get_option('aiosp_tag_title_format');
652
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
653
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
654
+ $title = str_replace('%tag%', $tag, $title);
655
+ $title = $this->paged_title($title);
656
+ $header = $this->replace_title($header, $title);
657
+ }
658
+ } else if (isset($STagging) && $STagging->is_tag_view()) { // simple tagging support
659
+ $tag = $STagging->search_tag;
660
+ if ($tag) {
661
+ $tag = $this->capitalize($tag);
662
+ $title_format = get_option('aiosp_tag_title_format');
663
+ $title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
664
+ $title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $title);
665
+ $title = str_replace('%tag%', $tag, $title);
666
+ $title = $this->paged_title($title);
667
+ $header = $this->replace_title($header, $title);
668
+ }
669
+ } else if (is_archive()) {
670
+ $date = $this->internationalize(wp_title('', false));
671
+ $title_format = get_option('aiosp_archive_title_format');
672
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
673
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
674
+ $new_title = str_replace('%date%', $date, $new_title);
675
+ $title = trim($new_title);
676
+ $title = $this->paged_title($title);
677
+ $header = $this->replace_title($header, $title);
678
+ } else if (is_404()) {
679
+ $title_format = get_option('aiosp_404_title_format');
680
+ $new_title = str_replace('%blog_title%', $this->internationalize(get_bloginfo('name')), $title_format);
681
+ $new_title = str_replace('%blog_description%', $this->internationalize(get_bloginfo('description')), $new_title);
682
+ $new_title = str_replace('%request_url%', $_SERVER['REQUEST_URI'], $new_title);
683
+ $new_title = str_replace('%request_words%', $this->request_as_words($_SERVER['REQUEST_URI']), $new_title);
684
+ $header = $this->replace_title($header, $new_title);
685
+ }
686
+
687
+ return $header;
688
+
689
+ }
690
+
691
+ /**
692
+ * @return User-readable nice words for a given request.
693
+ */
694
+ function request_as_words($request) {
695
+ $request = htmlspecialchars($request);
696
+ $request = str_replace('.html', ' ', $request);
697
+ $request = str_replace('.htm', ' ', $request);
698
+ $request = str_replace('.', ' ', $request);
699
+ $request = str_replace('/', ' ', $request);
700
+ $request_a = explode(' ', $request);
701
+ $request_new = array();
702
+ foreach ($request_a as $token) {
703
+ $request_new[] = ucwords(trim($token));
704
+ }
705
+ $request = implode(' ', $request_new);
706
+ return $request;
707
+ }
708
+
709
+ function capitalize($s) {
710
+ $s = trim($s);
711
+ $tokens = explode(' ', $s);
712
+ while (list($key, $val) = each($tokens)) {
713
+ $tokens[$key] = trim($tokens[$key]);
714
+ $tokens[$key] = strtoupper(substr($tokens[$key], 0, 1)) . substr($tokens[$key], 1);
715
+ }
716
+ $s = implode(' ', $tokens);
717
+ return $s;
718
+ }
719
+
720
+ function trim_excerpt_without_filters($text) {
721
+ $text = str_replace(']]>', ']]&gt;', $text);
722
+ $text = strip_tags($text);
723
+ $max = $this->max_description_length;
724
+
725
+ if ($max < strlen($text)) {
726
+ while($text[$max] != ' ' && $max > $this->min_description_length) {
727
+ $max--;
728
+ }
729
+ }
730
+ $text = substr($text, 0, $max);
731
+ return trim(stripcslashes($text));
732
+ }
733
+
734
+ function trim_excerpt_without_filters_full_length($text) {
735
+ $text = str_replace(']]>', ']]&gt;', $text);
736
+ $text = strip_tags($text);
737
+ return trim(stripcslashes($text));
738
+ }
739
+
740
+ /**
741
+ * @return comma-separated list of unique keywords
742
+ */
743
+ function get_all_keywords() {
744
+ global $posts;
745
+
746
+ if (is_404()) {
747
+ return null;
748
+ }
749
+
750
+ // if we are on synthetic pages
751
+ if (!is_home() && !is_page() && !is_single() &&!$this->is_static_front_page() && !$this->is_static_posts_page()) {
752
+ return null;
753
+ }
754
+
755
+ $keywords = array();
756
+ if (is_array($posts)) {
757
+ foreach ($posts as $post) {
758
+ if ($post) {
759
+
760
+ // custom field keywords
761
+ $keywords_a = $keywords_i = null;
762
+ $description_a = $description_i = null;
763
+ $id = $post->ID;
764
+ $keywords_i = stripcslashes($this->internationalize(get_post_meta($post->ID, "keywords", true)));
765
+ $keywords_i = str_replace('"', '', $keywords_i);
766
+ if (isset($keywords_i) && !empty($keywords_i)) {
767
+ $traverse = explode(',', $keywords_i);
768
+ foreach ($traverse as $keyword) {
769
+ $keywords[] = $keyword;
770
+ }
771
+ }
772
+
773
+ // WP 2.3 tags
774
+ if (function_exists('get_the_tags')) {
775
+ $tags = get_the_tags($post->ID);
776
+ if ($tags && is_array($tags)) {
777
+ foreach ($tags as $tag) {
778
+ $keywords[] = $this->internationalize($tag->name);
779
+ }
780
+ }
781
+ }
782
+
783
+ // Ultimate Tag Warrior integration
784
+ global $utw;
785
+ if ($utw) {
786
+ $tags = $utw->GetTagsForPost($post);
787
+ if (is_array($tags)) {
788
+ foreach ($tags as $tag) {
789
+ $tag = $tag->tag;
790
+ $tag = str_replace('_',' ', $tag);
791
+ $tag = str_replace('-',' ',$tag);
792
+ $tag = stripcslashes($tag);
793
+ $keywords[] = $tag;
794
+ }
795
+ }
796
+ }
797
+
798
+ // autometa
799
+ $autometa = stripcslashes(get_post_meta($post->ID, "autometa", true));
800
+ if (isset($autometa) && !empty($autometa)) {
801
+ $autometa_array = explode(' ', $autometa);
802
+ foreach ($autometa_array as $e) {
803
+ $keywords[] = $e;
804
+ }
805
+ }
806
+
807
+ if (get_option('aiosp_use_categories') && !is_page()) {
808
+ $categories = get_the_category($post->ID);
809
+ foreach ($categories as $category) {
810
+ $keywords[] = $this->internationalize($category->cat_name);
811
+ }
812
+ }
813
+
814
+ }
815
+ }
816
+ }
817
+
818
+ return $this->get_unique_keywords($keywords);
819
+ }
820
+
821
+ function get_meta_keywords() {
822
+ global $posts;
823
+
824
+ $keywords = array();
825
+ if (is_array($posts)) {
826
+ foreach ($posts as $post) {
827
+ if ($post) {
828
+ // custom field keywords
829
+ $keywords_a = $keywords_i = null;
830
+ $description_a = $description_i = null;
831
+ $id = $post->ID;
832
+ $keywords_i = stripcslashes(get_post_meta($post->ID, "keywords", true));
833
+ $keywords_i = str_replace('"', '', $keywords_i);
834
+ if (isset($keywords_i) && !empty($keywords_i)) {
835
+ $keywords[] = $keywords_i;
836
+ }
837
+ }
838
+ }
839
+ }
840
+
841
+ return $this->get_unique_keywords($keywords);
842
+ }
843
+
844
+ function get_unique_keywords($keywords) {
845
+ $small_keywords = array();
846
+ foreach ($keywords as $word) {
847
+ $small_keywords[] = strtolower($word);
848
+ }
849
+ $keywords_ar = array_unique($small_keywords);
850
+ return implode(',', $keywords_ar);
851
+ }
852
+
853
+ function get_url($url) {
854
+ if (function_exists('file_get_contents')) {
855
+ $file = file_get_contents($url);
856
+ } else {
857
+ $curl = curl_init($url);
858
+ curl_setopt($curl, CURLOPT_HEADER, 0);
859
+ curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
860
+ $file = curl_exec($curl);
861
+ curl_close($curl);
862
+ }
863
+ return $file;
864
+ }
865
+
866
+ function log($message) {
867
+ if ($this->do_log) {
868
+ error_log(date('Y-m-d H:i:s') . " " . $message . "\n", 3, $this->log_file);
869
+ }
870
+ }
871
+
872
+ function download_newest_version() {
873
+ $success = true;
874
+ $file_content = $this->get_url($this->upgrade_url);
875
+ if ($file_content === false) {
876
+ $this->upgrade_error = sprintf(__("Could not download distribution (%s)"), $this->upgrade_url);
877
+ $success = false;
878
+ } else if (strlen($file_content) < 100) {
879
+ $this->upgrade_error = sprintf(__("Could not download distribution (%s): %s"), $this->upgrade_url, $file_content);
880
+ $success = false;
881
+ } else {
882
+ $this->log(sprintf("filesize of download ZIP: %d", strlen($file_content)));
883
+ $fh = @fopen($this->upgrade_filename, 'w');
884
+ $this->log("fh is $fh");
885
+ if (!$fh) {
886
+ $this->upgrade_error = sprintf(__("Could not open %s for writing"), $this->upgrade_filename);
887
+ $this->upgrade_error .= "<br />";
888
+ $this->upgrade_error .= sprintf(__("Please make sure %s is writable"), $this->upgrade_folder);
889
+ $success = false;
890
+ } else {
891
+ $bytes_written = @fwrite($fh, $file_content);
892
+ $this->log("wrote $bytes_written bytes");
893
+ if (!$bytes_written) {
894
+ $this->upgrade_error = sprintf(__("Could not write to %s"), $this->upgrade_filename);
895
+ $success = false;
896
+ }
897
+ }
898
+ if ($success) {
899
+ fclose($fh);
900
+ }
901
+ }
902
+ return $success;
903
+ }
904
+
905
+ function install_newest_version() {
906
+ $success = $this->download_newest_version();
907
+ if ($success) {
908
+ $success = $this->extract_plugin();
909
+ unlink($this->upgrade_filename);
910
+ }
911
+ return $success;
912
+ }
913
+
914
+ function extract_plugin() {
915
+ if (!class_exists('PclZip')) {
916
+ require_once ('pclzip.lib.php');
917
+ }
918
+ $archive = new PclZip($this->upgrade_filename);
919
+ $files = $archive->extract(PCLZIP_OPT_STOP_ON_ERROR, PCLZIP_OPT_REPLACE_NEWER, PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_OPT_PATH, $this->upgrade_folder);
920
+ $this->log("files is $files");
921
+ if (is_array($files)) {
922
+ $num_extracted = sizeof($files);
923
+ $this->log("extracted $num_extracted files to $this->upgrade_folder");
924
+ $this->log(print_r($files, true));
925
+ return true;
926
+ } else {
927
+ $this->upgrade_error = $archive->errorInfo();
928
+ return false;
929
+ }
930
+ }
931
+
932
+ /** crude approximization of whether current user is an admin */
933
+ function is_admin() {
934
+ return current_user_can('level_8');
935
+ }
936
+
937
+ function is_directory_writable($directory) {
938
+ $filename = $directory . '/' . 'tmp_file_' . time();
939
+ $fh = @fopen($filename, 'w');
940
+ if (!$fh) {
941
+ return false;
942
+ }
943
+
944
+ $written = fwrite($fh, "test");
945
+ fclose($fh);
946
+ unlink($filename);
947
+ if ($written) {
948
+ return true;
949
+ } else {
950
+ return false;
951
+ }
952
+ }
953
+
954
+ function is_upgrade_directory_writable() {
955
+ //return $this->is_directory_writable($this->upgrade_folder);
956
+ // let's assume it is
957
+ return true;
958
+ }
959
+
960
+ function add_meta_index_tags($id) {
961
+ $awmp_edit = $_POST["psp_edit"];
962
+ if (isset($awmp_edit) && !empty($awmp_edit)) {
963
+ $keywords = $_POST["psp_keywords"];
964
+ $description = $_POST["psp_description"];
965
+ $title = $_POST["psp_title"];
966
+ $pspmeta = $_POST["psp_robotsmeta"];
967
+ $psp_disable = $_POST["psp_disable"];
968
+ $psp_noarchive = $_POST["psp_noarchive"];
969
+ $psp_nosnippet = $_POST["psp_nosnippet"];
970
+
971
+ delete_post_meta($id, 'keywords');
972
+ delete_post_meta($id, 'description');
973
+ delete_post_meta($id, 'title');
974
+ if ($this->is_admin()) {
975
+ delete_post_meta($id, 'psp_disable');
976
+ delete_post_meta($id, 'robotsmeta');
977
+ delete_post_meta($id, 'psp_noarchive');
978
+ delete_post_meta($id, 'psp_nosnippet');
979
+ }
980
+
981
+ if (isset($keywords) && !empty($keywords)) {
982
+ add_post_meta($id, 'keywords', $keywords);
983
+ }
984
+ if (isset($description) && !empty($description)) {
985
+ add_post_meta($id, 'description', $description);
986
+ }
987
+ if (isset($title) && !empty($title)) {
988
+ add_post_meta($id, 'title', $title);
989
+ }
990
+ if ($this->is_admin()) {
991
+
992
+ if (isset($psp_disable) && !empty($psp_disable)) {
993
+
994
+ add_post_meta($id, 'psp_disable', $psp_disable);
995
+ }
996
+ if (isset($pspmeta) && !empty($pspmeta)) {
997
+
998
+ add_post_meta($id, 'robotsmeta', $pspmeta);
999
+ }
1000
+ if (isset($psp_noarchive) && !empty($psp_noarchive)) {
1001
+
1002
+ add_post_meta($id, 'psp_noarchive', $psp_noarchive);
1003
+ }
1004
+ if (isset($psp_nosnippet) && !empty($psp_nosnippet)) {
1005
+
1006
+ add_post_meta($id, 'psp_nosnippet', $psp_nosnippet);
1007
+ }
1008
+ }
1009
+ }
1010
+ }
1011
+
1012
+ function psp_form_to_add_metatags() {
1013
+ global $post;
1014
+ $post_id = $post;
1015
+ if (is_object($post_id)) {
1016
+ $post_id = $post_id->ID;
1017
+ }
1018
+
1019
+ $robotsmeta = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'robotsmeta', true)));
1020
+ if (isset($robotsmeta) && empty($robotsmeta)) {
1021
+ $robotsmeta = "index,follow";
1022
+ }
1023
+
1024
+ $keywords = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'keywords', true)));
1025
+ $title = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'title', true)));
1026
+ $description = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'description', true)));
1027
+ $psp_meta = $robotsmeta;
1028
+ $psp_disable = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_disable', true)));
1029
+ $psp_noarchive = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_noarchive', true)));
1030
+ $psp_nosnippet = htmlspecialchars(stripcslashes(get_post_meta($post_id, 'psp_nosnippet', true)));
1031
+ ?>
1032
+ <SCRIPT LANGUAGE="JavaScript">
1033
+ <!-- Begin
1034
+ function countChars(field,cntfield) {
1035
+ cntfield.value = field.value.length;
1036
+ }
1037
+ // End -->
1038
+ </script>
1039
+
1040
+ <?php if (substr($this->wp_version, 0, 3) == '2.5') { ?>
1041
+ <div id="postpsp" class="postbox closed">
1042
+ <h3><?php _e('Platinum SEO Pack', 'platinum_seo_pack') ?></h3>
1043
+ <div class="inside">
1044
+ <div id="postpsp">
1045
+ <?php } else { ?>
1046
+ <div class="dbx-b-ox-wrapper">
1047
+ <fieldset id="seodiv" class="dbx-box">
1048
+ <div class="dbx-h-andle-wrapper">
1049
+ <h3 class="dbx-handle"><?php _e('Platinum SEO Pack', 'platinum_seo_pack') ?></h3>
1050
+ </div>
1051
+ <div class="dbx-c-ontent-wrapper">
1052
+ <div class="dbx-content">
1053
+ <?php } ?>
1054
+
1055
+ <a target="__blank" href="http://techblissonline.com/platinum-seo-pack/"><?php _e('Click here for Support', 'platinum_seo_pack') ?></a>
1056
+ <input value="psp_edit" type="hidden" name="psp_edit" />
1057
+ <table style="margin-bottom:40px">
1058
+ <tr>
1059
+ <th style="text-align:left;" colspan="2">
1060
+ </th>
1061
+ </tr>
1062
+ <tr>
1063
+ <th scope="row" style="text-align:right;"><?php _e('Title:', 'platinum_seo_pack') ?></th>
1064
+ <td><input value="<?php echo $title ?>" type="text" name="psp_title" size="62"/></td>
1065
+ </tr>
1066
+ <tr>
1067
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'platinum_seo_pack') ?></th>
1068
+ <td><textarea name="psp_description" rows="1" cols="60"
1069
+ onKeyDown="countChars(document.post.psp_description,document.post.length1)"
1070
+ onKeyUp="countChars(document.post.psp_description,document.post.length1)"><?php echo $description ?></textarea><br />
1071
+ <input readonly type="text" name="length1" size="3" maxlength="3" value="<?php echo strlen($description);?>" />
1072
+ <?php _e(' characters. Most search engines use a maximum of 160 chars for the description.', 'platinum_seo_pack') ?>
1073
+ </td>
1074
+ </tr>
1075
+ <tr>
1076
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'platinum_seo_pack') ?></th>
1077
+ <td><input value="<?php echo $keywords ?>" type="text" name="psp_keywords" size="62"/></td>
1078
+ </tr>
1079
+
1080
+ <?php if ( current_user_can('edit_posts') ) { ?>
1081
+ <tr>
1082
+ <th scope="row" style="text-align:right;"><?php _e('PSP Meta Index and Nofollow Tags:', 'platinum_seo_pack') ?></th>
1083
+ <td><label for="meta_robots_index_follow" class="selectit"><input id="meta_robots_index_follow" name="psp_robotsmeta" type="radio" value="index,follow" <?php if ($psp_meta == "index,follow") echo 'checked="1"'?>/>index, follow</label>&nbsp;&nbsp;
1084
+ <label for="meta_robots_index_nofollow" class="selectit"><input id="meta_robots_index_nofollow" name="psp_robotsmeta" type="radio" value="index,nofollow" <?php if ($psp_meta == "index,nofollow") echo 'checked="1"'?>/>index, nofollow</label>&nbsp;&nbsp;
1085
+ <label for="meta_robots_noindex_follow" class="selectit"><input id="meta_robots_noindex_follow" name="psp_robotsmeta" type="radio" value="noindex,follow" <?php if ($psp_meta == "noindex,follow") echo 'checked="1"'?>/>noindex, follow</label>&nbsp;&nbsp;
1086
+ <label for="meta_robots_noindex_nofollow" class="selectit"><input id="meta_robots_noindex_nofollow" name="psp_robotsmeta" type="radio" value="noindex,nofollow" <?php if ($psp_meta == "noindex,nofollow") echo 'checked="1"'?>/>noindex, nofollow</label></td>
1087
+ </tr>
1088
+ <?php } ?>
1089
+
1090
+ <?php if ($this->is_admin()) { ?>
1091
+ <tr>
1092
+ <th scope="row" style="text-align:right; vertical-align:top;">
1093
+ <?php _e('NOARCHIVE this page/post:', 'platinum_seo_pack')?>
1094
+ </th>
1095
+ <td>
1096
+ <input type="checkbox" name="psp_noarchive" <?php if ($psp_noarchive) echo "checked=\"1\""; ?>/>
1097
+ </td>
1098
+ </tr>
1099
+ <tr>
1100
+ <th scope="row" style="text-align:right; vertical-align:top;">
1101
+ <?php _e('NOSNIPPET of this page/post:', 'platinum_seo_pack')?>
1102
+ </th>
1103
+ <td>
1104
+ <input type="checkbox" name="psp_nosnippet" <?php if ($psp_nosnippet) echo "checked=\"1\""; ?>/>
1105
+ </td>
1106
+ </tr>
1107
+ <tr>
1108
+ <th scope="row" style="text-align:right; vertical-align:top;">
1109
+ <?php _e('Disable on this page/post:', 'platinum_seo_pack')?>
1110
+ </th>
1111
+ <td>
1112
+ <input type="checkbox" name="psp_disable" <?php if ($psp_disable) echo "checked=\"1\""; ?>/>
1113
+ </td>
1114
+ </tr>
1115
+ <?php } ?>
1116
+
1117
+ </table>
1118
+
1119
+ <?php if (substr($this->wp_version, 0, 3) == '2.5') { ?>
1120
+ </div></div></div>
1121
+ <?php } else { ?>
1122
+ </div>
1123
+ </fieldset>
1124
+ </div>
1125
+ <?php } ?>
1126
+
1127
+ <?php
1128
+ }
1129
+
1130
+ function admin_menu() {
1131
+ $file = __FILE__;
1132
+
1133
+ // hack for 1.5
1134
+ if (substr($this->wp_version, 0, 3) == '1.5') {
1135
+ $file = 'platinum-seo-pack/platinum_seo_pack.php';
1136
+ }
1137
+ //add_management_page(__('Platinum SEO Title', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'management_panel'));
1138
+ add_submenu_page('options-general.php', __('Platinum SEO', 'platinum_seo_pack'), __('Platinum SEO', 'platinum_seo_pack'), 10, $file, array($this, 'options_panel'));
1139
+ }
1140
+
1141
+ function management_panel() {
1142
+ $message = null;
1143
+ $base_url = "edit.php?page=" . __FILE__;
1144
+ //echo($base_url);
1145
+ $type = $_REQUEST['type'];