I saw this on my little brother's MySpace page and was so amused I thought I'd rip it off:
// Values that can be used in other PHP code on the page $paginate_num_pages = 0; $paginate_num_sections = 0; $paginate_page_selector = 'page'; $paginate_current_page = $_GET['page']; // Pin page selector to a valid number (or 'all') if($paginate_current_page=='') $paginate_current_page = '1'; if($paginate_current_page != 'all') { if($paginate_current_page == 'first') $paginate_current_page = 1; elseif($paginate_current_page == 'last') $paginate_current_page = 0; elseif($paginate_current_page < 1) $paginate_current_page = 1; elseif($paginate_current_page > 0) $paginate_current_page = 0; $paginate_sections = array( 0 ); $paginate_top_section = $paginate_sections[$paginate_current_page-1]+1; $paginate_bottom_section = $paginate_sections[$paginate_current_page]; } else { $paginate_top_section = 1; $paginate_bottom_section = 0; } $paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&'; $paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self); $paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1); if($paginate_self == '&') $paginate_self = ''; else $paginate_self = htmlentities($paginate_self); $paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page"; ?> Posted by Kristina at October 22, 2005 05:06 PMI am glad to know that you and me can form our own super-hero team after gaining powers from our
computers' radiation!!
My Results:
Real Name: Jessica
Astrological Sign: Pisces
Your immediate future: The radiation from your computer will give you super powers
How you will die: Aliens will abduct you and use your body for twisted scientific experiments and when you are returned an angry mob from no where will kill you for polluting the minds of the youth with your hideousness
Your afterlife: You will rule heaven