diff --git a/metadata/dbms/login.js b/metadata/dbms/login.js
index 2630f1f..5ff5a44 100644
--- a/metadata/dbms/login.js
+++ b/metadata/dbms/login.js
@@ -230,20 +230,18 @@ class DBMSUser
win.BuildGUI(10,10);
win.setCaption(trt("Password_recovery"));
- str='
';
- document.getElementById('TWin_Co_'+win.tWinId).innerHTML=str;
-
- win.setSize("300px","100px");
+ str='';
+ win.setContent(str);
//Центрируем окно и отображаем тень
if(win.tbl.offsetHeight>win.div.offsetHeight) win.div.style.height=win.tbl.offsetHeight+"px";
@@ -261,7 +259,6 @@ class DBMSUser
{ return function()
{
win.showProgressBar();
- //showProgressBar(document.getElementById('TWin_DT_'+win.tWinId),win.uid);
var em=document.getElementById(win.uid+'_email').value;
diff --git a/metadata/include/captcha.php b/metadata/include/captcha.php
index f6459cf..2c63972 100644
--- a/metadata/include/captcha.php
+++ b/metadata/include/captcha.php
@@ -54,4 +54,4 @@ if (isset($_REQUEST['id'])) $id = $_REQUEST['id']; else $id = '';
header ("Content-type: image/gif");
imagegif($src);
-?>
+
diff --git a/metadata/include/tools.php b/metadata/include/tools.php
index f9b66e9..b0d7332 100644
--- a/metadata/include/tools.php
+++ b/metadata/include/tools.php
@@ -13,10 +13,10 @@ function getScript($path)
//Функция для перевода текста без применения GetText "trt("
function trt($text)
{
- global $db;
+ global $db,$Schema;
$result='';
- $sql='select translation from main._translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
+ $sql='select translation from '.$Schema.'._translations where del=false and language_id='.$_SESSION["LNG"].' and identifier=\''.$text.'\';';
//$sql='select translation from main._translations where del=false and language_id=(select id from main._languages where short_name=\''.$_SESSION["LNG"].'\') and identifier=\''.$text.'\';';
$res = NULL;
try