<?php
  ///////////////////////////////////////////////////
  //Обновление проекта
  //2009 (C)
  ///////////////////////////////////////////////////

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

  $title=$titlepage=$TEXT['update-title'];
  $helppage = $TEXT['update-help'];

  require_once "utils/top_update.php";

  if(!isset($title)) $title = $TEXT['update-title'];
  if(!isset($button)) $button = $TEXT['btn_inst'];
  if(!isset($action)) $action = "update_run.php";
?>
<form enctype='multipart/form-data' action=<?php echo $action; ?> method=post>
<table align="center">
<tr><td align="right" class="tbllft"><?php echo $TEXT['install-srv']; ?></td><td class="useraddedit"><input size=30 maxlength=50 class="inputmandatory" type=text name=srv value="localhost"></td></tr>
<tr><td align="right" class="tbllft"><?php echo $TEXT['install-db']; ?></td><td class="useraddedit"><input size=30 maxlength=50 class="inputmandatory" type=text name=dbname value="personal"></td></tr>
<tr><td align="right" class="tbllft"><?php echo $TEXT['install-usr']; ?></td><td class="useraddedit"><input size=30 maxlength=30 class="inputmandatory" type=text name=usr value="root"></td></tr>
<tr><td align="right" class="tbllft"><?php echo $TEXT['install-pswd']; ?></td><td class="useraddedit"><input size=30 maxlength=100 class="inputmandatory" type=password name=pswd ></td></tr>
<tr><td align="right" class="tbllft"><?php echo $TEXT['update-vers']; ?></td><td class="resources">
<input type=radio name=vers value=1 ><?php echo $TEXT['205-215']; ?><br />
<input type=radio name=vers value=2 ><?php echo $TEXT['215-225']; ?><br />
<input type=radio name=vers value=3 ><?php echo $TEXT['225-235']; ?><br />
<input type=radio name=vers value=4 ><?php echo $TEXT['235-245']; ?><br />
<input type=radio name=vers value=5><?php echo $TEXT['245-255']; ?><br />
<input type=radio name=vers value=6><?php echo $TEXT['255-265']; ?><br />
<input type=radio name=vers value=7 checked><?php echo $TEXT['265-275']; ?>
</td></tr>
<tr><td></td><td><input class="button" type=submit value='<?php echo $button; ?>'></td></tr>
</table>
</form>
<?php
   require_once "utils/bottom.php";
?>