People were asking me if I could maybe be a mirror for quaddicted due to its lockout in Europe. Unfortunately, that would eat up way too much of my space. I started thinking... "what if I made a portal?". So I did. It pretty much works. There are a handful of issues but you can definitely browse the entire site.
I uploaded my portal here to test it and potentially share it and... well... my host is in Europe ::snort::. However, I still wanted to share my work so, here is a lil one minute vid. You'll notice as I browse the site everything happens after the "rest" var in the url. I never leave the portal. It won't get page images BUT, it does get image links. gypsy.com is just my little localhost.
I used a lot of crappy things to make this video. It lagged my browser and like the first 20 seconds are kinda blurry. Sorry. I'm not a video engineer. I just wanted to share my results.
[embed class="is-loading"]https://www.youtube.com/watch?v=u2NUDLPDhiM[/embed]
Here's the code. It's pretty bare. Aside from this I simply recreated the two folders with styles in them and downloaded the 2 header images.
jQuery(document).ready(function($)
{ //suppress every link and make new decisions
$("a").click(function(e){
e.preventDefault();
var found;
var url = $(this).attr("href");
//fix locations
switch(true)
{ case ((url.match(/html/i) !== null) && (url.match(//reviews//i) === null)):
found = window.location.href.match(//reviews//i);
if(found !== null) url = '/reviews/'+url;
break;
case ((url.match(/viewforum|viewtopic/i)!== null) && (url.match(//forum//i) === null)):
found = window.location.href.match(//forum//i);
if(found !== null) url = '/forum/'+url;
break;
case ((url.match(/?idx/i) !== null) && (url.match(///i) === null)):
found = window.location.href.match(//start/i);
if(found !== null) url = '/start'+url;
break;
}
//go
window.location.assign("portal.php?rest="+url);
});
});
';
} else { //assume it must be a page
$homepage = file_get_contents($loc);
$inject = '<script src="gypjs/jquery.min.js" type="text/javascript"></script><script src="gypjs/gypsy.js" type="text/javascript"></script></body>';
$homepage = preg_replace('/</body>/i', $inject, $homepage);
echo $homepage;
}
?>
|