PHP Class Proxy\Plugin\ProxifyPlugin

Inheritance: extends Proxy\Plugin\AbstractPlugin
Show file Open project: athlon1600/php-proxy

Public Methods

Method Description
onBeforeRequest ( Proxy\Event\ProxyEvent $event )
onCompleted ( Proxy\Event\ProxyEvent $event ) * TODO: $input = preg_replace('#]*name="\'["\'][^>]*>#is', '', $input, 3); $input = preg_replace('#]*rel="\'["\'][^>]*>#is', '', $input, 2);

Private Methods

Method Description
css_import ( $matches ) * this.params.logoImg&&(e="background-image: url("+this.params.logoImg+")")
css_url ( $matches )
form_action ( $matches )
html_href ( $matches )
html_src ( $matches )

Method Details

onBeforeRequest() public method

public onBeforeRequest ( Proxy\Event\ProxyEvent $event )
$event Proxy\Event\ProxyEvent

onCompleted() public method

# Remove and record a href $input = preg_replace_callback('#]{1,2048}))(?(1)\\1|)[^>]*>#i', 'html_stripBase', $input, 1); # Proxy url= values in meta redirects $input = preg_replace_callback('#content\s*=\s*(["\\\'])?[0-9]+\s*;\s*url=([\\\'"]|&\#39;)?((?(?<=")[^"]+|(?(?<=\\\')[^\\\']+|[^\\\'" >]+)))(?(2)\\2|)(?(1)\\1|)#i', 'html_metaRefresh', $input, 1); # Process forms $input = preg_replace_callback('#]*)>(.*?)#is', 'html_form', $input);
public onCompleted ( Proxy\Event\ProxyEvent $event )
$event Proxy\Event\ProxyEvent