Hello, confused in the operators ... Here is the code:
<?php echo "<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>"; $letters = "../letters.dat"; $data = @file($letters); $data = @array_reverse($data); $ncol = count($data); $ip = $_SERVER['REMOTE_ADDR']; $file = "ips.dat"; $ban = file($file); $count = count($ban); for ($i = 0; $i < $count; $i++) { if ($ip == $ban[$i]) { echo "Вы забанены"; }} else { if (file_exists($letters)) { for ($j = 0; $j < $ncol; $j++) { list($login, $photo, $message, $time) = split(":::", "$data[$j]"); echo "<table width='100%' class='message'> <tr><td><img src=$photo width='50' height='50'> $login</td><td width='50'>$time</td></tr> <tr><td colspan='2'>$message</td></tr></table>"; } } else { echo "<center><font color='silver'><h1>Записей нет</h1></font></center>"; } } ?> I need to make it so that when $ip == $ban[$i] it displays "You are banned", and if this is false , then such operators are output that go, starting with if (file_exists($letters)) ... Tell me please.