<?php

	require_once('lib/class/session.class.php');

	if(empty($_POST['nickname'])){ $error = 1; $meldung = LOGIN_ERROR_NICKNAME_FALSE;}
	if(empty($_POST['passwort'])){ $error = 1; $meldung = LOGIN_ERROR_PASSWORT_FALSE;}
	
	if($error == 0){
		$login = new SESSION();
		$login->login($_POST['nickname'],$_POST['passwort']);
	}