Changeset 211903
- Timestamp:
- 03/01/2010 04:03:59 PM (16 years ago)
- Location:
- file-proxy/trunk
- Files:
-
- 1 added
- 2 edited
-
com/twothirdsdesign/file-proxy/admin/admin.php (added)
-
com/twothirdsdesign/file-proxy/ttd_file_proxy.php (modified) (2 diffs)
-
init.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
file-proxy/trunk/com/twothirdsdesign/file-proxy/ttd_file_proxy.php
r210743 r211903 37 37 38 38 // Add admin menu interface 39 if( is_admin() ){ 40 //include( TTDFP_ADMIN.DS."adminController.php" ); 41 //$adminCrtl = new GcpfAdminController( &$this ); 42 //add_action('admin_menu', array(&$adminCrtl, 'adminMenus')); 43 } 39 $this->admin(); 40 44 41 //add_action('template_redirect', array(&$this,'uri_detect')); 45 42 … … 58 55 add_action('init', array(&$this,'request_handler'), 999); 59 56 //add_action('init', array(&$this,'flush_rules')); 57 } 58 59 function admin(){ 60 if( is_admin() ){ 61 require_once( TTDFP_ADMIN.DS.'admin.php' ); 62 $ttd_file_proxy_admin = new TtdFileProxyAdmin( &$this ); 63 64 //require_once( TTDFP_ADMIN.DS.'meta-box.php' ); 65 //require_once( TTDFP_ADMIN.DS.'settings-page.php' ); 66 //include( TTDFP_ADMIN.DS."adminController.php" ); 67 //$adminCrtl = new GcpfAdminController( &$this ); 68 //add_action('admin_menu', array(&$adminCrtl, 'adminMenus')); 69 } 70 } 71 72 73 /** 74 * exposes the text domain contant 75 * 76 * @return String 77 * @author Geraint Palmer 78 * @since 0.5 79 **/ 80 function get_domain(){ 81 return $this->domain; 60 82 } 61 83 -
file-proxy/trunk/init.php
r210743 r211903 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 … … 55 55 56 56 // Create Plugin Instance 57 $ main= new TtdFileProxy();57 $ttd_file_proxy = new TtdFileProxy(); 58 58 } 59 59 ?>
Note: See TracChangeset
for help on using the changeset viewer.