proxy
authorRaphael Velt <raph.velt@gmail.com>
Mon, 19 Dec 2011 10:02:43 +0100
changeset 432 2c18b115ab00
parent 431 0218f9d62a63
child 433 8c6aa7ec5f78
child 435 a022fd3397b4
proxy
web/enmi2011/config.php
web/tweetcast-proxy.php
--- a/web/enmi2011/config.php	Mon Dec 19 01:41:39 2011 +0100
+++ b/web/enmi2011/config.php	Mon Dec 19 10:02:43 2011 +0100
@@ -74,7 +74,7 @@
     'use_tweetcast' => true,
     'js_config' => "
     var connect_type = 'gevent',
-    source_address = 'http://polemictweet.com:8080/',
+    source_address = 'http://polemictweet.com/tweetcast-proxy.php',
     tracking_keywords = [ \"#enmi\" ],
     suggested_keywords = [
         \"confiance\",
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/tweetcast-proxy.php	Mon Dec 19 10:02:43 2011 +0100
@@ -0,0 +1,11 @@
+<?php
+
+$url = 'http://polemictweet.com:8080/';
+
+$qs = $_SERVER['QUERY_STRING'];
+
+$toget = "$url?$qs";
+
+echo file_get_contents($toget)
+
+?>
\ No newline at end of file