<?php
  ///////////////////////////////////////////////////
  //Ввод фразы
  //2010 (C)
  //Карпухин Павел
  ///////////////////////////////////////////////////

  $lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0,2);
  if(is_file ("../lang/".$lang."/".$lang.".php")) {include "../lang/".$lang."/".$lang.".php";}
     else {include "../lang/ru/ru.php";}

  $title = $TEXT['upr-title-edit'];
  $button = $TEXT['btn_add'];
  $action = "editform.php";

require_once "../config_a.php";
require_once "../utils/functions.php";
require_once "../utils/top_adm.php";

if($result2['administrator'] == 0) {puterror($result2['skin'],$TEXT['error-loginform2']); require_once "../utils/bottom_adm.php"; exit();}
if(empty($_GET['addr_id'])) {puterror($result2['skin'],$TEXT['error-upr5']); require_once "../utils/bottom_adm.php"; exit();}
if(strlen($_GET['addr_id'])>5) {puterror($result2['skin'],$TEXT['error-upr6']); require_once "../utils/bottom_adm.php"; exit();}
$_GET['addr_id'] = rep ($_GET['addr_id']);

?>
<form enctype='multipart/form-data' action=<?php echo $action; ?> method=post>
<table align="center" >
<tr><td class="bold_it_page"><?php echo $TEXT['upr-key-fr']; ?>*</td><td><input size=50 maxlength=255 type=password name=kfr /></td></tr>
<tr><td></td><td>
<input class="button" type=submit value='<?php echo $button; ?>' />
<input type="hidden" name="addr_id" value='<?php echo $_GET['addr_id']; ?>' />
</td></tr>
</table>
</form>
<?php
  require_once "../utils/bottom_adm.php";