Plugin Directory

Changeset 601490


Ignore:
Timestamp:
09/20/2012 08:26:03 AM (14 years ago)
Author:
oshingler
Message:
 
Location:
olimometer
Files:
64 added
3 edited

Legend:

Unmodified
Added
Removed
  • olimometer/trunk/olimometer-class.php

    r575927 r601490  
    2525    public $olimometer_font_height = 8;
    2626    public $olimometer_suffix = "";
    27     //public $olimometer_skin = 0;
    2827    public $olimometer_skin_slug = "oli-default";
    2928    public $olimometer_use_paypal = 0;
     
    6261        $this->olimometer_font_height = $query_results['olimometer_font_height'];
    6362        $this->olimometer_suffix = $query_results['olimometer_suffix'];
    64         //$this->olimometer_skin = $query_results['olimometer_skin'];
    6563        $this->olimometer_skin_slug = $query_results['olimometer_skin_slug'];
    6664        $this->olimometer_use_paypal = $query_results['olimometer_use_paypal'];
  • olimometer/trunk/olimometer.php

    r575927 r601490  
    66Author: Oliver Shingler
    77Author URI: http://www.olivershingler.co.uk
    8 Version: 2.35
     8Version: 2.36
    99*/
    1010
     
    5454    $new_olimometer->olimometer_description = $_REQUEST['olimometer_description'];
    5555    $new_olimometer->save();
    56     //update_option("olimometer_last", $new_olimometer->olimometer_id);
    5756    update_olimometer_last($new_olimometer->olimometer_id);
    5857}
     
    7069        $dead_olimometer->load($_REQUEST['olimometer_id']);
    7170        $dead_olimometer->delete();
    72         //update_option("olimometer_last", 1);
    7371        update_olimometer_last(1);
    7472    }
     
    7876if (isset($_REQUEST['olimometer_load'])) {
    7977    // Which one?
    80     //update_option("olimometer_last", $_REQUEST['olimometer_id']);
    8178    update_olimometer_last($_REQUEST['olimometer_id']);
    8279}
     
    124121    $an_olimometer = new Olimometer();
    125122    $an_olimometer->olimometer_id = $current_olimometer_id;
    126    
    127 
    128        
    129    
    130    
     123
    131124    // Get values from form and dump in to the object
    132125    $an_olimometer->olimometer_description = $_REQUEST['olimometer_description'];
     
    221214<?php
    222215    // Load the olimometer values:
    223     //$current_olimometer_id = 1; // Hard coded for the moment
    224216    // If we are being asked to load a particular Olimometer's settings
    225217    if (isset($_REQUEST['olimometer_load'])) {
    226218        // Which one?
    227         //update_option("olimometer_last", $_REQUEST['olimometer_id']);
    228219        update_olimometer_last($_REQUEST['olimometer_id']);
    229220        $current_olimometer_id = $_REQUEST['olimometer_id'];
     
    231222    }
    232223    else {
    233         //if(get_option("olimometer_last") == 0)
    234224        if(get_olimometer_last() == 0)
    235225        {
     
    237227        }
    238228        else {
    239             //$current_olimometer_id = get_option("olimometer_last");
    240229            $current_olimometer_id = get_olimometer_last();
    241230        }
     
    249238   
    250239    echo '<div class="icon32" id="icon-options-general"><br></div><h2>Olimometer - '.$current_olimometer->olimometer_description.'</h2>';
    251    
    252 
    253 
    254 
    255    
    256240   
    257241    ?>
     
    304288    echo '<a href="#OtherInformation">Other Information</a></p>';
    305289
    306 
    307    
    308     //    global $wpdb;
    309     //$table_name = $wpdb->prefix . "olimometer_olimometers";
    310     //echo $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $table_name;" ) );
    311290    ?>
    312291    </div>
     
    544523<?php
    545524// Import list of Olimometer skins from XML file
    546 //$olimometer_skin_xml_file = WP_PLUGIN_DIR."/".plugin_basename(dirname(__FILE__).'/skins.xml');
    547 //$olimometer_skin_xml_file = get_option("olimometer_skins_location")."skins.xml";
    548 //echo $olimometer_skin_xml_file;
    549 //$olimometer_skins_location = get_option("olimometer_skins_location");
    550 //$olimometer_skins_custom_location = get_option("olimometer_skins_custom_location");
    551525include_once('skins.php'); 
    552526
     
    556530$olimometer_skins->load();
    557531
    558 //$olimometer_current_skin=0;
    559532$olimometer_skin_names = array();
    560 //$olimometer_skin_slugs = array();
    561533$olimometer_skin_names = $olimometer_skins->get_skin_names();
    562 //$olimometer_skin_slugs = olimometer_get_skin_slugs();
    563534
    564535// Loop around each skin name and display in a drop-down list
     
    568539        echo " selected";
    569540    }
    570     echo ">".$olimometer_skin_name["skin_name"]."</option>";   
    571     //$olimometer_current_skin++;
     541    echo ">".$olimometer_skin_name["skin_name"]."</option>";
    572542}
    573543
     
    686656    <p class="submit"><input type="submit" class="button-primary" name="olimometer_submit" value="Save Changes" /></p>
    687657    <?php
    688     //echo '<input id="old" type="hidden" value="'.get_option("olimometer_progress").'">';
    689658    echo '</form>';
    690659   
     
    910879    echo '<div class="wrap">';
    911880   
    912     //if(strlen(get_option("olimometer_last")) > 0)
    913881    if(strlen(get_olimometer_last()) > 0)
    914882    {
    915         //$current_olimometer_id = get_option("olimometer_last");
    916883        $current_olimometer_id = get_olimometer_last();
    917884    }
     
    973940</p>
    974941    <p><input type="submit" class="button-primary" name="olimometer_dw_submit" value="Update" />
    975     <?php
    976     //echo '<input id="old" type="hidden" value="'.get_option("olimometer_progress").'">';
    977     ?>
    978 
    979        
    980        
     942
    981943&nbsp;&nbsp;<a href='options-general.php?page=olimometer_manage'>Settings</a>
    982944    <?php
  • olimometer/trunk/readme.txt

    r575927 r601490  
    105105== Changelog ==
    106106
     107= 2.36 =
     108* Tidy up of code
     109
    107110= 2.35 =
    108111* You can now customise the image's hyperlink
     
    220223== Upgrade Notice ==
    221224
     225= 2.36 =
     226* Tidy up of code
     227
    222228= 2.35 =
    223229* You can now customise the image's hyperlink
Note: See TracChangeset for help on using the changeset viewer.