Login(addslashes($_POST['username']), addslashes($_POST['password']));
break;
case 'Logout':
$User->Logout();
break;
case 'AddMessage':
if($User->Check())
{
$Database->select_db('wow');
$Database->insert('gm_news', array('author' => $_SESSION['UserId'], 'text' => addslashes($_POST['text']), 'time' => 'NOW()'));
//echo('Zpráva vložena.
');
}
break;
default:
}
if($User->Check()) Show();
else {
echo('