View file go.php

File size: 294B
<?php
include('inc/funct.php');
include('inc/core.php');

if (empty($_GET['id'])) redirect(URL);
	else $id = htmlspecialchars($_GET['id']);
	$url = mysql_fetch_row(mysql_query('SELECT `URL` FROM `sites` WHERE id='.$id.''));
	if (empty($url[0])) redirect(URL);
		else redirect($url[0]);
		



?>