Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Unnamed
Saturday, July 1st, 2006 at 10:18:21am MDT 

  1. @@==============================ORIGINAL==================================
  2. <?php
  3.  
  4. require 'PHProxy.class.php';
  5.  
  6. $config = array
  7. (
  8.     'url_var_name'             => 'q',
  9.     'flags_var_name'           => 'hl',
  10.     'get_form_name'            => '__script_get_form',
  11.     'proxy_url_form_name'      => 'poxy_url_form',
  12.     'proxy_settings_form_name' => 'poxy_settings_form',
  13.     'max_file_size'            => -1
  14. );
  15.  
  16. $flags = 'prev';
  17.  
  18. if (isset($_GET[$config['flags_var_name']]))
  19. {
  20.     $flags = $_GET[$config['flags_var_name']];
  21. }
  22.  
  23. $PHProxy = & new PHProxy($config, $flags);
  24.  
  25. if (isset($_GET[$PHProxy->config['get_form_name']]))
  26. {
  27.     $url = decode_url($_GET[$PHProxy->config['get_form_name']]);
  28.     $qstr = preg_match('#\?#', $url) ? (strpos($url, '?') === strlen($url) ? '' : '&') : '?';
  29.     $arr = explode('&', $_SERVER['QUERY_STRING']);
  30.     if (preg_match('#^'.$PHProxy->config['get_form_name'].'#', $arr[0]))
  31.     {
  32.         array_shift($arr);
  33.     }
  34.     $url .= $qstr . implode('&', $arr);
  35.     $PHProxy->start_transfer(encode_url($url));
  36.     echo $PHProxy->return_response();
  37.     exit();
  38. }
  39.  
  40. if (isset($_GET[$PHProxy->config['url_var_name']]))
  41. {
  42.     $PHProxy->start_transfer($_GET[$PHProxy->config['url_var_name']]);
  43.     echo $PHProxy->return_response();
  44.     exit();
  45. }
  46.  
  47. if (isset($_GET['action'], $_GET['delete']) && $_GET['action'] == 'cookies')
  48. {
  49.     $PHProxy->delete_cookies($_GET['delete']);
  50.     header("Location: $PHProxy->script_url?action=cookies");
  51.     exit();
  52. }
  53.  
  54. if (isset($_POST['username'], $_POST['password'], $_POST['server'], $_POST['realm'], $_POST['auth_url']))
  55. {
  56.     $PHProxy->request_method = 'GET';
  57.     $PHProxy->url_segments['host'] = decode_url($_POST['server']);
  58.     $PHProxy->set_authorization($_POST['username'], $_POST['password']);
  59.     $PHProxy->start_transfer($_POST['auth_url']);
  60.     echo $PHProxy->return_response();
  61.     exit();
  62. }
  63. ?>
  64. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  65. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  66. <head>
  67.   <title>VIP SURFIN! - Free online proxy! Get past filters at school, at the
  68.         office, and at home!</title>
  69.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  70.   <META name="keywords" content="mobile,internet,filter,games,loans">
  71.  <meta name="ROBOTS" content="all">
  72.  <meta name="robots" content="index,follow">
  73.  <meta name="revisit-after" content="7 days">
  74.  <meta name="description" content="A free online web proxy. Get past filters in school, at the office, and at home!">
  75.  <meta name="author" content="VIP SURFIN">
  76.   <link rel="stylesheet" type="text/css" href="style.css" media="all" />
  77. <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  78. </script>
  79. <script type="text/javascript">
  80. _uacct = "UA-165248-2";
  81. urchinTracker();
  82. </script>
  83.   <script src="javascript.js" type="text/javascript"></script>
  84. <script type="text/javascript">
  85. var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
  86. var collapseprevious="no" //Collapse previously open content when opening present? (yes/no)
  87.  
  88. var contractsymbol='' //HTML for contract symbol. For image, use: <img src="whatever.gif">
  89. var expandsymbol='' //HTML for expand symbol.
  90.  
  91.  
  92. if (document.getElementById){
  93. document.write('<style type="text/css">')
  94. document.write('.switchcontent{display:none;}')
  95. document.write('</style>')
  96. }
  97.  
  98. function getElementbyClass(rootobj, classname){
  99. var temparray=new Array()
  100. var inc=0
  101. var rootlength=rootobj.length
  102. for (i=0; i<rootlength; i++){
  103. if (rootobj[i].className==classname)
  104. temparray[inc++]=rootobj[i]
  105. }
  106. return temparray
  107. }
  108.  
  109. function sweeptoggle(ec){
  110. var thestate=(ec=="expand")? "block" : "none"
  111. var inc=0
  112. while (ccollect[inc]){
  113. ccollect[inc].style.display=thestate
  114. inc++
  115. }
  116. revivestatus()
  117. }
  118.  
  119.  
  120. function contractcontent(omit){
  121. var inc=0
  122. while (ccollect[inc]){
  123. if (ccollect[inc].id!=omit)
  124. ccollect[inc].style.display="none"
  125. inc++
  126. }
  127. }
  128.  
  129. function expandcontent(curobj, cid){
  130. var spantags=curobj.getElementsByTagName("SPAN")
  131. var showstateobj=getElementbyClass(spantags, "showstate")
  132. if (ccollect.length>0){
  133. if (collapseprevious=="yes")
  134. contractcontent(cid)
  135. document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
  136. if (showstateobj.length>0){ //if "showstate" span exists in header
  137. if (collapseprevious=="no")
  138. showstateobj[0].innerHTML=(document.getElementById(cid).style.display=="block")? contractsymbol : expandsymbol
  139. else
  140. revivestatus()
  141. }
  142. }
  143. }
  144.  
  145. function revivecontent(){
  146. contractcontent("omitnothing")
  147. selectedItem=getselectedItem()
  148. selectedComponents=selectedItem.split("|")
  149. for (i=0; i<selectedComponents.length-1; i++)
  150. document.getElementById(selectedComponents[i]).style.display="block"
  151. }
  152.  
  153. function revivestatus(){
  154. var inc=0
  155. while (statecollect[inc]){
  156. if (ccollect[inc].style.display=="block")
  157. statecollect[inc].innerHTML=contractsymbol
  158. else
  159. statecollect[inc].innerHTML=expandsymbol
  160. inc++
  161. }
  162. }
  163.  
  164. function get_cookie(Name) {
  165. var search = Name + "="
  166. var returnvalue = "";
  167. if (document.cookie.length > 0) {
  168. offset = document.cookie.indexOf(search)
  169. if (offset != -1) {
  170. offset += search.length
  171. end = document.cookie.indexOf(";", offset);
  172. if (end == -1) end = document.cookie.length;
  173. returnvalue=unescape(document.cookie.substring(offset, end))
  174. }
  175. }
  176. return returnvalue;
  177. }
  178.  
  179. function getselectedItem(){
  180. if (get_cookie(window.location.pathname) != ""){
  181. selectedItem=get_cookie(window.location.pathname)
  182. return selectedItem
  183. }
  184. else
  185. return ""
  186. }
  187.  
  188. function saveswitchstate(){
  189. var inc=0, selectedItem=""
  190. while (ccollect[inc]){
  191. if (ccollect[inc].style.display=="block")
  192. selectedItem+=ccollect[inc].id+"|"
  193. inc++
  194. }
  195.  
  196. document.cookie=window.location.pathname+"="+selectedItem
  197. }
  198.  
  199. function do_onload(){
  200. uniqueidn=window.location.pathname+"firsttimeload"
  201. var alltags=document.all? document.all : document.getElementsByTagName("*")
  202. ccollect=getElementbyClass(alltags, "switchcontent")
  203. statecollect=getElementbyClass(alltags, "showstate")
  204. if (enablepersist=="on" && ccollect.length>0){
  205. document.cookie=(get_cookie(uniqueidn)=="")? uniqueidn+"=1" : uniqueidn+"=0"
  206. firsttimeload=(get_cookie(uniqueidn)==1)? 1 : 0 //check if this is 1st page load
  207. if (!firsttimeload)
  208. revivecontent()
  209. }
  210. if (ccollect.length>0 && statecollect.length>0)
  211. revivestatus()
  212. }
  213.  
  214. if (window.addEventListener)
  215. window.addEventListener("load", do_onload, false)
  216. else if (window.attachEvent)
  217. window.attachEvent("onload", do_onload)
  218. else if (document.getElementById)
  219. window.onload=do_onload
  220.  
  221. if (enablepersist=="on" && document.getElementById)
  222. window.onunload=saveswitchstate
  223.  
  224. </script>
  225. </head>
  226. <body>
  227. <div id="container">
  228.   <div id="menu">
  229.     <a href="<?php echo $_SERVER['PHP_SELF'] ?>">URL Form</a> |
  230.     <a href="?action=cookies">Manage Cookies</a>
  231.   </div>
  232.   <div class="title"><img src="logo.jpg"><br>
  233. &nbsp;</div>
  234.   <noscript><div class="error"><big>You have Javascript disabled. Please enable it to use the proxy</big></div></noscript>
  235. <?php
  236.  
  237. if (isset($_GET['error']))
  238. {
  239.     echo '<div class="error"><b>Error:</b> ' . htmlspecialchars($_GET['error']) . '</div>';
  240.     if (isset($_GET['retry']))
  241.     {
  242.         echo '<div class="error"><a href="'. $PHProxy->proxify_url(decode_url($_GET['retry'])) .'">Retry</a></div>';
  243.     }
  244. }
  245.  
  246. if (isset($_GET['action']))
  247. {
  248.     if ($_GET['action'] == 'cookies')
  249.     {
  250.         $cookies = $PHProxy->get_cookies('COOKIE', false);
  251.  
  252.         if (!empty($cookies))
  253.         {
  254.             echo '<table style="width: 100%">';
  255.             echo '<tr><td class="option" colspan="5"><a href="?action=cookies&delete=all">Clear All Cookies</a></td></tr>';
  256.             echo '<tr><td class="head">Name</td><td class="head">Domain</td><td class="head">Path</td><td class="head">Value</td><td class="head">Action</td></tr>';
  257.  
  258.             for ($i = 0; $i < count($cookies); $i++)
  259.             {
  260.                 $j = $i&1 ? ' class="shade"' : '';
  261.                 echo "<tr><td$j>{$cookies[$i][0]}</td><td$j>{$cookies[$i][1]}</td><td$j>{$cookies[$i][2]}</td>"
  262.                    . "<td$j>" . wordwrap($cookies[$i][3], 15, ' ') ."</td><td$j><a href=". '"?action=cookies&delete='. md5(implode('', $cookies[$i])) . '">delete</a></td></tr>';
  263.             }
  264.  
  265.             echo '</table>';
  266.         }
  267.         else
  268.         {
  269.             echo '<div class="error">No cookies available.</div>';
  270.         }
  271.     }
  272.     else if ($_GET['action'] == 'auth' && isset($_GET['server'], $_GET['realm'], $_GET['auth_url']))
  273.     {
  274.         echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
  275.         echo '<input type="hidden" name="server" value="'. $_GET['server'] .'" />';
  276.         echo '<input type="hidden" name="realm" value="'. $_GET['realm'] .'" />';
  277.         echo '<input type="hidden" name="auth_url" value="'. $_GET['auth_url'] .'" />';
  278.         echo '<table style="width: 100%">';
  279.         echo '<tr><td colspan="2" class="option">Enter user name and password for <b>' . decode_url($_GET['realm']) . '</b> at <i>' . decode_url($_GET['server']) . '</i></td></tr>';
  280.         echo '<tr><td width="30%" class="option">User name</td><td class="option"><input type="text" name="username" value="" /></td></tr>';
  281.         echo '<tr><td width="30%" class="option">Password</td><td class="option"><input type="password" name="password" value="" /></td></tr>';
  282.         echo '<tr><td colspan="2" style="text-align: center"><input type="submit" value="OK" /></td></tr>';
  283.         echo '</table>';
  284.         echo '</form>';
  285.     }
  286. }
  287. else
  288. {
  289.   ?>
  290.   <form name="<?php echo $PHProxy->config['proxy_url_form_name'] ?>" method="get" action="<?php echo $_SERVER['PHP_SELF'] ?>">
  291.   <input type="hidden" name="<?php echo $PHProxy->config['url_var_name'] ?>" value="" id="url_input" />
  292.   <input type="hidden" name="<?php echo $PHProxy->config['flags_var_name'] ?>" value="" />
  293.   </form>
  294.   <form name="<?php echo $PHProxy->config['proxy_settings_form_name'] ?>" method="get" action="" onsubmit="return submit_form();">
  295.     <table align="center" cellpadding="0" cellspacing="0">
  296.     <tr>
  297.   <td >
  298.  
  299.     <input type="text" name="url" size="60" value="http://" "/>
  300.       <span style="text-align: center"><input type="submit" name="browse" value="Browse" onclick="return submit_form();" />
  301.       </span></td>
  302.   </tr>
  303.   <tr><td>
  304.  
  305. </td></tr>
  306. <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  307.   <tr>
  308.     <td><input type="checkbox" name="new_window" />
  309.  
  310.         Open in a new window</td>
  311.     <td><h3 align="right" style="cursor:hand; cursor:pointer" onClick="expandcontent(this, 'options')"><strong>
  312.         More Options</strong></h3></td>
  313.   </tr>
  314. </table>
  315. </td>
  316. </tr>
  317.   <tr><td>
  318.   <div id="options" class="switchcontent"> <table><?php echo $PHProxy->options_list(true, true) ?></table></div></td>
  319.  
  320.   </tr>
  321.   </table>
  322. </form>
  323.  
  324.  
  325.  
  326.   <?php
  327. }
  328.  
  329. echo '</div>';
  330. echo '<center><iframe name="Ads" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0" height="150" width="730" src="0.inc">
  331. Your browser does not support inline frames or is currently configured not to display inline frames.
  332. </iframe></center>';
  333.  
  334. echo "<center>By using our services, you are agreeing to our <a href=\"tos.html\">TOS</a>.</center></body></html>";
  335.  
  336.  
  337. ?>
  338.  
  339.  
  340.  
  341. @@==============================NEW=========================================
  342. <?php
  343.  
  344. require 'PHProxy.class.php';
  345.  
  346. $config = array
  347. (
  348.     'url_var_name'             => 'q',
  349.     'flags_var_name'           => 'hl',
  350.     'get_form_name'            => '__script_get_form',
  351.     'proxy_url_form_name'      => 'poxy_url_form',
  352.     'proxy_settings_form_name' => 'poxy_settings_form',
  353.     'max_file_size'            => -1
  354. );
  355.  
  356. $flags = 'prev';
  357.  
  358. if (isset($_GET[$config['flags_var_name']]))
  359. {
  360.     $flags = $_GET[$config['flags_var_name']];
  361. }
  362.  
  363. $PHProxy = & new PHProxy($config, $flags);
  364.  
  365. if (isset($_GET[$PHProxy->config['get_form_name']]))
  366. {
  367.     $url = decode_url($_GET[$PHProxy->config['get_form_name']]);
  368.     $qstr = preg_match('#\?#', $url) ? (strpos($url, '?') === strlen($url) ? '' : '&') : '?';
  369.     $arr = explode('&', $_SERVER['QUERY_STRING']);
  370.     if (preg_match('#^'.$PHProxy->config['get_form_name'].'#', $arr[0]))
  371.     {
  372.         array_shift($arr);
  373.     }
  374.     $url .= $qstr . implode('&', $arr);
  375.     $PHProxy->start_transfer(encode_url($url));
  376.     echo $PHProxy->return_response();
  377.     exit();
  378. }
  379.  
  380. if (isset($_GET[$PHProxy->config['url_var_name']]))
  381. {
  382.     $PHProxy->start_transfer($_GET[$PHProxy->config['url_var_name']]);
  383.     echo $PHProxy->return_response();
  384.     exit();
  385. }
  386.  
  387. if (isset($_GET['action'], $_GET['delete']) && $_GET['action'] == 'cookies')
  388. {
  389.     $PHProxy->delete_cookies($_GET['delete']);
  390.     header("Location: $PHProxy->script_url?action=cookies");
  391.     exit();
  392. }
  393.  
  394. if (isset($_POST['username'], $_POST['password'], $_POST['server'], $_POST['realm'], $_POST['auth_url']))
  395. {
  396.     $PHProxy->request_method = 'GET';
  397.     $PHProxy->url_segments['host'] = decode_url($_POST['server']);
  398.     $PHProxy->set_authorization($_POST['username'], $_POST['password']);
  399.     $PHProxy->start_transfer($_POST['auth_url']);
  400.     echo $PHProxy->return_response();
  401.     exit();
  402. }
  403. ?>
  404.  
  405. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  406. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  407. <head>
  408. <title>andreas08: ignore the trends</title>
  409. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  410. <meta name="description" content="Your website description goes here" />
  411. <meta name="keywords" content="your,keywords,goes,here" />
  412. <link rel="stylesheet" href="andreas08.css" type="text/css" media="screen,projection" />
  413.   <script src="javascript.js" type="text/javascript"></script>
  414.  
  415. </head>
  416.  
  417. <body>
  418. <div id="container" >
  419.  
  420. <div id="header">
  421. <h1>V I P&nbsp;&nbsp; S U R F I N</h1>
  422. <h2>Free online web proxy</h2>
  423. </div>
  424.  
  425. <div id="navigation">
  426. <ul>
  427. <li class="selected"><a href="#">Home</a></li>
  428. <li><a href="#">Proxy</a></li>
  429. <li><a href="#">Top stories</a></li>
  430. <li><a href="#">Make us your home page</a></li>
  431. <li><a href="#">Terms of service</a></li>
  432. </ul>
  433. </div>
  434.  
  435. <div id="content">
  436. <h2>Normal browsing</h2>
  437.   <noscript>You have Javascript disabled. Please enable it to use the proxy</noscript>
  438.  
  439.  
  440. <!-- <form method="POST" action="--WEBBOT-SELF--">
  441.         <p><input type="text" name="normal" size="55" value="http://">&nbsp;
  442.         <input type="submit"  value="Browse" name="browse"><br>
  443.         This tool will take you to the URL entered through your connection normally.</p>
  444. </form> --><br>
  445.   <?php
  446.  
  447. if (isset($_GET['error']))
  448. {
  449.     echo '<div class="error"><b>Error:</b> ' . htmlspecialchars($_GET['error']) . '</div>';
  450.     if (isset($_GET['retry']))
  451.     {
  452.         echo '<div class="error"><a href="'. $PHProxy->proxify_url(decode_url($_GET['retry'])) .'">Retry</a></div>';
  453.     }
  454. }
  455.  
  456. if (isset($_GET['action']))
  457. {
  458.     if ($_GET['action'] == 'cookies')
  459.     {
  460.         $cookies = $PHProxy->get_cookies('COOKIE', false);
  461.  
  462.         if (!empty($cookies))
  463.         {
  464.             echo '<table style="width: 100%">';
  465.             echo '<tr><td class="option" colspan="5"><a href="?action=cookies&delete=all">Clear All Cookies</a></td></tr>';
  466.             echo '<tr><td class="head">Name</td><td class="head">Domain</td><td class="head">Path</td><td class="head">Value</td><td class="head">Action</td></tr>';
  467.  
  468.             for ($i = 0; $i < count($cookies); $i++)
  469.             {
  470.                 $j = $i&1 ? ' class="shade"' : '';
  471.                 echo "<tr><td$j>{$cookies[$i][0]}</td><td$j>{$cookies[$i][1]}</td><td$j>{$cookies[$i][2]}</td>"
  472.                    . "<td$j>" . wordwrap($cookies[$i][3], 15, ' ') ."</td><td$j><a href=". '"?action=cookies&delete='. md5(implode('', $cookies[$i])) . '">delete</a></td></tr>';
  473.             }
  474.  
  475.             echo '</table>';
  476.         }
  477.         else
  478.         {
  479.             echo '<div class="error">No cookies available.</div>';
  480.         }
  481.     }
  482.     else if ($_GET['action'] == 'auth' && isset($_GET['server'], $_GET['realm'], $_GET['auth_url']))
  483.     {
  484.         echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">';
  485.         echo '<input type="hidden" name="server" value="'. $_GET['server'] .'" />';
  486.         echo '<input type="hidden" name="realm" value="'. $_GET['realm'] .'" />';
  487.         echo '<input type="hidden" name="auth_url" value="'. $_GET['auth_url'] .'" />';
  488.         echo '<table style="width: 100%">';
  489.         echo '<tr><td colspan="2" class="option">Enter user name and password for <b>' . decode_url($_GET['realm']) . '</b> at <i>' . decode_url($_GET['server']) . '</i></td></tr>';
  490.         echo '<tr><td width="30%" class="option">User name</td><td class="option"><input type="text" name="username" value="" /></td></tr>';
  491.         echo '<tr><td width="30%" class="option">Password</td><td class="option"><input type="password" name="password" value="" /></td></tr>';
  492.         echo '<tr><td colspan="2" style="text-align: center"><input type="submit" value="OK" /></td></tr>';
  493.         echo '</table>';
  494.         echo '</form>';
  495.     }
  496. } else {
  497.   ?>
  498. <h2>Anonymous Browsing</h2>
  499.   <form name="<?php echo $PHProxy->config['proxy_url_form_name'] ?>" method="get" action="<?php echo $_SERVER['PHP_SELF'] ?>">
  500.   <input type="hidden" name="<?php echo $PHProxy->config['url_var_name'] ?>" value="" id="url_input" />
  501.   <input type="hidden" name="<?php echo $PHProxy->config['flags_var_name'] ?>" value="" />
  502.   </form>
  503.     <form name="<?php echo $PHProxy->config['proxy_settings_form_name'] ?>" method="get" action="" onsubmit="return submit_form();">
  504.     <input type="text" name="url" size="55" value="http://" "/>
  505.     <input type="submit" name="browse" value="Browse" onclick="return submit_form();" />
  506.     <table><?php echo $PHProxy->options_list(true, true) ?></table></form>
  507. <p>&nbsp;</p>
  508.  
  509. </div>
  510.  
  511. <div id="subcontent">
  512.  
  513. <div id="searchbar"><h2>Search The News</h2>
  514.         <!-- <form action="#" method="get"><fieldset>
  515. <input value="" name="s" id="s" />
  516. <input type="submit" value="Go!" id="searchbuttons" name="searchbutton" />
  517. </fieldset></form> -->
  518. </div>
  519.  
  520. </div>
  521.  
  522. <div id="footer">
  523. <p>&copy; 2006 VIP SURFIN. All rights reserved.</p>
  524. </div>
  525. <?php }
  526. </div>
  527. </body>
  528. </html>
  529. ';
  530. ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation