Original Page: http://wackowiki.org/Dev/PatchesHacks/RandomPage


<?php
// Evaggelos Balaskas 27.08.2008
if ( $pages $this->LoadAll("SELECT `supertag` FROM "$this->config["table_prefix"]."pages WHERE `user` != 'WackoInstaller' AND `comment_on` = \"\" ") )
  
$page array_rand $pages );
else
  
$page "homepage";
header"Location: "$this->GetConfigValue("base_url").$pages[$page]['supertag'] );
?>