Ultimate FAQ - Version 1.6.3

Version Description

  • Added a nonce field to the settings form
Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 1.6.3
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.3

Functions/Full_Upgrade.php CHANGED
@@ -21,7 +21,10 @@ function EWD_UFAQ_Upgrade_To_Full() {
21
  elseif ($Key != "EWD Trial") {
22
  $opts = array('http'=>array('method'=>"GET"));
23
  $context = stream_context_create($opts);
24
- $Response = unserialize(file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_UFAQ_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl'), false, $context));
 
 
 
25
  //echo "http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_OTP_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl');
26
  //$Response = file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/KeyCheck.php?Key=" . $Key);
27
 
21
  elseif ($Key != "EWD Trial") {
22
  $opts = array('http'=>array('method'=>"GET"));
23
  $context = stream_context_create($opts);
24
+ $Theme = wp_get_theme();
25
+ $Theme_Name = $Theme->get('Name');
26
+ $EWD_Theme_ID = get_option('EWD_Affiliate_Theme_ID');
27
+ $Response = unserialize(file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_UFAQ_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl') . "&Theme_ID=" . $EWD_Theme_ID . "&Theme_Name=" . $Theme_Name, false, $context));
28
  //echo "http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_OTP_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl');
29
  //$Response = file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/KeyCheck.php?Key=" . $Key);
30
 
Functions/Update_Admin_Databases.php CHANGED
@@ -13,6 +13,10 @@ add_action('save_post_ufaq', 'EWD_UFAQ_Add_Post_Order_Meta');
13
  function EWD_UFAQ_UpdateOptions() {
14
  global $UFAQ_Full_Version;
15
 
 
 
 
 
16
  $Custom_CSS = (isset($_POST['custom_css']) ? $_POST['custom_css'] : null);
17
  $Social_Media_Array = (isset($_POST['Socialmedia']) ? $_POST['Socialmedia'] : null);
18
  if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
13
  function EWD_UFAQ_UpdateOptions() {
14
  global $UFAQ_Full_Version;
15
 
16
+ if ( ! isset( $_POST['EWD_UFAQ_Save_Options_Nonce'] ) ) {return;}
17
+
18
+ if ( ! wp_verify_nonce( $_POST['EWD_UFAQ_Save_Options_Nonce'], 'EWD_UFAQ_Save_Options' ) ) {return;}
19
+
20
  $Custom_CSS = (isset($_POST['custom_css']) ? $_POST['custom_css'] : null);
21
  $Social_Media_Array = (isset($_POST['Socialmedia']) ? $_POST['Socialmedia'] : null);
22
  if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 1.6.1
11
  */
12
 
13
  global $ewd_ufaq_message;
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.6.3
11
  */
12
 
13
  global $ewd_ufaq_message;
css/Admin.css CHANGED
@@ -952,7 +952,3 @@ display: inline-block;
952
  width: 200px;
953
  float: left;
954
  }
955
-
956
-
957
-
958
-
952
  width: 200px;
953
  float: left;
954
  }
 
 
 
 
html/OptionsPage.php CHANGED
@@ -122,6 +122,7 @@
122
  <div class="ufaq-options-page-tabbed-content">
123
 
124
  <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
 
125
  <div id='Basic' class='ufaq-option-set'>
126
  <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
127
  <br />
122
  <div class="ufaq-options-page-tabbed-content">
123
 
124
  <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
125
+ <?php wp_nonce_field( 'EWD_UFAQ_Save_Options', 'EWD_UFAQ_Save_Options_Nonce' ); ?>
126
  <div id='Basic' class='ufaq-option-set'>
127
  <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
128
  <br />
readme.txt CHANGED
@@ -268,6 +268,12 @@ Video 3 - FAQs Ordering
268
 
269
 
270
  == Changelog ==
 
 
 
 
 
 
271
  = 1.6.1 =
272
  - Minor performance enhancement
273
 
268
 
269
 
270
  == Changelog ==
271
+ = 1.6.3 =
272
+ - Added a nonce field to the settings form
273
+
274
+ = 1.6.2 =
275
+ - Minor admin styling update
276
+
277
  = 1.6.1 =
278
  - Minor performance enhancement
279