<? 
//kontrola a start sesion s uzivatelovymi udaji
session_start();
if (!$_SESSION['nick'] )
{
 header("Location:index.php");
 exit;
}
include("./config.php"); //soubor s pripojenim k db

echo " <HTML>
<HEAD>
<title>Přidání knihy</title>
<meta http-equiv=\"Content-Type\" content=\"text/html;   charset=iso-8859-2\">
</HEAD>
    	 <H2> Add new server</H2>

  	<br />
  	<br />
    	 <FORM method=post action=\"newserver0.php\">
  	<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\"   >


	<tr>
     	 <td align=\"left\">Server`s name&nbsp;</td>
     	 <td><input type=\"text\"  name=\"nazev\" size=\"80\"></td>
    	</tr> 

	<tr>
     	 <td align=\"left\">Server`s IP&nbsp;</td>
     	 <td><input type=\"text\"  name=\"ip\" size=\"80\"></td>
    	</tr> 


	<tr>
     	 <td align=\"left\">How long save data:&nbsp;</td>
     	 <td><input type=\"text\"  name=\"memdnu\" size=\"80\" value=\"30\"></td>
    	</tr> 
    	
	<tr>
     	 <td height=21 align=\"left\">Active?&nbsp; </td>
     	 <td height=21>
      	  ANO <input type=\"radio\"   name=\"activ\"  value='1'> 
       	  NE <input type=\"radio\"   name=\"activ\"  value='0'>
     	 </td>
    	</tr> 
    	
    		<tr>
     	 <td height=21 align=\"left\"></td>
     	 <td height=21>
     	   	<input name=\"SUBMIT\" type=submit value=\"Uložit\">&nbsp; 
     	 </td>
    	</tr> 

        </form>

	</table> 


     ";
?>
