XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
proxy.php
Go to the documentation of this file.
1 <?php
2 // $Id: proxy.php 825 2011-12-09 00:06:11Z i.bitcero $
3 // --------------------------------------------------------------
4 // Red México Common Utilities
5 // A framework for Red México Modules
6 // Author: Eduardo Cortés <i.bitcero@gmail.com>
7 // Email: i.bitcero@gmail.com
8 // License: GPL 2.0
9 // --------------------------------------------------------------
10 
11 if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER']=='') die("Not Allowed");
12 
13 $url = isset($_REQUEST['url']) ? $_REQUEST['url'] : '';
14 $type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'text/html';
15 
16 include_once '../class/proxy.php';
18 echo $proxy->get();