Changeset 1713299
- Timestamp:
- 08/14/2017 05:21:44 PM (9 years ago)
- Location:
- addefend-easy-integration
- Files:
-
- 1 added
- 1 deleted
- 6 edited
- 8 copied
-
tags/1.1/trunk (deleted)
-
tags/1.2 (added)
-
tags/1.2/Components (copied) (copied from addefend-easy-integration/trunk/Components)
-
tags/1.2/Components/script_integration.php (modified) (4 diffs)
-
tags/1.2/README.md (copied) (copied from addefend-easy-integration/trunk/README.md)
-
tags/1.2/Utils (copied) (copied from addefend-easy-integration/trunk/Utils)
-
tags/1.2/View (copied) (copied from addefend-easy-integration/trunk/View)
-
tags/1.2/View/options.php (modified) (1 diff)
-
tags/1.2/addefend-easy-integration.php (copied) (copied from addefend-easy-integration/trunk/addefend-easy-integration.php) (1 diff)
-
tags/1.2/assets (copied) (copied from addefend-easy-integration/trunk/assets)
-
tags/1.2/license.txt (copied) (copied from addefend-easy-integration/trunk/license.txt)
-
tags/1.2/readme.txt (copied) (copied from addefend-easy-integration/trunk/readme.txt) (2 diffs)
-
trunk/Components/script_integration.php (modified) (4 diffs)
-
trunk/View/options.php (modified) (1 diff)
-
trunk/addefend-easy-integration.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addefend-easy-integration/tags/1.2/Components/script_integration.php
r1712151 r1713299 57 57 addefend_log('ADDEFEND -- ERROR : Sticking with the old script'); 58 58 }else{ 59 addefend_log('ADDEFEND -- INFO : Script is successfully downloaded');59 addefend_log('ADDEFEND -- TRACE : Script is downloaded successfully'); 60 60 $new_script = wp_remote_retrieve_body($response); 61 61 global $wpdb; … … 70 70 addefend_log('ADDEFEND -- ERROR : script couldn\'t be saved in the database'); 71 71 } else{ 72 addefend_log('ADDEFEND -- INFO: script is successfully saved in the database');72 addefend_log('ADDEFEND -- TRACE : script is successfully saved in the database'); 73 73 } 74 74 } … … 80 80 global $wpdb; 81 81 $addefend_script = $wpdb->get_var("SELECT script FROM ".ADDEFEND_TABLE_NAME." WHERE (id = '1')"); 82 echo '<script type="text/javascript">'.$addefend_script.'</script>'; 83 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 82 if(!$addefend_script){ 83 addefend_log('ADDEFEND -- ERROR : Failed to retrieve the script from the database'); 84 }else{ 85 echo '<script type="text/javascript">'.$addefend_script.'</script>'; 86 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 87 } 84 88 } 85 89 … … 89 93 wp_clear_scheduled_hook('out_of_date_script'); 90 94 global $wpdb; 91 $wpdb->delete( ADDEFEND_TABLE_NAME, array( ' ID' => 1) );95 $wpdb->delete( ADDEFEND_TABLE_NAME, array( 'id' => '1' ) ); 92 96 } 97 -
addefend-easy-integration/tags/1.2/View/options.php
r1712151 r1713299 73 73 } 74 74 echo ";\"'></div></td></tr>"; 75 echo "<tr><td><label>Script cache : </label></td><td><div style=\"height : 10px; width : 50px;background-color : "; 76 global $wpdb; 77 $addefend_script = $wpdb->get_var("SELECT script FROM ".ADDEFEND_TABLE_NAME." WHERE (id = '1')"); 78 if(!$addefend_script){ 79 echo 'red'; 80 }else{ 81 echo "green"; 82 } 83 echo ";\"'></div></td></tr>"; 75 84 echo "</table>"; 76 85 echo '<p class="submit"><input type="submit" name="Submit" class="button-primary" value="Save Changes" /></p>'; -
addefend-easy-integration/tags/1.2/addefend-easy-integration.php
r1712160 r1713299 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1. 16 Version: 1.2 7 7 Author: AdDefend GmbH 8 8 Author URI: http://www.addefend.com/ -
addefend-easy-integration/tags/1.2/readme.txt
r1712156 r1713299 4 4 Requires at least: 4.2 5 5 Tested up to: 4.8 6 Stable tag: 1. 16 Stable tag: 1.2 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 50 50 == Changelog == 51 51 52 = 1.2 = 53 * show the script cache status in the settings page 54 52 55 = 1.1 = 53 56 * show the cron job status in the settings page -
addefend-easy-integration/trunk/Components/script_integration.php
r1712151 r1713299 57 57 addefend_log('ADDEFEND -- ERROR : Sticking with the old script'); 58 58 }else{ 59 addefend_log('ADDEFEND -- INFO : Script is successfully downloaded');59 addefend_log('ADDEFEND -- TRACE : Script is downloaded successfully'); 60 60 $new_script = wp_remote_retrieve_body($response); 61 61 global $wpdb; … … 70 70 addefend_log('ADDEFEND -- ERROR : script couldn\'t be saved in the database'); 71 71 } else{ 72 addefend_log('ADDEFEND -- INFO: script is successfully saved in the database');72 addefend_log('ADDEFEND -- TRACE : script is successfully saved in the database'); 73 73 } 74 74 } … … 80 80 global $wpdb; 81 81 $addefend_script = $wpdb->get_var("SELECT script FROM ".ADDEFEND_TABLE_NAME." WHERE (id = '1')"); 82 echo '<script type="text/javascript">'.$addefend_script.'</script>'; 83 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 82 if(!$addefend_script){ 83 addefend_log('ADDEFEND -- ERROR : Failed to retrieve the script from the database'); 84 }else{ 85 echo '<script type="text/javascript">'.$addefend_script.'</script>'; 86 addefend_log('ADDEFEND -- TRACE : Script injected in the footer'); 87 } 84 88 } 85 89 … … 89 93 wp_clear_scheduled_hook('out_of_date_script'); 90 94 global $wpdb; 91 $wpdb->delete( ADDEFEND_TABLE_NAME, array( ' ID' => 1) );95 $wpdb->delete( ADDEFEND_TABLE_NAME, array( 'id' => '1' ) ); 92 96 } 97 -
addefend-easy-integration/trunk/View/options.php
r1712151 r1713299 73 73 } 74 74 echo ";\"'></div></td></tr>"; 75 echo "<tr><td><label>Script cache : </label></td><td><div style=\"height : 10px; width : 50px;background-color : "; 76 global $wpdb; 77 $addefend_script = $wpdb->get_var("SELECT script FROM ".ADDEFEND_TABLE_NAME." WHERE (id = '1')"); 78 if(!$addefend_script){ 79 echo 'red'; 80 }else{ 81 echo "green"; 82 } 83 echo ";\"'></div></td></tr>"; 75 84 echo "</table>"; 76 85 echo '<p class="submit"><input type="submit" name="Submit" class="button-primary" value="Save Changes" /></p>'; -
addefend-easy-integration/trunk/addefend-easy-integration.php
r1712160 r1713299 4 4 Plugin URI: https://wordpress.org/plugins/addefend-easy-integration/ 5 5 Description: The AdDefend Easy Intregration plug-in supports publishers in integrating the AdDefend anti-adblock solution. 6 Version: 1. 16 Version: 1.2 7 7 Author: AdDefend GmbH 8 8 Author URI: http://www.addefend.com/ -
addefend-easy-integration/trunk/readme.txt
r1712151 r1713299 4 4 Requires at least: 4.2 5 5 Tested up to: 4.8 6 Stable tag: 1. 16 Stable tag: 1.2 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl.html … … 50 50 == Changelog == 51 51 52 = 1.2 = 53 * show the script cache status in the settings page 54 52 55 = 1.1 = 53 56 * show the cron job status in the settings page
Note: See TracChangeset
for help on using the changeset viewer.