Skip to content

Commit

Permalink
made to work with php-proxy own http classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 committed Jun 7, 2015
1 parent f8b27ee commit d836240
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "athlon1600/php-proxy-app",
"type": "project",
"version": "2.0.0",
"version": "3.0.0",
"license": "MIT",
"description": "Web proxy application project powered by PHP-Proxy library",
"keywords": ["php proxy application", "php proxy web", "proxy script", "php web proxy", "web proxy"],
Expand Down
10 changes: 5 additions & 5 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
2 - unique to that session and IP address - URL no longer valid anywhere when browser session ends
*/

$config['url_mode'] = 1;
$config['url_mode'] = 0;

// plugins to load - plugins will be loaded in this exact order as in array
$config['plugins'] = array(
'Test',
'Stream',
'HeaderRewrite',
'Cookie',
'Stream',
//'Cookie', not working at the moment
'Proxify',
// site specific plugins
// site specific plugins below
'Youtube',
'DailyMotion',
'RedTube',
Expand All @@ -37,7 +37,7 @@
// additional curl options to go with each request
$config['curl'] = array(
//CURLOPT_INTERFACE => '123.123.123.13',
//CURLOPT_USERAGENT => 'Firefox 5000'
// CURLOPT_CONNECTTIMEOUT => 5
);

//$config['error_redirect'] = "https://unblockvideos.com/#error={error_msg}";
Expand Down
6 changes: 2 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

require("vendor/autoload.php");

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\ParameterBag;

use Proxy\Http\Request;
use Proxy\Http\Response;
use Proxy\Plugin\AbstractPlugin;
use Proxy\Event\FilterEvent;
use Proxy\Config;
Expand Down

0 comments on commit d836240

Please sign in to comment.