View file Modules/Sit.php
<?PHP
require '../System/core.php';
$query = mysql_query('SELECT * FROM `site` WHERE `mod` = "1" AND `ban` = "0" ORDER BY RAND() LIMIT 1');
while($privet=mysql_fetch_array($query))
{ header('Location: /site/'.$privet['url']);
exit;
}
?>