if($login_check > 0){ } else if ($_GET[action] == logout) { }
<?php if ($_SESSION['zalogowany'] == true) { } //reszta strony } ?>
$online = mysql_num_rows(mysql_query("SELECT `id` FROM `player` WHERE `id`='$id_playera' AND data BETWEEN DATE_SUB( NOW( ) , INTERVAL 15 MINUTE ) AND NOW()"));
<?php if ($_SESSION['zalogowany'] == true) { } //reszta strony } ?>