Plugin Directory

Changeset 211903


Ignore:
Timestamp:
03/01/2010 04:03:59 PM (16 years ago)
Author:
geraint
Message:
 
Location:
file-proxy/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • file-proxy/trunk/com/twothirdsdesign/file-proxy/ttd_file_proxy.php

    r210743 r211903  
    3737       
    3838        // 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
    4441        //add_action('template_redirect', array(&$this,'uri_detect'));
    4542                   
     
    5855        add_action('init', array(&$this,'request_handler'), 999);
    5956        //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;
    6082    }
    6183   
  • file-proxy/trunk/init.php

    r210743 r211903  
    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   
     
    5555       
    5656        // Create Plugin Instance
    57         $main = new TtdFileProxy();
     57        $ttd_file_proxy = new TtdFileProxy();
    5858    }   
    5959?>
Note: See TracChangeset for help on using the changeset viewer.