Просмотр файла redirect.php
<? include 'cfg/conf.php'; $url = htmlspecialchars(trim($_GET['s'])); $id = mysql_fetch_array(mysql_query("SELECT * FROM `reg_gb` WHERE `url` = '".$url."'"))or die(mysql_error()); $go = $id['id']; header("Location: gb.php?id=$go"); ?>