Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ben Yacoub Hatem  >  Gonx Proxy  >  index.php  >  Download  
File: index.php
Role: Application script
Content type: text/plain
Description: Sample usage of the class
Class: Gonx Proxy
HTTP proxy to make remote pages be served as local
Author: By
Last change:
Date: 10 years ago
Size: 613 bytes
 

Contents

Class file image Download
<?php

/**
 * gonxproxy Index
 * 
 * @package 
 * @author Ben Yacoub Hatem <hatem@php.net>
 * @copyright Copyright (c) 2004
 * @version $Id$ - 09/04/2004 14:45:36 - index.php
 * @access public
 **/

require_once("gonxproxy.class.php");

@
error_reporting(0); // Don't report error
@extract($_GET);    // if register globals if off
if (isset($url) and $url!="" and $proxy==1) {
    
$res gonxproxy::connect($url);
} elseif(isset(
$url) and $url!="" and !isset($proxy)){
    
$res gonxproxy::connect(base64_decode($url));


    
$res .= gonxproxy::form(); // Add GonxProxy form
    
echo $res;

?>