[dijjer-cvs] website/get index.php,1.1.1.1,1.2
Brought to you by:
gnovos
|
From: Chris <ch...@us...> - 2005-09-13 18:46:01
|
Update of /cvsroot/dijjer/website/get In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3165 Modified Files: index.php Log Message: Changes to make this work better when we detect dijjer through the javascript routines. Index: index.php =================================================================== RCS file: /cvsroot/dijjer/website/get/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 15 Feb 2005 16:12:10 -0000 1.1.1.1 --- index.php 13 Sep 2005 18:45:45 -0000 1.2 *************** *** 1,3 **** - <?php //Redirects user to Dijjerized version of URL --- 1,2 ---- *************** *** 27,32 **** if (isset($_GET['unsetauto'])) { setcookie("auto", "", time()-3600); ! } else if ((isset($_COOKIE['auto'])) || (isset($_GET['setauto']))) { ! setcookie("auto", "yes", time()+60*60*24*7); if (isset($_GET['url'])) { dijjer_goto($_GET['url']); --- 26,33 ---- if (isset($_GET['unsetauto'])) { setcookie("auto", "", time()-3600); ! } else if ((isset($_COOKIE['auto'])) || (isset($_GET['setauto'])) || (isset($_GET['found']))) { ! if(!isset($_GET['found'])) { ! setcookie("auto", "yes", time()+60*60*24*7); ! } if (isset($_GET['url'])) { dijjer_goto($_GET['url']); *************** *** 34,38 **** } ! $f = fopen("access.log", "a"); $remaddr = $_SERVER["REMOTE_ADDR"]; $ips = explode(".", $remaddr); --- 35,40 ---- } ! ! if ($f = @fopen("access.log", "a")) { $remaddr = $_SERVER["REMOTE_ADDR"]; $ips = explode(".", $remaddr); *************** *** 45,48 **** --- 47,51 ---- $_SERVER["HTTP_REFERER"] . "\n"); fclose($f); + } require_once("browser.php"); *************** *** 162,166 **** /* Layout Styles */ ! #wrapper{ width: 700px; border: 1px solid gray; --- 165,169 ---- /* Layout Styles */ ! #wrapper, #haveit { width: 700px; border: 1px solid gray; *************** *** 240,255 **** if (!document.getElementById) return false; var infoObj = document.getElementById("info"); ! if ("info") { infoObj.style.display = "block"; } } --></script> ! <script type="text/javascript" src="themes/pushbutton/dijjer.js"> </script> </head> ! <body <?php if (isset($_GET['url']) && (substr($_GET['url'],0,4)=='http')) { ?> onLoad="dijjer('<?=$_GET['url']?>');" <?php } ?> ! > <div id="wrapper" class="get"> --- 243,292 ---- if (!document.getElementById) return false; var infoObj = document.getElementById("info"); ! if (info) { infoObj.style.display = "block"; } } --></script> ! <script type="text/javascript" src="dijjer.js"> </script> </head> ! <body> ! <img src="http://127.0.0.1:9115/graph.gif" id="DijjerDetector" style="margin-left:-1000px" <?php if (isset($_GET['url']) && (substr($_GET['url'],0,4)=='http')) { ?> onLoad="dijjer('<?=$_GET['url']?>');" <?php } ?> ! /> ! <div id="haveit" class="hide"> ! <h1 style="margin:0; padding: 10px; border-bottom: 1px solid #bbb;">Thank you!</h1> ! <p>Your download is using <a href="http://dijjer.org">Dijjer</a> to save bandwidth. ! </p> ! <p>Dijjer has no adware or spyware. It's free software, made by a community of volunteers. ! <a href="javascript:display('info');" title="Click for more information.">More info</a> ! ! </p> ! ! <p id="info"> ! Dijjer is a peer-to-peer web cache that runs on your computer. When you use Dijjer, parts of the file you're looking ! for come from the website you're at, but most of the file comes from other users who also want the file. In turn, your ! computer will share pieces of files with other users too. For more information about how Dijjer works check out the <a ! href="http://dijjer.org/wiki/FrequentlyAskedQuestions">Dijjer FAQ</a> or for a really technical description of how Dijjer works check out the <a ! href="http://dijjer.org/wiki/Development/">developers page</a>. <br /><br />If you stop using Dijjer regularly, it's easy to ! uninstall. ! </p> ! ! <p> ! <?php ! if (isset($_GET['url'])) { ! if (substr($_GET['url'],0,4)=='http') { ! ?> ! If your download didn't start, <a href="http://127.0.0.1:9115/<?=$_GET['url']?>">click here to download <b class="redtext"><?=htmlspecialchars($filename)?></b></a><?php } else { ?> ! If your download didn't start, <a href="<?=substr($_GET['url'],8)?>">click here to download <b class="redtext"><?=htmlspecialchars($filename)?></b></a></li> ! <?php } ! } else { ?> ! Click <a href="http://127.0.0.1:9115/">here</a> to see the Dijjer status page, or click <a href="http://dijjer.org/">here</a> to learn more about Dijjer.</li> ! <?php } ?> ! ! </p> ! </div> ! <div id="wrapper" class="get"> *************** *** 277,281 **** <p id="info"> ! Dijjer is a peer-to-peer web cache that runs on your computer. When you use Dijjer, parts of the file you're looking for come from the website you're at, but most of the file comes from other users who also want the file. In turn, your computer will share pieces of files with other users too. For more information about how Dijjer works check out the <a href="http://dijjer.org/faq">Dijjer FAQ</a> or for a really technical description of how Dijjer works check out the <a href="http://dijjer.org/development/">developers page</a>. <br /><br />If you stop using Dijjer regularly, it's easy to uninstall. </p> --- 314,323 ---- <p id="info"> ! Dijjer is a peer-to-peer web cache that runs on your computer. When you use Dijjer, parts of the file you're looking ! for come from the website you're at, but most of the file comes from other users who also want the file. In turn, your ! computer will share pieces of files with other users too. For more information about how Dijjer works check out the <a ! href="http://dijjer.org/wiki/FrequentlyAskedQuestions">Dijjer FAQ</a> or for a really technical description of how Dijjer works check out the <a ! href="http://dijjer.org/wiki/Development/">developers page</a>. <br /><br />If you stop using Dijjer regularly, it's easy to ! uninstall. </p> |