First, I went into my Pligg folder and created a new page named error.php with this code in it:
Quote:
|
<?php // The source code packaged with this file is Free Software, Copyright (C) 2005 by // Ricardo Galli <gallir at uib dot es>. // It's licensed under the AFFERO GENERAL PUBLIC LICENSE unless stated otherwise. // You can get copies of the licenses here: // http://www.affero.org/oagpl.html // AFFERO GENERAL PUBLIC LICENSE is also included in the file called "COPYING". include_once('Smarty.class.php'); $main_smarty = new Smarty; include('config.php'); include(mnminclude.'html1.php'); include(mnminclude.'link.php'); include(mnminclude.'smartyvariables.php'); $main_smarty->assign('tpl_center', $the_template . '/error'); $main_smarty->display($the_template . '/generic_main.tpl'); ?> |
Quote:
|
<h2><strong>404 Error</strong></h2> <ol> The cool kids also call this a <strong>404 Error page</strong>, but they can be a little snobby. I'm not really sure it's worth being one of the cool kids if you have to do that sort of thing. Snobs.<br /> </ol> </div> <div id="contents"> <h2><strong>YOUR PAGE IS GONE!!! WHAT DOES THIS MEAN?!? PANIC!!!</strong></h2> <ol> Actually, don't do that. What you were looking for is gone now, or moved. Try that handy-dandy search bar thingee. All the cool kids are doing it, and don't you want to be like the cool kids?<br /><br /> You can try going back to the page that led you here by hitting the back button and trying the link again. Or, you can check to see if you typed the URL in correctly. Or, you know, try the search thingee.<br /><br /> If you keep getting back to this page, it might be because your browser has cached this page. Empty the cache, and try loading the page you were looking for again.<br /> </ol> </div> <div id="contents"> <h2><strong>If this is not a 404 Error, and you still got this page</strong></h2> <ol> Then, pretty much that means we're all going to die. Painfully. My money's on either a comet or zombies. Or both. <br /><br /> I'd start crying right now.<br /> </ol> </div> |
Quote:
| ErrorDocument 404 /error.php |
You know, in case you're not thinking it's gonna be zombies or comets. Hmm...could be snakes, on a plane...
You can check the technique by going to http://crabapple.cc/asdfjasldfjadfkj...fasdfjfjasldkf or some other nonsense URL.




Linear Mode

