Google Doc Embedder - Version 2.5.8

Version Description

  • Added: (E) Right-click menu disabled on secure documents
  • Fixed: Support tab service errors
  • Changed: Czech translation updated (thanks Jirka)
Download this release

Release Info

Developer k3davis
Plugin Icon wp plugin Google Doc Embedder
Version 2.5.8
Comparing to
See all releases

Code changes from version 2.5.7 to 2.5.8

functions.php CHANGED
@@ -104,6 +104,7 @@ function gde_validate_file( $file = NULL, $force ) {
104
  $nofile = __('File not specified, check shortcode syntax', 'gde');
105
  $badlink = __('Requested URL is invalid', 'gde');
106
  $badtype = __('Unsupported File Type', 'gde') . " (%e)";
 
107
  $notfound = __('Error retrieving file - if necessary turn off error checking', 'gde') . " (%e)";
108
 
109
  if ( ! $file ) {
@@ -139,6 +140,10 @@ function gde_validate_file( $file = NULL, $force ) {
139
  $fn = basename( $file );
140
  $fnp = gde_split_filename( $fn );
141
  $type = $fnp[1];
 
 
 
 
142
  $badtype = str_replace( "%e", $type, $badtype );
143
 
144
  return $badtype;
104
  $nofile = __('File not specified, check shortcode syntax', 'gde');
105
  $badlink = __('Requested URL is invalid', 'gde');
106
  $badtype = __('Unsupported File Type', 'gde') . " (%e)";
107
+ $unktype = __('Unable to determine file type from URL', 'gde');
108
  $notfound = __('Error retrieving file - if necessary turn off error checking', 'gde') . " (%e)";
109
 
110
  if ( ! $file ) {
140
  $fn = basename( $file );
141
  $fnp = gde_split_filename( $fn );
142
  $type = $fnp[1];
143
+
144
+ if ( $type == '' ) {
145
+ return $unktype;
146
+ }
147
  $badtype = str_replace( "%e", $type, $badtype );
148
 
149
  return $badtype;
gviewer.php CHANGED
@@ -8,7 +8,7 @@ Author: Kevin Davis
8
  Author URI: http://www.davistribe.org/
9
  Text Domain: gde
10
  Domain Path: /languages/
11
- Version: 2.5.7
12
  License: GPLv2
13
  */
14
 
@@ -32,13 +32,13 @@ License: GPLv2
32
  *
33
  * @package google-document-embedder
34
  * @author Kevin Davis <wpp@tnw.org>
35
- * @copyright Copyright 2012 Kevin Davis
36
  * @license http://www.gnu.org/licenses/gpl.txt GPL 2.0
37
  * @link http://www.davistribe.org/gde/
38
  */
39
 
40
  // boring init junk
41
- $gde_ver = "2.5.7.98";
42
  $gde_db_ver = "1.2"; // update also in gde_activate()
43
 
44
  require_once( plugin_dir_path( __FILE__ ) . 'functions.php' );
8
  Author URI: http://www.davistribe.org/
9
  Text Domain: gde
10
  Domain Path: /languages/
11
+ Version: 2.5.8
12
  License: GPLv2
13
  */
14
 
32
  *
33
  * @package google-document-embedder
34
  * @author Kevin Davis <wpp@tnw.org>
35
+ * @copyright Copyright 2013 Kevin Davis
36
  * @license http://www.gnu.org/licenses/gpl.txt GPL 2.0
37
  * @link http://www.davistribe.org/gde/
38
  */
39
 
40
  // boring init junk
41
+ $gde_ver = "2.5.8.98";
42
  $gde_db_ver = "1.2"; // update also in gde_activate()
43
 
44
  require_once( plugin_dir_path( __FILE__ ) . 'functions.php' );
languages/gde-en_US.mo CHANGED
Binary file
languages/gde-en_US.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Google Doc Embedder\n"
4
  "POT-Creation-Date: 2013-01-29 13:40-0600\n"
5
- "PO-Revision-Date: 2013-01-29 13:41-0600\n"
6
- "Last-Translator: Kevin Davis <wpp@tnw.org>\n"
7
  "Language-Team: Kevin Davis <wpp@tnw.org>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -11,107 +11,107 @@ msgstr ""
11
  "X-Poedit-KeywordsList: __;_e\n"
12
  "X-Poedit-SearchPath-0: .\n"
13
 
14
- #: functions-admin.php:264
15
  msgid "Import"
16
  msgstr ""
17
 
18
- #: functions-admin.php:275
19
  msgid "Performing full import..."
20
  msgstr ""
21
 
22
- #: functions-admin.php:279 functions-admin.php:304
23
  msgid "Importing profiles"
24
  msgstr ""
25
 
26
- #: functions-admin.php:285 functions-admin.php:299 functions-admin.php:310
27
- #: functions-admin.php:323
28
  msgid "done"
29
  msgstr ""
30
 
31
- #: functions-admin.php:288 functions-admin.php:297 functions-admin.php:313
32
- #: functions-admin.php:321
33
  msgid "failed"
34
  msgstr ""
35
 
36
- #: functions-admin.php:294
37
  msgid "Importing settings"
38
  msgstr ""
39
 
40
- #: functions-admin.php:317
41
  msgid "Importing settings... "
42
  msgstr ""
43
 
44
- #: functions-admin.php:326 functions-admin.php:569 options.php:141
45
  msgid "Please select a valid export file to import."
46
  msgstr ""
47
 
48
- #: functions-admin.php:330
49
  msgid "All or part of the import failed. See above for information."
50
  msgstr ""
51
 
52
- #: functions-admin.php:332
53
  msgid "Import completed successfully."
54
  msgstr ""
55
 
56
- #: functions-admin.php:335
57
  msgid "Return to GDE Settings"
58
  msgstr ""
59
 
60
- #: functions-admin.php:412 functions-admin.php:538 options.php:168
61
  #: libs/tab-advanced.php:143
62
  msgid "Settings"
63
  msgstr ""
64
 
65
- #: functions-admin.php:421
66
  msgid "You do not have sufficient permissions to access this page"
67
  msgstr ""
68
 
69
- #: functions-admin.php:526
70
  msgid "plugin"
71
  msgstr ""
72
 
73
- #: functions-admin.php:527
74
  msgid "Version"
75
  msgstr ""
76
 
77
- #: functions-admin.php:565
78
  msgid "This profile will be permanently deleted."
79
  msgstr ""
80
 
81
- #: functions-admin.php:565 functions-admin.php:566 functions-admin.php:567
82
- #: functions-admin.php:570
83
  msgid "Are you sure?"
84
  msgstr ""
85
 
86
- #: functions-admin.php:566
87
  msgid "Settings for this profile will overwrite the default profile."
88
  msgstr ""
89
 
90
- #: functions-admin.php:567
91
  msgid ""
92
  "Your profile list will be reset to its original state. All changes will be "
93
  "lost."
94
  msgstr ""
95
 
96
- #: functions-admin.php:570
97
  msgid ""
98
  "Any settings or duplicate profile names in this import will overwrite the "
99
  "current values."
100
  msgstr ""
101
 
102
- #: functions-admin.php:572
103
  msgid "Please include a shortcode or message to request support."
104
  msgstr ""
105
 
106
- #: functions-admin.php:610
107
  msgid "Embed file using Google Doc Embedder"
108
  msgstr ""
109
 
110
- #: functions-admin.php:627 libs/lib-eddialog.php:85
111
  msgid "Select the GDE viewer profile to use"
112
  msgstr ""
113
 
114
- #: functions-admin.php:778
115
  msgid ""
116
  "You are running a pre-release version of Google Doc Embedder. Please watch "
117
  "this space for important updates."
@@ -130,24 +130,28 @@ msgid "Unsupported File Type"
130
  msgstr ""
131
 
132
  #: functions.php:107
 
 
 
 
133
  msgid "Error retrieving file - if necessary turn off error checking"
134
  msgstr ""
135
 
136
- #: functions.php:227
137
  msgid "Unknown"
138
  msgstr ""
139
 
140
  # Megabytes (for file size reporting)
141
- #: functions.php:229 libs/tab-advanced.php:38
142
  msgid "MB"
143
  msgstr ""
144
 
145
- #: functions.php:361 gviewer.php:301 libs/lib-setup.php:83
146
- #: libs/lib-setup.php:133
147
  msgid "Download"
148
  msgstr ""
149
 
150
- #: functions.php:500 view.php:399
151
  msgid "Error"
152
  msgstr ""
153
 
@@ -159,16 +163,16 @@ msgstr ""
159
  msgid "Unable to load requested profile."
160
  msgstr ""
161
 
162
- #: gviewer.php:235
163
  msgid "Unable to secure document"
164
  msgstr ""
165
 
166
- #: gviewer.php:398
167
  msgid "Setup wasn't able to create the required database tables."
168
  msgstr ""
169
 
170
  #: load.php:8 libs/lib-formsubmit.php:9 libs/lib-secure.php:9
171
- #: libs/lib-service.php:53 libs/lib-service.php:71 libs/lib-service.php:74
172
  msgid "You do not have sufficient permissions to access this page."
173
  msgstr ""
174
 
@@ -248,7 +252,7 @@ msgstr ""
248
  msgid "Support"
249
  msgstr ""
250
 
251
- #: options.php:349
252
  msgid "Help"
253
  msgstr ""
254
 
@@ -264,11 +268,11 @@ msgstr ""
264
  msgid "Make Default"
265
  msgstr ""
266
 
267
- #: view.php:44
268
  msgid "Invalid URL format"
269
  msgstr ""
270
 
271
- #: view.php:400
272
  msgid ""
273
  "Unable to retrieve document contents. Please try again or switch to Standard "
274
  "Viewer."
@@ -322,11 +326,11 @@ msgstr ""
322
  msgid "Use selected profile settings"
323
  msgstr ""
324
 
325
- #: libs/lib-eddialog.php:103 libs/lib-profile.php:189
326
  msgid "Height"
327
  msgstr ""
328
 
329
- #: libs/lib-eddialog.php:108 libs/lib-profile.php:185
330
  msgid "Width"
331
  msgstr ""
332
 
@@ -387,262 +391,262 @@ msgstr ""
387
  msgid "Edit Profile"
388
  msgstr ""
389
 
390
- #: libs/lib-profile.php:50
391
  msgid "Viewer Mode"
392
  msgstr ""
393
 
394
- #: libs/lib-profile.php:54
395
  msgid "Standard Viewer"
396
  msgstr ""
397
 
398
- #: libs/lib-profile.php:54
399
  msgid "Embed the basic viewer only"
400
  msgstr ""
401
 
402
- #: libs/lib-profile.php:55
403
  msgid "Enhanced Viewer"
404
  msgstr ""
405
 
406
- #: libs/lib-profile.php:55
407
  msgid "Enable extended viewer options"
408
  msgstr ""
409
 
410
- #: libs/lib-profile.php:65
411
  msgid "Enhanced Viewer Settings"
412
  msgstr ""
413
 
414
- #: libs/lib-profile.php:69
415
  msgid "Toolbar"
416
  msgstr ""
417
 
418
- #: libs/lib-profile.php:73
419
  msgid "Remove Toolbar"
420
  msgstr ""
421
 
422
- #: libs/lib-profile.php:78
423
  msgid "Use Mobile Toolbar"
424
  msgstr ""
425
 
426
- #: libs/lib-profile.php:82
427
  msgid "Mobile Devices Only (Default)"
428
  msgstr ""
429
 
430
- #: libs/lib-profile.php:82
431
  msgid "Use mobile toolbar when mobile device detected"
432
  msgstr ""
433
 
434
- #: libs/lib-profile.php:83
435
  msgid "Always"
436
  msgstr ""
437
 
438
- #: libs/lib-profile.php:83
439
  msgid "Use mobile toolbar for all visitors"
440
  msgstr ""
441
 
442
- #: libs/lib-profile.php:84
443
  msgid "Never"
444
  msgstr ""
445
 
446
- #: libs/lib-profile.php:84
447
  msgid "Never use mobile toolbar"
448
  msgstr ""
449
 
450
- #: libs/lib-profile.php:91
451
  msgid "Toolbar Items"
452
  msgstr ""
453
 
454
- #: libs/lib-profile.php:94
455
  msgid "Page Numbers"
456
  msgstr ""
457
 
458
- #: libs/lib-profile.php:95
459
  msgid "Previous/Next Page"
460
  msgstr ""
461
 
462
- #: libs/lib-profile.php:96
463
  msgid "Zoom In/Out"
464
  msgstr ""
465
 
466
- #: libs/lib-profile.php:97
467
  msgid "Full Screen/New Window"
468
  msgstr ""
469
 
470
- #: libs/lib-profile.php:100
471
  msgid ""
472
  "Uncheck items to remove from toolbar. Buttons will vary based on file type "
473
  "and device used."
474
  msgstr ""
475
 
476
- #: libs/lib-profile.php:104
477
  msgid "Full Screen Behavior"
478
  msgstr ""
479
 
480
- #: libs/lib-profile.php:108
481
  msgid "Google-Hosted Page (Default)"
482
  msgstr ""
483
 
484
- #: libs/lib-profile.php:110
485
  msgid "Full Screen Viewer"
486
  msgstr ""
487
 
488
- #: libs/lib-profile.php:115
489
  msgid "Open in New Window"
490
  msgstr ""
491
 
492
- #: libs/lib-profile.php:116
493
  msgid "Allow Logged-in Users Only"
494
  msgstr ""
495
 
496
- #: libs/lib-profile.php:117
497
  msgid "Allow Printing"
498
  msgstr ""
499
 
500
- #: libs/lib-profile.php:122
501
  msgid "Page Area Background Color"
502
  msgstr ""
503
 
504
- #: libs/lib-profile.php:127
505
  msgid "None (Transparent)"
506
  msgstr ""
507
 
508
- #: libs/lib-profile.php:132
509
  msgid "Page Border Color"
510
  msgstr ""
511
 
512
- #: libs/lib-profile.php:137
513
  msgid "No Border"
514
  msgstr ""
515
 
516
- #: libs/lib-profile.php:142
517
  msgid "Custom CSS File"
518
  msgstr ""
519
 
520
- #: libs/lib-profile.php:148
521
  msgid "URL of custom CSS file (may override some of the above options)"
522
  msgstr ""
523
 
524
- #: libs/lib-profile.php:152
525
  msgid "Security"
526
  msgstr ""
527
 
528
- #: libs/lib-profile.php:155
529
  msgid "Hide ability to select/copy/paste text"
530
  msgstr ""
531
 
532
- #: libs/lib-profile.php:156
533
  msgid "Block all download requests for file"
534
  msgstr ""
535
 
536
- #: libs/lib-profile.php:167
537
  msgid "Default Language"
538
  msgstr ""
539
 
540
- #: libs/lib-profile.php:179
541
  msgid "Language of toolbar button tips"
542
  msgstr ""
543
 
544
- #: libs/lib-profile.php:183
545
  msgid "Default Size"
546
  msgstr ""
547
 
548
- #: libs/lib-profile.php:194
549
  msgid "Enter as pixels or percentage (example: 500px or 100%)"
550
  msgstr ""
551
 
552
- #: libs/lib-profile.php:198
553
  msgid "File Base URL"
554
  msgstr ""
555
 
556
- #: libs/lib-profile.php:204
557
  msgid ""
558
  "Any file not starting with <code>http</code> will be prefixed by this value"
559
  msgstr ""
560
 
561
- #: libs/lib-profile.php:208
562
  msgid "Download Link"
563
  msgstr ""
564
 
565
- #: libs/lib-profile.php:212
566
  msgid "All Users"
567
  msgstr ""
568
 
569
- #: libs/lib-profile.php:212
570
  msgid "Download link visible to everyone by default"
571
  msgstr ""
572
 
573
- #: libs/lib-profile.php:213
574
  msgid "Logged-in Users"
575
  msgstr ""
576
 
577
- #: libs/lib-profile.php:213
578
  msgid "Download link visible to logged-in users"
579
  msgstr ""
580
 
581
- #: libs/lib-profile.php:214 libs/tab-advanced.php:93
582
  msgid "None"
583
  msgstr ""
584
 
585
- #: libs/lib-profile.php:214
586
  msgid "Download link is not visible by default"
587
  msgstr ""
588
 
589
- #: libs/lib-profile.php:221
590
  msgid "Link Text"
591
  msgstr ""
592
 
593
- #: libs/lib-profile.php:224
594
  msgid "You can further customize text using these dynamic replacements:"
595
  msgstr ""
596
 
597
- #: libs/lib-profile.php:225
598
  msgid "filename"
599
  msgstr ""
600
 
601
- #: libs/lib-profile.php:226
602
  msgid "file type"
603
  msgstr ""
604
 
605
- #: libs/lib-profile.php:227
606
  msgid "file size"
607
  msgstr ""
608
 
609
- #: libs/lib-profile.php:231
610
  msgid "Link Position"
611
  msgstr ""
612
 
613
- #: libs/lib-profile.php:235
614
  msgid "Above Viewer"
615
  msgstr ""
616
 
617
- #: libs/lib-profile.php:236
618
  msgid "Below Viewer"
619
  msgstr ""
620
 
621
- #: libs/lib-profile.php:242
622
  msgid "Link Behavior"
623
  msgstr ""
624
 
625
- #: libs/lib-profile.php:245
626
  msgid "Force download (bypass browser plugins)"
627
  msgstr ""
628
 
629
- #: libs/lib-profile.php:246
630
  msgid "Shorten URL"
631
  msgstr ""
632
 
633
- #: libs/lib-profile.php:254 libs/tab-advanced.php:122
634
  msgid "Save Changes"
635
  msgstr ""
636
 
637
- #: libs/lib-setup.php:64
638
  msgid "This is the default profile, used when no profile is specified."
639
  msgstr ""
640
 
641
- #: libs/lib-setup.php:89
642
  msgid "Hide document location and text selection, prevent downloads"
643
  msgstr ""
644
 
645
- #: libs/lib-setup.php:114
646
  msgid "Dark-colored theme, example of custom CSS option"
647
  msgstr ""
648
 
@@ -843,19 +847,22 @@ msgstr ""
843
 
844
  #: libs/tab-support.php:27
845
  msgid ""
846
- "Please review the documentation before submitting a request for support:"
 
847
  msgstr ""
848
 
849
  #: libs/tab-support.php:30
850
  msgid "Plugin FAQ"
851
  msgstr ""
852
 
853
- #: libs/tab-support.php:32
854
- msgid "If you're still experiencing a problem, please complete the form below."
855
  msgstr ""
856
 
857
  #: libs/tab-support.php:38
858
- msgid "Support Request"
 
 
859
  msgstr ""
860
 
861
  #: libs/tab-support.php:42
@@ -924,21 +931,21 @@ msgid ""
924
  "attached."
925
  msgstr ""
926
 
927
- #: libs/tab-support.php:158
928
  msgid ""
929
  "I'm less likely to be able to help you if you do not include debug "
930
  "information."
931
  msgstr ""
932
 
933
- #: libs/tab-support.php:160
934
  msgid "Send Request"
935
  msgstr ""
936
 
937
- #: libs/tab-support.php:164
938
  msgid "Request Sent"
939
  msgstr ""
940
 
941
- #: libs/tab-support.php:165
942
  msgid ""
943
  "Delivery failed. You can manually send this information to wpp@tnw.org for "
944
  "help."
2
  msgstr ""
3
  "Project-Id-Version: Google Doc Embedder\n"
4
  "POT-Creation-Date: 2013-01-29 13:40-0600\n"
5
+ "PO-Revision-Date: 2013-08-23 08:25-0600\n"
6
+ "Last-Translator: Kevin Davis <kev@tnw.org>\n"
7
  "Language-Team: Kevin Davis <wpp@tnw.org>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "X-Poedit-KeywordsList: __;_e\n"
12
  "X-Poedit-SearchPath-0: .\n"
13
 
14
+ #: functions-admin.php:266
15
  msgid "Import"
16
  msgstr ""
17
 
18
+ #: functions-admin.php:277
19
  msgid "Performing full import..."
20
  msgstr ""
21
 
22
+ #: functions-admin.php:281 functions-admin.php:306
23
  msgid "Importing profiles"
24
  msgstr ""
25
 
26
+ #: functions-admin.php:287 functions-admin.php:301 functions-admin.php:312
27
+ #: functions-admin.php:325
28
  msgid "done"
29
  msgstr ""
30
 
31
+ #: functions-admin.php:290 functions-admin.php:299 functions-admin.php:315
32
+ #: functions-admin.php:323
33
  msgid "failed"
34
  msgstr ""
35
 
36
+ #: functions-admin.php:296
37
  msgid "Importing settings"
38
  msgstr ""
39
 
40
+ #: functions-admin.php:319
41
  msgid "Importing settings... "
42
  msgstr ""
43
 
44
+ #: functions-admin.php:328 functions-admin.php:571 options.php:141
45
  msgid "Please select a valid export file to import."
46
  msgstr ""
47
 
48
+ #: functions-admin.php:332
49
  msgid "All or part of the import failed. See above for information."
50
  msgstr ""
51
 
52
+ #: functions-admin.php:334
53
  msgid "Import completed successfully."
54
  msgstr ""
55
 
56
+ #: functions-admin.php:337
57
  msgid "Return to GDE Settings"
58
  msgstr ""
59
 
60
+ #: functions-admin.php:414 functions-admin.php:540 options.php:168
61
  #: libs/tab-advanced.php:143
62
  msgid "Settings"
63
  msgstr ""
64
 
65
+ #: functions-admin.php:423
66
  msgid "You do not have sufficient permissions to access this page"
67
  msgstr ""
68
 
69
+ #: functions-admin.php:528
70
  msgid "plugin"
71
  msgstr ""
72
 
73
+ #: functions-admin.php:529
74
  msgid "Version"
75
  msgstr ""
76
 
77
+ #: functions-admin.php:567
78
  msgid "This profile will be permanently deleted."
79
  msgstr ""
80
 
81
+ #: functions-admin.php:567 functions-admin.php:568 functions-admin.php:569
82
+ #: functions-admin.php:572
83
  msgid "Are you sure?"
84
  msgstr ""
85
 
86
+ #: functions-admin.php:568
87
  msgid "Settings for this profile will overwrite the default profile."
88
  msgstr ""
89
 
90
+ #: functions-admin.php:569
91
  msgid ""
92
  "Your profile list will be reset to its original state. All changes will be "
93
  "lost."
94
  msgstr ""
95
 
96
+ #: functions-admin.php:572
97
  msgid ""
98
  "Any settings or duplicate profile names in this import will overwrite the "
99
  "current values."
100
  msgstr ""
101
 
102
+ #: functions-admin.php:574
103
  msgid "Please include a shortcode or message to request support."
104
  msgstr ""
105
 
106
+ #: functions-admin.php:612
107
  msgid "Embed file using Google Doc Embedder"
108
  msgstr ""
109
 
110
+ #: functions-admin.php:629 libs/lib-eddialog.php:85
111
  msgid "Select the GDE viewer profile to use"
112
  msgstr ""
113
 
114
+ #: functions-admin.php:780
115
  msgid ""
116
  "You are running a pre-release version of Google Doc Embedder. Please watch "
117
  "this space for important updates."
130
  msgstr ""
131
 
132
  #: functions.php:107
133
+ msgid "Unable to determine file type from URL"
134
+ msgstr ""
135
+
136
+ #: functions.php:108
137
  msgid "Error retrieving file - if necessary turn off error checking"
138
  msgstr ""
139
 
140
+ #: functions.php:232
141
  msgid "Unknown"
142
  msgstr ""
143
 
144
  # Megabytes (for file size reporting)
145
+ #: functions.php:234 libs/tab-advanced.php:38
146
  msgid "MB"
147
  msgstr ""
148
 
149
+ #: functions.php:366 gviewer.php:304 libs/lib-setup.php:71
150
+ #: libs/lib-setup.php:121
151
  msgid "Download"
152
  msgstr ""
153
 
154
+ #: functions.php:505 view.php:417
155
  msgid "Error"
156
  msgstr ""
157
 
163
  msgid "Unable to load requested profile."
164
  msgstr ""
165
 
166
+ #: gviewer.php:238
167
  msgid "Unable to secure document"
168
  msgstr ""
169
 
170
+ #: gviewer.php:401
171
  msgid "Setup wasn't able to create the required database tables."
172
  msgstr ""
173
 
174
  #: load.php:8 libs/lib-formsubmit.php:9 libs/lib-secure.php:9
175
+ #: libs/lib-service.php:12 libs/lib-service.php:59 libs/lib-service.php:80
176
  msgid "You do not have sufficient permissions to access this page."
177
  msgstr ""
178
 
252
  msgid "Support"
253
  msgstr ""
254
 
255
+ #: options.php:349 libs/tab-support.php:29
256
  msgid "Help"
257
  msgstr ""
258
 
268
  msgid "Make Default"
269
  msgstr ""
270
 
271
+ #: view.php:42
272
  msgid "Invalid URL format"
273
  msgstr ""
274
 
275
+ #: view.php:418
276
  msgid ""
277
  "Unable to retrieve document contents. Please try again or switch to Standard "
278
  "Viewer."
326
  msgid "Use selected profile settings"
327
  msgstr ""
328
 
329
+ #: libs/lib-eddialog.php:103 libs/lib-profile.php:201
330
  msgid "Height"
331
  msgstr ""
332
 
333
+ #: libs/lib-eddialog.php:108 libs/lib-profile.php:197
334
  msgid "Width"
335
  msgstr ""
336
 
391
  msgid "Edit Profile"
392
  msgstr ""
393
 
394
+ #: libs/lib-profile.php:62
395
  msgid "Viewer Mode"
396
  msgstr ""
397
 
398
+ #: libs/lib-profile.php:66
399
  msgid "Standard Viewer"
400
  msgstr ""
401
 
402
+ #: libs/lib-profile.php:66
403
  msgid "Embed the basic viewer only"
404
  msgstr ""
405
 
406
+ #: libs/lib-profile.php:67
407
  msgid "Enhanced Viewer"
408
  msgstr ""
409
 
410
+ #: libs/lib-profile.php:67
411
  msgid "Enable extended viewer options"
412
  msgstr ""
413
 
414
+ #: libs/lib-profile.php:77
415
  msgid "Enhanced Viewer Settings"
416
  msgstr ""
417
 
418
+ #: libs/lib-profile.php:81
419
  msgid "Toolbar"
420
  msgstr ""
421
 
422
+ #: libs/lib-profile.php:85
423
  msgid "Remove Toolbar"
424
  msgstr ""
425
 
426
+ #: libs/lib-profile.php:90
427
  msgid "Use Mobile Toolbar"
428
  msgstr ""
429
 
430
+ #: libs/lib-profile.php:94
431
  msgid "Mobile Devices Only (Default)"
432
  msgstr ""
433
 
434
+ #: libs/lib-profile.php:94
435
  msgid "Use mobile toolbar when mobile device detected"
436
  msgstr ""
437
 
438
+ #: libs/lib-profile.php:95
439
  msgid "Always"
440
  msgstr ""
441
 
442
+ #: libs/lib-profile.php:95
443
  msgid "Use mobile toolbar for all visitors"
444
  msgstr ""
445
 
446
+ #: libs/lib-profile.php:96
447
  msgid "Never"
448
  msgstr ""
449
 
450
+ #: libs/lib-profile.php:96
451
  msgid "Never use mobile toolbar"
452
  msgstr ""
453
 
454
+ #: libs/lib-profile.php:103
455
  msgid "Toolbar Items"
456
  msgstr ""
457
 
458
+ #: libs/lib-profile.php:106
459
  msgid "Page Numbers"
460
  msgstr ""
461
 
462
+ #: libs/lib-profile.php:107
463
  msgid "Previous/Next Page"
464
  msgstr ""
465
 
466
+ #: libs/lib-profile.php:108
467
  msgid "Zoom In/Out"
468
  msgstr ""
469
 
470
+ #: libs/lib-profile.php:109
471
  msgid "Full Screen/New Window"
472
  msgstr ""
473
 
474
+ #: libs/lib-profile.php:112
475
  msgid ""
476
  "Uncheck items to remove from toolbar. Buttons will vary based on file type "
477
  "and device used."
478
  msgstr ""
479
 
480
+ #: libs/lib-profile.php:116
481
  msgid "Full Screen Behavior"
482
  msgstr ""
483
 
484
+ #: libs/lib-profile.php:120
485
  msgid "Google-Hosted Page (Default)"
486
  msgstr ""
487
 
488
+ #: libs/lib-profile.php:122
489
  msgid "Full Screen Viewer"
490
  msgstr ""
491
 
492
+ #: libs/lib-profile.php:127
493
  msgid "Open in New Window"
494
  msgstr ""
495
 
496
+ #: libs/lib-profile.php:128
497
  msgid "Allow Logged-in Users Only"
498
  msgstr ""
499
 
500
+ #: libs/lib-profile.php:129
501
  msgid "Allow Printing"
502
  msgstr ""
503
 
504
+ #: libs/lib-profile.php:134
505
  msgid "Page Area Background Color"
506
  msgstr ""
507
 
508
+ #: libs/lib-profile.php:139
509
  msgid "None (Transparent)"
510
  msgstr ""
511
 
512
+ #: libs/lib-profile.php:144
513
  msgid "Page Border Color"
514
  msgstr ""
515
 
516
+ #: libs/lib-profile.php:149
517
  msgid "No Border"
518
  msgstr ""
519
 
520
+ #: libs/lib-profile.php:154
521
  msgid "Custom CSS File"
522
  msgstr ""
523
 
524
+ #: libs/lib-profile.php:160
525
  msgid "URL of custom CSS file (may override some of the above options)"
526
  msgstr ""
527
 
528
+ #: libs/lib-profile.php:164
529
  msgid "Security"
530
  msgstr ""
531
 
532
+ #: libs/lib-profile.php:167
533
  msgid "Hide ability to select/copy/paste text"
534
  msgstr ""
535
 
536
+ #: libs/lib-profile.php:168
537
  msgid "Block all download requests for file"
538
  msgstr ""
539
 
540
+ #: libs/lib-profile.php:179
541
  msgid "Default Language"
542
  msgstr ""
543
 
544
+ #: libs/lib-profile.php:191
545
  msgid "Language of toolbar button tips"
546
  msgstr ""
547
 
548
+ #: libs/lib-profile.php:195
549
  msgid "Default Size"
550
  msgstr ""
551
 
552
+ #: libs/lib-profile.php:206
553
  msgid "Enter as pixels or percentage (example: 500px or 100%)"
554
  msgstr ""
555
 
556
+ #: libs/lib-profile.php:210
557
  msgid "File Base URL"
558
  msgstr ""
559
 
560
+ #: libs/lib-profile.php:216
561
  msgid ""
562
  "Any file not starting with <code>http</code> will be prefixed by this value"
563
  msgstr ""
564
 
565
+ #: libs/lib-profile.php:220
566
  msgid "Download Link"
567
  msgstr ""
568
 
569
+ #: libs/lib-profile.php:224
570
  msgid "All Users"
571
  msgstr ""
572
 
573
+ #: libs/lib-profile.php:224
574
  msgid "Download link visible to everyone by default"
575
  msgstr ""
576
 
577
+ #: libs/lib-profile.php:225
578
  msgid "Logged-in Users"
579
  msgstr ""
580
 
581
+ #: libs/lib-profile.php:225
582
  msgid "Download link visible to logged-in users"
583
  msgstr ""
584
 
585
+ #: libs/lib-profile.php:226 libs/tab-advanced.php:93
586
  msgid "None"
587
  msgstr ""
588
 
589
+ #: libs/lib-profile.php:226
590
  msgid "Download link is not visible by default"
591
  msgstr ""
592
 
593
+ #: libs/lib-profile.php:233
594
  msgid "Link Text"
595
  msgstr ""
596
 
597
+ #: libs/lib-profile.php:236
598
  msgid "You can further customize text using these dynamic replacements:"
599
  msgstr ""
600
 
601
+ #: libs/lib-profile.php:237
602
  msgid "filename"
603
  msgstr ""
604
 
605
+ #: libs/lib-profile.php:238
606
  msgid "file type"
607
  msgstr ""
608
 
609
+ #: libs/lib-profile.php:239
610
  msgid "file size"
611
  msgstr ""
612
 
613
+ #: libs/lib-profile.php:243
614
  msgid "Link Position"
615
  msgstr ""
616
 
617
+ #: libs/lib-profile.php:247
618
  msgid "Above Viewer"
619
  msgstr ""
620
 
621
+ #: libs/lib-profile.php:248
622
  msgid "Below Viewer"
623
  msgstr ""
624
 
625
+ #: libs/lib-profile.php:254
626
  msgid "Link Behavior"
627
  msgstr ""
628
 
629
+ #: libs/lib-profile.php:257
630
  msgid "Force download (bypass browser plugins)"
631
  msgstr ""
632
 
633
+ #: libs/lib-profile.php:258
634
  msgid "Shorten URL"
635
  msgstr ""
636
 
637
+ #: libs/lib-profile.php:266 libs/tab-advanced.php:122
638
  msgid "Save Changes"
639
  msgstr ""
640
 
641
+ #: libs/lib-setup.php:52
642
  msgid "This is the default profile, used when no profile is specified."
643
  msgstr ""
644
 
645
+ #: libs/lib-setup.php:77
646
  msgid "Hide document location and text selection, prevent downloads"
647
  msgstr ""
648
 
649
+ #: libs/lib-setup.php:102
650
  msgid "Dark-colored theme, example of custom CSS option"
651
  msgstr ""
652
 
847
 
848
  #: libs/tab-support.php:27
849
  msgid ""
850
+ "Most support questions have already been answered. Please review these pages "
851
+ "before asking for support:"
852
  msgstr ""
853
 
854
  #: libs/tab-support.php:30
855
  msgid "Plugin FAQ"
856
  msgstr ""
857
 
858
+ #: libs/tab-support.php:37
859
+ msgid "Support Request"
860
  msgstr ""
861
 
862
  #: libs/tab-support.php:38
863
+ msgid ""
864
+ "Requests sent from this form are handled by an actual human, so please don't "
865
+ "send test messages or other spam."
866
  msgstr ""
867
 
868
  #: libs/tab-support.php:42
931
  "attached."
932
  msgstr ""
933
 
934
+ #: libs/tab-support.php:160
935
  msgid ""
936
  "I'm less likely to be able to help you if you do not include debug "
937
  "information."
938
  msgstr ""
939
 
940
+ #: libs/tab-support.php:162
941
  msgid "Send Request"
942
  msgstr ""
943
 
944
+ #: libs/tab-support.php:166
945
  msgid "Request Sent"
946
  msgstr ""
947
 
948
+ #: libs/tab-support.php:167
949
  msgid ""
950
  "Delivery failed. You can manually send this information to wpp@tnw.org for "
951
  "help."
languages/gde.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Google Doc Embedder\n"
4
  "POT-Creation-Date: 2013-01-29 13:40-0600\n"
5
- "PO-Revision-Date: 2013-01-29 13:41-0600\n"
6
- "Last-Translator: Kevin Davis <wpp@tnw.org>\n"
7
  "Language-Team: Kevin Davis <wpp@tnw.org>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -11,107 +11,107 @@ msgstr ""
11
  "X-Poedit-KeywordsList: __;_e\n"
12
  "X-Poedit-SearchPath-0: .\n"
13
 
14
- #: functions-admin.php:264
15
  msgid "Import"
16
  msgstr ""
17
 
18
- #: functions-admin.php:275
19
  msgid "Performing full import..."
20
  msgstr ""
21
 
22
- #: functions-admin.php:279 functions-admin.php:304
23
  msgid "Importing profiles"
24
  msgstr ""
25
 
26
- #: functions-admin.php:285 functions-admin.php:299 functions-admin.php:310
27
- #: functions-admin.php:323
28
  msgid "done"
29
  msgstr ""
30
 
31
- #: functions-admin.php:288 functions-admin.php:297 functions-admin.php:313
32
- #: functions-admin.php:321
33
  msgid "failed"
34
  msgstr ""
35
 
36
- #: functions-admin.php:294
37
  msgid "Importing settings"
38
  msgstr ""
39
 
40
- #: functions-admin.php:317
41
  msgid "Importing settings... "
42
  msgstr ""
43
 
44
- #: functions-admin.php:326 functions-admin.php:569 options.php:141
45
  msgid "Please select a valid export file to import."
46
  msgstr ""
47
 
48
- #: functions-admin.php:330
49
  msgid "All or part of the import failed. See above for information."
50
  msgstr ""
51
 
52
- #: functions-admin.php:332
53
  msgid "Import completed successfully."
54
  msgstr ""
55
 
56
- #: functions-admin.php:335
57
  msgid "Return to GDE Settings"
58
  msgstr ""
59
 
60
- #: functions-admin.php:412 functions-admin.php:538 options.php:168
61
  #: libs/tab-advanced.php:143
62
  msgid "Settings"
63
  msgstr ""
64
 
65
- #: functions-admin.php:421
66
  msgid "You do not have sufficient permissions to access this page"
67
  msgstr ""
68
 
69
- #: functions-admin.php:526
70
  msgid "plugin"
71
  msgstr ""
72
 
73
- #: functions-admin.php:527
74
  msgid "Version"
75
  msgstr ""
76
 
77
- #: functions-admin.php:565
78
  msgid "This profile will be permanently deleted."
79
  msgstr ""
80
 
81
- #: functions-admin.php:565 functions-admin.php:566 functions-admin.php:567
82
- #: functions-admin.php:570
83
  msgid "Are you sure?"
84
  msgstr ""
85
 
86
- #: functions-admin.php:566
87
  msgid "Settings for this profile will overwrite the default profile."
88
  msgstr ""
89
 
90
- #: functions-admin.php:567
91
  msgid ""
92
  "Your profile list will be reset to its original state. All changes will be "
93
  "lost."
94
  msgstr ""
95
 
96
- #: functions-admin.php:570
97
  msgid ""
98
  "Any settings or duplicate profile names in this import will overwrite the "
99
  "current values."
100
  msgstr ""
101
 
102
- #: functions-admin.php:572
103
  msgid "Please include a shortcode or message to request support."
104
  msgstr ""
105
 
106
- #: functions-admin.php:610
107
  msgid "Embed file using Google Doc Embedder"
108
  msgstr ""
109
 
110
- #: functions-admin.php:627 libs/lib-eddialog.php:85
111
  msgid "Select the GDE viewer profile to use"
112
  msgstr ""
113
 
114
- #: functions-admin.php:778
115
  msgid ""
116
  "You are running a pre-release version of Google Doc Embedder. Please watch "
117
  "this space for important updates."
@@ -130,24 +130,28 @@ msgid "Unsupported File Type"
130
  msgstr ""
131
 
132
  #: functions.php:107
 
 
 
 
133
  msgid "Error retrieving file - if necessary turn off error checking"
134
  msgstr ""
135
 
136
- #: functions.php:227
137
  msgid "Unknown"
138
  msgstr ""
139
 
140
  # Megabytes (for file size reporting)
141
- #: functions.php:229 libs/tab-advanced.php:38
142
  msgid "MB"
143
  msgstr ""
144
 
145
- #: functions.php:361 gviewer.php:301 libs/lib-setup.php:83
146
- #: libs/lib-setup.php:133
147
  msgid "Download"
148
  msgstr ""
149
 
150
- #: functions.php:500 view.php:399
151
  msgid "Error"
152
  msgstr ""
153
 
@@ -159,16 +163,16 @@ msgstr ""
159
  msgid "Unable to load requested profile."
160
  msgstr ""
161
 
162
- #: gviewer.php:235
163
  msgid "Unable to secure document"
164
  msgstr ""
165
 
166
- #: gviewer.php:398
167
  msgid "Setup wasn't able to create the required database tables."
168
  msgstr ""
169
 
170
  #: load.php:8 libs/lib-formsubmit.php:9 libs/lib-secure.php:9
171
- #: libs/lib-service.php:53 libs/lib-service.php:71 libs/lib-service.php:74
172
  msgid "You do not have sufficient permissions to access this page."
173
  msgstr ""
174
 
@@ -248,7 +252,7 @@ msgstr ""
248
  msgid "Support"
249
  msgstr ""
250
 
251
- #: options.php:349
252
  msgid "Help"
253
  msgstr ""
254
 
@@ -264,11 +268,11 @@ msgstr ""
264
  msgid "Make Default"
265
  msgstr ""
266
 
267
- #: view.php:44
268
  msgid "Invalid URL format"
269
  msgstr ""
270
 
271
- #: view.php:400
272
  msgid ""
273
  "Unable to retrieve document contents. Please try again or switch to Standard "
274
  "Viewer."
@@ -322,11 +326,11 @@ msgstr ""
322
  msgid "Use selected profile settings"
323
  msgstr ""
324
 
325
- #: libs/lib-eddialog.php:103 libs/lib-profile.php:189
326
  msgid "Height"
327
  msgstr ""
328
 
329
- #: libs/lib-eddialog.php:108 libs/lib-profile.php:185
330
  msgid "Width"
331
  msgstr ""
332
 
@@ -387,262 +391,262 @@ msgstr ""
387
  msgid "Edit Profile"
388
  msgstr ""
389
 
390
- #: libs/lib-profile.php:50
391
  msgid "Viewer Mode"
392
  msgstr ""
393
 
394
- #: libs/lib-profile.php:54
395
  msgid "Standard Viewer"
396
  msgstr ""
397
 
398
- #: libs/lib-profile.php:54
399
  msgid "Embed the basic viewer only"
400
  msgstr ""
401
 
402
- #: libs/lib-profile.php:55
403
  msgid "Enhanced Viewer"
404
  msgstr ""
405
 
406
- #: libs/lib-profile.php:55
407
  msgid "Enable extended viewer options"
408
  msgstr ""
409
 
410
- #: libs/lib-profile.php:65
411
  msgid "Enhanced Viewer Settings"
412
  msgstr ""
413
 
414
- #: libs/lib-profile.php:69
415
  msgid "Toolbar"
416
  msgstr ""
417
 
418
- #: libs/lib-profile.php:73
419
  msgid "Remove Toolbar"
420
  msgstr ""
421
 
422
- #: libs/lib-profile.php:78
423
  msgid "Use Mobile Toolbar"
424
  msgstr ""
425
 
426
- #: libs/lib-profile.php:82
427
  msgid "Mobile Devices Only (Default)"
428
  msgstr ""
429
 
430
- #: libs/lib-profile.php:82
431
  msgid "Use mobile toolbar when mobile device detected"
432
  msgstr ""
433
 
434
- #: libs/lib-profile.php:83
435
  msgid "Always"
436
  msgstr ""
437
 
438
- #: libs/lib-profile.php:83
439
  msgid "Use mobile toolbar for all visitors"
440
  msgstr ""
441
 
442
- #: libs/lib-profile.php:84
443
  msgid "Never"
444
  msgstr ""
445
 
446
- #: libs/lib-profile.php:84
447
  msgid "Never use mobile toolbar"
448
  msgstr ""
449
 
450
- #: libs/lib-profile.php:91
451
  msgid "Toolbar Items"
452
  msgstr ""
453
 
454
- #: libs/lib-profile.php:94
455
  msgid "Page Numbers"
456
  msgstr ""
457
 
458
- #: libs/lib-profile.php:95
459
  msgid "Previous/Next Page"
460
  msgstr ""
461
 
462
- #: libs/lib-profile.php:96
463
  msgid "Zoom In/Out"
464
  msgstr ""
465
 
466
- #: libs/lib-profile.php:97
467
  msgid "Full Screen/New Window"
468
  msgstr ""
469
 
470
- #: libs/lib-profile.php:100
471
  msgid ""
472
  "Uncheck items to remove from toolbar. Buttons will vary based on file type "
473
  "and device used."
474
  msgstr ""
475
 
476
- #: libs/lib-profile.php:104
477
  msgid "Full Screen Behavior"
478
  msgstr ""
479
 
480
- #: libs/lib-profile.php:108
481
  msgid "Google-Hosted Page (Default)"
482
  msgstr ""
483
 
484
- #: libs/lib-profile.php:110
485
  msgid "Full Screen Viewer"
486
  msgstr ""
487
 
488
- #: libs/lib-profile.php:115
489
  msgid "Open in New Window"
490
  msgstr ""
491
 
492
- #: libs/lib-profile.php:116
493
  msgid "Allow Logged-in Users Only"
494
  msgstr ""
495
 
496
- #: libs/lib-profile.php:117
497
  msgid "Allow Printing"
498
  msgstr ""
499
 
500
- #: libs/lib-profile.php:122
501
  msgid "Page Area Background Color"
502
  msgstr ""
503
 
504
- #: libs/lib-profile.php:127
505
  msgid "None (Transparent)"
506
  msgstr ""
507
 
508
- #: libs/lib-profile.php:132
509
  msgid "Page Border Color"
510
  msgstr ""
511
 
512
- #: libs/lib-profile.php:137
513
  msgid "No Border"
514
  msgstr ""
515
 
516
- #: libs/lib-profile.php:142
517
  msgid "Custom CSS File"
518
  msgstr ""
519
 
520
- #: libs/lib-profile.php:148
521
  msgid "URL of custom CSS file (may override some of the above options)"
522
  msgstr ""
523
 
524
- #: libs/lib-profile.php:152
525
  msgid "Security"
526
  msgstr ""
527
 
528
- #: libs/lib-profile.php:155
529
  msgid "Hide ability to select/copy/paste text"
530
  msgstr ""
531
 
532
- #: libs/lib-profile.php:156
533
  msgid "Block all download requests for file"
534
  msgstr ""
535
 
536
- #: libs/lib-profile.php:167
537
  msgid "Default Language"
538
  msgstr ""
539
 
540
- #: libs/lib-profile.php:179
541
  msgid "Language of toolbar button tips"
542
  msgstr ""
543
 
544
- #: libs/lib-profile.php:183
545
  msgid "Default Size"
546
  msgstr ""
547
 
548
- #: libs/lib-profile.php:194
549
  msgid "Enter as pixels or percentage (example: 500px or 100%)"
550
  msgstr ""
551
 
552
- #: libs/lib-profile.php:198
553
  msgid "File Base URL"
554
  msgstr ""
555
 
556
- #: libs/lib-profile.php:204
557
  msgid ""
558
  "Any file not starting with <code>http</code> will be prefixed by this value"
559
  msgstr ""
560
 
561
- #: libs/lib-profile.php:208
562
  msgid "Download Link"
563
  msgstr ""
564
 
565
- #: libs/lib-profile.php:212
566
  msgid "All Users"
567
  msgstr ""
568
 
569
- #: libs/lib-profile.php:212
570
  msgid "Download link visible to everyone by default"
571
  msgstr ""
572
 
573
- #: libs/lib-profile.php:213
574
  msgid "Logged-in Users"
575
  msgstr ""
576
 
577
- #: libs/lib-profile.php:213
578
  msgid "Download link visible to logged-in users"
579
  msgstr ""
580
 
581
- #: libs/lib-profile.php:214 libs/tab-advanced.php:93
582
  msgid "None"
583
  msgstr ""
584
 
585
- #: libs/lib-profile.php:214
586
  msgid "Download link is not visible by default"
587
  msgstr ""
588
 
589
- #: libs/lib-profile.php:221
590
  msgid "Link Text"
591
  msgstr ""
592
 
593
- #: libs/lib-profile.php:224
594
  msgid "You can further customize text using these dynamic replacements:"
595
  msgstr ""
596
 
597
- #: libs/lib-profile.php:225
598
  msgid "filename"
599
  msgstr ""
600
 
601
- #: libs/lib-profile.php:226
602
  msgid "file type"
603
  msgstr ""
604
 
605
- #: libs/lib-profile.php:227
606
  msgid "file size"
607
  msgstr ""
608
 
609
- #: libs/lib-profile.php:231
610
  msgid "Link Position"
611
  msgstr ""
612
 
613
- #: libs/lib-profile.php:235
614
  msgid "Above Viewer"
615
  msgstr ""
616
 
617
- #: libs/lib-profile.php:236
618
  msgid "Below Viewer"
619
  msgstr ""
620
 
621
- #: libs/lib-profile.php:242
622
  msgid "Link Behavior"
623
  msgstr ""
624
 
625
- #: libs/lib-profile.php:245
626
  msgid "Force download (bypass browser plugins)"
627
  msgstr ""
628
 
629
- #: libs/lib-profile.php:246
630
  msgid "Shorten URL"
631
  msgstr ""
632
 
633
- #: libs/lib-profile.php:254 libs/tab-advanced.php:122
634
  msgid "Save Changes"
635
  msgstr ""
636
 
637
- #: libs/lib-setup.php:64
638
  msgid "This is the default profile, used when no profile is specified."
639
  msgstr ""
640
 
641
- #: libs/lib-setup.php:89
642
  msgid "Hide document location and text selection, prevent downloads"
643
  msgstr ""
644
 
645
- #: libs/lib-setup.php:114
646
  msgid "Dark-colored theme, example of custom CSS option"
647
  msgstr ""
648
 
@@ -843,19 +847,22 @@ msgstr ""
843
 
844
  #: libs/tab-support.php:27
845
  msgid ""
846
- "Please review the documentation before submitting a request for support:"
 
847
  msgstr ""
848
 
849
  #: libs/tab-support.php:30
850
  msgid "Plugin FAQ"
851
  msgstr ""
852
 
853
- #: libs/tab-support.php:32
854
- msgid "If you're still experiencing a problem, please complete the form below."
855
  msgstr ""
856
 
857
  #: libs/tab-support.php:38
858
- msgid "Support Request"
 
 
859
  msgstr ""
860
 
861
  #: libs/tab-support.php:42
@@ -924,21 +931,21 @@ msgid ""
924
  "attached."
925
  msgstr ""
926
 
927
- #: libs/tab-support.php:158
928
  msgid ""
929
  "I'm less likely to be able to help you if you do not include debug "
930
  "information."
931
  msgstr ""
932
 
933
- #: libs/tab-support.php:160
934
  msgid "Send Request"
935
  msgstr ""
936
 
937
- #: libs/tab-support.php:164
938
  msgid "Request Sent"
939
  msgstr ""
940
 
941
- #: libs/tab-support.php:165
942
  msgid ""
943
  "Delivery failed. You can manually send this information to wpp@tnw.org for "
944
  "help."
2
  msgstr ""
3
  "Project-Id-Version: Google Doc Embedder\n"
4
  "POT-Creation-Date: 2013-01-29 13:40-0600\n"
5
+ "PO-Revision-Date: 2013-08-23 08:23-0600\n"
6
+ "Last-Translator: Kevin Davis <kev@tnw.org>\n"
7
  "Language-Team: Kevin Davis <wpp@tnw.org>\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "X-Poedit-KeywordsList: __;_e\n"
12
  "X-Poedit-SearchPath-0: .\n"
13
 
14
+ #: functions-admin.php:266
15
  msgid "Import"
16
  msgstr ""
17
 
18
+ #: functions-admin.php:277
19
  msgid "Performing full import..."
20
  msgstr ""
21
 
22
+ #: functions-admin.php:281 functions-admin.php:306
23
  msgid "Importing profiles"
24
  msgstr ""
25
 
26
+ #: functions-admin.php:287 functions-admin.php:301 functions-admin.php:312
27
+ #: functions-admin.php:325
28
  msgid "done"
29
  msgstr ""
30
 
31
+ #: functions-admin.php:290 functions-admin.php:299 functions-admin.php:315
32
+ #: functions-admin.php:323
33
  msgid "failed"
34
  msgstr ""
35
 
36
+ #: functions-admin.php:296
37
  msgid "Importing settings"
38
  msgstr ""
39
 
40
+ #: functions-admin.php:319
41
  msgid "Importing settings... "
42
  msgstr ""
43
 
44
+ #: functions-admin.php:328 functions-admin.php:571 options.php:141
45
  msgid "Please select a valid export file to import."
46
  msgstr ""
47
 
48
+ #: functions-admin.php:332
49
  msgid "All or part of the import failed. See above for information."
50
  msgstr ""
51
 
52
+ #: functions-admin.php:334
53
  msgid "Import completed successfully."
54
  msgstr ""
55
 
56
+ #: functions-admin.php:337
57
  msgid "Return to GDE Settings"
58
  msgstr ""
59
 
60
+ #: functions-admin.php:414 functions-admin.php:540 options.php:168
61
  #: libs/tab-advanced.php:143
62
  msgid "Settings"
63
  msgstr ""
64
 
65
+ #: functions-admin.php:423
66
  msgid "You do not have sufficient permissions to access this page"
67
  msgstr ""
68
 
69
+ #: functions-admin.php:528
70
  msgid "plugin"
71
  msgstr ""
72
 
73
+ #: functions-admin.php:529
74
  msgid "Version"
75
  msgstr ""
76
 
77
+ #: functions-admin.php:567
78
  msgid "This profile will be permanently deleted."
79
  msgstr ""
80
 
81
+ #: functions-admin.php:567 functions-admin.php:568 functions-admin.php:569
82
+ #: functions-admin.php:572
83
  msgid "Are you sure?"
84
  msgstr ""
85
 
86
+ #: functions-admin.php:568
87
  msgid "Settings for this profile will overwrite the default profile."
88
  msgstr ""
89
 
90
+ #: functions-admin.php:569
91
  msgid ""
92
  "Your profile list will be reset to its original state. All changes will be "
93
  "lost."
94
  msgstr ""
95
 
96
+ #: functions-admin.php:572
97
  msgid ""
98
  "Any settings or duplicate profile names in this import will overwrite the "
99
  "current values."
100
  msgstr ""
101
 
102
+ #: functions-admin.php:574
103
  msgid "Please include a shortcode or message to request support."
104
  msgstr ""
105
 
106
+ #: functions-admin.php:612
107
  msgid "Embed file using Google Doc Embedder"
108
  msgstr ""
109
 
110
+ #: functions-admin.php:629 libs/lib-eddialog.php:85
111
  msgid "Select the GDE viewer profile to use"
112
  msgstr ""
113
 
114
+ #: functions-admin.php:780
115
  msgid ""
116
  "You are running a pre-release version of Google Doc Embedder. Please watch "
117
  "this space for important updates."
130
  msgstr ""
131
 
132
  #: functions.php:107
133
+ msgid "Unable to determine file type from URL"
134
+ msgstr ""
135
+
136
+ #: functions.php:108
137
  msgid "Error retrieving file - if necessary turn off error checking"
138
  msgstr ""
139
 
140
+ #: functions.php:232
141
  msgid "Unknown"
142
  msgstr ""
143
 
144
  # Megabytes (for file size reporting)
145
+ #: functions.php:234 libs/tab-advanced.php:38
146
  msgid "MB"
147
  msgstr ""
148
 
149
+ #: functions.php:366 gviewer.php:304 libs/lib-setup.php:71
150
+ #: libs/lib-setup.php:121
151
  msgid "Download"
152
  msgstr ""
153
 
154
+ #: functions.php:505 view.php:417
155
  msgid "Error"
156
  msgstr ""
157
 
163
  msgid "Unable to load requested profile."
164
  msgstr ""
165
 
166
+ #: gviewer.php:238
167
  msgid "Unable to secure document"
168
  msgstr ""
169
 
170
+ #: gviewer.php:401
171
  msgid "Setup wasn't able to create the required database tables."
172
  msgstr ""
173
 
174
  #: load.php:8 libs/lib-formsubmit.php:9 libs/lib-secure.php:9
175
+ #: libs/lib-service.php:12 libs/lib-service.php:59 libs/lib-service.php:80
176
  msgid "You do not have sufficient permissions to access this page."
177
  msgstr ""
178
 
252
  msgid "Support"
253
  msgstr ""
254
 
255
+ #: options.php:349 libs/tab-support.php:29
256
  msgid "Help"
257
  msgstr ""
258
 
268
  msgid "Make Default"
269
  msgstr ""
270
 
271
+ #: view.php:42
272
  msgid "Invalid URL format"
273
  msgstr ""
274
 
275
+ #: view.php:418
276
  msgid ""
277
  "Unable to retrieve document contents. Please try again or switch to Standard "
278
  "Viewer."
326
  msgid "Use selected profile settings"
327
  msgstr ""
328
 
329
+ #: libs/lib-eddialog.php:103 libs/lib-profile.php:201
330
  msgid "Height"
331
  msgstr ""
332
 
333
+ #: libs/lib-eddialog.php:108 libs/lib-profile.php:197
334
  msgid "Width"
335
  msgstr ""
336
 
391
  msgid "Edit Profile"
392
  msgstr ""
393
 
394
+ #: libs/lib-profile.php:62
395
  msgid "Viewer Mode"
396
  msgstr ""
397
 
398
+ #: libs/lib-profile.php:66
399
  msgid "Standard Viewer"
400
  msgstr ""
401
 
402
+ #: libs/lib-profile.php:66
403
  msgid "Embed the basic viewer only"
404
  msgstr ""
405
 
406
+ #: libs/lib-profile.php:67
407
  msgid "Enhanced Viewer"
408
  msgstr ""
409
 
410
+ #: libs/lib-profile.php:67
411
  msgid "Enable extended viewer options"
412
  msgstr ""
413
 
414
+ #: libs/lib-profile.php:77
415
  msgid "Enhanced Viewer Settings"
416
  msgstr ""
417
 
418
+ #: libs/lib-profile.php:81
419
  msgid "Toolbar"
420
  msgstr ""
421
 
422
+ #: libs/lib-profile.php:85
423
  msgid "Remove Toolbar"
424
  msgstr ""
425
 
426
+ #: libs/lib-profile.php:90
427
  msgid "Use Mobile Toolbar"
428
  msgstr ""
429
 
430
+ #: libs/lib-profile.php:94
431
  msgid "Mobile Devices Only (Default)"
432
  msgstr ""
433
 
434
+ #: libs/lib-profile.php:94
435
  msgid "Use mobile toolbar when mobile device detected"
436
  msgstr ""
437
 
438
+ #: libs/lib-profile.php:95
439
  msgid "Always"
440
  msgstr ""
441
 
442
+ #: libs/lib-profile.php:95
443
  msgid "Use mobile toolbar for all visitors"
444
  msgstr ""
445
 
446
+ #: libs/lib-profile.php:96
447
  msgid "Never"
448
  msgstr ""
449
 
450
+ #: libs/lib-profile.php:96
451
  msgid "Never use mobile toolbar"
452
  msgstr ""
453
 
454
+ #: libs/lib-profile.php:103
455
  msgid "Toolbar Items"
456
  msgstr ""
457
 
458
+ #: libs/lib-profile.php:106
459
  msgid "Page Numbers"
460
  msgstr ""
461
 
462
+ #: libs/lib-profile.php:107
463
  msgid "Previous/Next Page"
464
  msgstr ""
465
 
466
+ #: libs/lib-profile.php:108
467
  msgid "Zoom In/Out"
468
  msgstr ""
469
 
470
+ #: libs/lib-profile.php:109
471
  msgid "Full Screen/New Window"
472
  msgstr ""
473
 
474
+ #: libs/lib-profile.php:112
475
  msgid ""
476
  "Uncheck items to remove from toolbar. Buttons will vary based on file type "
477
  "and device used."
478
  msgstr ""
479
 
480
+ #: libs/lib-profile.php:116
481
  msgid "Full Screen Behavior"
482
  msgstr ""
483
 
484
+ #: libs/lib-profile.php:120
485
  msgid "Google-Hosted Page (Default)"
486
  msgstr ""
487
 
488
+ #: libs/lib-profile.php:122
489
  msgid "Full Screen Viewer"
490
  msgstr ""
491
 
492
+ #: libs/lib-profile.php:127
493
  msgid "Open in New Window"
494
  msgstr ""
495
 
496
+ #: libs/lib-profile.php:128
497
  msgid "Allow Logged-in Users Only"
498
  msgstr ""
499
 
500
+ #: libs/lib-profile.php:129
501
  msgid "Allow Printing"
502
  msgstr ""
503
 
504
+ #: libs/lib-profile.php:134
505
  msgid "Page Area Background Color"
506
  msgstr ""
507
 
508
+ #: libs/lib-profile.php:139
509
  msgid "None (Transparent)"
510
  msgstr ""
511
 
512
+ #: libs/lib-profile.php:144
513
  msgid "Page Border Color"
514
  msgstr ""
515
 
516
+ #: libs/lib-profile.php:149
517
  msgid "No Border"
518
  msgstr ""
519
 
520
+ #: libs/lib-profile.php:154
521
  msgid "Custom CSS File"
522
  msgstr ""
523
 
524
+ #: libs/lib-profile.php:160
525
  msgid "URL of custom CSS file (may override some of the above options)"
526
  msgstr ""
527
 
528
+ #: libs/lib-profile.php:164
529
  msgid "Security"
530
  msgstr ""
531
 
532
+ #: libs/lib-profile.php:167
533
  msgid "Hide ability to select/copy/paste text"
534
  msgstr ""
535
 
536
+ #: libs/lib-profile.php:168
537
  msgid "Block all download requests for file"
538
  msgstr ""
539
 
540
+ #: libs/lib-profile.php:179
541
  msgid "Default Language"
542
  msgstr ""
543
 
544
+ #: libs/lib-profile.php:191
545
  msgid "Language of toolbar button tips"
546
  msgstr ""
547
 
548
+ #: libs/lib-profile.php:195
549
  msgid "Default Size"
550
  msgstr ""
551
 
552
+ #: libs/lib-profile.php:206
553
  msgid "Enter as pixels or percentage (example: 500px or 100%)"
554
  msgstr ""
555
 
556
+ #: libs/lib-profile.php:210
557
  msgid "File Base URL"
558
  msgstr ""
559
 
560
+ #: libs/lib-profile.php:216
561
  msgid ""
562
  "Any file not starting with <code>http</code> will be prefixed by this value"
563
  msgstr ""
564
 
565
+ #: libs/lib-profile.php:220
566
  msgid "Download Link"
567
  msgstr ""
568
 
569
+ #: libs/lib-profile.php:224
570
  msgid "All Users"
571
  msgstr ""
572
 
573
+ #: libs/lib-profile.php:224
574
  msgid "Download link visible to everyone by default"
575
  msgstr ""
576
 
577
+ #: libs/lib-profile.php:225
578
  msgid "Logged-in Users"
579
  msgstr ""
580
 
581
+ #: libs/lib-profile.php:225
582
  msgid "Download link visible to logged-in users"
583
  msgstr ""
584
 
585
+ #: libs/lib-profile.php:226 libs/tab-advanced.php:93
586
  msgid "None"
587
  msgstr ""
588
 
589
+ #: libs/lib-profile.php:226
590
  msgid "Download link is not visible by default"
591
  msgstr ""
592
 
593
+ #: libs/lib-profile.php:233
594
  msgid "Link Text"
595
  msgstr ""
596
 
597
+ #: libs/lib-profile.php:236
598
  msgid "You can further customize text using these dynamic replacements:"
599
  msgstr ""
600
 
601
+ #: libs/lib-profile.php:237
602
  msgid "filename"
603
  msgstr ""
604
 
605
+ #: libs/lib-profile.php:238
606
  msgid "file type"
607
  msgstr ""
608
 
609
+ #: libs/lib-profile.php:239
610
  msgid "file size"
611
  msgstr ""
612
 
613
+ #: libs/lib-profile.php:243
614
  msgid "Link Position"
615
  msgstr ""
616
 
617
+ #: libs/lib-profile.php:247
618
  msgid "Above Viewer"
619
  msgstr ""
620
 
621
+ #: libs/lib-profile.php:248
622
  msgid "Below Viewer"
623
  msgstr ""
624
 
625
+ #: libs/lib-profile.php:254
626
  msgid "Link Behavior"
627
  msgstr ""
628
 
629
+ #: libs/lib-profile.php:257
630
  msgid "Force download (bypass browser plugins)"
631
  msgstr ""
632
 
633
+ #: libs/lib-profile.php:258
634
  msgid "Shorten URL"
635
  msgstr ""
636
 
637
+ #: libs/lib-profile.php:266 libs/tab-advanced.php:122
638
  msgid "Save Changes"
639
  msgstr ""
640
 
641
+ #: libs/lib-setup.php:52
642
  msgid "This is the default profile, used when no profile is specified."
643
  msgstr ""
644
 
645
+ #: libs/lib-setup.php:77
646
  msgid "Hide document location and text selection, prevent downloads"
647
  msgstr ""
648
 
649
+ #: libs/lib-setup.php:102
650
  msgid "Dark-colored theme, example of custom CSS option"
651
  msgstr ""
652
 
847
 
848
  #: libs/tab-support.php:27
849
  msgid ""
850
+ "Most support questions have already been answered. Please review these pages "
851
+ "before asking for support:"
852
  msgstr ""
853
 
854
  #: libs/tab-support.php:30
855
  msgid "Plugin FAQ"
856
  msgstr ""
857
 
858
+ #: libs/tab-support.php:37
859
+ msgid "Support Request"
860
  msgstr ""
861
 
862
  #: libs/tab-support.php:38
863
+ msgid ""
864
+ "Requests sent from this form are handled by an actual human, so please don't "
865
+ "send test messages or other spam."
866
  msgstr ""
867
 
868
  #: libs/tab-support.php:42
931
  "attached."
932
  msgstr ""
933
 
934
+ #: libs/tab-support.php:160
935
  msgid ""
936
  "I'm less likely to be able to help you if you do not include debug "
937
  "information."
938
  msgstr ""
939
 
940
+ #: libs/tab-support.php:162
941
  msgid "Send Request"
942
  msgstr ""
943
 
944
+ #: libs/tab-support.php:166
945
  msgid "Request Sent"
946
  msgstr ""
947
 
948
+ #: libs/tab-support.php:167
949
  msgid ""
950
  "Delivery failed. You can manually send this information to wpp@tnw.org for "
951
  "help."
libs/lib-formsubmit.php CHANGED
@@ -27,20 +27,22 @@ if ( ! function_exists('gde_activate') ) {
27
  $phpmailer->AddStringAttachment( $contents, $file, 'base64', 'text/plain' );
28
 
29
  // gather dx log
 
30
  $blogid = get_current_blog_id();
31
  $datasrc = GDE_PLUGIN_URL . 'libs/lib-service.php?viewlog=all&blogid=' . $blogid;
32
  $response = wp_remote_get( $datasrc );
33
  if ( is_wp_error( $response ) ) {
34
  $contents = "[InternetShortcut]\nURL=" . $datasrc ."\n";
35
  $file = "remote-dx-log.url";
36
- } else {
37
  $contents = $response['body'];
38
  $file = "dx-log.txt";
39
  }
40
- $phpmailer->AddStringAttachment( $contents, $file, 'base64', 'text/plain' );
 
 
41
  }
42
 
43
-
44
  function gde_change_mail( $mail ) {
45
  return $_POST['email'];
46
  }
@@ -63,7 +65,7 @@ if ( ! function_exists('gde_activate') ) {
63
  */
64
  $to = "wpp@dev.davismetro.com";
65
 
66
- $subject = "GDE Support Request";
67
 
68
  $headers = "";
69
  if ($_POST['cc'] == "yes") {
27
  $phpmailer->AddStringAttachment( $contents, $file, 'base64', 'text/plain' );
28
 
29
  // gather dx log
30
+ unset( $file );
31
  $blogid = get_current_blog_id();
32
  $datasrc = GDE_PLUGIN_URL . 'libs/lib-service.php?viewlog=all&blogid=' . $blogid;
33
  $response = wp_remote_get( $datasrc );
34
  if ( is_wp_error( $response ) ) {
35
  $contents = "[InternetShortcut]\nURL=" . $datasrc ."\n";
36
  $file = "remote-dx-log.url";
37
+ } else if ( strlen( $response['body'] ) > 0 ){
38
  $contents = $response['body'];
39
  $file = "dx-log.txt";
40
  }
41
+ if ( isset( $file ) ) {
42
+ $phpmailer->AddStringAttachment( $contents, $file, 'base64', 'text/plain' );
43
+ }
44
  }
45
 
 
46
  function gde_change_mail( $mail ) {
47
  return $_POST['email'];
48
  }
65
  */
66
  $to = "wpp@dev.davismetro.com";
67
 
68
+ $subject = "GDE Support Request [#" . uniqid() . "]";
69
 
70
  $headers = "";
71
  if ($_POST['cc'] == "yes") {
libs/lib-service.php CHANGED
@@ -65,16 +65,16 @@ if ( isset( $_REQUEST['json'] ) ) {
65
  $blogid = get_current_blog_id();
66
 
67
  $table = $wpdb->base_prefix . 'gde_dx_log';
68
- $data = $wpdb->get_col( "SELECT * FROM $table WHERE blogid = '$blogid' ORDER BY id ASC", 2 );
69
-
70
- header('Content-type: text/plain');
71
-
72
- if ( is_array( $data ) ) {
73
- foreach ( $data as $v ) {
74
- echo $v . "\n";
 
 
75
  }
76
- } else {
77
- wp_die('<p>'.__('You do not have sufficient permissions to access this page.').'</p>');
78
  }
79
  } else {
80
  wp_die('<p>'.__('You do not have sufficient permissions to access this page.').'</p>');
65
  $blogid = get_current_blog_id();
66
 
67
  $table = $wpdb->base_prefix . 'gde_dx_log';
68
+ $check = $wpdb->query("SHOW TABLES LIKE '" . $table . "'");
69
+ //if ( mysql_num_rows( $check ) > 0 ) {
70
+ if ( $check ) {
71
+ $data = $wpdb->get_col( "SELECT * FROM $table WHERE blogid = '$blogid' ORDER BY id ASC", 2 );
72
+ header('Content-type: text/plain');
73
+ if ( is_array( $data ) ) {
74
+ foreach ( $data as $v ) {
75
+ echo $v . "\n";
76
+ }
77
  }
 
 
78
  }
79
  } else {
80
  wp_die('<p>'.__('You do not have sufficient permissions to access this page.').'</p>');
libs/tab-support.php CHANGED
@@ -24,18 +24,18 @@
24
  ?>
25
 
26
  <div class="gde-support-warn">
27
- <p><strong><?php _e('Please review the documentation before submitting a request for support:', 'gde'); ?></strong></p>
28
  <ul style="list-style-type:square; padding-left:25px;line-height:1em;">
29
- <li><a href="<?php echo $pdata['PluginURI']; ?>">Google Doc Embedder</a></li>
30
  <li><a href="<?php echo GDE_WP_URL; ?>faq/"><?php _e('Plugin FAQ', 'gde'); ?></a></li>
31
  </ul>
32
- <p><?php _e("If you're still experiencing a problem, please complete the form below.", 'gde'); ?></p>
33
  </div>
34
  <br clear="both" />
35
 
36
  <form action="<?php echo GDE_PLUGIN_URL;?>libs/lib-formsubmit.php" id="debugForm">
37
 
38
  <h3><?php _e('Support Request', 'gde'); ?></h3>
 
39
 
40
  <table class="form-table">
41
  <tr valign="top">
24
  ?>
25
 
26
  <div class="gde-support-warn">
27
+ <p><strong><?php _e('Most support questions have already been answered. Please review these pages before asking for support:', 'gde'); ?></strong></p>
28
  <ul style="list-style-type:square; padding-left:25px;line-height:1em;">
29
+ <li><a href="<?php echo $pdata['PluginURI']; ?>/notes/">Google Doc Embedder <?php _e('Help', 'gde'); ?></a></li>
30
  <li><a href="<?php echo GDE_WP_URL; ?>faq/"><?php _e('Plugin FAQ', 'gde'); ?></a></li>
31
  </ul>
 
32
  </div>
33
  <br clear="both" />
34
 
35
  <form action="<?php echo GDE_PLUGIN_URL;?>libs/lib-formsubmit.php" id="debugForm">
36
 
37
  <h3><?php _e('Support Request', 'gde'); ?></h3>
38
+ <p><?php _e("Requests sent from this form are handled by an actual human, so please don't send test messages or other spam.", 'gde'); ?></p>
39
 
40
  <table class="form-table">
41
  <tr valign="top">
readme.txt CHANGED
@@ -137,8 +137,13 @@ More common questions are answered on the GDE web site [here](http://www.davistr
137
 
138
  (E) Enhanced Viewer
139
 
 
 
 
 
 
140
  = 2.5.7 =
141
- * Fixed: No submit button on support tab in using < WP 3.4 (thanks fatherb)
142
  * Fixed: save=0 option not respected in some cases
143
  * Fixed: (E) cache=0 option breaks secure document display (thanks Manish)
144
  * Fixed: (E) Javascript sometimes broken with WP_DEBUG enabled
@@ -251,5 +256,5 @@ More common questions are answered on the GDE web site [here](http://www.davistr
251
 
252
  == Upgrade Notice ==
253
 
254
- = 2.5.7 =
255
  Maintenance release
137
 
138
  (E) Enhanced Viewer
139
 
140
+ = 2.5.8 =
141
+ * Added: (E) Right-click menu disabled on secure documents
142
+ * Fixed: Support tab service errors
143
+ * Changed: Czech translation updated (thanks Jirka)
144
+
145
  = 2.5.7 =
146
+ * Fixed: No submit button on support tab if using < WP 3.4 (thanks fatherb)
147
  * Fixed: save=0 option not respected in some cases
148
  * Fixed: (E) cache=0 option breaks secure document display (thanks Manish)
149
  * Fixed: (E) Javascript sometimes broken with WP_DEBUG enabled
256
 
257
  == Upgrade Notice ==
258
 
259
+ = 2.5.8 =
260
  Maintenance release
view.php CHANGED
@@ -179,7 +179,7 @@ if ( isset( $_GET['a'] ) && $_GET['a'] == 'gt') {
179
  }
180
 
181
  // hide selection of text
182
- if (strstr($vw, 'x')) {
183
  $search[] = 'class="page-image';
184
  $replace[] = 'class="page-image noselect';
185
  $newstyles[] = ".rubberband { display: none; }";
@@ -226,6 +226,26 @@ if ( isset( $_GET['a'] ) && $_GET['a'] == 'gt') {
226
  $replace[] = $cssblock;
227
  }
228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  // override new window behavior
230
  $src = "js/tb-newwin.php";
231
  if ( $mode == "embedded" && $profile['tb_fullscr'] !== "default" ) {
179
  }
180
 
181
  // hide selection of text
182
+ if ( strstr( $vw, 'x' ) ) {
183
  $search[] = 'class="page-image';
184
  $replace[] = 'class="page-image noselect';
185
  $newstyles[] = ".rubberband { display: none; }";
226
  $replace[] = $cssblock;
227
  }
228
 
229
+ // override right-click behavior (if link is private)
230
+ if ( $profile['link_block'] == "yes" ) {
231
+ $search[] = "<body";
232
+ $replace[] = '<body oncontextmenu="return false;"';
233
+ $search[] = "</body>";
234
+ $replace[] = '
235
+ <script type="text/javascript">
236
+ if (document.addEventListener) {
237
+ document.addEventListener(\'contextmenu\', function(e) {
238
+ e.preventDefault();
239
+ }, false);
240
+ } else {
241
+ document.attachEvent(\'oncontextmenu\', function() {
242
+ window.event.returnValue = false;
243
+ });
244
+ }
245
+ </script>
246
+ '."\n</body>";
247
+ }
248
+
249
  // override new window behavior
250
  $src = "js/tb-newwin.php";
251
  if ( $mode == "embedded" && $profile['tb_fullscr'] !== "default" ) {