Changeset 223278
- Timestamp:
- 03/30/2010 04:05:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
file-proxy/trunk/com/twothirdsdesign/file-proxy/ttd_file_proxy.php
r216667 r223278 35 35 // init options manager 36 36 $this->options = new GcpOptions($this->options_key, $this->_options); 37 37 38 38 // load localisation 39 39 if( in_array( $pagenow, $local_pages ) ) … … 55 55 56 56 // adds proxy rewrite rule & query_var 57 add_filter('generate_rewrite_rules', array(&$this,'add_rewrite_rules'));57 //add_filter('generate_rewrite_rules', array(&$this,'add_rewrite_rules')); 58 58 add_filter('query_vars', array(&$this, 'query_vars')); 59 add_filter('wp_redirect', array(&$this, 'test'), 0, 2);59 //add_filter('wp_redirect', array(&$this, 'test'), 0, 2); 60 60 61 61 // intercepts and acts on query_var file-proxy … … 65 65 66 66 67 function test($location, $status){67 /* function test($location, $status){ 68 68 echo $status . " - " . $location; 69 } 69 } */ 70 70 71 71 function admin(){ … … 120 120 function add_rewrite_rules( $wp_rewrite ) { 121 121 $new_rules = array( $this->get_option('url-key').'/?(.+){1,}/?$' => 'index.php?'. $this->get_option('url-key').'='.$wp_rewrite->preg_index(1) ); 122 $new_rules2 = array( 'testing/(.+)/?$' => 'index.php?file=test'.$wp_rewrite->preg_index(1) );122 //$new_rules2 = array( 'testing/(.+)/?$' => 'index.php?file=test'.$wp_rewrite->preg_index(1) ); 123 123 $wp_rewrite->rules = $new_rules + $new_rules2 + $wp_rewrite->rules; 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.