Changeset 213213
- Timestamp:
- 03/04/2010 10:49:18 PM (16 years ago)
- Location:
- file-proxy/tags/0.5
- Files:
-
- 4 edited
-
com/twothirdsdesign/core/gcp_options.php (modified) (2 diffs)
-
com/twothirdsdesign/file-proxy/ttd_file_proxy.php (modified) (3 diffs)
-
init.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
file-proxy/tags/0.5/com/twothirdsdesign/core/gcp_options.php
r210743 r213213 4 4 * 5 5 * @author Geraint Palmer 6 * @version 1.0. 16 * @version 1.0.2 7 7 */ 8 8 class GcpOptions 9 9 { 10 const VERSION = '1.0. 1';10 const VERSION = '1.0.2'; 11 11 protected $options_key = 'ttd_plugin_options'; 12 12 protected $_options = array( … … 26 26 { 27 27 // 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 )); 29 29 if (!$this->_optioncache) $this->_optioncache = $this->_options; 30 30 } -
file-proxy/tags/0.5/com/twothirdsdesign/file-proxy/ttd_file_proxy.php
r210743 r213213 38 38 // Add admin menu interface 39 39 if( is_admin() ){ 40 //include( TTDFP_ADMIN.DS."adminController.php" ); 41 //$adminCrtl = new GcpfAdminController( &$this ); 42 //add_action('admin_menu', array(&$adminCrtl, 'adminMenus')); 40 43 41 } 44 //add_action('template_redirect', array(&$this,'uri_detect'));45 42 46 43 // add activation hooks … … 111 108 $this->update_option("version", TTDPF_VERSION ); 112 109 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 }133 110 } 134 111 … … 144 121 if( (boolean)$this->get_option("uninstall") ){ 145 122 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' );151 123 } 152 124 } -
file-proxy/tags/0.5/init.php
r213206 r213213 2 2 /* 3 3 Plugin Name: File Proxy 4 Version: 0. 44 Version: 0.5 5 5 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>. 6 6 Author: Geraint Palmer … … 16 16 17 17 // Plugin Variables 18 define( 'TTDPF_VERSION', "0. 2" );18 define( 'TTDPF_VERSION', "0.5" ); 19 19 20 20 // Define URL … … 37 37 define( 'TTDFP_LANG' , TTDFP_DIR.DS.'lang' ); 38 38 39 define( 'TTDFP_INCLUDES' , TTDFP_DIR.DS.'includes' );39 define( 'TTDFP_INCLUDES', TTDFP_DIR.DS.'includes' ); 40 40 41 41 -
file-proxy/tags/0.5/readme.txt
r210743 r213213 2 2 Contributors: geraint 3 3 Donate link: http://www.twothirdsdesign.co.uk/ 4 Tags: files, protection, re tsrict access,4 Tags: files, protection, restrict access, 5 5 Requires at least: 2.9.x 6 6 Tested up to: 2.9.2 7 Stable tag: 0. 47 Stable tag: 0.5 8 8 9 9 File Proxy is a simple WordPress plug that lest you protect / restrict access to a specific embedded file. … … 36 36 37 37 == Changelog == 38 39 = 0.5 = 40 changed a variable name to, obscure it to avoid conflicts. 41 38 42 = 0.4 = 39 43 minor bug fix … … 46 50 47 51 == Upgrade Notice == 52 53 = 0.5 = 54 changed a variable name to, obscure it to avoid conflicts. 55 48 56 = 0.4 = 49 57 minor bug fix 58 50 59 = 0.3 = 51 60 Default link text replaced by filename. 61 52 62 = 0.2 = 53 63 Adds some Variable sanitation, and sql prep to harden plugin security
Note: See TracChangeset
for help on using the changeset viewer.