Plugin Directory

Changeset 213213


Ignore:
Timestamp:
03/04/2010 10:49:18 PM (16 years ago)
Author:
geraint
Message:
 
Location:
file-proxy/tags/0.5
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • file-proxy/tags/0.5/com/twothirdsdesign/core/gcp_options.php

    r210743 r213213  
    44 *
    55 * @author      Geraint Palmer
    6  * @version     1.0.1     
     6 * @version     1.0.2     
    77 */
    88class GcpOptions
    99{
    10     const VERSION = '1.0.1';
     10    const VERSION = '1.0.2';
    1111    protected $options_key = 'ttd_plugin_options';
    1212    protected $_options = array(
     
    2626        {
    2727            // tries to create a cache from wordpress DB options table.// uses plugin preset options not in db
    28             $this->_optioncache =  get_option( $this->options_key );
     28            $this->_optioncache = unserialize( get_option( $this->options_key , false ));
    2929            if (!$this->_optioncache) $this->_optioncache = $this->_options;
    3030        }
  • file-proxy/tags/0.5/com/twothirdsdesign/file-proxy/ttd_file_proxy.php

    r210743 r213213  
    3838        // Add admin menu interface
    3939        if( is_admin() ){
    40             //include( TTDFP_ADMIN.DS."adminController.php" );
    41             //$adminCrtl = new GcpfAdminController( &$this );
    42             //add_action('admin_menu', array(&$adminCrtl, 'adminMenus'));
     40
    4341        }
    44         //add_action('template_redirect', array(&$this,'uri_detect'));
    4542                   
    4643        // add activation hooks
     
    111108        $this->update_option("version", TTDPF_VERSION );
    112109       
    113         if( defined('WP_CONTENT_DIR') ){
    114             if(!is_dir( WP_CONTENT_DIR.DS.'cache' ) && is_writable( WP_CONTENT_DIR )){
    115                 mkdir( WP_CONTENT_DIR.DS.'cache' );
    116             }
    117             if(!is_dir( WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain ) && is_writable( WP_CONTENT_DIR.DS.'cache' )){ 
    118                 mkdir( WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain );
    119             }
    120             if(!is_dir( WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain )){
    121                 $this->update_option('cache', 'disabled');
    122             }
    123         }
    124         else if(!is_dir( TTDFP_DIR.DS.'cache') && is_writable( TTDFP_DIR ))
    125         {
    126             mkdir( TTDFP_DIR.DS.'cache' ); 
    127             if(is_dir( TTDFP_DIR.DS.'cache') && is_writable( TTDFP_DIR )){
    128                 $this->update_option('cache', 'off');
    129             }
    130         }else{
    131             $this->update_option('cache', 'disabled');
    132         }
    133110    }
    134111       
     
    144121        if( (boolean)$this->get_option("uninstall") ){
    145122            delete_option($this->options_key);
    146            
    147             if( is_dir( WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain ) && is_writable( WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain ) )
    148                 $this->rmdirr(WP_CONTENT_DIR.DS.'cache'.DS. $this->plugin_domain );
    149             if( is_dir( TTDFP_DIR.DS.'cache' ) && is_writable( TTDFP_DIR.DS. $this->plugin_domain ) )
    150                 $this->rmdirr( TTDFP_DIR.DS.'cache' );
    151123        }
    152124    }
  • file-proxy/tags/0.5/init.php

    r213206 r213213  
    22    /*
    33    Plugin Name: File Proxy
    4     Version: 0.4
     4    Version: 0.5
    55    Description: File Proxy is a simple WordPress plug that lest you protect / restrict access to a specific embedded file.  It lets you embed files from the upload directory into a post or page using a short code that restricts access to registered users.  guest users who click on the link are prompted to login before returning the file.<code>[file-proxy id='attachment_id']link text[/file-proxy]</code>.
    66    Author: Geraint Palmer
     
    1616
    1717    // Plugin Variables
    18     define( 'TTDPF_VERSION', "0.2" );
     18    define( 'TTDPF_VERSION', "0.5" );
    1919   
    2020    // Define URL
     
    3737    define( 'TTDFP_LANG'    , TTDFP_DIR.DS.'lang'  );
    3838   
    39     define( 'TTDFP_INCLUDES'    , TTDFP_DIR.DS.'includes' );
     39    define( 'TTDFP_INCLUDES', TTDFP_DIR.DS.'includes' );
    4040
    4141   
  • file-proxy/tags/0.5/readme.txt

    r210743 r213213  
    22Contributors: geraint
    33Donate link: http://www.twothirdsdesign.co.uk/
    4 Tags: files, protection, retsrict access,
     4Tags: files, protection, restrict access,
    55Requires at least: 2.9.x
    66Tested up to: 2.9.2
    7 Stable tag: 0.4
     7Stable tag: 0.5
    88
    99File Proxy is a simple WordPress plug that lest you protect / restrict access to a specific embedded file.
     
    3636
    3737== Changelog ==
     38
     39= 0.5 =
     40changed a variable name to, obscure it to avoid conflicts.
     41
    3842= 0.4 =
    3943minor bug fix
     
    4650
    4751== Upgrade Notice ==
     52
     53= 0.5 =
     54changed a variable name to, obscure it to avoid conflicts.
     55
    4856= 0.4 =
    4957minor bug fix
     58
    5059= 0.3 =
    5160Default link text replaced by filename.
     61
    5262= 0.2 =
    5363Adds some Variable sanitation, and sql prep to harden plugin security
Note: See TracChangeset for help on using the changeset viewer.