<?php require_once(\"config.php\"); require('libs/Smarty.class.php'); if (!$_POST['user'] || !$_POST['pass']) { $smarty -> assign (\"Error\", \"Musisz wypełnić wszystkie pola!.\"); $smarty -> display ('error.tpl'); } $log = mysql_num_rows(mysql_query(\"select logins, user, pass from players where user='$_POST[user]' and pass='$_POST[pass]'\")); if ($log <= 0) { exit; } else { $smarty -> display ('index.tpl'); } ?>
ale to niedział
