Plugin Directory

Changeset 1804654


Ignore:
Timestamp:
01/17/2018 05:04:52 PM (8 years ago)
Author:
aklamator
Message:

Simplified user creation and automatic Application ID fetching.

Location:
aklamator-pro-adsense
Files:
8 edited
7 copied

Legend:

Unmodified
Added
Removed
  • aklamator-pro-adsense/tags/2.1/aklamator-pro-adsense.php

    r1794203 r1804654  
    44Plugin URI: https://www.aklamator.com/wordpress
    55Description: Aklamator Pro AdSense digital PR plugin enables you to easily place AdSense or other custom Ad code on your wordpress site. It also enables you to sell PR announcements, cross promote web sites using RSS feed and provide new services to your clients in digital advertising.
    6 Version: 2.0.0
     6Version: 2.1
    77Author: Aklamator
    88Author URI: https://www.aklamator.com/
  • aklamator-pro-adsense/tags/2.1/assets/css/admin-style.css

    r1514665 r1804654  
    66
    77
    8 .aklamator-signup-button {
    9     float: left;
     8.aklamator_button {
    109    vertical-align: top;
    1110    width: auto;
     
    1312    line-height: 30px;
    1413    padding: 10px;
    15     font-size: 22px;
     14    font-size: 20px;
    1615    color: white;
    1716    text-align: center;
     
    2423    box-shadow: inset 0 -2px #b53224;
    2524    text-decoration: none;
    26     margin-top: 10px;
     25    margin-top: 3px;
    2726    margin-bottom: 10px;
    28     clear: both;
    2927}
    3028
    31 a.aklamator-signup-button:hover {
     29.aklamator-login-button {
     30    float: left;
     31}
     32
     33
     34.aklamator-login-button:hover {
    3235    cursor: pointer;
    33     color: #f8f8f8;
     36    color: lightskyblue;
     37}
     38
     39h3 {
     40    margin-bottom: 3px;
     41}
     42p {
     43    margin-top: 3px;
     44}
     45
     46.alert_red{
     47    margin-bottom: 18px;
     48    margin-top: 10px;
     49    color: #c09853;
     50    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
     51    background-color: #fcf8e3;
     52    border: 1px solid #fbeed5;
     53    -webkit-border-radius: 4px;
     54    -moz-border-radius: 4px;
     55    border-radius: 4px;
     56    padding: 8px 35px 8px 14px;
     57}
     58.alert-msg_red {
     59    color: #8f0100;
     60    background-color: #f6cbd2;
     61    border-color: #f68d89;
    3462}
    3563textarea {
     
    6492    border-color: #bce8f1;
    6593}
     94
     95.aklamator_INlogin {
     96    padding: 10px;
     97    background-color: #000058;
     98    color: white;
     99    text-decoration: none;
     100    font-size: 15px;
     101    text-align: center;
     102    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
     103    border-radius: 5px;
     104    cursor: pointer;
     105    -webkit-box-shadow:0 0 4px #909090;
     106    box-shadow:0 0 4px #909090;
     107}
     108
     109.aklamator_INlogin:hover {
     110    color: lightskyblue;
     111}
  • aklamator-pro-adsense/tags/2.1/assets/js/main.js

    r1514665 r1804654  
    2929jQuery(document).ready(function(){
    3030
     31    jQuery('#aklamator_adsense_save').on('click', function (event) {
     32        var aklapopaplicationID = jQuery('#aklamatorProApplicationID');
     33        if (aklapopaplicationID.val() == "")
     34        {
     35            alert("Paste your Aklamator Application ID");
     36            aklapopaplicationID.focus();
     37            event.preventDefault();
     38        }
     39    });
     40
     41    jQuery('#aklamatorProApplicationID').on('input', function ()
     42    {
     43        jQuery('#aklamator_error').css('display', 'none');
     44    });
     45
     46    jQuery('#aklamator_login_button').click(function () {
     47        var akla_login_window = window.open(signup_url,'_blank');
     48        var aklamator_interval = setInterval(function() {
     49            var aklamator_hash = akla_login_window.location.hash;
     50            var aklamator_api_id = "";
     51            if (akla_login_window.location.href.indexOf('aklamator_wordpress_api_id') !== -1) {
     52
     53                aklamator_api_id = aklamator_hash.substring(28);
     54                jQuery("#aklamatorProApplicationID").val(aklamator_api_id);
     55                akla_login_window.close();
     56                clearInterval(aklamator_interval);
     57                jQuery('#aklamator_error').css('display', 'none');
     58            }
     59        }, 1000);
     60
     61    });
    3162
    3263    jQuery("#aklamatorProSingleWidgetID").change(function(){
  • aklamator-pro-adsense/tags/2.1/includes/class-aklamator-pro-adsense.php

    r1794203 r1804654  
    213213
    214214
    215         if(isset($this->api_data->data) && $this->api_data->flag) {
     215        if(isset($this->api_data->data) && isset($this->api_data->flag) && $this->api_data->flag) {
    216216
    217217            if (get_option('aklamatorProSingleWidgetID') !== 'none') {
     
    239239    public function getSignupUrl()
    240240    {
    241 
    242         return $this->aklamator_url . 'registration/publisher?utm_source=wordpress_pro&utm_medium=wpadsense&e=' . urlencode(get_option('admin_email')) . '&pub=' .  preg_replace('/^www\./','',$_SERVER['SERVER_NAME']).
    243         '&un=' . urlencode(wp_get_current_user()->display_name).'&domain='.site_url().'&pl=pro-adsense';
     241        $user_info =  wp_get_current_user();
     242
     243        return $this->aklamator_url . 'login/application_id?utm_source=wordpress&utm_medium=wpadsense&e=' . urlencode(get_option('admin_email')) .
     244        '&pub=' .  preg_replace('/^www\./','',$_SERVER['SERVER_NAME']).
     245        '&un=' . urlencode($user_info->user_login). '&fn=' . urlencode($user_info->user_firstname) . '&ln=' . urlencode($user_info->user_lastname) .
     246        '&pl=pro-adsense&return_uri=' . admin_url("admin.php?page=aklamator-pro-adsense");
    244247
    245248    }
  • aklamator-pro-adsense/tags/2.1/readme.txt

    r1794203 r1804654  
    44Tags: adSense, custom ad, ads, aklamator.com, aklamator, aclamator, digital pr, widget, widgets, content promotion, earn, income, statistic, tracking, cross promotion, Technorati, ContextWeb, Amazon Associates, Chitika, Tribal Fusion, Propeller Ads Media, Adversal, Revenue Hits, AdWords, Ad Sense, crosspromote
    55Requires at least: 3.0.1
    6 Tested up to: 4.9.1
    7 Stable tag: 2.0.0
     6Tested up to: 4.9.2
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656[Step by step instructions >>](https://www.aklamator.com/wordpress?utm_source=wordpress&utm_medium=store&utm_campaign=wordpress)
    5757
    58 **How to activate and use Aklamator on your wordpress website**
    59 
    60 If already have registered Aklamator account and own website that is using Wordpress please skip to step 2
    61 
    62 **1. step** : [Sign Up](https://aklamator.com/registration/publisher) Aklamator and get free Aklamator account and Aklamator Application ID.
    63 
    64 Fill your information and click “Create new account”
    65 You will get verification email with activation link
    66 (please check SPAM folder if it is missing).  After activating your account proceed to login to Aklamator.
    67 
    68 **2. step** : [Sign in](https://aklamator.com/login) and get your Aklamator Application ID
    69 
    70 After logging in, go to your profile and copy Application ID
    71 
    72 After pasting Application ID to your wordpress plugin, it will automatically create first plugin for your blog and populate it with your RSS feed.
     58**How to activate and use Aklamator on your wordpress website, after plugin installation **
     59
     60**1. step** : Click on red button "Create your FREE account" and get free Aklamator account.
     61After submitting registration form you will get verification email with activation link (please check SPAM folder if it is missing).
     62Click on activation link in received email. Now your Application ID should be autofilled, just click SAVE to proceed.
     63
     64Now first widget is automatically created for your blog and populate it with yout wordpress posts.
    7365It becomes visible in plugin settings (list below).
    7466Widget is 4x1 150x150px. If you want to change widget dimensions you can do that by logging to [Aklamator web](https://aklamator.com/login)
    7567
    76 **3. step** : Download Aklamator wordpress plugin and paste your Aklamator Application ID
    77 
    78 * Upload and unzip plugin `aklamator_widget.zip` to the `/wp-content/plugins/` directory
    79 * Activate the Aklamator plugin through the 'Plugins' menu in WordPress
    80 
    81 Go to your WordPress administration panel and paste the Aklamator Application ID
     68**2. step OPTIONAL** :
     69Optionally if you didn't get Application ID in previous step you can copy paste it manually
     70[Sign in](https://aklamator.com/login) and get your Aklamator Application ID
     71After logging in, go to your profile and copy Application ID from Aklamator and paste it in wordpress plugin.
    8272
    8373**WELL DONE!** Aklamator is now active on your Wordpress website and you should be able to see available aklamator widgets in the bottom half of the screen.
     74
    8475
    8576* Go to Appearance then Widgets and drag and drop Aklamator Digital PR field and choose desired widget
     
    120111
    121112== Changelog ==
     113
     114= 2.1 =
     115* Simplified user creation and automatic Application ID fetching.
     116
    122117= 2.0.0 =
    123118* Added new option to select posts category
  • aklamator-pro-adsense/tags/2.1/views/admin-page.php

    r1794203 r1804654  
    2727        <?php
    2828
    29         if ($this->application_id == '') : ?>
    30             <h3 style="float: left">Step 1:</h3>
    31             <a class='aklamator-signup-button' target='_blank' href="<?php echo $this->getSignupUrl(); ?>">Click here to create your FREE account!</a>
    32 
     29        if (isset($this->api_data->error) || $this->application_id == '') : ?>
     30            <h3 style="float: left">Step 1: Get your Aklamator Aplication ID</h3>
     31            <a class='aklamator_button aklamator-login-button' id="aklamator_login_button" >Click here for FREE registration/login</a>
     32            <div style="clear: both"></div>
     33            <p>Or you can manually <a href="<?php echo $this->aklamator_url . 'registration/publisher'; ?>" target="_blank">register</a> or <a href="<?php echo $this->aklamator_url . 'login'; ?>" target="_blank">login</a> and copy paste your Application ID</p>
     34            <script>var signup_url = '<?php echo $this->getSignupUrl(); ?>';</script>
    3335        <?php endif; ?>
    3436
     
    6466            </p>
    6567
    66             <?php if($this->api_data->flag === false): ?>
    67                 <p><span style="color:red"><?php echo $this->api_data->error; ?></span></p>
     68            <?php if(isset($this->api_data->flag) && $this->api_data->flag === false): ?>
     69                <p id="aklamator_error" class="alert_red alert-msg_red"><span style="color:red"><?php echo $this->api_data->error; ?></span></p>
    6870            <?php endif; ?>
    6971
     
    144146                </p>
    145147            <?php endif; ?>
    146             <input style ="margin: 15px 0px;" type="submit" value="<?php echo (_e("Save Changes")); ?>" />
     148            <input id="aklamator_adsense_save" class="aklamator_INlogin" style ="margin: 0; border: 0; float: left;" type="submit" value="<?php echo (_e("Save Changes")); ?>" />
     149            <?php if(!isset($this->api_data->flag) || !$this->api_data->flag): ?>
     150                <div style="float: left; padding: 7px 0 0 10px; color: red; font-weight: bold; font-size: 16px"> <-- In order to proceed save changes</div>
     151            <?php endif ?>
    147152        </form>
    148153    </div>
     
    152157<div style="margin-top: 20px; margin-left: 0px; width: 810px;" class="box">
    153158
    154     <?php if ($this->curlfailovao && $this->application_id != ''): ?>
     159    <?php if (isset($this->curlfailovao) && $this->curlfailovao && $this->application_id != ''): ?>
    155160        <h2 style="color:red">Error communicating with Aklamator server, please refresh plugin page or try again later. </h2>
    156161    <?php endif;?>
    157     <?php if(!$this->api_data_table->flag): ?>
     162    <?php if(!isset($this->api_data_table->flag) || $this->api_data_table->flag == false): ?>
    158163        <a href="<?php echo $this->getSignupUrl(); ?>" target="_blank"><img style="border-radius:5px;border:0px;" src=" <?php echo AKLA_PRO_PLUGIN_URL .'images/teaser-810x262.png'; ?>" /></a>
    159164    <?php else : ?>
  • aklamator-pro-adsense/trunk/aklamator-pro-adsense.php

    r1794203 r1804654  
    44Plugin URI: https://www.aklamator.com/wordpress
    55Description: Aklamator Pro AdSense digital PR plugin enables you to easily place AdSense or other custom Ad code on your wordpress site. It also enables you to sell PR announcements, cross promote web sites using RSS feed and provide new services to your clients in digital advertising.
    6 Version: 2.0.0
     6Version: 2.1
    77Author: Aklamator
    88Author URI: https://www.aklamator.com/
  • aklamator-pro-adsense/trunk/assets/css/admin-style.css

    r1514665 r1804654  
    66
    77
    8 .aklamator-signup-button {
    9     float: left;
     8.aklamator_button {
    109    vertical-align: top;
    1110    width: auto;
     
    1312    line-height: 30px;
    1413    padding: 10px;
    15     font-size: 22px;
     14    font-size: 20px;
    1615    color: white;
    1716    text-align: center;
     
    2423    box-shadow: inset 0 -2px #b53224;
    2524    text-decoration: none;
    26     margin-top: 10px;
     25    margin-top: 3px;
    2726    margin-bottom: 10px;
    28     clear: both;
    2927}
    3028
    31 a.aklamator-signup-button:hover {
     29.aklamator-login-button {
     30    float: left;
     31}
     32
     33
     34.aklamator-login-button:hover {
    3235    cursor: pointer;
    33     color: #f8f8f8;
     36    color: lightskyblue;
     37}
     38
     39h3 {
     40    margin-bottom: 3px;
     41}
     42p {
     43    margin-top: 3px;
     44}
     45
     46.alert_red{
     47    margin-bottom: 18px;
     48    margin-top: 10px;
     49    color: #c09853;
     50    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
     51    background-color: #fcf8e3;
     52    border: 1px solid #fbeed5;
     53    -webkit-border-radius: 4px;
     54    -moz-border-radius: 4px;
     55    border-radius: 4px;
     56    padding: 8px 35px 8px 14px;
     57}
     58.alert-msg_red {
     59    color: #8f0100;
     60    background-color: #f6cbd2;
     61    border-color: #f68d89;
    3462}
    3563textarea {
     
    6492    border-color: #bce8f1;
    6593}
     94
     95.aklamator_INlogin {
     96    padding: 10px;
     97    background-color: #000058;
     98    color: white;
     99    text-decoration: none;
     100    font-size: 15px;
     101    text-align: center;
     102    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
     103    border-radius: 5px;
     104    cursor: pointer;
     105    -webkit-box-shadow:0 0 4px #909090;
     106    box-shadow:0 0 4px #909090;
     107}
     108
     109.aklamator_INlogin:hover {
     110    color: lightskyblue;
     111}
  • aklamator-pro-adsense/trunk/assets/js/main.js

    r1514665 r1804654  
    2929jQuery(document).ready(function(){
    3030
     31    jQuery('#aklamator_adsense_save').on('click', function (event) {
     32        var aklapopaplicationID = jQuery('#aklamatorProApplicationID');
     33        if (aklapopaplicationID.val() == "")
     34        {
     35            alert("Paste your Aklamator Application ID");
     36            aklapopaplicationID.focus();
     37            event.preventDefault();
     38        }
     39    });
     40
     41    jQuery('#aklamatorProApplicationID').on('input', function ()
     42    {
     43        jQuery('#aklamator_error').css('display', 'none');
     44    });
     45
     46    jQuery('#aklamator_login_button').click(function () {
     47        var akla_login_window = window.open(signup_url,'_blank');
     48        var aklamator_interval = setInterval(function() {
     49            var aklamator_hash = akla_login_window.location.hash;
     50            var aklamator_api_id = "";
     51            if (akla_login_window.location.href.indexOf('aklamator_wordpress_api_id') !== -1) {
     52
     53                aklamator_api_id = aklamator_hash.substring(28);
     54                jQuery("#aklamatorProApplicationID").val(aklamator_api_id);
     55                akla_login_window.close();
     56                clearInterval(aklamator_interval);
     57                jQuery('#aklamator_error').css('display', 'none');
     58            }
     59        }, 1000);
     60
     61    });
    3162
    3263    jQuery("#aklamatorProSingleWidgetID").change(function(){
  • aklamator-pro-adsense/trunk/includes/class-aklamator-pro-adsense.php

    r1794203 r1804654  
    213213
    214214
    215         if(isset($this->api_data->data) && $this->api_data->flag) {
     215        if(isset($this->api_data->data) && isset($this->api_data->flag) && $this->api_data->flag) {
    216216
    217217            if (get_option('aklamatorProSingleWidgetID') !== 'none') {
     
    239239    public function getSignupUrl()
    240240    {
    241 
    242         return $this->aklamator_url . 'registration/publisher?utm_source=wordpress_pro&utm_medium=wpadsense&e=' . urlencode(get_option('admin_email')) . '&pub=' .  preg_replace('/^www\./','',$_SERVER['SERVER_NAME']).
    243         '&un=' . urlencode(wp_get_current_user()->display_name).'&domain='.site_url().'&pl=pro-adsense';
     241        $user_info =  wp_get_current_user();
     242
     243        return $this->aklamator_url . 'login/application_id?utm_source=wordpress&utm_medium=wpadsense&e=' . urlencode(get_option('admin_email')) .
     244        '&pub=' .  preg_replace('/^www\./','',$_SERVER['SERVER_NAME']).
     245        '&un=' . urlencode($user_info->user_login). '&fn=' . urlencode($user_info->user_firstname) . '&ln=' . urlencode($user_info->user_lastname) .
     246        '&pl=pro-adsense&return_uri=' . admin_url("admin.php?page=aklamator-pro-adsense");
    244247
    245248    }
  • aklamator-pro-adsense/trunk/readme.txt

    r1794203 r1804654  
    44Tags: adSense, custom ad, ads, aklamator.com, aklamator, aclamator, digital pr, widget, widgets, content promotion, earn, income, statistic, tracking, cross promotion, Technorati, ContextWeb, Amazon Associates, Chitika, Tribal Fusion, Propeller Ads Media, Adversal, Revenue Hits, AdWords, Ad Sense, crosspromote
    55Requires at least: 3.0.1
    6 Tested up to: 4.9.1
    7 Stable tag: 2.0.0
     6Tested up to: 4.9.2
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5656[Step by step instructions >>](https://www.aklamator.com/wordpress?utm_source=wordpress&utm_medium=store&utm_campaign=wordpress)
    5757
    58 **How to activate and use Aklamator on your wordpress website**
    59 
    60 If already have registered Aklamator account and own website that is using Wordpress please skip to step 2
    61 
    62 **1. step** : [Sign Up](https://aklamator.com/registration/publisher) Aklamator and get free Aklamator account and Aklamator Application ID.
    63 
    64 Fill your information and click “Create new account”
    65 You will get verification email with activation link
    66 (please check SPAM folder if it is missing).  After activating your account proceed to login to Aklamator.
    67 
    68 **2. step** : [Sign in](https://aklamator.com/login) and get your Aklamator Application ID
    69 
    70 After logging in, go to your profile and copy Application ID
    71 
    72 After pasting Application ID to your wordpress plugin, it will automatically create first plugin for your blog and populate it with your RSS feed.
     58**How to activate and use Aklamator on your wordpress website, after plugin installation **
     59
     60**1. step** : Click on red button "Create your FREE account" and get free Aklamator account.
     61After submitting registration form you will get verification email with activation link (please check SPAM folder if it is missing).
     62Click on activation link in received email. Now your Application ID should be autofilled, just click SAVE to proceed.
     63
     64Now first widget is automatically created for your blog and populate it with yout wordpress posts.
    7365It becomes visible in plugin settings (list below).
    7466Widget is 4x1 150x150px. If you want to change widget dimensions you can do that by logging to [Aklamator web](https://aklamator.com/login)
    7567
    76 **3. step** : Download Aklamator wordpress plugin and paste your Aklamator Application ID
    77 
    78 * Upload and unzip plugin `aklamator_widget.zip` to the `/wp-content/plugins/` directory
    79 * Activate the Aklamator plugin through the 'Plugins' menu in WordPress
    80 
    81 Go to your WordPress administration panel and paste the Aklamator Application ID
     68**2. step OPTIONAL** :
     69Optionally if you didn't get Application ID in previous step you can copy paste it manually
     70[Sign in](https://aklamator.com/login) and get your Aklamator Application ID
     71After logging in, go to your profile and copy Application ID from Aklamator and paste it in wordpress plugin.
    8272
    8373**WELL DONE!** Aklamator is now active on your Wordpress website and you should be able to see available aklamator widgets in the bottom half of the screen.
     74
    8475
    8576* Go to Appearance then Widgets and drag and drop Aklamator Digital PR field and choose desired widget
     
    120111
    121112== Changelog ==
     113
     114= 2.1 =
     115* Simplified user creation and automatic Application ID fetching.
     116
    122117= 2.0.0 =
    123118* Added new option to select posts category
  • aklamator-pro-adsense/trunk/views/admin-page.php

    r1794203 r1804654  
    2727        <?php
    2828
    29         if ($this->application_id == '') : ?>
    30             <h3 style="float: left">Step 1:</h3>
    31             <a class='aklamator-signup-button' target='_blank' href="<?php echo $this->getSignupUrl(); ?>">Click here to create your FREE account!</a>
    32 
     29        if (isset($this->api_data->error) || $this->application_id == '') : ?>
     30            <h3 style="float: left">Step 1: Get your Aklamator Aplication ID</h3>
     31            <a class='aklamator_button aklamator-login-button' id="aklamator_login_button" >Click here for FREE registration/login</a>
     32            <div style="clear: both"></div>
     33            <p>Or you can manually <a href="<?php echo $this->aklamator_url . 'registration/publisher'; ?>" target="_blank">register</a> or <a href="<?php echo $this->aklamator_url . 'login'; ?>" target="_blank">login</a> and copy paste your Application ID</p>
     34            <script>var signup_url = '<?php echo $this->getSignupUrl(); ?>';</script>
    3335        <?php endif; ?>
    3436
     
    6466            </p>
    6567
    66             <?php if($this->api_data->flag === false): ?>
    67                 <p><span style="color:red"><?php echo $this->api_data->error; ?></span></p>
     68            <?php if(isset($this->api_data->flag) && $this->api_data->flag === false): ?>
     69                <p id="aklamator_error" class="alert_red alert-msg_red"><span style="color:red"><?php echo $this->api_data->error; ?></span></p>
    6870            <?php endif; ?>
    6971
     
    144146                </p>
    145147            <?php endif; ?>
    146             <input style ="margin: 15px 0px;" type="submit" value="<?php echo (_e("Save Changes")); ?>" />
     148            <input id="aklamator_adsense_save" class="aklamator_INlogin" style ="margin: 0; border: 0; float: left;" type="submit" value="<?php echo (_e("Save Changes")); ?>" />
     149            <?php if(!isset($this->api_data->flag) || !$this->api_data->flag): ?>
     150                <div style="float: left; padding: 7px 0 0 10px; color: red; font-weight: bold; font-size: 16px"> <-- In order to proceed save changes</div>
     151            <?php endif ?>
    147152        </form>
    148153    </div>
     
    152157<div style="margin-top: 20px; margin-left: 0px; width: 810px;" class="box">
    153158
    154     <?php if ($this->curlfailovao && $this->application_id != ''): ?>
     159    <?php if (isset($this->curlfailovao) && $this->curlfailovao && $this->application_id != ''): ?>
    155160        <h2 style="color:red">Error communicating with Aklamator server, please refresh plugin page or try again later. </h2>
    156161    <?php endif;?>
    157     <?php if(!$this->api_data_table->flag): ?>
     162    <?php if(!isset($this->api_data_table->flag) || $this->api_data_table->flag == false): ?>
    158163        <a href="<?php echo $this->getSignupUrl(); ?>" target="_blank"><img style="border-radius:5px;border:0px;" src=" <?php echo AKLA_PRO_PLUGIN_URL .'images/teaser-810x262.png'; ?>" /></a>
    159164    <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.