if ($_SESSION['usertype'] == 'performers')
{
echo "<script>location.href='/modelpaneli'</script>";
exit;
}
if ($_SESSION['usertype'] == 'users')
{
echo "<script>location.href='sohbet.php'</script>";
exit;
}
$mdl = safe_string($_GET['mdl']);
if (strlen($mdl) > 0)
{
$qerwfa = mysql_query("SELECT id
FROM performers
WHERE id
= '$mdl'");
if (mysql_num_rows($qerwfa) == 1)
{
setcookie("mdl", $mdl, time() + 999999999, "/");
}
}
Bunlarda kod blokları hocam