-
Notifications
You must be signed in to change notification settings - Fork 76
/
wp-oauth-settings.php
1032 lines (957 loc) · 48.4 KB
/
wp-oauth-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// config check security
function wpoa_cc_security() {
$points = 0;
if (strpos(site_url(), "https://")) {
$points += 2;
}
if (get_option('wpoa_hide_wordpress_login_form') == 1) {
$points += 1;
}
if (get_option('wpoa_logout_inactive_users') > 0) {
$points += 1;
}
if (get_option('wpoa_http_util_verify_ssl') == 1) {
$points += 1;
}
if (get_option('wpoa_http_util') == 'curl') {
$points += 1;
}
$points_max = 6;
return floor(($points / $points_max) * 100);
}
// config check privacy
function wpoa_cc_privacy() {
$points = 0;
if (get_option('wpoa_logout_inactive_users') > 0) {
$points += 1;
}
// TODO: +1 for NOT using email address matching
$points_max = 1;
return floor(($points / $points_max) * 100);
}
// config check user experience
function wpoa_cc_ux() {
$points = 0;
if (get_option('wpoa_logo_links_to_site') == 1) {
$points += 1;
}
if (get_option('wpoa_show_login_messages') == 1) {
$points += 1;
}
$points_max = 2;
return floor(($points / $points_max) * 100);
}
// cache the config check ratings:
$cc_security = wpoa_cc_security();
$cc_privacy = wpoa_cc_privacy();
$cc_ux = wpoa_cc_ux();
?>
<div class='wrap wpoa-settings'>
<div id="wpoa-settings-meta">Toggle tips: <ul><li><a id="wpoa-settings-tips-on" href="#">On</a></li><li><a id="wpoa-settings-tips-off" href="#">Off</a></li></ul><div class="nav-splitter"></div>Toggle sections: <ul><li><a id="wpoa-settings-sections-on" href="#">On</a></li><li><a id="wpoa-settings-sections-off" href="#">Off</a></li></ul></div>
<h2>WP-OAuth Settings</h2>
<!-- START Settings Header -->
<div id="wpoa-settings-header"></div>
<!-- END Settings Header -->
<!-- START Settings Body -->
<div id="wpoa-settings-body">
<!-- START Settings Column 2 -->
<div id="wpoa-settings-col2" class="wpoa-settings-column">
<div id="wpoa-settings-section-about" class="wpoa-settings-section">
<h3>About</h3>
<div class='form-padding'>
<div id="wpoa-logo" style="width:64px; height:64px; float:right; background-size:100% 100%;"></div>
<p><span style="font-size:1.1em;"><strong>WP-OAuth <?php echo WPOA::PLUGIN_VERSION; ?></strong></span><br/>by <a href="http://glassocean.net" target="_blank"><strong>Perry Butler</strong></a></p>
<p>Rate it 5 stars: <a id="wpoa-rate-5stars" href="https://wordpress.org/support/view/plugin-reviews/wp-oauth?rate=5" target="_blank"><img src="http://ps.w.org/wp-oauth/assets/5stars.png" style="vertical-align:text-top;"></img></a></p>
<nav><ul><li><a href="https://wordpress.org/plugins/wp-oauth/" target="_blank">WP-OAuth at WordPress.org</a></li><li><a href="https://github.com/perrybutler/WP-OAuth" target="_blank">WP-OAuth at GitHub.com</a></li><li><a href="http://glassocean.net/wp-oauth-enhances-your-wordpress-login-and-registration/" target="_blank">WP-OAuth at GlassOcean.net</a></li></ul></nav>
</div>
</div>
<div id="wpoa-settings-section-news" class="wpoa-settings-section">
<h3>News</h3>
<div class='form-padding'>
<?php
$rss = fetch_feed("http://glassocean.net/tag/wp-oauth/feed/");
if (!is_wp_error($rss)) {
$maxitems = $rss->get_item_quantity(5);
$rss_items = $rss->get_items(0, $maxitems);
}
?>
<?php if ($maxitems == 0) : ?>
<p><?php _e("Sorry, news was inaccessible or does not exist.", 'my-text-domain' ); ?></p>
<?php else : ?>
<ul>
<?php foreach ($rss_items as $item) : ?>
<li>
<a href="<?php echo esc_url($item->get_permalink()); ?>"
title="<?php printf( __('Posted %s', 'my-text-domain'), $item->get_date('j F Y | g:i a') ); ?>"
target="_blank">
<?php echo esc_html($item->get_title()); ?>
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
<div id="wpoa-settings-section-config-check" class="wpoa-settings-section">
<h3>Config Check</h3>
<div class='form-padding'>
<p>These ratings are an estimate of <em>this plugin's current configuration</em> when compared to an optimum configuration.</p>
<div id='wpoa-measurements'>
<div class="has-tip">
<div class="wpoa-measurement-label">Security: <?php echo $cc_security; ?>% <a href="#" class="tip-button">[?]</a></div>
<div class="wpoa-measurement"><div class="wpoa-measurement-rating" style="width:<?php echo $cc_security; ?>%;"></div></div>
<p class="tip-message">
+2 if site is secured with an SSL certificate<br/>
+1 if Verify Peer/Host SSL Certificates = True<br/>
+1 if Hide the WordPress login form = True<br/>
+1 if Automatically logout inactive users = True<br/>
+1 if HTTP Utility = cURL<br/>
</p>
</div>
<div class="has-tip">
<div class="wpoa-measurement-label">Privacy: <?php echo $cc_privacy; ?>% <a href="#" class="tip-button">[?]</a></div>
<div class="wpoa-measurement"><div class="wpoa-measurement-rating" style="width:<?php echo $cc_privacy; ?>%;"></div></div>
<p class="tip-message">
+1 if Automatically logout inactive users = True<br/>
</p>
</div>
<div class="has-tip">
<div class="wpoa-measurement-label">User Experience: <?php echo $cc_ux; ?>% <a href="#" class="tip-button">[?]</a></div>
<div class="wpoa-measurement"><div class="wpoa-measurement-rating" style="width:<?php echo $cc_ux; ?>%;"></div></div>
<p class="tip-message">
+1 if Logo links to site = True<br/>
+1 if Show login messages = True<br/>
</p>
</div>
</div>
</div>
</div>
<div id="wpoa-settings-section-donate" class="wpoa-settings-section">
<h3>Donate</h3>
<div class='form-padding'>
<div id="wpoa-heart"></div>
<p>Do you enjoy using this plugin? Do you want to help improve it? Consider donating via <strong>PayPal</strong>!</p><p>WP-OAuth remains free of restrictions, advertisements, branding, etc. <em>Your donations help make this possible.</em></p>
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
$ <input type="text" style="width: 50px" name="amount" value="5">
<span>USD</span>
<input type="hidden" value="_xclick" name="cmd">
<input type="hidden" value="hectavex@gmail.com" name="business">
<input type="hidden" value="WP-OAuth" name="item_name">
<input type="hidden" value="0" name="no_shipping">
<input type="hidden" value="1" name="no_note">
<input type="hidden" value="Return to your dashboard" name="cbt">
<input type="hidden" value="USD" name="currency_code">
<input type="submit" id="wpoa-paypal-button" class="button" value="Donate">
</form>
</div>
</div>
<div id="wpoa-settings-section-support" class="wpoa-settings-section">
<h3 id="bookmark-login-page-form-customization">Support</h3>
<div class='form-padding'>
<p>Your general questions can be asked in the plugin <a href="https://wordpress.org/support/plugin/wp-oauth" target="_blank">support forum</a>.</p>
</div>
</div>
</div>
<!-- END Settings Column 2 -->
<!-- START Settings Column 1 -->
<div id="wpoa-settings-col1" class="wpoa-settings-column">
<form method='post' action='options.php'>
<?php settings_fields('wpoa_settings'); ?>
<?php do_settings_sections('wpoa_settings'); ?>
<!-- START General Settings section -->
<div id="wpoa-settings-section-general-settings" class="wpoa-settings-section">
<h3>General Settings</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top' class='has-tip' class="has-tip">
<th scope='row'>Show login messages: <a href="#" class="tip-button">[?]</a></th>
<td>
<input type='checkbox' name='wpoa_show_login_messages' value='1' <?php checked(get_option('wpoa_show_login_messages') == 1); ?> />
<p class="tip-message">Shows a short-lived notification message to the user which indicates whether or not the login was successful, and if there was an error.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Login redirects to: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_login_redirect'>
<option value='home_page' <?php selected(get_option('wpoa_login_redirect'), 'home_page'); ?>>Home Page</option>
<option value='last_page' <?php selected(get_option('wpoa_login_redirect'), 'last_page'); ?>>Last Page</option>
<option value='specific_page' <?php selected(get_option('wpoa_login_redirect'), 'specific_page'); ?>>Specific Page</option>
<option value='admin_dashboard' <?php selected(get_option('wpoa_login_redirect'), 'admin_dashboard'); ?>>Admin Dashboard</option>
<option value='user_profile' <?php selected(get_option('wpoa_login_redirect'), 'user_profile'); ?>>User's Profile Page</option>
<option value='custom_url' <?php selected(get_option('wpoa_login_redirect'), 'custom_url'); ?>>Custom URL</option>
</select>
<?php wp_dropdown_pages(array("id" => "wpoa_login_redirect_page", "name" => "wpoa_login_redirect_page", "selected" => get_option('wpoa_login_redirect_page'))); ?>
<input type="text" name="wpoa_login_redirect_url" value="<?php echo get_option('wpoa_login_redirect_url'); ?>" style="display:none;" />
<p class="tip-message">Specifies where to redirect a user after they log in.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logout redirects to: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_logout_redirect'>
<option value='default_handling' <?php selected(get_option('wpoa_logout_redirect'), 'default_handling'); ?>>Let WordPress handle it</option>
<option value='home_page' <?php selected(get_option('wpoa_logout_redirect'), 'home_page'); ?>>Home Page</option>
<option value='last_page' <?php selected(get_option('wpoa_logout_redirect'), 'last_page'); ?>>Last Page</option>
<option value='specific_page' <?php selected(get_option('wpoa_logout_redirect'), 'specific_page'); ?>>Specific Page</option>
<option value='admin_dashboard' <?php selected(get_option('wpoa_logout_redirect'), 'admin_dashboard'); ?>>Admin Dashboard</option>
<option value='user_profile' <?php selected(get_option('wpoa_logout_redirect'), 'user_profile'); ?>>User's Profile Page</option>
<option value='custom_url' <?php selected(get_option('wpoa_logout_redirect'), 'custom_url'); ?>>Custom URL</option>
</select>
<?php wp_dropdown_pages(array("id" => "wpoa_logout_redirect_page", "name" => "wpoa_logout_redirect_page", "selected" => get_option('wpoa_logout_redirect_page'))); ?>
<input type="text" name="wpoa_logout_redirect_url" value="<?php echo get_option('wpoa_logout_redirect_url'); ?>" style="display:none;" />
<p class="tip-message">Specifies where to redirect a user after they log out.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Automatically logout inactive users: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_logout_inactive_users'>
<option value='0' <?php selected(get_option('wpoa_logout_inactive_users'), '0'); ?>>Never</option>
<option value='1' <?php selected(get_option('wpoa_logout_inactive_users'), '1'); ?>>After 1 minute</option>
<option value='5' <?php selected(get_option('wpoa_logout_inactive_users'), '5'); ?>>After 5 minutes</option>
<option value='15' <?php selected(get_option('wpoa_logout_inactive_users'), '15'); ?>>After 15 minutes</option>
<option value='30' <?php selected(get_option('wpoa_logout_inactive_users'), '30'); ?>>After 30 minutes</option>
<option value='60' <?php selected(get_option('wpoa_logout_inactive_users'), '60'); ?>>After 1 hour</option>
<option value='120' <?php selected(get_option('wpoa_logout_inactive_users'), '120'); ?>>After 2 hours</option>
<option value='240' <?php selected(get_option('wpoa_logout_inactive_users'), '240'); ?>>After 4 hours</option>
</select>
<p class="tip-message">Specifies whether to log out users automatically after a period of inactivity.</p>
<p class="tip-message tip-warning"><strong>Warning:</strong> When a user logs out of WordPress, they will remain logged into their third-party provider until they close their browser. Logging out of WordPress DOES NOT log you out of Google, Facebook, LinkedIn, etc...</p>
</td>
</tr>
</table> <!-- .form-table -->
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END General Settings section -->
<!-- START Login Page & Form Customization section -->
<div id="wpoa-settings-section-login-forms" class="wpoa-settings-section">
<h3>Login Forms</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th colspan="2">
<h4>Default Login Form / Page / Popup</h4>
</th>
</td>
<tr valign='top' class="has-tip">
<th scope='row'>Hide the WordPress login form: <a href="#" class="tip-button">[?]</a></th>
<td>
<input type='checkbox' name='wpoa_hide_wordpress_login_form' value='1' <?php checked(get_option('wpoa_hide_wordpress_login_form') == 1); ?> />
<p class="tip-message">Use this to hide the WordPress username/password login form that is shown by default on the Login Screen and Login Popup.</p>
<p class="tip-message tip-warning"><strong>Warning: </strong>Hiding the WordPress login form may prevent you from being able to login. If you normally rely on this method, DO NOT enable this setting. Furthermore, please make sure your login provider(s) are active and working BEFORE enabling this setting.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logo links to site: <a href="#" class="tip-button">[?]</a></th>
<td>
<input type='checkbox' name='wpoa_logo_links_to_site' value='1' <?php checked(get_option('wpoa_logo_links_to_site') == 1); ?> />
<p class="tip-message">Forces the logo image on the login form to link to your site instead of WordPress.org.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logo image: <a href="#" class="tip-button">[?]</a></th>
<td>
<p>
<input id='wpoa_logo_image' type='text' size='' name='wpoa_logo_image' value="<?php echo get_option('wpoa_logo_image'); ?>" />
<input id='wpoa_logo_image_button' type='button' class='button' value='Select' />
</p>
<p class="tip-message">Changes the default WordPress logo on the login form to an image of your choice. You may select an image from the Media Library, or specify a custom URL.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Background image: <a href="#" class="tip-button">[?]</a></th>
<td>
<p>
<input id='wpoa_bg_image' type='text' size='' name='wpoa_bg_image' value="<?php echo get_option('wpoa_bg_image'); ?>" />
<input id='wpoa_bg_image_button' type='button' class='button' value='Select' />
</p>
<p class="tip-message">Changes the background on the login form to an image of your choice. You may select an image from the Media Library, or specify a custom URL.</p>
</td>
</tr>
<tr valign='top'>
<th colspan="2">
<h4>Custom Login Forms</h4>
</th>
</td>
<tr valign='top' class="has-tip">
<th scope='row'>Custom form to show on the login screen: <a href="#" class="tip-button">[?]</a></th>
<td>
<?php echo WPOA::wpoa_login_form_designs_selector('wpoa-login-form-show-login-screen'); ?>
<p class="tip-message">Create or manage these login form designs in the CUSTOM LOGIN FORM DESIGNS section.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Custom form to show on the user's profile page: <a href="#" class="tip-button">[?]</a></th>
<td>
<?php echo WPOA::wpoa_login_form_designs_selector('wpoa-login-form-show-profile-page'); ?>
<p class="tip-message">Create or manage these login form designs in the CUSTOM LOGIN FORM DESIGNS section.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Custom form to show in the comments section: <a href="#" class="tip-button">[?]</a></th>
<td>
<?php echo WPOA::wpoa_login_form_designs_selector('wpoa-login-form-show-comments-section'); ?>
<p class="tip-message">Create or manage these login form designs in the CUSTOM LOGIN FORM DESIGNS section.</p>
</td>
</tr>
</table> <!-- .form-table -->
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login Page & Form Customization section -->
<!-- START Custom Login Form Designs section -->
<div id="wpoa-settings-section-custom-login-form-designs" class="wpoa-settings-section">
<h3>Custom Login Form Designs</h3>
<div class='form-padding'>
<p>You may create multiple login form <strong><em>designs</em></strong> and use them throughout your site. A design is essentially a re-usable <em>shortcode preset</em>. Instead of writing out the login form shortcode ad-hoc each time you want to use it, you can build a design here, save it, and then specify that design in the shortcode's <em>design</em> attribute. For example: <pre><code>[wpoa_login_form design='CustomDesign1']</code></pre></p>
<table class='form-table'>
<tr valign='top' class="has-tip">
<th scope='row'>Design: <a href="#" class="tip-button">[?]</a></th>
<td>
<?php echo WPOA::wpoa_login_form_designs_selector('wpoa-login-form-design', true); ?>
<p>
<input type="button" id="wpoa-login-form-new" class="button" value="New">
<input type="button" id="wpoa-login-form-edit" class="button" value="Edit">
<input type="button" id="wpoa-login-form-delete" class="button" value="Delete">
</p>
<p class="tip-message">Here you may create a new design, select an existing design to edit, or delete an existing design.</p>
<p class="tip-message tip-info"><strong>Tip: </strong>Make sure to click the <em>Save all settings</em> button after making changes here.</p>
</td>
</tr>
</table> <!-- .form-table -->
<table class="form-table" id="wpoa-login-form-design-form">
<tr valign='top'>
<th colspan="2">
<h4>Edit Design</h4>
</th>
</td>
<tr valign='top' class="has-tip">
<th scope='row'>Design name: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa-login-form-design-name' type='text' size='36' name='wpoa_login_form_design_name' value="" />
<p class="tip-message">Sets the name to use for this design.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Icon set: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_login_form_icon_set'>
<option value='none'>None</option>
<option value='hex'>Hex</option>
</select>
<p class="tip-message">Specifies which icon set to use for displaying provider icons on the login buttons.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Show login buttons: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_login_form_show_login'>
<option value='always'>Always</option>
<option value='conditional'>Conditional</option>
<option value='never'>Never</option>
</select>
<p class="tip-message">Determines when the login buttons should be shown.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Show logout button: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_login_form_show_logout'>
<option value='always'>Always</option>
<option value='conditional'>Conditional</option>
<option value='never'>Never</option>
</select>
<p class="tip-message">Determines when the logout button should be shown.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Layout: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_login_form_layout'>
<option value='links-row'>Links Row</option>
<option value='links-column'>Links Column</option>
<option value='buttons-row'>Buttons Row</option>
<option value='buttons-column'>Buttons Column</option>
</select>
<p class="tip-message">Sets vertical or horizontal layout for the buttons.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Login button prefix: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa_login_form_button_prefix' type='text' size='36' name='wpoa_login_form_button_prefix' value="" />
<p class="tip-message">Sets the text prefix to be displayed on the social login buttons.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logged out title: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa_login_form_logged_out_title' type='text' size='36' name='wpoa_login_form_logged_out_title' value="" />
<p class="tip-message">Sets the text to be displayed above the login form for logged out users.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logged in title: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa_login_form_logged_in_title' type='text' size='36' name='wpoa_login_form_logged_in_title' value="" />
<p class="tip-message">Sets the text to be displayed above the login form for logged in users.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logging in title: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa_login_form_logging_in_title' type='text' size='36' name='wpoa_login_form_logging_in_title' value="" />
<p class="tip-message">Sets the text to be displayed above the login form for users who are logging in.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Logging out title: <a href="#" class="tip-button">[?]</a></th>
<td>
<input id='wpoa_login_form_logging_out_title' type='text' size='36' name='wpoa_login_form_logging_out_title' value="" />
<p class="tip-message">Sets the text to be displayed above the login form for users who are logging out.</p>
</td>
</tr>
<tr valign='top' id='wpoa-login-form-actions'>
<th scope='row'>
<input type="button" id="wpoa-login-form-ok" name="wpoa_login_form_ok" class="button" value="OK">
<input type="button" id="wpoa-login-form-cancel" name="wpoa_login_form_cancel" class="button" value="Cancel">
</th>
<td>
</td>
</tr>
</table> <!-- .form-table -->
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login Buttons section -->
<!-- START User Registration section -->
<div id="wpoa-settings-section-user-registration" class="wpoa-settings-section">
<h3>User Registration</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top' class="has-tip">
<th scope='row'>Suppress default welcome email: <a href="#" class="tip-button">[?]</a></th>
<td>
<input type='checkbox' name='wpoa_suppress_welcome_email' value='1' <?php checked(get_option('wpoa_suppress_welcome_email') == 1); ?> />
<p class="tip-message">Prevents WordPress from sending an email to newly registered users by default, which contains their username and password.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Assign new users to the following role: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name="wpoa_new_user_role"><?php wp_dropdown_roles(get_option('wpoa_new_user_role')); ?></select>
<p class="tip-message">Specifies what user role will be assigned to newly registered users.</p>
</td>
</tr>
</table> <!-- .form-table -->
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END User Registration section -->
<!-- START Login with Google section -->
<div id="wpoa-settings-section-login-with-google" class="wpoa-settings-section">
<h3>Login with Google</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_google_api_enabled' value='1' <?php checked(get_option('wpoa_google_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_google_api_id' value='<?php echo get_option('wpoa_google_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_google_api_secret' value='<?php echo get_option('wpoa_google_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Visit the Google website for developers <a href='https://console.developers.google.com/project' target="_blank">console.developers.google.com</a>.</li>
<li>At Google, create a new Project and enable the Google+ API. This will enable your site to access the Google+ API.</li>
<li>At Google, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new Project's Redirect URI. Don't forget the trailing slash!</li>
<li>At Google, you must also configure the Consent Screen with your Email Address and Product Name. This is what Google will display to users when they are asked to grant access to your site/app.</li>
<li>Paste your Client ID/Secret provided by Google into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Google section -->
<!-- START Login with WP OAuth Server section -->
<div id="wpoa-settings-section-login-with-wp-oauth-server" class="wpoa-settings-section">
<h3>Login with WP OAuth Server</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_oauth_server_api_enabled' value='1' <?php checked(get_option('wpoa_oauth_server_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_oauth_server_api_id' value='<?php echo get_option('wpoa_oauth_server_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_oauth_server_api_secret' value='<?php echo get_option('wpoa_oauth_server_api_secret'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>OAuth Server Endpoint:</th>
<td>
<input type='text' name='wpoa_oauth_server_api_endpoint' value='<?php echo get_option('wpoa_oauth_server_api_endpoint'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Login Button Text:</th>
<td>
<input type='text' name='wpoa_oauth_server_api_button_text' value='<?php echo get_option('wpoa_oauth_server_api_button_text'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Log into the WordPress website that is running WP OAuth Server.</li>
<li>Go to OAuth Server and click on the "Clients" tab.</li>
<li>Click on "Add New Client" and follow the instructions.</li>
<li>Use <strong><?php echo $blog_url; ?></strong> as the Redirect URI. Click "Add Client".</li>
<li>Provide a login provider name as the button text option above. Login with "My OAuth Server". This text will show on the login button.</li>
<li>Paste your Client ID/Secret provided by WP OAuth Server into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Google section -->
<!-- START Login with Facebook section -->
<div id="wpoa-settings-section-login-with-facebook" class="wpoa-settings-section">
<h3>Login with Facebook</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_facebook_api_enabled' value='1' <?php checked(get_option('wpoa_facebook_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>App ID:</th>
<td>
<input type='text' name='wpoa_facebook_api_id' value='<?php echo get_option('wpoa_facebook_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>App Secret:</th>
<td>
<input type='text' name='wpoa_facebook_api_secret' value='<?php echo get_option('wpoa_facebook_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a Facebook Developer at <a href='https://developers.facebook.com/' target="_blank">developers.facebook.com</a>.</li>
<li>At Facebook, create a new App. This will enable your site to access the Facebook API.</li>
<li>At Facebook, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new App's Redirect URI. Don't forget the trailing slash!</li>
<li>Paste your App ID/Secret provided by Facebook into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Facebook section -->
<!-- START Login with LinkedIn section -->
<div id="wpoa-settings-section-login-with-linkedin" class="wpoa-settings-section">
<h3>Login with LinkedIn</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_linkedin_api_enabled' value='1' <?php checked(get_option('wpoa_linkedin_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>API Key:</th>
<td>
<input type='text' name='wpoa_linkedin_api_id' value='<?php echo get_option('wpoa_linkedin_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Secret Key:</th>
<td>
<input type='text' name='wpoa_linkedin_api_secret' value='<?php echo get_option('wpoa_linkedin_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a LinkedIn Developer at <a href='https://developers.linkedin.com/' target="_blank">developers.linkedin.com</a>.</li>
<li>At LinkedIn, create a new App. This will enable your site to access the LinkedIn API.</li>
<li>At LinkedIn, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new App's Redirect URI. Don't forget the trailing slash!</li>
<li>Paste your API Key/Secret provided by LinkedIn into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with LinkedIn section -->
<!-- START Login with Github section -->
<div id="wpoa-settings-section-login-with-github" class="wpoa-settings-section">
<h3>Login with Github</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_github_api_enabled' value='1' <?php checked(get_option('wpoa_github_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_github_api_id' value='<?php echo get_option('wpoa_github_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_github_api_secret' value='<?php echo get_option('wpoa_github_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a Github Developer at <a href='https://developers.github.com/' target="_blank">developers.github.com</a>.</li>
<li>At Github, create a new App. This will enable your site to access the Github API.</li>
<li>At Github, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new App's Redirect URI. Don't forget the trailing slash!</li>
<li>Paste your API Key/Secret provided by Github into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Github section -->
<!-- START Login with itembase section -->
<div id="wpoa-settings-section-login-with-itembase" class="wpoa-settings-section">
<h3>Login with itembase</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_itembase_api_enabled' value='1' <?php checked(get_option('wpoa_itembase_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_itembase_api_id' value='<?php echo get_option('wpoa_itembase_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_itembase_api_secret' value='<?php echo get_option('wpoa_itembase_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as an itembase Developer by following the <a href='http://itembase.github.io/#steps-to-get-started' target="_blank">instructions in the documentation</a>.</li>
<li>Provide your site's homepage URL (<?php echo $blog_url; ?>) as redirect URI. Don't forget the trailing slash!</li>
<li>Paste your API Key/Secret provided by itembase into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with itembase section -->
<!-- START Login with Reddit section -->
<div id="wpoa-settings-section-login-with-reddit" class="wpoa-settings-section">
<h3>Login with Reddit</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_reddit_api_enabled' value='1' <?php checked(get_option('wpoa_reddit_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_reddit_api_id' value='<?php echo get_option('wpoa_reddit_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_reddit_api_secret' value='<?php echo get_option('wpoa_reddit_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a Reddit Developer at <a href='https://ssl.reddit.com/prefs/apps' target="_blank">ssl.reddit.com/prefs/apps</a>.</li>
<li>At Reddit, create a new App. This will enable your site to access the Reddit API.</li>
<li>At Reddit, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new App's Redirect URI. Don't forget the trailing slash!</li>
<li>Paste your Client ID/Secret provided by Reddit into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Reddit section -->
<!-- START Login with Windows Live section -->
<div id="wpoa-settings-section-login-with-windowslive" class="wpoa-settings-section">
<h3>Login with Windows Live</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_windowslive_api_enabled' value='1' <?php checked(get_option('wpoa_windowslive_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_windowslive_api_id' value='<?php echo get_option('wpoa_windowslive_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_windowslive_api_secret' value='<?php echo get_option('wpoa_windowslive_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a Windows Live Developer at <a href='https://manage.dev.live.com' target="_blank">manage.dev.live.com</a>.</li>
<li>At Windows Live, create a new App. This will enable your site to access the Windows Live API.</li>
<li>At Windows Live, provide your site's homepage URL (<?php echo $blog_url; ?>) for the new App's Redirect URI. Don't forget the trailing slash!</li>
<li>Paste your Client ID/Secret provided by Windows Live into the fields above, then click the Save all settings button.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Windows Live section -->
<!-- START Login with PayPal section -->
<div id="wpoa-settings-section-login-with-paypal" class="wpoa-settings-section">
<h3>Login with PayPal</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_paypal_api_enabled' value='1' <?php checked(get_option('wpoa_paypal_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Sandbox mode:</th>
<td>
<input type='checkbox' name='wpoa_paypal_api_sandbox_mode' value='1' <?php checked(get_option('wpoa_paypal_api_sandbox_mode') == 1); ?> />
<p class="tip-message">PayPal offers a sandbox mode for developers who wish to setup and test PayPal Login with their site before going live.</p>
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_paypal_api_id' value='<?php echo get_option('wpoa_paypal_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_paypal_api_secret' value='<?php echo get_option('wpoa_paypal_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>Register as a PayPal Developer at <a href='https://developer.paypal.com' target="_blank">developer.paypal.com</a>.</li>
<li>At PayPal, create a new App. This will enable your site to access the PayPal API. Your PayPal App will begin in <em>sandbox mode</em> for testing.</li>
<li>At PayPal, provide your site's homepage URL (<?php echo $blog_url; ?>) for the <em>App redirect URLs</em>. Don't forget the trailing slash!</li>
<li>At PayPal, in the APP CAPABILITIES section, enable <em>Log In with PayPal</em>.</li>
<li>Paste your Client ID/Secret provided by PayPal into the fields above, then click the Save all settings button.</li>
<li>After testing PayPal login in <em>sandbox mode</em> with your site, you'll eventually want to switch the App over to <em>live mode</em> at PayPal, and turn off the Sandbox mode above.</li>
</ol>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with PayPal section -->
<!-- START Login with Instagram section -->
<div id="wpoa-settings-section-login-with-instagram" class="wpoa-settings-section">
<h3>Login with Instagram</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_instagram_api_enabled' value='1' <?php checked(get_option('wpoa_instagram_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client ID:</th>
<td>
<input type='text' name='wpoa_instagram_api_id' value='<?php echo get_option('wpoa_instagram_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Client Secret:</th>
<td>
<input type='text' name='wpoa_instagram_api_secret' value='<?php echo get_option('wpoa_instagram_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>NOTE: Instagram's developer signup requires a valid cell phone number.</li>
<li>At Instagram, register as an <a href='http://instagram.com/developer/authentication/' target="_blank">Instagram Developer</a>.</li>
<li>At Instagram, after signing up/in, click <a href='http://instagram.com/developer/clients/manage/'>Manage Clients</a>.</li>
<li>At Instagram, click <a href="http://instagram.com/developer/clients/register/">Register a New Client</a>. This will enable your site to access the Instagram API.</li>
<li>At Instagram, provide your site's homepage URL (<?php echo $blog_url; ?>) for the <em>OAuth redirect_uri</em>. Don't forget the trailing slash!</li>
<li>At Instagram, copy the <em>Client ID/Client Secret</em> provided by Instagram and paste them into the fields above, then click the Save all settings button.</li>
</ol>
<strong>References:</strong>
<ul>
<li><a href='http://instagram.com/developer/authentication/'>Instagram Developer Reference - Authentication</a></li>
</ul>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Instagram section -->
<!-- START Login with Battle.net section -->
<div id="wpoa-settings-section-login-with-battlenet" class="wpoa-settings-section">
<h3>Login with Battle.net</h3>
<div class='form-padding'>
<table class='form-table'>
<tr valign='top'>
<th scope='row'>Enabled:</th>
<td>
<input type='checkbox' name='wpoa_battlenet_api_enabled' value='1' <?php checked(get_option('wpoa_battlenet_api_enabled') == 1); ?> />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Key:</th>
<td>
<input type='text' name='wpoa_battlenet_api_id' value='<?php echo get_option('wpoa_battlenet_api_id'); ?>' />
</td>
</tr>
<tr valign='top'>
<th scope='row'>Secret:</th>
<td>
<input type='text' name='wpoa_battlenet_api_secret' value='<?php echo get_option('wpoa_battlenet_api_secret'); ?>' />
</td>
</tr>
</table> <!-- .form-table -->
<p>
<strong>Instructions:</strong>
<ol>
<li>NOTE: Battle.net API <em>requires</em> your site to be secured with an SSL certificate; the site URL should start with <u>https://</u>.</li>
<li>Visit the <a href='http://dev.battle.net/' target="_blank">Battle.net API</a> home page and <a href='https://dev.battle.net/member/register' target="_blank">Create a Mashery Account</a>.
<li>After creating your account and signing in, visit the <a href='https://dev.battle.net/apps/myapps'>My Applications</a> page.</li>
<li><a href="https://dev.battle.net/apps/register">Create a New Application</a> and fill out the details.</li>
<li>Provide your site URL (<?php echo site_url('', 'https'); ?>/) for the <em>Register Callback URL</em>. Don't forget the trailing slash!</li>
<li>After registering the application, locate the <em>Key/Secret</em> provided by Battle.net and paste them into the fields above, then click the Save all settings button.</li>
</ol>
<strong>References:</strong>
<ul>
<li><a href='https://dev.battle.net/docs/read/oauth' target='_blank'>Battle.net OAuth Reference</a></li>
<li><a href='https://dev.battle.net/apps/tos' target='_blank'>Battle.net API Terms of Service</a></li>
</ul>
</p>
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Login with Battle.net section -->
<!-- START Back Channel Configuration section -->
<div id="wpoa-settings-section-back-channel=configuration" class="wpoa-settings-section">
<h3>Back Channel Configuration</h3>
<div class='form-padding'>
<p>These settings are for troubleshooting and/or fine tuning the back channel communication this plugin utilizes between your server and the third-party providers.</p>
<table class='form-table'>
<tr valign='top' class="has-tip">
<th scope='row'>HTTP utility: <a href="#" class="tip-button">[?]</a></th>
<td>
<select name='wpoa_http_util'>
<option value='curl' <?php selected(get_option('wpoa_http_util'), 'curl'); ?>>cURL</option>
<option value='stream-context' <?php selected(get_option('wpoa_http_util'), 'stream-context'); ?>>Stream Context</option>
</select>
<p class="tip-message">The method used by the web server for performing HTTP requests to the third-party providers. Most servers support cURL, but some servers may require Stream Context instead.</p>
</td>
</tr>
<tr valign='top' class="has-tip">
<th scope='row'>Verify Peer/Host SSL Certificates: <a href="#" class="tip-button">[?]</a></th>
<td>
<input type='checkbox' name='wpoa_http_util_verify_ssl' value='1' <?php checked(get_option('wpoa_http_util_verify_ssl') == 1); ?> />
<p class="tip-message">Determines whether or not to validate peer/host SSL certificates during back channel HTTP calls to the third-party login providers. If your server has an incorrect SSL configuration or doesn't support SSL, you may try disabling this setting as a workaround.</p>
<p class="tip-message tip-warning"><strong>Warning:</strong> Disabling this is not recommended. For maximum security it would be a good idea to get your server's SSL configuration fixed and keep this setting enabled.</p>
</td>
</tr>
</table> <!-- .form-table -->
<?php submit_button('Save all settings'); ?>
</div> <!-- .form-padding -->
</div> <!-- .wpoa-settings-section -->
<!-- END Back Channel Configuration section -->