0) { Header("location: ".pg_Result($res, 0, 2).$url[2]); exit; } $res = pg_Exec($db, "Select * from redir where domain_id=$domid and host='*';"); if (pg_NumRows($res) > 0) { Header("location: ".pg_Result($res, 0, 2).$url[2]); exit; } echo "Unknown redir."; ?>