Plugin Directory

Changeset 860583


Ignore:
Timestamp:
02/19/2014 01:23:21 AM (12 years ago)
Author:
shanaver
Message:

update branding for CloudFlare

Location:
cloudflare-cache-purge/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cloudflare-cache-purge/trunk/cloudflare_cachepurge.php

    r813970 r860583  
    22
    33/*
    4 Plugin Name:  Cloudflare Cache Purge
    5 Description:  API Integration with Cloudflare to purge your cache
     4Plugin Name:  CloudFlare Cache Purge
     5Description:  API Integration with CloudFlare to purge your cache
    66Version:      1.0.4
    77Author:       Bryan Shanaver @ fiftyandfifty.org
     
    100100    }
    101101
    102     print "<h3>Cloudflare Cache Purge Logging</h3>";
     102    print "<h3>CloudFlare Cache Purge Logging</h3>";
    103103    print "<table>";
    104104    print "<tr><th>ID</th><th>Time</th><th>Message</th></tr>";
     
    116116
    117117function ccpurge_activate() {
    118     ccpurge_transaction_logging("Cloudflare Cache Purge - Activated");
     118    ccpurge_transaction_logging("CloudFlare Cache Purge - Activated");
    119119}
    120120register_activation_hook(__FILE__,'ccpurge_activate');
    121121
    122122function ccpurge_deactivate(){
    123     ccpurge_transaction_logging('Cloudflare Cache Purge - *Deactivated*');
     123    ccpurge_transaction_logging('CloudFlare Cache Purge - *Deactivated*');
    124124}
    125125register_deactivation_hook(__FILE__,'ccpurge_deactivate');
  • cloudflare-cache-purge/trunk/lib/ccpurge.class.php

    r810453 r860583  
    22/*
    33
    4 Description:  API Integration with Cloudflare to purge your cache
     4Description:  API Integration with CloudFlare to purge your cache
    55Author:       Bryan Shanaver @ fiftyandfifty.org
    66Author URI:   https://www.fiftyandfifty.org/
  • cloudflare-cache-purge/trunk/lib/ccpurge.js

    r690167 r860583  
    11(function($){
    2    
     2
    33    window.ccpurge = {};
    44    var ccpurge = window.ccpurge;
    5    
     5
    66    ccpurge.initialize = function() {
    77        ccpurge.setElements();
     
    1616
    1717    };
    18    
     18
    1919    ccpurge.setElements = function() {
    2020        ccpurge.elems = {};
     
    2828        ccpurge.elems.purge_url_btn = jQuery('#ccpurge-purge-url');
    2929        ccpurge.elems.logging_container = jQuery('#ccpurge_table_logging');
    30        
     30
    3131        ccpurge.properties = {};
    3232    };
     
    3535        if( status === undefined ){ status = 'success'; }
    3636        if( status == 'success' ){
    37             alert('Cloudflare API Connect: Success\n\nSee log for details');
     37            alert('CloudFlare API Connect: Success\n\nSee log for details');
    3838        }
    3939        else{
    40             alert('Cloudflare API Connect: Error\n\n' + response);
     40            alert('CloudFlare API Connect: Error\n\n' + response);
    4141        }
    4242        ccpurge.refreshLog(0);
     
    4646        ccpurge.elems.entire_cache_btn.bind('click', function(e) {
    4747            e.preventDefault();
    48             if( confirm('It may take up to 48 hours for the cache to rebuild and optimum speed to resume\nso this function should be used sparingly\n\nAre you sure you want to continue?') ) { 
     48            if( confirm('It may take up to 48 hours for the cache to rebuild and optimum speed to resume\nso this function should be used sparingly\n\nAre you sure you want to continue?') ) {
    4949                jQuery.ajax({
    5050                    'type'  : 'post',
     
    7575        });
    7676    }
    77    
     77
    7878    ccpurge.ccpurge_transaction_logging = function(message, status) {
    7979        jQuery.ajax({
     
    8989        });
    9090    };
    91    
     91
    9292    ccpurge.refreshLog = function(page) {
    9393        jQuery.ajax({
     
    102102        })
    103103    }
    104    
    105    
     104
     105
    106106    jQuery(document).ready(function() {
    107107        ccpurge.initialize();
     
    109109        console.log('ccpurge loaded');
    110110    });
    111    
    112    
     111
     112
    113113})(jQuery);
  • cloudflare-cache-purge/trunk/lib/ccpurge_options.php

    r690167 r860583  
    77if($ccpurge_options_post){
    88    update_option('ccpurge_options', $ccpurge_options_post);
    9     ccpurge_transaction_logging('Updated Cloudflare Purge Settings');
     9    ccpurge_transaction_logging('Updated CloudFlare Purge Settings');
    1010    ccpurge_transaction_logging('email=' . $ccpurge_options_post['email'] . ' & token=' . substr($ccpurge_options_post['token'], 0, 10) . '[...]' . ' & domain=' . ( isset($ccpurge_options_post['account']) ? $ccpurge_options_post['account'] : '') . ' & auto_purge=' . ( isset($ccpurge_options_post['auto_purge']) ? $ccpurge_options_post['auto_purge'] : '') );
    1111}
     
    4444
    4545<div class="wrap">
    46     <div class="icon32" id="icon-options-general"><br></div><h2>Cloudflare Cache Purge</h2>
     46    <div class="icon32" id="icon-options-general"><br></div><h2>CloudFlare&reg; Cache Purge</h2>
    4747
    4848    <p style="text-align: left;">
    49         Cloudflare Cache Purge clears a single file cache or the entire thing<br />         
     49        CloudFlare Cache Purge clears a single file cache or the entire thing<br />
    5050    </p>
    5151
    5252    <div id="ccpurge-options-form">
    5353
    54     <?php if($ccpurge_token == ''): ?> 
    55         <div class="updated" id="message"><p><strong>Alert!</strong> You must get an Authentication Token from Cloudflare to start<br />If you don't already have a Cloudflare Cache account, you can <a target="_blank" href="https://www.cloudflare.com/sign-up">sign up for one here</a></p></div>
    56     <?php elseif($ccpurge_account == ''): ?>   
    57         <div class="updated" id="message"><p><strong>Alert!</strong> You must identify which Cloudflare Domain to target</p></div>
    58     <?php endif; ?>     
    59    
     54    <?php if($ccpurge_token == ''): ?>
     55        <div class="updated" id="message"><p><strong>Alert!</strong> You must get an Authentication Token from CloudFlare to start<br />If you don't already have a CloudFlare Cache account, you can <a target="_blank" href="https://www.cloudflare.com/sign-up">sign up for one here</a></p></div>
     56    <?php elseif($ccpurge_account == ''): ?>
     57        <div class="updated" id="message"><p><strong>Alert!</strong> You must identify which CloudFlare Domain to target</p></div>
     58    <?php endif; ?>
     59
    6060    <form action="" id="ccpurge-form" method="post">
    6161        <table class="ccpurge-table">
    6262            <tbody>
    63    
     63
    6464                <tr>
    65                     <th><label for="category_base">Cloudflare Email Address</label></th>
     65                    <th><label for="category_base">CloudFlare Email Address</label></th>
    6666                    <td class="col1"></td>
    6767                    <td class="col2">
     
    7070                </tr>
    7171                <tr>
    72                     <th><label for="tag_base">Cloudflare API Token</label></th>
     72                    <th><label for="tag_base">CloudFlare API Token</label></th>
    7373                    <td class="col1"></td>
    7474                    <td class="col2">
    7575                        <input type="text" class="regular-text code" value="<?php echo $ccpurge_token; ?>" id="ccpurge-token" name="ccpurge_options[token]">
    7676                    </td>
    77                 </tr>   
     77                </tr>
    7878                <tr>
    79                     <th><label for="tag_base">Cloudflare Domain</label></th>
     79                    <th><label for="tag_base">CloudFlare Domain</label></th>
    8080                    <td class="col1"></td>
    8181                    <td class="col2">
    8282                        <input type="text" class="regular-text code" value="<?php echo $ccpurge_account; ?>" id="ccpurge-account" name="ccpurge_options[account]">
    8383                    </td>
    84                 </tr>   
    85            
     84                </tr>
     85
    8686                <?php if($ccpurge_token): ?>
    8787                <tr>
    88                     <th><label for="category_base">Automatically Purge on Update:</label></th>
     88                    <th><label for="category_base">Auto Purge on Update</label></th>
    8989                    <td class="col1"></td>
    9090                    <td class="col2">
     
    9797                    <td class="col2">
    9898                        <input type="text" class="regular-text code" value="<?php echo $ccpurge_url; ?>" name="ccpurge_options[ccpurge_url]" id="ccpurge-url">
    99                         <input type="button" value="Purge URL" id="ccpurge-purge-url" class="button-primary"/> 
     99                        <input type="button" value="Purge URL" id="ccpurge-purge-url" class="button-primary"/>
    100100                    </td>
    101101                </tr>
     
    104104                    <td class="col1"></td>
    105105                    <td class="col2">
    106                         <input type="button" value="Purge Entire Cache" id="ccpurge-entire-cache" class="button-primary"/> 
     106                        <input type="button" value="Purge Entire Cache" id="ccpurge-entire-cache" class="button-primary"/>
    107107                    </td>
    108108                </tr>
     
    112112                    <td class="col2">
    113113                        <input type="radio" name="ccpurge_options[show_debugging]" value="1" <?php checked( $show_debugging, '1' ); ?>/> Show Debugging Sections
    114                         <span style="width:40px;height:10px;display:inline-block"></span> 
    115                         <input type="radio" name="ccpurge_options[show_debugging]" value="0" <?php checked( $show_debugging, '0' ); ?>/> Hide Debugging Sections 
     114                        <span style="width:40px;height:10px;display:inline-block"></span>
     115                        <input type="radio" name="ccpurge_options[show_debugging]" value="0" <?php checked( $show_debugging, '0' ); ?>/> Hide Debugging Sections
    116116                    </td>
    117                 </tr>           
     117                </tr>
    118118                <tr class="debugging-block">
    119119                    <th><label for="category_base">Debugging Options</label></th>
     
    133133                        <input type="submit" value="Update / Save" class="button-secondary"/>
    134134                    </td>
    135                 </tr>       
     135                </tr>
    136136
    137137                <tr class="debugging-block">
     
    141141
    142142            </tbody>
    143         </table>   
     143        </table>
    144144    </form>
    145    
     145
    146146    <div id="spinner"></div>
    147    
     147
    148148    <div id="ccpurge_table_logging_container" class="debugging-block">
    149149        <div id="ccpurge_table_logging"></div>
    150     </div> 
     150    </div>
    151151
    152152    </div><!-- ccpurge-form-wrapper -->
  • cloudflare-cache-purge/trunk/readme.txt

    r813970 r860583  
    1 === Cloudflare Cache Purge ===
     1=== CloudFlare Cache Purge ===
    22Contributors: shanaver
    3 Tags: cloudflare, cache purge, cache clear, API
     3Tags: CloudFlare, cache purge, cache clear, API
    44Requires at least: 3.0.1
    55Tested up to: 3.5.1
     
    99Author URI: http://www.fiftyandfifty.org/
    1010
    11 Purge your entire Cloudflare cache from within Wordpress.
     11Purge your entire CloudFlare cache from within Wordpress.
    1212
    1313== Description ==
    1414
    15 Purge your entire Cloudflare cache, or an any specific URL, manually - or automatically everytime a post has been updated!
     15Purge your entire CloudFlare cache, or an any specific URL, manually - or automatically everytime a post has been updated!
    1616
    17 This plugin was not built by Cloudflare, it was built by Fifty & Fifty - a humanitarian creative studio located in San Diego, California.
     17This plugin was not built by CloudFlare, it was built by Fifty & Fifty - a humanitarian creative studio located in San Diego, California.
    1818
    1919== Installation ==
     
    21211. Upload cloudflare-cache-purge folder to the `/wp-content/plugins/` directory
    22221. Activate the plugin through the 'Plugins' menu in WordPress
    23 1. Create a free Cloudflare account at http://www.cloudflare.com
    24 1. Set up 'Page Rules' in Cloudflare to start caching your site pages
    25 1. Enter your Cloudflare email address & API token on the plugin settings page
     231. Create a free CloudFlare account at http://www.cloudflare.com
     241. Set up 'Page Rules' in CloudFlare to start caching your site pages
     251. Enter your CloudFlare email address & API token on the plugin settings page
    26261. Enable 'Automatically Purge on Update' or click 'Purge' from the plugin settings page
    2727
    2828== Frequently Asked Questions ==
    2929
    30 = Do I need to have a Cloudflare account to use this plugin =
     30= Do I need to have a CloudFlare account to use this plugin =
    3131
    32 Yes, setting up a Cloudflare account is free and can take less than 5 minutes.
     32Yes, setting up a CloudFlare account is free and can take less than 5 minutes.
    3333
    3434== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.