commit 9c2bb17bfc8a5cb01959c5e9341ad1f1827f909c
Author: Petr Lukašík <lukasik@rtsoft.cz>
Date:   Tue Jun 11 11:17:28 2019 +0200

    Re #7580 administrace - slova

diff --git a/old/html/multidic/app/webroot/administration.php b/old/html/multidic/app/webroot/administration.php
index 4f49732..d2de51b 100644
--- a/old/html/multidic/app/webroot/administration.php
+++ b/old/html/multidic/app/webroot/administration.php
@@ -63,7 +63,7 @@ if (!kontrola_pristupu(2)) {
        <li><a href="?nav_id=list_duplicity" class="active">Duplicity</a></li>
 
        <?php elseif(kontrola_pristupu(2)):?>
-       <!--li><a href="?nav_id=list_nonauthorized_word&contrains_user_id=<?php echo $ses_IDuser?>" class="active">Neautorizovaná slova</a></li-->
+       <!--li><a href="?nav_id=list_nonauthorized_word&contrains_user_id=<?php echo $_SESSION['ses_IDuser']?>" class="active">Neautorizovaná slova</a></li-->
        <li><a href="?nav_id=list_nonauthorized_word" class="active">Neautorizovaná slova</a></li>
        <?php endif;?>
      </ul>
diff --git a/old/html/multidic/app/webroot/administration/add_word.php b/old/html/multidic/app/webroot/administration/add_word.php
index a7ff6c0..03761b0 100644
--- a/old/html/multidic/app/webroot/administration/add_word.php
+++ b/old/html/multidic/app/webroot/administration/add_word.php
@@ -8,10 +8,10 @@ require_once("./administration/word.php");
   }
 
 
-if (Empty($_REQUEST['language']) || $_REQUEST['language'] == "") {
+if (Empty(@$_REQUEST['language']) || @$_REQUEST['language'] == "") {
   $krok = 0;
 }
-else if (Empty($_REQUEST['source']) || $_REQUEST['source'] == "") {
+else if (Empty(@$_REQUEST['source']) || @$_REQUEST['source'] == "") {
   $krok = 1;
 }
 else {
@@ -52,15 +52,15 @@ switch ($krok) {
     <form action="" method="POST" name="new_word_form1">
       <table>
       <tr class="akt">
-        <td><?php echo(get_source_chooser($_REQUEST['language']))?></td>
+        <td><?php echo(get_source_chooser(@$_REQUEST['language']))?></td>
       </tr>
       <tr class="nadpis_sekce">
         <td>
-          <input type="hidden" name="language" value="<?php echo $_REQUEST['language']?>">
-          <?php if ($_REQUEST['delete_from_not_found']):?>
+          <input type="hidden" name="language" value="<?php echo @$_REQUEST['language']?>">
+          <?php if (@$_REQUEST['delete_from_not_found']):?>
             <input type="hidden" name="delete_from_not_found" value="true">
-            <input type="hidden" name="table_not_found" value="<?php echo $_REQUEST['table_not_found']?>">
-            <input type="hidden" name="id_not_found" value="<?php echo $_REQUEST['id_not_found']?>">
+            <input type="hidden" name="table_not_found" value="<?php echo @$_REQUEST['table_not_found']?>">
+            <input type="hidden" name="id_not_found" value="<?php echo @$_REQUEST['id_not_found']?>">
           <?php else:?>
             <input type="hidden" name="delete_from_not_found" value="false">
           <?php endif;?>
@@ -80,9 +80,9 @@ switch ($krok) {
   
   $zobrazit_znovu = true;  
 
-    if (!Empty($_POST) && $_REQUEST['action'] == "insert_new_word") {
+    if (!Empty(@$_POST) && @$_REQUEST['action'] == "insert_new_word") {
 
-    $user = $_REQUEST['ses_IDuser'];
+    $user = @$_REQUEST['ses_IDuser'];
   
 
   
@@ -94,26 +94,26 @@ switch ($krok) {
    //   print_hlasku("Anglicky musíte vyplnit");
    // }
    // else 
-    if (Empty($_REQUEST['lection'])) {
+    if (Empty(@$_REQUEST['lection'])) {
       print_hlasku("Lekci musíte vyplnit");
     }
     //else if (strtolower($gender) != 'm' && strtolower($gender) != 'f' && !Empty($gender)) {
     //  print_hlasku("Rod musí obsahovat 'm' nebo 'f' nebo zůstat prázdný");
     //}
     else {
-      if (insert_word($_REQUEST['czech'],$_REQUEST['english'],$_REQUEST['word_category'],$_REQUEST['verbal_class'],$_REQUEST['present'],$_REQUEST['past'],$_REQUEST['valence'],$_REQUEST['root'],
-                      $_REQUEST['field'],$_REQUEST['language'],$_REQUEST['user'],$_REQUEST['source'],$_REQUEST['lection'], $_REQUEST['future'], $_REQUEST['infinitive'], $_REQUEST['gender'], $_REQUEST['vocalized'], $_REQUEST['nonvocalized'],
-                      $_REQUEST['word_category_foreign'], $_REQUEST['status_constructus_single'], $_REQUEST['status_constructus_plural'], $_REQUEST['single_adj_female'],
-                      $_REQUEST['plural_adj_female'], $_REQUEST['conjugation'], $_REQUEST['imperative'], $_REQUEST['prefix'], $_REQUEST['status_constructus_single_female'],
-		      $_REQUEST['status_constructus_plural_female'], $_REQUEST['czech_female'], $_REQUEST['single_female'], $_REQUEST['plural_female'],
-                      $_REQUEST['status_constructus_single_noun_female'], $_REQUEST['status_constructus_plural_noun_female'],
-		      $_REQUEST['nonvocalized_female'], $_REQUEST['nonvocalized_alternative'], $_REQUEST['vocalized_alternative'])) {
+      if (insert_word(@$_REQUEST['czech'],@$_REQUEST['english'],@$_REQUEST['word_category'],@$_REQUEST['verbal_class'],@$_REQUEST['present'],@$_REQUEST['past'],@$_REQUEST['valence'],@$_REQUEST['root'],
+                      @$_REQUEST['field'],@$_REQUEST['language'],@$_REQUEST['user'],@$_REQUEST['source'],@$_REQUEST['lection'], @$_REQUEST['future'], @$_REQUEST['infinitive'], @$_REQUEST['gender'], @$_REQUEST['vocalized'], @$_REQUEST['nonvocalized'],
+                      @$_REQUEST['word_category_foreign'], @$_REQUEST['status_constructus_single'], @$_REQUEST['status_constructus_plural'], @$_REQUEST['single_adj_female'],
+                      @$_REQUEST['plural_adj_female'], @$_REQUEST['conjugation'], @$_REQUEST['imperative'], @$_REQUEST['prefix'], @$_REQUEST['status_constructus_single_female'],
+		      @$_REQUEST['status_constructus_plural_female'], @$_REQUEST['czech_female'], @$_REQUEST['single_female'], @$_REQUEST['plural_female'],
+                      @$_REQUEST['status_constructus_single_noun_female'], @$_REQUEST['status_constructus_plural_noun_female'],
+		      @$_REQUEST['nonvocalized_female'], @$_REQUEST['nonvocalized_alternative'], @$_REQUEST['vocalized_alternative'])) {
           print_hlasku ("Slovíčko přidáno...");
       }
         
-      if ($_REQUEST['delete_from_not_found']== "true") {
+      if (@$_REQUEST['delete_from_not_found']== "true") {
         require_once("./administration/not_found.php");
-        if (delete_not_found($_REQUEST['table_not_found'], $_REQUEST['id_not_found'])) {
+        if (delete_not_found(@$_REQUEST['table_not_found'], @$_REQUEST['id_not_found'])) {
           print_hlasku ("a smazáno z nenalezených...");
         }
 
@@ -159,22 +159,21 @@ switch ($krok) {
     <thead align="center"> <h3 class="nadpis2">Vlož nové slovo</h3> </thead>
     <tbody>
     <form action="" method="POST" name="new_word_form" onSubmit="return validate_new_word_form(this)">
-      <table>
       <tr class="akt">
         <td>česky</td>
-        <td><input type="text" name="czech"  size="50"<?php znova($_REQUEST['czech'])?> /></td>
+        <td><input type="text" name="czech"  size="50"<?php znova(@$_REQUEST['czech'])?> /></td>
       </tr>
       <tr class="akt">
         <td>česky v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td><input type="text" name="czech_female"  size="50"<?php znova($_REQUEST['czech_female'])?> /></td>
+        <td><input type="text" name="czech_female"  size="50"<?php znova(@$_REQUEST['czech_female'])?> /></td>
       </tr>
       <tr class="akt">
         <td>anglicky</td>
-        <td><input type="text" name="english"  size="50"<?php znova($_REQUEST['english'])?> /></td>
+        <td><input type="text" name="english"  size="50"<?php znova(@$_REQUEST['english'])?> /></td>
       </tr>
       <tr class="akt">
         <td>druh slova v češtině</td>
-        <td><input type="text" name="word_category"  size="50"<?php znova($_REQUEST['word_category'])?> /></td>
+        <td><input type="text" name="word_category"  size="50"<?php znova(@$_REQUEST['word_category'])?> /></td>
       </tr>
       <tr class="akt">
         <td>seznam zkratek:</td>
@@ -217,75 +216,75 @@ switch ($krok) {
       <tr class="akt">
         <td>druh slova v cizím j.</td>
         <td>
-        <?php if($_REQUEST['language ']== 2): ?>
+        <?php if(@$_REQUEST['language ']== 2): ?>
             <select name="word_category_foreign">
                 
-                <option <?php echo (empty($_REQUEST['word_category_foreign']))? 'selected="selected" ' : ""?>value="">  </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "שם עצם")? 'selected="selected" ' : ""?>value="שם עצם"> ש"ע </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "מילת חיבור")? 'selected="selected" ' : ""?>value="מילת חיבור"> מ"ח </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "מילת קריאה")? 'selected="selected" ' : ""?>value="מילת קריאה"> מ"ק </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "פועל")? 'selected="selected" ' : ""?>value="פועל"> פ' </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "מילת יחס")? 'selected="selected" ' : ""?>value="מילת יחס"> מ"י </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "תואר הפועל")? 'selected="selected" ' : ""?>value="תואר הפועל"> תה"פ </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "שם מספר")? 'selected="selected" ' : ""?>value="שם מספר"> ש"מ </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "מילת שאלה")? 'selected="selected" ' : ""?>value="מילת שאלה"> מ"ש </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "מילת גוף")? 'selected="selected" ' : ""?>value="מילת גוף"> מ"ג </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "תואר")? 'selected="selected" ' : ""?>value="תואר"> ת' </option>
-                <option <?php echo ($_REQUEST['word_category_foreign ']=== "ביטוי")? 'selected="selected" ' : ""?>value="ביטוי">  ביטוי  </option>
+                <option <?php echo (empty(@$_REQUEST['word_category_foreign']))? 'selected="selected" ' : ""?>value="">  </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "שם עצם")? 'selected="selected" ' : ""?>value="שם עצם"> ש"ע </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "מילת חיבור")? 'selected="selected" ' : ""?>value="מילת חיבור"> מ"ח </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "מילת קריאה")? 'selected="selected" ' : ""?>value="מילת קריאה"> מ"ק </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "פועל")? 'selected="selected" ' : ""?>value="פועל"> פ' </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "מילת יחס")? 'selected="selected" ' : ""?>value="מילת יחס"> מ"י </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "תואר הפועל")? 'selected="selected" ' : ""?>value="תואר הפועל"> תה"פ </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "שם מספר")? 'selected="selected" ' : ""?>value="שם מספר"> ש"מ </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "מילת שאלה")? 'selected="selected" ' : ""?>value="מילת שאלה"> מ"ש </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "מילת גוף")? 'selected="selected" ' : ""?>value="מילת גוף"> מ"ג </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "תואר")? 'selected="selected" ' : ""?>value="תואר"> ת' </option>
+                <option <?php echo (@$_REQUEST['word_category_foreign ']=== "ביטוי")? 'selected="selected" ' : ""?>value="ביטוי">  ביטוי  </option>
                 
 
             </select>
         <?php else: ?>
-            <input type="text" name="word_category_foreign"  size="50"<?php znova($_REQUEST['word_category_foreign'])?> />
+            <input type="text" name="word_category_foreign"  size="50"<?php znova(@$_REQUEST['word_category_foreign'])?> />
         <?php endif;?>
         </td>
       </tr>
       <tr class="akt">
         <td>slovesná třída</td>
-        <td><input type="text" name="verbal_class"  size="50"<?php znova($_REQUEST['verbal_class'])?> /></td>
+        <td><input type="text" name="verbal_class"  size="50"<?php znova(@$_REQUEST['verbal_class'])?> /></td>
       </tr>
       <tr class="akt">
         <td>přítomný čas / množné číslo <br />všech podstatných jmen a <br />přídavných jmen mužského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="present"  
-               size="29"<?php znova($_REQUEST['present'])?>
+               size="29"<?php znova(@$_REQUEST['present'])?>
                onfocus="aktivujKlavesnici('new_word_form.present')" /></td>
       </tr>
       <tr class="akt">
         <td>minulý čas / jednotné číslo <br />všech podstatných jmen a <br />přídavných jmen mužského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="past"  
-                 size="29"<?php znova($_REQUEST['past'])?>
+                 size="29"<?php znova(@$_REQUEST['past'])?>
                  onfocus="aktivujKlavesnici('new_word_form.past')" /></td>
       </tr>
 
       </tr>
       <tr class="akt">
         <td>alternativní vokalizovaný tvar</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="vocalized_alternative"  
-                 size="29"<?php znova($_REQUEST['vocalized_alternative'])?>
+                 size="29"<?php znova(@$_REQUEST['vocalized_alternative'])?>
                  onfocus="aktivujKlavesnici('new_word_form.vocalized_alternative')" /></td>
       </tr>
 
 
       <tr class="akt">
         <td>jednotné číslo podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="single_female"  
-                 size="29"<?php znova($_REQUEST['single_female'])?>
+                 size="29"<?php znova(@$_REQUEST['single_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.single_female')" /></td>
       </tr>
       <tr class="akt">
         <td>množné číslo podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="plural_female"  
-                 size="29"<?php znova($_REQUEST['plural_female'])?>
+                 size="29"<?php znova(@$_REQUEST['plural_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.plural_female')" /></td>
       </tr>
       
@@ -293,125 +292,125 @@ switch ($krok) {
 
       <tr class="akt">
         <td>status constructus číslovek,<br /> jednotného čísla podstatných jmen <br />a jednotného čísla přídavných<br /> jmen mužského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_single"  
-                 size="29"<?php znova($_REQUEST['status_constructus_single'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_single'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_single')" /></td>
       </tr>
       
       <tr class="akt">
         <td>status constructus množného <br />čísla podstatných jmen <br />a přídavných jmen mužského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_plural"  
-                 size="29"<?php znova($_REQUEST['status_constructus_plural'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_plural'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_plural')" /></td>
       </tr>
       
       <tr class="akt">
         <td>status constructus jednotného <br />čísla přídavných jmen <br />ženského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_single_female"  
-                 size="29"<?php znova($_REQUEST['status_constructus_single_female'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_single_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_single_female')" /></td>
       </tr>
       <tr class="akt">
         <td>status constructus množného <br />čísla přídavných jmen <br />ženského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_plural_female"  
-                 size="29"<?php znova($_REQUEST['status_constructus_plural_female'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_plural_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_plural_female')" /></td>
       </tr>
 
 
       <tr class="akt">
         <td>status constructus jednotného čísla podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_single_noun_female"  
-                 size="29"<?php znova($_REQUEST['status_constructus_single_noun_female'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_single_noun_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_single_noun_female')" /></td>
       </tr>
       <tr class="akt">
         <td>status constructus množného čísla podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="status_constructus_plural_noun_female"  
-                 size="29"<?php znova($_REQUEST['status_constructus_plural_noun_female'])?>
+                 size="29"<?php znova(@$_REQUEST['status_constructus_plural_noun_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.status_constructus_plural_noun_female')" /></td>
       </tr>
       
       
       <tr class="akt">
         <td>jednotné číslo přídavných <br /> jmen ženského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="single_adj_female"  
-                 size="29"<?php znova($_REQUEST['single_adj_female'])?>
+                 size="29"<?php znova(@$_REQUEST['single_adj_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.single_adj_female')" /></td>
       </tr>
       <tr class="akt">
         <td>množné číslo přídavných <br /> jmen ženského rodu</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="plural_adj_female"  
-                 size="29"<?php znova($_REQUEST['plural_adj_female'])?>
+                 size="29"<?php znova(@$_REQUEST['plural_adj_female'])?>
                  onfocus="aktivujKlavesnici('new_word_form.plural_adj_female')" /></td>
       </tr>
       <tr class="akt">
         <td>budoucí čas</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="future"  
-                 size="29"<?php znova($_REQUEST['future'])?>
+                 size="29"<?php znova(@$_REQUEST['future'])?>
                  onfocus="aktivujKlavesnici('new_word_form.future')" /></td>
       </tr>
       <tr class="akt">
         <td>infinitiv</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-          <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+          <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                  name="infinitive"  
-                 size="29"<?php znova($_REQUEST['infinitive'])?>
+                 size="29"<?php znova(@$_REQUEST['infinitive'])?>
                  onfocus="aktivujKlavesnici('new_word_form.infinitive')" /></td>
       </tr>
 
       
       <tr class="akt">
         <td>rekce</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="valence"  
-               size="29"<?php znova($_REQUEST['valence'])?>
+               size="29"<?php znova(@$_REQUEST['valence'])?>
                onfocus="aktivujKlavesnici('new_word_form.valence')" /></td>
       </tr>
       
       <tr class="akt">
         <td>konjugace</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="conjugation"  
-               size="29"<?php znova($_REQUEST['conjugation'])?>
+               size="29"<?php znova(@$_REQUEST['conjugation'])?>
                onfocus="aktivujKlavesnici('new_word_form.conjugation')" /></td>
       </tr>
       
       <tr class="akt">
         <td>imperativ</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="imperative"  
-               size="29"<?php znova($_REQUEST['imperative'])?>
+               size="29"<?php znova(@$_REQUEST['imperative'])?>
                onfocus="aktivujKlavesnici('new_word_form.imperative')" /></td>
       </tr>
       
       <tr class="akt">
         <td>vokalizovaný tvar</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="vocalized"  
-               size="29"<?php znova($_REQUEST['vocalized'])?>
+               size="29"<?php znova(@$_REQUEST['vocalized'])?>
                onfocus="aktivujKlavesnici('new_word_form.vocalized')" 
                disabled="disabled"
                /></td>
@@ -419,37 +418,37 @@ switch ($krok) {
       
       <tr class="akt">
         <td>nevokalizovaný tvar</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized"  
-               size="29"<?php znova($_REQUEST['nonvocalized'])?>
+               size="29"<?php znova(@$_REQUEST['nonvocalized'])?>
                onfocus="aktivujKlavesnici('new_word_form.nonvocalized')" /></td>
       </tr>
 
       <tr class="akt">
         <td>nevokalizovaný tvar v ženském rodě – pouze u přechylovatelných</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized_female"  
-               size="29"<?php znova($_REQUEST['nonvocalized_female'])?>
+               size="29"<?php znova(@$_REQUEST['nonvocalized_female'])?>
                onfocus="aktivujKlavesnici('new_word_form.nonvocalized_female')" /></td>
       </tr>
 
     <tr class="akt">
         <td>alternativní nevokalizovaný tvar</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized_alternative"  
-               size="29"<?php znova($_REQUEST['nonvocalized_alternative'])?>
+               size="29"<?php znova(@$_REQUEST['nonvocalized_alternative'])?>
                onfocus="aktivujKlavesnici('new_word_form.nonvocalized_alternative')" /></td>
       </tr>
       
       <tr class="akt">
         <td>předložka se zájmenným sufixem (ve všech možných tvarech)</td>
-        <td<?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($_REQUEST['language ']== 1 || $_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['language ']== 1 || @$_REQUEST['language ']== 2) echo "class=\"arabic\"\n" ?>
                name="prefix"  
-               size="29"<?php znova($_REQUEST['prefix'])?>
+               size="29"<?php znova(@$_REQUEST['prefix'])?>
                onfocus="aktivujKlavesnici('new_word_form.prefix')" /></td>
       </tr>
       
@@ -460,24 +459,24 @@ switch ($krok) {
         <input type="text" 
                class="akkad"
                name="root"  
-               size="50"<?php znova($_REQUEST['root'])?>
+               size="50"<?php znova(@$_REQUEST['root'])?>
                onfocus="aktivujKlavesnici('new_word_form.root')" /></td>
       </tr>
       <tr class="akt">
         <td>rod ('f'/'m' nebo prázdné)</td>
         <td>
-        <?php if($_REQUEST['language ']== 2): ?>
+        <?php if(@$_REQUEST['language ']== 2): ?>
             <select name="gender">
-                <option <?php echo (empty($_REQUEST['gender']))? 'selected="selected" ' : ""?>value="">  </option>
-                <option <?php echo (trim($_REQUEST['gender']) == "'ז")? 'selected="selected" ' : ""?>value="'ז"> 'ז </option>
-                <option <?php echo (trim($_REQUEST['gender']) == "'נ")? 'selected="selected" ' : ""?>value="'נ"> 'נ </option>
-		<option <?php echo (trim($_REQUEST['gender']) == "'ז'+נ")? 'selected="selected" ' : ""?>value="'ז'+נ"> 'ז'+נ </option>
+                <option <?php echo (empty(@$_REQUEST['gender']))? 'selected="selected" ' : ""?>value="">  </option>
+                <option <?php echo (trim(@$_REQUEST['gender']) == "'ז")? 'selected="selected" ' : ""?>value="'ז"> 'ז </option>
+                <option <?php echo (trim(@$_REQUEST['gender']) == "'נ")? 'selected="selected" ' : ""?>value="'נ"> 'נ </option>
+		<option <?php echo (trim(@$_REQUEST['gender']) == "'ז'+נ")? 'selected="selected" ' : ""?>value="'ז'+נ"> 'ז'+נ </option>
             </select>
         <?php else: ?>
             <input type="text" 
                class="akkad"
                name="gender"  
-               size="1"<?php znova($_REQUEST['gender'])?>
+               size="1"<?php znova(@$_REQUEST['gender'])?>
                onfocus="aktivujKlavesnici('new_word_form.gender')" />
         <?php endif;?>
         
@@ -491,15 +490,15 @@ switch ($krok) {
       </tr>
       <tr class="akt">
         <td>lekce*</td>
-        <td><input type="text" name="lection"  size="50"<?php znova($_REQUEST['lection'])?> /></td>
+        <td><input type="text" name="lection"  size="50"<?php znova(@$_REQUEST['lection'])?> /></td>
       </tr>
       <tr class="nadpis_sekce">
         <td>
-          <input type="hidden" name="language" value="<?php echo $_REQUEST['language']?>">
-          <input type="hidden" name="source" value="<?php echo $_REQUEST['source']?>">
-          <input type="hidden" name="delete_from_not_found" value="<?php echo $_REQUEST['delete_from_not_found']?>">
-          <input type="hidden" name="table_not_found" value="<?php echo $_REQUEST['table_not_found']?>">
-          <input type="hidden" name="id_not_found" value="<?php echo $_REQUEST['id_not_found']?>">
+          <input type="hidden" name="language" value="<?php echo @$_REQUEST['language']?>">
+          <input type="hidden" name="source" value="<?php echo @$_REQUEST['source']?>">
+          <input type="hidden" name="delete_from_not_found" value="<?php echo @$_REQUEST['delete_from_not_found']?>">
+          <input type="hidden" name="table_not_found" value="<?php echo @$_REQUEST['table_not_found']?>">
+          <input type="hidden" name="id_not_found" value="<?php echo @$_REQUEST['id_not_found']?>">
           <input type="hidden" name="action" value="insert_new_word">
         </td>
         <td><input type="submit" value="Vlož"></td>
diff --git a/old/html/multidic/app/webroot/administration/context.php b/old/html/multidic/app/webroot/administration/context.php
index 37506e4..a412fb0 100644
--- a/old/html/multidic/app/webroot/administration/context.php
+++ b/old/html/multidic/app/webroot/administration/context.php
@@ -8,7 +8,7 @@ function link_context($context_id, $word_id) {
   $spojeni = new DB_Sql();
   
   $dotaz = "UPDATE dict SET context = '".AddSlashes($context_id)."'
-                        WHERE \"IDdict\" = '".AddSlashes($word_id)."'";
+                        WHERE IDdict = '".AddSlashes($word_id)."'";
   $spojeni->query($dotaz);
   
   if ($spojeni->connection->errno != 0) {
diff --git a/old/html/multidic/app/webroot/administration/duplicity.php b/old/html/multidic/app/webroot/administration/duplicity.php
index 528637b..6f0983f 100644
--- a/old/html/multidic/app/webroot/administration/duplicity.php
+++ b/old/html/multidic/app/webroot/administration/duplicity.php
@@ -2,8 +2,9 @@
 require_once("./functions/dictionary.php");
 
 //NOVE2504
-function get_header_of_table() {
-  return "\n  <tr class=\"nadpis_sekce\">
+function get_header_of_table()
+{
+    return "\n  <tr class=\"nadpis_sekce\">
     <td>zdroj</td>
     <td>lekce</td>
     <td>minulý čas&nbsp;/&nbsp;plural</td>
@@ -15,73 +16,73 @@ function get_header_of_table() {
 ";
 }
 
-function get_row_of_table($Record, $nonauthorized = false, $contrains_user_id = "all") {
-  global $language;
-  global $order;
-  global $od;
-  global $limit;
-  
-  $nav_str = "";
-
-  
-  $navrat .= "  <tr class=\"akt\">\n";
-  $navrat .= '    <td>'.$Record["source"].'</td>'; 
-  $navrat .= "\n".'   <td>'.$Record["lection"].'
-    </td>';  
-  $navrat .= "\n".'    <td class="arabic">'.$Record["past"].'</td>';  
-  
-  $navrat .= "    <td>";
-  $navrat .= $Record["czech"];
-  $navrat .= "&nbsp;</td>\n";
-  $navrat .= "    <td>";
-  $navrat .= $Record["english"];
-  $navrat .= "&nbsp;</td>\n";
-  
-      if (Empty($Record["context"])) {
-      $navrat .= '    <td>není</td>';
-    }
-    else {
-      $navrat .= "    ".'<td>je</td>';
+function get_row_of_table($Record, $nonauthorized = false, $contrains_user_id = "all")
+{
+    global $language;
+    global $order;
+    global $od;
+    global $limit;
+
+    $nav_str = "";
+
+
+    $navrat = "  <tr class=\"akt\">\n";
+    $navrat .= '    <td>' . $Record["source"] . '</td>';
+    $navrat .= "\n" . '   <td>' . $Record["lection"] . '
+    </td>';
+    $navrat .= "\n" . '    <td class="arabic">' . $Record["past"] . '</td>';
+
+    $navrat .= "    <td>";
+    $navrat .= $Record["czech"];
+    $navrat .= "&nbsp;</td>\n";
+    $navrat .= "    <td>";
+    $navrat .= $Record["english"];
+    $navrat .= "&nbsp;</td>\n";
+
+    if (Empty($Record["context"])) {
+        $navrat .= '    <td>není</td>';
+    } else {
+        $navrat .= "    " . '<td>je</td>';
     }
     if (Empty($Record["word_voice"])) {
-      $navrat .= "\n    ".'<td>není</td>';
-    }
-    else {
-      $navrat .= "\n    ".'<td>je</td>';
+        $navrat .= "\n    " . '<td>není</td>';
+    } else {
+        $navrat .= "\n    " . '<td>je</td>';
     }
-    
-  $navrat .= "\n  </tr> \n";
-  return $navrat;
+
+    $navrat .= "\n  </tr> \n";
+    return $navrat;
 }
 
-function get_razeni($l_order = "sorting_no", 
-                    $l_od = 0, 
-                    $l_limit = 14, 
-                    $nonauthorized = false, 
+function get_razeni($l_order = "sorting_no",
+                    $l_od = 0,
+                    $l_limit = 14,
+                    $nonauthorized = false,
                     $contrains_user_id = "all",
-                    $contrains_source = "all", 
-                    $contrains_lection = "all") {
- 
-  global $language;
-  
-  global $order;
-  global $od;
-  global $limit;
-  
-  $order = $l_order;
-  $od    = $l_od;
-  $limit = $l_limit;
-
-  $nav_str = "";
-  
-  $pocet_duplicit = get_pocet_duplicit();
-  $navrat = "<p class=\"akt\"></p>";
-  $navrat .= "\n<table>
+                    $contrains_source = "all",
+                    $contrains_lection = "all")
+{
+
+    global $language;
+
+    global $order;
+    global $od;
+    global $limit;
+
+    $order = $l_order;
+    $od = $l_od;
+    $limit = $l_limit;
+
+    $nav_str = "";
+
+    $pocet_duplicit = get_pocet_duplicit();
+    $navrat = "<p class=\"akt\"></p>";
+    $navrat .= "\n<table>
   <tr class=\"nadpis_sekce\">
     <td>
-      <form action=\"\" method=\"post\" name=\"razeni\">" ;
+      <form action=\"\" method=\"post\" name=\"razeni\">";
 
-  $navrat .=  " (duplicitních položek celkem $pocet_duplicit)<br />
+    $navrat .= " (duplicitních položek celkem $pocet_duplicit)<br />
          Řadit podle 
          <select name=\"order\">
 
@@ -100,44 +101,48 @@ function get_razeni($l_order = "sorting_no",
   <tr class=\"nadpis_sekce\"><td align=\"center\">
     <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=0&limit=$limit&$nav_str\">
             Na začátek </a> |       ";
-  if ($od-$limit >= 0)           
-    $navrat .="\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=".
-              ($od-$limit)."&limit=$limit&$nav_str\"> 
+    if ($od - $limit >= 0)
+        $navrat .= "\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=" .
+            ($od - $limit) . "&limit=$limit&$nav_str\"> 
               Předchozích $limit </a> |       ";
-  if ($od+$limit < $pocet_duplicit)
-    $navrat .="\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=".
-              ($od+$limit)."&limit=$limit&$nav_str\">
+    if ($od + $limit < $pocet_duplicit)
+        $navrat .= "\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=" .
+            ($od + $limit) . "&limit=$limit&$nav_str\">
               Dalších $limit </a> |   ";
-  $navrat .="\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=".
-             ($pocet_duplicit-$limit)."&limit=$limit&$nav_str\"> 
+    $navrat .= "\n    <a href=\"?nav_id=list_duplicity&serad=true&order=$order&od=" .
+        ($pocet_duplicit - $limit) . "&limit=$limit&$nav_str\"> 
              Na konec </a>
   ";
-  $navrat .= "</td></tr></table>\n";
-  return $navrat;
+    $navrat .= "</td></tr></table>\n";
+    return $navrat;
 }
 
-function get_pocet_duplicit() {
-  global $language;
-  require_once("./classes/db.php");
-  $spojeni = new DB_Sql();
-  $dotaz = "SELECT 2
-  FROM dict d 
-  WHERE EXISTS (
-     SELECT 1 
-       FROM dict e 
-       WHERE NOT e.\"IDdict\" = d.\"IDdict\"  
-             AND e.past LIKE d.past
-  )
-  ORDER BY d.past";
-  $spojeni->query($dotaz);
-  return $spojeni->num_rows();
+function get_pocet_duplicit()
+{
+    global $language;
+    require_once("./classes/db.php");
+    $spojeni = new DB_Sql();
+    $dotaz = "SELECT           d.past       as past, 
+                   d.source     as source,
+                   d.lection    as lection,
+                   d.czech      as czech,
+                   d.english    as english,
+                   d.context    as context,
+                   d.word_voice as word_voice
+  FROM dict d
+  GROUP BY
+  past
+  HAVING count(*)>1";
+    $spojeni->query($dotaz);
+    return $spojeni->num_rows();
 
 }
 
 
 //NOVE2504
-function get_foot_of_table() {
-  return '<tr class="nadpis_sekce">
+function get_foot_of_table()
+{
+    return '<tr class="nadpis_sekce">
             <td><!--input type="submit" name="delete_submit" value="Smaž"--></td>
             <td></td>
             <td></td>
@@ -149,14 +154,11 @@ function get_foot_of_table() {
 }
 
 
-
-
-
-
-function print_table_of_duplicity($order = "IDdict", $od = 0, $limit = 14) {
-  require_once("./classes/db.php");
-  $spojeni = new DB_Sql();
-  $dotaz = "
+function print_table_of_duplicity($order = "IDdict", $od = 0, $limit = 14)
+{
+    require_once("./classes/db.php");
+    $spojeni = new DB_Sql();
+    $dotaz = "
   SELECT           d.past       as past, 
                    d.source     as source,
                    d.lection    as lection,
@@ -165,27 +167,25 @@ function print_table_of_duplicity($order = "IDdict", $od = 0, $limit = 14) {
                    d.context    as context,
                    d.word_voice as word_voice
   FROM dict d
-  WHERE EXISTS (
-     SELECT 1 
-       FROM dict e 
-       WHERE NOT e.\"IDdict\" = d.\"IDdict\"  
-             AND e.past LIKE d.past
-  )
-  ORDER BY d.past DESC, d.\"$order\"
+  GROUP BY
+  past
+  HAVING count(*)>1
+  ORDER BY d.past DESC, d.$order
   LIMIT $limit
   OFFSET $od";
-  $radky = $spojeni->query($dotaz);
-  $navrat .= "<h3 class=\"nadpis2\">Výpis slov, které se vyskytují duplicitně</h3>";
-  $navrat .= get_razeni($order, $od, $limit);
-  $navrat .= "<table>";
-  $navrat .= get_header_of_table();
-  while ($spojeni->next_record()) {
-    $navrat .= get_row_of_table($spojeni->Record);
-  }
-  $navrat .= get_foot_of_table();
-  $navrat .= "</table>";
-  echo $navrat;
-
-  
+    $radky = $spojeni->query($dotaz);
+    $navrat = "<h3 class=\"nadpis2\">Výpis slov, které se vyskytují duplicitně</h3>";
+    $navrat .= get_razeni($order, $od, $limit);
+    $navrat .= "<table>";
+    $navrat .= get_header_of_table();
+    while ($spojeni->next_record()) {
+        $navrat .= get_row_of_table($spojeni->row);
+    }
+    $navrat .= get_foot_of_table();
+    $navrat .= "</table>";
+    echo $navrat;
+
+
 }
+
 ?>
diff --git a/old/html/multidic/app/webroot/administration/edit_word.php b/old/html/multidic/app/webroot/administration/edit_word.php
index 7e7e5da..511b691 100644
--- a/old/html/multidic/app/webroot/administration/edit_word.php
+++ b/old/html/multidic/app/webroot/administration/edit_word.php
@@ -1,31 +1,31 @@
 <?php 
 require_once("./administration/word.php");
 $vypis_edit = true;
-if (!Empty($action) && $action == "edit_word") {
+if (!Empty(@$_REQUEST['action']) && @$_REQUEST['action'] == "edit_word") {
   
  // if (Empty($czech)) {
  //   print_hlasku("Česky musíte vyplnit");
  // }
  // else 
- // if (Empty($english)) {
+ // if (Empty(@$_REQUEST['english'])) {
  //   print_hlasku("Anglicky musíte vyplnit");
  // }
  // else 
-  if (Empty($lection)) {
+  if (Empty(@$_REQUEST['lection'])) {
     print_hlasku("Lekci musíte vyplnit");
   }
-  //else if (strtolower($gender) != 'm' && strtolower($gender) != 'f' && !Empty($gender)) {
+  //else if (strtolower(@$_REQUEST['gender']) != 'm' && strtolower(@$_REQUEST['gender']) != 'f' && !Empty(@$_REQUEST['gender'])) {
   //  print_hlasku("Rod musí obsahovat 'm' nebo 'f' nebo zůstat prázdný");
   //}
   else {
-    update_word($czech, $english, $word_category, $verbal_class, $present, $past, $valence,
-                $root, $field, $word_id, $lection, $future, $infinitive, $gender, $vocalized, $nonvocalized,
-                $word_category_foreign, $status_constructus_single, $status_constructus_plural, $single_adj_female,
-                      $plural_adj_female, $conjugation, $imperative, $prefix, $status_constructus_single_female,
-		      $status_constructus_plural_female, $czech_female, $single_female, $plural_female, 
-                      $status_constructus_single_noun_female, $status_constructus_plural_noun_female,
-		      $nonvocalized_female, $nonvocalized_alternative, $vocalized_alternative);
-    
+    update_word(@$_REQUEST['czech'],@$_REQUEST['english'],@$_REQUEST['word_category'],@$_REQUEST['verbal_class'],@$_REQUEST['present'],@$_REQUEST['past'],@$_REQUEST['valence'],@$_REQUEST['root'],
+        @$_REQUEST['field'],@$_REQUEST['language'],@$_REQUEST['user'],@$_REQUEST['source'],@$_REQUEST['lection'], @$_REQUEST['future'], @$_REQUEST['infinitive'], @$_REQUEST['gender'], @$_REQUEST['vocalized'], @$_REQUEST['nonvocalized'],
+        @$_REQUEST['word_category_foreign'], @$_REQUEST['status_constructus_single'], @$_REQUEST['status_constructus_plural'], @$_REQUEST['single_adj_female'],
+        @$_REQUEST['plural_adj_female'], @$_REQUEST['conjugation'], @$_REQUEST['imperative'], @$_REQUEST['prefix'], @$_REQUEST['status_constructus_single_female'],
+        @$_REQUEST['status_constructus_plural_female'], @$_REQUEST['czech_female'], @$_REQUEST['single_female'], @$_REQUEST['plural_female'],
+        @$_REQUEST['status_constructus_single_noun_female'], @$_REQUEST['status_constructus_plural_noun_female'],
+        @$_REQUEST['nonvocalized_female'], @$_REQUEST['nonvocalized_alternative'], @$_REQUEST['vocalized_alternative']);
+
     echo_zpet_do_slovniku();
     $vypis_edit = false;
   }
@@ -34,40 +34,40 @@ if (!Empty($action) && $action == "edit_word") {
 }
 if($vypis_edit){
   
-  $Record = get_word($word_id);
-  $czech         = $Record[1];
-  $english       = $Record[2];
-  $word_category = $Record[3];
-  $verbal_class  = $Record[4];
-  $present       = $Record[5];
-  $past          = $Record[6];
-  $valence       = $Record[9];        
-  $root          = $Record[10];
-  $word_lang     = $Record["language"];
-  $lection       = $Record["lection"];  
-  $future        = $Record["future"];
-  $infinitive    = $Record["infinitive"];
-  $gender        = $Record["gender"];
-  $vocalized     = $Record["vocalized"];
-  $nonvocalized  = $Record["nonvocalized"];
-  $word_category_foreign = $Record['word_category_foreign'];
-  $status_constructus_single = $Record['status_constructus_single'];
-  $status_constructus_plural = $Record['status_constructus_plural'];
-  $single_adj_female = $Record['single_adj_female'];
-  $plural_adj_female = $Record['plural_adj_female'];
-  $conjugation   = $Record['conjugation'];
-  $imperative    = $Record['imperative'];
-  $prefix    = $Record['prefix'];
-  $status_constructus_single_female    = $Record['status_constructus_single_female'];
-  $status_constructus_plural_female    = $Record['status_constructus_plural_female'];
+  $Record = get_word(@$_REQUEST['word_id']);
+  $czech         = $Record['czech'];
+  @$_REQUEST['english']       = $Record[2];
+  @$_REQUEST['word_category'] = $Record[3];
+  @$_REQUEST['verbal_class']  = $Record[4];
+  @$_REQUEST['present']       = $Record[5];
+  @$_REQUEST['past']          = $Record[6];
+  @$_REQUEST['valence']       = $Record[9];        
+  @$_REQUEST['root']          = $Record[10];
+  @$_REQUEST['word_lang']     = $Record["language"];
+  @$_REQUEST['lection']       = $Record["lection"];  
+  @$_REQUEST['future']        = $Record["future"];
+  @$_REQUEST['infinitive']    = $Record["infinitive"];
+  @$_REQUEST['gender']        = $Record["gender"];
+  @$_REQUEST['vocalized']     = $Record["vocalized"];
+  @$_REQUEST['nonvocalized']  = $Record["nonvocalized"];
+  @$_REQUEST['word_category_foreign'] = $Record['word_category_foreign'];
+  @$_REQUEST['status_constructus_single'] = $Record['status_constructus_single'];
+  @$_REQUEST['status_constructus_plural'] = $Record['status_constructus_plural'];
+  @$_REQUEST['single_adj_female'] = $Record['single_adj_female'];
+  @$_REQUEST['plural_adj_female'] = $Record['plural_adj_female'];
+  @$_REQUEST['conjugation']   = $Record['conjugation'];
+  @$_REQUEST['imperative']    = $Record['imperative'];
+  @$_REQUEST['prefix']    = $Record['prefix'];
+  @$_REQUEST['status_constructus_single_female']    = $Record['status_constructus_single_female'];
+  @$_REQUEST['status_constructus_plural_female']    = $Record['status_constructus_plural_female'];
   $czech_female = $Record['czech_female'];
-  $single_female = $Record['single_female'];
-  $plural_female = $Record['plural_female'];
-  $status_constructus_single_noun_female = $Record['status_constructus_single_noun_female'];
-  $status_constructus_plural_noun_female = $Record['status_constructus_plural_noun_female'];
-  $nonvocalized_female = $Record['nonvocalized_female'];
-  $nonvocalized_alternative = $Record['nonvocalized_alternative'];
-  $vocalized_alternative = $Record['vocalized_alternative'];
+  @$_REQUEST['single_female'] = $Record['single_female'];
+  @$_REQUEST['plural_female'] = $Record['plural_female'];
+  @$_REQUEST['status_constructus_single_noun_female'] = $Record['status_constructus_single_noun_female'];
+  @$_REQUEST['status_constructus_plural_noun_female'] = $Record['status_constructus_plural_noun_female'];
+  @$_REQUEST['nonvocalized_female'] = $Record['nonvocalized_female'];
+  @$_REQUEST['nonvocalized_alternative'] = $Record['nonvocalized_alternative'];
+  @$_REQUEST['vocalized_alternative'] = $Record['vocalized_alternative'];
 ?>
 
 <script language="JavaScript">
@@ -112,15 +112,15 @@ if($vypis_edit){
       </tr>
       <tr class="akt">
         <td>česky v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td><input type="text" name="czech_female"  size="50" value="<?php echo $czech_female?>" /></td>
+        <td><input type="text" name="czech_female"  size="50" value="<?php echo @$_REQUEST['czech_female']?>" /></td>
       </tr>
       <tr class="akt">
         <td>anglicky</td>
-        <td><input type="text" name="english"  size="50" value="<?php echo $english?>" /></td>
+        <td><input type="text" name="english"  size="50" value="<?php echo @$_REQUEST['english']?>" /></td>
       </tr>
       <tr class="akt">
         <td>druh slova v češtině</td>
-        <td><input type="text" name="word_category"  size="50" value="<?php echo $word_category?>" /></td>
+        <td><input type="text" name="word_category"  size="50" value="<?php echo @$_REQUEST['word_category']?>" /></td>
       </tr>
       
       <tr class="akt">
@@ -164,125 +164,125 @@ if($vypis_edit){
       
       <tr class="akt">
         <td>druh slova v cizím j.</td>
-        <td><?php if($language == 2): ?>
+        <td><?php if(@$_REQUEST['language'] == 2): ?>
             <select name="word_category_foreign">
-                <option value="" <?php echo (empty($word_category_foreign))? 'selected="selected"' : ""?> >  </option>
-                <option value="שם עצם" <?php echo ($word_category_foreign === "שם עצם")? 'selected="selected"' : ""?> > ש"ע </option>
-                <option value="מילת חיבור" <?php echo ($word_category_foreign === "מילת חיבור")? 'selected="selected"' : ""?> > מ"ח </option>
-                <option value="מילת קריאה" <?php echo ($word_category_foreign === "מילת קריאה")? 'selected="selected"' : ""?> > מ"ק </option>
-                <option value="פועל" <?php echo ($word_category_foreign === "פועל")? 'selected="selected"' : ""?> > פ' </option>
-                <option value="מילת יחס" <?php echo ($word_category_foreign === "מילת יחס")? 'selected="selected"' : ""?> > מ"י </option>
-                <option value="תואר הפועל" <?php echo ($word_category_foreign === "תואר הפועל")? 'selected="selected"' : ""?> > תה"פ </option>
-                <option value="שם מספר" <?php echo ($word_category_foreign === "שם מספר")? 'selected="selected" ' : ""?> > ש"מ </option>
-                <option value="מילת שאלה" <?php echo ($word_category_foreign === "מילת שאלה")? 'selected="selected" ' : ""?> > מ"ש </option>
-                <option value="מילת גוף" <?php echo ($word_category_foreign === "מילת גוף")? 'selected="selected" ' : ""?> > מ"ג </option>
-                <option value="תואר" <?php echo ($word_category_foreign === "תואר")? 'selected="selected" ' : ""?> > ת' </option>
-                <option value="ביטוי" <?php echo ($word_category_foreign === "ביטוי")? 'selected="selected" ' : ""?> >  ביטוי  </option>
+                <option value="" <?php echo (empty(@$_REQUEST['word_category_foreign']))? 'selected="selected"' : ""?> >  </option>
+                <option value="שם עצם" <?php echo (@$_REQUEST['word_category_foreign'] === "שם עצם")? 'selected="selected"' : ""?> > ש"ע </option>
+                <option value="מילת חיבור" <?php echo (@$_REQUEST['word_category_foreign'] === "מילת חיבור")? 'selected="selected"' : ""?> > מ"ח </option>
+                <option value="מילת קריאה" <?php echo (@$_REQUEST['word_category_foreign'] === "מילת קריאה")? 'selected="selected"' : ""?> > מ"ק </option>
+                <option value="פועל" <?php echo (@$_REQUEST['word_category_foreign'] === "פועל")? 'selected="selected"' : ""?> > פ' </option>
+                <option value="מילת יחס" <?php echo (@$_REQUEST['word_category_foreign'] === "מילת יחס")? 'selected="selected"' : ""?> > מ"י </option>
+                <option value="תואר הפועל" <?php echo (@$_REQUEST['word_category_foreign'] === "תואר הפועל")? 'selected="selected"' : ""?> > תה"פ </option>
+                <option value="שם מספר" <?php echo (@$_REQUEST['word_category_foreign'] === "שם מספר")? 'selected="selected" ' : ""?> > ש"מ </option>
+                <option value="מילת שאלה" <?php echo (@$_REQUEST['word_category_foreign'] === "מילת שאלה")? 'selected="selected" ' : ""?> > מ"ש </option>
+                <option value="מילת גוף" <?php echo (@$_REQUEST['word_category_foreign'] === "מילת גוף")? 'selected="selected" ' : ""?> > מ"ג </option>
+                <option value="תואר" <?php echo (@$_REQUEST['word_category_foreign'] === "תואר")? 'selected="selected" ' : ""?> > ת' </option>
+                <option value="ביטוי" <?php echo (@$_REQUEST['word_category_foreign'] === "ביטוי")? 'selected="selected" ' : ""?> >  ביטוי  </option>
                 
             </select>
         <?php else: ?>
-            <input type="text" name="word_category_foreign"  size="50"<?php echo $word_category_foreign ?> />
+            <input type="text" name="word_category_foreign"  size="50"<?php echo @$_REQUEST['word_category_foreign'] ?> />
         <?php endif;?></td>
       </tr>
       
       <tr class="akt">
         <td>slovesná třída</td>
-        <td><input type="text" name="verbal_class"  size="50" value="<?php echo $verbal_class?>" /></td>
+        <td><input type="text" name="verbal_class"  size="50" value="<?php echo @$_REQUEST['verbal_class']?>" /></td>
       </tr>
       <tr class="akt">
         <td>přítomný čas / množné číslo <br />všech podstatných jmen a <br />přídavných jmen mužského rodu</td>
-        <td<?php if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                <input type="text" name="present"  size="29" 
-                      <?php if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                      <?php if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                       onfocus="aktivujKlavesnici('edit_word_form.present')" 
-                      value="<?php echo $present?>" /></td>
+                      value="<?php echo @$_REQUEST['present']?>" /></td>
       </tr>
       <tr class="akt">
         <td>minulý čas / jednotné číslo <br />všech podstatných jmen a <br />přídavných jmen mužského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="past"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.past')"
-                       value="<?php echo $past?>" /></td>
+                       value="<?php echo @$_REQUEST['past']?>" /></td>
       </tr>
       
       <tr class="akt">
         <td>alternativní vokalizovaný tvar</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="vocalized_alternative"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.vocalized_alternative')"
-                       value="<?php echo $vocalized_alternative?>" /></td>
+                       value="<?php echo @$_REQUEST['vocalized_alternative']?>" /></td>
       </tr>
 
 
       <tr class="akt">
         <td>jednotné číslo podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="single_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.single_female')"
-                       value="<?php echo $single_female?>" /></td>
+                       value="<?php echo @$_REQUEST['single_female']?>" /></td>
       </tr>
       <tr class="akt">
         <td>množné číslo podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="plural_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.plural_female')"
-                       value="<?php echo $plural_female?>" /></td>
+                       value="<?php echo @$_REQUEST['plural_female']?>" /></td>
       </tr>
       
       
       <tr class="akt">
         <td>status constructus číslovek, jednotného čísla podstatných jmen a jednotného čísla přídavných jmen mužského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_single"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_single')"
-                       value="<?php echo $status_constructus_single?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_single']?>" /></td>
       </tr>
       <tr class="akt">
         <td>status constructus množného čísla podstatných jmen a přídavných jmen mužského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_plural"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_plural')"
-                       value="<?php echo $status_constructus_plural?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_plural']?>" /></td>
       </tr>
       
        <tr class="akt">
         <td>status constructus jednotného čísla přídavných jmen ženského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_single_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_single_female')"
-                       value="<?php echo $status_constructus_single_female?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_single_female']?>" /></td>
       </tr>
       <tr class="akt">
         <td>status constructus množného čísla přídavných jmen ženského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_plural_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_plural_female')"
-                       value="<?php echo $status_constructus_plural_female?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_plural_female']?>" /></td>
       </tr>
       
       <tr class="akt">
         <td>status constructus jednotného čísla podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_single_noun_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_single_noun_female')"
-                       value="<?php echo $status_constructus_single_noun_female?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_single_noun_female']?>" /></td>
       </tr>
       <tr class="akt">
         <td>status constructus množného čísla podstatných jmen v ženském rodě (pouze u přechylovatelných podstatných jmen)</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="status_constructus_plural_noun_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.status_constructus_plural_noun_female')"
-                       value="<?php echo $status_constructus_plural_noun_female?>" /></td>
+                       value="<?php echo @$_REQUEST['status_constructus_plural_noun_female']?>" /></td>
       </tr>
       
 
@@ -291,118 +291,118 @@ if($vypis_edit){
 
       <tr class="akt">
         <td>jednotné číslo přídavných <br /> jmen ženského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="single_adj_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.single_adj_female')"
-                       value="<?php echo $single_adj_female?>" /></td>
+                       value="<?php echo @$_REQUEST['single_adj_female']?>" /></td>
       </tr>
       <tr class="akt">
         <td>množné číslo přídavných <br /> jmen ženského rodu</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="plural_adj_female"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.plural_adj_female')"
-                       value="<?php echo $plural_adj_female?>" /></td>
+                       value="<?php echo @$_REQUEST['plural_adj_female']?>" /></td>
       </tr>
       
       
       
       <tr class="akt">
         <td>budoucí čas</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="future"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.future')"
-                       value="<?php echo $future?>" /></td>
+                       value="<?php echo @$_REQUEST['future']?>" /></td>
       </tr>
       <tr class="akt">
         <td>infinitive</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="infinitive"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.infinitive')"
-                       value="<?php echo $infinitive?>" /></td>
+                       value="<?php echo @$_REQUEST['infinitive']?>" /></td>
       </tr>
       <tr class="akt">
         <td>rekce</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
                 <input type="text" name="valence"  size="29" 
-                       <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+                       <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                        onfocus="aktivujKlavesnici('edit_word_form.valence')"
-                       value="<?php echo $valence?>" /></td>
+                       value="<?php echo @$_REQUEST['valence']?>" /></td>
       </tr>
       
       <tr class="akt">
         <td>konjugace</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="conjugation"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.conjugation')" 
-               value="<?php echo $conjugation?>" /></td>
+               value="<?php echo @$_REQUEST['conjugation']?>" /></td>
       </tr>
       
       <tr class="akt">
         <td>imperativ</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="imperative"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.imperative')" 
-               value="<?php echo $imperative?>" /></td>
+               value="<?php echo @$_REQUEST['imperative']?>" /></td>
       </tr>
       
       
             <tr class="akt">
         <td>vokalizovaný tvar</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="vocalized"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.vocalized')" 
-               value="<?php echo $vocalized?>" 
+               value="<?php echo @$_REQUEST['vocalized']?>" 
                disabled="disabled" /></td>
       </tr>
       
       <tr class="akt">
         <td>nevokalizovaný tvar</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.nonvocalized')" 
-               value="<?php echo $nonvocalized?>" /></td>
+               value="<?php echo @$_REQUEST['nonvocalized']?>" /></td>
       </tr>
 
       <tr class="akt">
         <td>nevokalizovaný tvar v ženském rodě – pouze u přechylovatelných</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized_female"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.nonvocalized_female')" 
-               value="<?php echo $nonvocalized_female?>" /></td>
+               value="<?php echo @$_REQUEST['nonvocalized_female']?>" /></td>
       </tr>
 
       <tr class="akt">
         <td>alternativní nevokalizovaný tvar</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="nonvocalized_alternative"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.nonvocalized_alternative')" 
-               value="<?php echo $nonvocalized_alternative?>" /></td>
+               value="<?php echo @$_REQUEST['nonvocalized_alternative']?>" /></td>
       </tr>
       
             <tr class="akt">
         <td>předložka se zájmenným sufixem (ve všech možných tvarech)</td>
-        <td<?php  if ($word_lang == 1 || $word_lang == 2) echo " dir=\"rtl\"" ?>>
-        <input type="text" <?php  if ($word_lang == 1 || $word_lang == 2) echo "class=\"arabic\"\n" ?>
+        <td<?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo " dir=\"rtl\"" ?>>
+        <input type="text" <?php  if (@$_REQUEST['word_lang'] == 1 || @$_REQUEST['word_lang'] == 2) echo "class=\"arabic\"\n" ?>
                name="prefix"  
                size="29"
                onfocus="aktivujKlavesnici('edit_word_form.prefix')" 
-               value="<?php echo $prefix?>" /></td>
+               value="<?php echo @$_REQUEST['prefix']?>" /></td>
       </tr>
       
         
@@ -412,23 +412,23 @@ if($vypis_edit){
         <td>
                 <input type="text" name="root"  size="50" class="akkad" 
                        onfocus="aktivujKlavesnici('edit_word_form.root')"
-                       value="<?php echo $root?>" /></td>
+                       value="<?php echo @$_REQUEST['root']?>" /></td>
       </tr>
       <tr class="akt">
-        <td>rod ('f'/'m' nebo prázdné) now: <?php echo $gender ?></td>
+        <td>rod ('f'/'m' nebo prázdné) now: <?php echo @$_REQUEST['gender'] ?></td>
         <td>
-        <?php if($language == 2): ?>
+        <?php if(@$_REQUEST['language'] == 2): ?>
             <select name="gender">
 		
-	        <option <?php echo (empty($gender))? 'selected="selected" ' : ""?>value=""> </option>
-                <option <?php echo (trim($gender) === "'ז")? 'selected="selected" ' : ""?>value="'ז">      'ז    </option>
-                <option <?php echo (trim($gender) === "'נ")? 'selected="selected" ' : ""?>value="'נ">  'נ </option>
-		<option <?php echo (trim($gender) === "'ז'+נ")? 'selected="selected" ' : ""?>value="'ז'+נ">  'ז'+נ </option>
+	        <option <?php echo (empty(@$_REQUEST['gender']))? 'selected="selected" ' : ""?>value=""> </option>
+                <option <?php echo (trim(@$_REQUEST['gender']) === "'ז")? 'selected="selected" ' : ""?>value="'ז">      'ז    </option>
+                <option <?php echo (trim(@$_REQUEST['gender']) === "'נ")? 'selected="selected" ' : ""?>value="'נ">  'נ </option>
+		<option <?php echo (trim(@$_REQUEST['gender']) === "'ז'+נ")? 'selected="selected" ' : ""?>value="'ז'+נ">  'ז'+נ </option>
             </select>
         <?php else: ?>
             <input type="text" name="gender"  size="1" class="akkad" 
                        onfocus="aktivujKlavesnici('edit_word_form.gender')"
-                       value="<?php echo trim($gender)?>" />
+                       value="<?php echo trim(@$_REQUEST['gender'])?>" />
         <?php endif;?>
                 </td>
       </tr>
@@ -440,15 +440,15 @@ if($vypis_edit){
       </tr>
       <tr class="akt">
         <td>lekce*</td>
-        <td><input type="text" name="lection"  size="50" value="<?php echo $lection; ?>" /></td>
+        <td><input type="text" name="lection"  size="50" value="<?php echo @$_REQUEST['lection']; ?>" /></td>
       </tr>
       <tr class="nadpis_sekce">
         <td>
           <input type="hidden" name="action" value="edit_word">
-          <input type="hidden" name="word_id" value="<?php echo $word_id?>">
-          <input type="hidden" name="nonauthorized" value="<?php echo (($nonauthorized) ? "true" : "");?>">
-          <input type="hidden" name="contrains_source" value="<?php echo $contrains_source?>">
-          <input type="hidden" name="contrains_lection" value="<?php echo $contrains_lection?>">
+          <input type="hidden" name="word_id" value="<?php echo @$_REQUEST['word_id']?>">
+          <input type="hidden" name="nonauthorized" value="<?php echo ((@$_REQUEST['$nonauthorized']) ? "true" : "");?>">
+          <input type="hidden" name="contrains_source" value="<?php echo @$_REQUEST['contrains_source']?>">
+          <input type="hidden" name="contrains_lection" value="<?php echo @$_REQUEST['contrains_lection']?>">
         </td>
         <td><input type="submit" value="Uprav"></td>
       </tr>
diff --git a/old/html/multidic/app/webroot/administration/field.php b/old/html/multidic/app/webroot/administration/field.php
index 6163346..b8b53bd 100644
--- a/old/html/multidic/app/webroot/administration/field.php
+++ b/old/html/multidic/app/webroot/administration/field.php
@@ -11,7 +11,7 @@
  
 //NOVE2504
 function get_row_of_table($Record, $od = 1, $do = 2) {
-  $navrat .= "<tr class=\"akt\">\n     ";
+  $navrat = "<tr class=\"akt\">\n     ";
   $navrat .= '<td><input type="checkbox" name="smaz['.$Record[0].']" /></td>';
   $navrat .= '<td><a href="?nav_id=edit_field&field_id='.$Record[0].'">uprav</a></td>';
   for($j=$od;$j<$do;$j++) {
diff --git a/old/html/multidic/app/webroot/administration/link_context.php b/old/html/multidic/app/webroot/administration/link_context.php
index 4e34c5b..0a598f7 100644
--- a/old/html/multidic/app/webroot/administration/link_context.php
+++ b/old/html/multidic/app/webroot/administration/link_context.php
@@ -2,8 +2,8 @@
 require_once("./administration/context.php");
 
 
-if (!Empty($action) && $action == "link_context") {
-  link_context($context, $word_id);
+if (!Empty(@$_REQUEST['action']) && @$_REQUEST['action'] == "link_context") {
+  link_context(@$_REQUEST['context'], @$_REQUEST['word_id']);
   
 }
 else {
@@ -16,17 +16,17 @@ else {
       <tr class="akt">
         <td>Vyberte kontext*</td>
         <td>
-          <?php  $povol = print_context_chooser($source_id); ?>
+          <?php  @$_REQUEST['povol'] = print_context_chooser(@$_REQUEST['source_id']); ?>
         </td>
       </tr>
       <tr class="nadpis_sekce">
         <td>
           <input type="hidden" name="action" value="link_context" />
-          <input type="hidden" name="word_id" value="<?php echo $word_id?>" />
-          <input type="hidden" name="source" value="<?php echo $source_id?>" />
-          <input type="hidden" name="language" value="<?php echo $language?>" />
+          <input type="hidden" name="word_id" value="<?php echo @$_REQUEST['word_id']?>" />
+          <input type="hidden" name="source" value="<?php echo @$_REQUEST['source_id']?>" />
+          <input type="hidden" name="language" value="<?php echo @$_REQUEST['language']?>" />
           <?php 
-          if ($povol) echo'<input type="submit" value="Připoj" />';
+          if (@$_REQUEST['povol']) echo'<input type="submit" value="Připoj" />';
           ?>
         </td>
         <td>&nbsp;</td>
diff --git a/old/html/multidic/app/webroot/administration/list_duplicity.php b/old/html/multidic/app/webroot/administration/list_duplicity.php
index 7297d9f..169109e 100644
--- a/old/html/multidic/app/webroot/administration/list_duplicity.php
+++ b/old/html/multidic/app/webroot/administration/list_duplicity.php
@@ -2,8 +2,8 @@
 
 require_once("./administration/duplicity.php");
 
-if (!Empty($serad)) {
-    print_table_of_duplicity($order, $od, $limit);
+if (!Empty(@$_REQUEST['serad'])) {
+    print_table_of_duplicity(@$_REQUEST['order'], @$_REQUEST['od'], @$_REQUEST['limit']);
 }
 else {
   print_table_of_duplicity();
diff --git a/old/html/multidic/app/webroot/administration/list_field.php b/old/html/multidic/app/webroot/administration/list_field.php
index cb83fb8..b5e89e1 100644
--- a/old/html/multidic/app/webroot/administration/list_field.php
+++ b/old/html/multidic/app/webroot/administration/list_field.php
@@ -1,7 +1,7 @@
 <?php
 require_once("./administration/field.php");
 
-$action = $_REQUEST['action'];
+$action = @$_REQUEST['action'];
 
 if (!Empty($action) && $action == "delete_field") {
   $coun_true = 0;
diff --git a/old/html/multidic/app/webroot/administration/list_word.php b/old/html/multidic/app/webroot/administration/list_word.php
index 75d62cc..35c8074 100644
--- a/old/html/multidic/app/webroot/administration/list_word.php
+++ b/old/html/multidic/app/webroot/administration/list_word.php
@@ -2,55 +2,56 @@
 
 require_once("./administration/word.php");
 
-if (Empty($language)) :
+if (Empty(@$_REQUEST['language'])) :
 
-if (!Empty($contrains_user_id))
-  $pomocna = "&contrains_user_id=$contrains_user_id";
+if (!Empty(@$_REQUEST['contrains_user_id'])){
+    $userid = $_REQUEST['contrains_user_id'];
+  $pomocna = "&contrains_user_id=@$userid";}
 else
   $pomocna = "";
 
 ?>
   <p>Vyberte slovník:</p>
   <p>
-    <a href="?nav_id=<?php echo $nav_id?>&language=1<?php echo $pomocna?>">arabský</a><br />
-    <a href="?nav_id=<?php echo $nav_id?>&language=2<?php echo $pomocna?>">hebrejský</a><br />
-    <a href="?nav_id=<?php echo $nav_id?>&language=3<?php echo $pomocna?>">akkadský</a><br /><br />
+    <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=1<?php echo $pomocna?>">arabský</a><br />
+    <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=2<?php echo $pomocna?>">hebrejský</a><br />
+    <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=3<?php echo $pomocna?>">akkadský</a><br /><br />
 
-    <a href="?nav_id=<?php echo $nav_id?>&language=all&contrains_source=all&contrains_lection=all<?php echo $pomocna?>">všechny</a>
+    <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=all&contrains_source=all&contrains_lection=all<?php echo $pomocna?>">všechny</a>
   </p>
 <?php
 
-elseif ($language != "all" && Empty($contrains_source)):
+elseif (@$_REQUEST['language'] != "all" && Empty(@$_REQUEST['contrains_source'])):
 ?>
   <p>Vyberte zdroj:</p>
   <p><form method="post">
 
      <?php
-echo get_source_chooser($language, "contrains_source");
+echo get_source_chooser(@$_REQUEST['language'], "contrains_source");
 ?>
      <input type="submit" value="Dál" />
      </form>
-   <br /> <a href="?nav_id=<?php echo $nav_id?>&language=<?php echo $language?>&contrains_source=all&contrains_lection=all">všechny</a>
+   <br /> <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=<?php echo @$_REQUEST['language']?>&contrains_source=all&contrains_lection=all">všechny</a>
   </p>
 <?php
-elseif ($language != "all" && $contrains_source != "all" && Empty($contrains_lection)):
+elseif (@$_REQUEST['language'] != "all" && @$_REQUEST['contrains_source'] != "all" && Empty(@$_REQUEST['contrains_lection'])):
 ?>
   <p>Vyberte lekci:</p>
   <p><form method="post">
 
      <?php
-echo get_lection_chooser($contrains_source, 1, "contrains_lection");
+echo get_lection_chooser(@$_REQUEST['contrains_source'], 1, "contrains_lection");
 ?>
      <input type="submit" value="Dál" />
-     <input type="hidden" name="contrains_source" value="<?php echo $contrains_source?>" title="Dál" />
+     <input type="hidden" name="contrains_source" value="<?php echo @$_REQUEST['contrains_source']?>" title="Dál" />
      </form>
-   <br /> <a href="?nav_id=<?php echo $nav_id?>&language=<?php echo $language?>&contrains_source=<?php echo $contrains_source?>&contrains_lection=all">všechny</a>
+   <br /> <a href="?nav_id=<?php echo @$_REQUEST['nav_id']?>&language=<?php echo @$_REQUEST['language']?>&contrains_source=<?php echo @$_REQUEST['contrains_source']?>&contrains_lection=all">všechny</a>
   </p>
 <?php
 else :
 //obsluha mazani slovicek
-if (!Empty($action) && $action == "delete_word") {
-  if (delete_word($word_id))
+if (!Empty(@$_REQUEST['action']) && @$_REQUEST['action'] == "delete_word") {
+  if (delete_word(@$_REQUEST['word_id']))
     print_hlasku("Slovíčko smazáno.");
   else
     print_hlasku("Slovíčko se nepodařilo smazat");
@@ -72,44 +73,44 @@ if (!Empty($action) && $action == "delete_word") {
 }
 
 //obsluha mazani kontextu
-if (!Empty($nav_id) && $nav_id == "delete_context") {
+if (!Empty(@$_REQUEST['nav_id']) && @$_REQUEST['nav_id'] == "delete_context") {
   require_once("./administration/context.php");
 
-  if (delete_context($context_id, $word_id))
+  if (delete_context(@$_REQUEST['context_id'], @$_REQUEST['word_id']))
     print_hlasku("Kontext smazán.");
   else
     print_hlasku("Bohužel, kontext se nepodařilo smazat.");
 }
 
-if (!Empty($action) && $action == "sort_direct") {
-  set_sorting_value($word_id, $sorting_no);
+if (!Empty(@$_REQUEST['action']) && @$_REQUEST['action'] == "sort_direct") {
+  set_sorting_value(@$_REQUEST['word_id'], @$_REQUEST['sorting_no']);
 }
 //obsluha zmeny raditka
-if (!Empty($action) && $action == "sort_word") {
-  sort_word($word_id, $dir);
+if (!Empty(@$_REQUEST['action']) && @$_REQUEST['action'] == "sort_word") {
+  sort_word(@$_REQUEST['word_id'], @$_REQUEST['dir']);
 }
 
 //obsluha autorizace slovicka
-if (!Empty($nav_id) && $nav_id == "authorize_word") {
+if (!Empty(@$_REQUEST['nav_id']) && @$_REQUEST['nav_id'] == "authorize_word") {
 
-  if (authorize_word($word_id))
+  if (authorize_word(@$_REQUEST['word_id']))
     print_hlasku("Slovíčko autorizováno.");
   else
     print_hlasku("Bohužel, slovo se nepodařilo autorizovat.");
 }
 //dulezita pojistka
-if (Empty($contrains_user_id)) $contrains_user_id = "all";
+if (Empty(@$_REQUEST['contrains_user_id'])) @$_REQUEST['contrains_user_id'] = "all";
 
-if ($nav_id == "list_word") $pomocna = false;
-else if ($nav_id == "list_nonauthorized_word") $pomocna = true;
-else  $pomocna = ($nonauthorized == true);
+if (@$_REQUEST['nav_id'] == "list_word") $pomocna = false;
+else if (@$_REQUEST['nav_id'] == "list_nonauthorized_word") $pomocna = true;
+else  $pomocna = (@$_REQUEST['nonauthorized'] == true);
 
 //vypis
 if (!Empty($serad)) {
-    print_all_in_dict(false, $language, $contrains_source, $contrains_lection, $pomocna, $contrains_user_id, $order, $od, $limit);
+    print_all_in_dict(false, @$_REQUEST['language'], @$_REQUEST['contrains_source'], @$_REQUEST['contrains_lection'], $pomocna, @$_REQUEST['contrains_user_id'], @$_REQUEST['order'], @$_REQUEST['od'], @$_REQUEST['limit']);
 }
 else {
-  print_all_in_dict(false, $language, $contrains_source, $contrains_lection, $pomocna, $contrains_user_id);
+  print_all_in_dict(false, @$_REQUEST['language'], @$_REQUEST['contrains_source'], @$_REQUEST['contrains_lection'], $pomocna, @$_REQUEST['contrains_user_id']);
 }
 
 endif;
diff --git a/old/html/multidic/app/webroot/administration/not_found.php b/old/html/multidic/app/webroot/administration/not_found.php
index db2ba7e..07db008 100644
--- a/old/html/multidic/app/webroot/administration/not_found.php
+++ b/old/html/multidic/app/webroot/administration/not_found.php
@@ -10,7 +10,7 @@ require_once("./functions/dictionary.php");
  
 //NOVE2504 
 function get_row_of_table_not_found($table, $Record, $od = 1, $do = 2) {
-  $navrat .= "<tr class=\"akt\">\n     ";
+  $navrat = "<tr class=\"akt\">\n     ";
   $navrat .= '<td><input type="checkbox" name="smaz['.$Record["ID$table"].']" /></td>'.
              '<td><a href="?nav_id=add_word&language=1&delete_from_not_found=true&';
   switch($table) {
@@ -156,13 +156,13 @@ function get_not_found($not_found_id) {
   $spojeni = new DB_Sql();
   $dotaz = "SELECT * 
               FROM not_found nf, language lan 
-              WHERE nf.\"IDnot_found\" LIKE '$not_found_id' 
-                AND nf.language = lan.\"IDlanguage\"";
+              WHERE nf.IDnot_found LIKE '$not_found_id' 
+                AND nf.language = lan.IDlanguage";
   $radky = $spojeni->query($dotaz);
 
   $spojeni->next_record();
   
-  return $spojeni->Record;
+  return $spojeni->row;
 }
 
 
diff --git a/old/html/multidic/app/webroot/administration/test_category.php b/old/html/multidic/app/webroot/administration/test_category.php
index e28618e..770e3af 100644
--- a/old/html/multidic/app/webroot/administration/test_category.php
+++ b/old/html/multidic/app/webroot/administration/test_category.php
@@ -12,7 +12,7 @@
  
 //NOVE2504
 function get_row_of_table($Record, $od = 0, $do = 4) {
-  $navrat .= "<tr class=\"akt\">\n     ";
+  $navrat = "<tr class=\"akt\">\n     ";
   $navrat .= '<td><input type="checkbox" name="smaz['.$Record[0].']" /></td>';
   $navrat .= '<td><a href="?nav_id=edit_test_category&test_category_id='.$Record[0].'">uprav</a></td>';
   for($j=$od;$j<$do;$j++) {
diff --git a/old/html/multidic/app/webroot/administration/word.php b/old/html/multidic/app/webroot/administration/word.php
index 5f2caa0..cd96cd1 100644
--- a/old/html/multidic/app/webroot/administration/word.php
+++ b/old/html/multidic/app/webroot/administration/word.php
@@ -3,7 +3,7 @@ require_once("./functions/dictionary.php");
 
 //NOVE2504
 function get_header_of_table($print_version) {
-  $navrat .= "\n  <tr class=\"nadpis_sekce\">";
+  $navrat = "\n  <tr class=\"nadpis_sekce\">";
   if(!$print_version) $navrat .= "<td>&nbsp;</td>";
   if(!$print_version) $navrat .= "<td>&nbsp;&nbsp;řadítko&nbsp;&nbsp;</td>";
   if(!$print_version) $navrat .= "<td>&nbsp;</td>";
@@ -26,17 +26,17 @@ function get_header_of_table($print_version) {
 }
 
 function get_row_of_table($print_version, $Record, $nonauthorized = false, $contrains_user_id = "all") {
-  global $language;
-  global $order;
-  global $od;
-  global $limit;
-  global $contrains_source;
-  global $contrains_lection;
+  $language = @$_REQUEST['language'];
+  $order=@$_REQUEST['order'];
+  $od=@$_REQUEST['od'];
+  $limit=@$_REQUEST['limit'];
+  $contrains_source=@$_REQUEST['contrains_source'];
+  $contrains_lection=@$_REQUEST['contrains_lection'];
   
   $nav_str = "language=$language&contrains_user_id=$contrains_user_id&contrains_source=$contrains_source&contrains_lection=$contrains_lection";
   if ($nonauthorized) $nav_str .= '&nonauthorized=true';
   
-  $navrat .= "  <tr class=\"akt\">\n";
+  $navrat = "  <tr class=\"akt\">\n";
   if (!$print_version) {
     $navrat .= '    <td>
                   <a href="?nav_id=list_';
@@ -138,7 +138,7 @@ function get_razeni($l_order = "sorting_no",
                     $contrains_source = "all", 
                     $contrains_lection = "all") {
  
-  global $language;
+  $language = @$_REQUEST['language'];
   
   global $order;
   global $od;
@@ -212,10 +212,10 @@ function get_razeni($l_order = "sorting_no",
 }
 
 function get_pocet_slov($nonauthorized, $contrains_user_id, $contrains_source, $contrains_lection) {
-  global $language;
+  $language = $_REQUEST['language'];
   require_once("./classes/db.php");
   $spojeni = new DB_Sql();
-  $dotaz = "SELECT \"IDdict\" FROM dict ";
+  $dotaz = "SELECT IDdict FROM dict ";
   if ($nonauthorized)
     $dotaz .= " WHERE NOT autorized = 1 ";
   else
@@ -236,7 +236,7 @@ function get_pocet_slov($nonauthorized, $contrains_user_id, $contrains_source, $
 
 //NOVE2504
 function get_foot_of_table($print_version) {
-  $navrat .= "<tr class=\"nadpis_sekce\">";
+  $navrat = "<tr class=\"nadpis_sekce\">";
   if (!$print_version) $navrat .= "<td><!--input type=\"submit\" name=\"delete_submit\" value=\"Smaž\"--></td>";
   if (!$print_version) $navrat .= "<td></td>";
   if (!$print_version) $navrat .= "<td></td>";
@@ -267,7 +267,7 @@ function get_foot_of_table($print_version) {
 function print_all_in_dict($print_version = false, $language = "all", $contrains_source = "all", $contrains_lection = "all",
                            $nonauthorized = false, $contrains_user_id = "all", $order = "sorting_no", 
                            $od = 0, $limit = 30 ) {
-                          
+
   require_once("./classes/db.php");
   $spojeni = new DB_Sql();
   if (!$print_version) {
@@ -307,12 +307,12 @@ function print_all_in_dict($print_version = false, $language = "all", $contrains
   if ($contrains_user_id != "all")
     $dotaz .= " AND usr = $contrains_user_id ";  
 
-  $dotaz .= " ORDER BY \"$order\" OFFSET $od LIMIT $limit ";
+  $dotaz .= " ORDER BY $order LIMIT $limit OFFSET $od";
   $spojeni->query($dotaz);
   //print_r($dotaz);
 
   while ($spojeni->next_record()) {
-    $navrat .= get_row_of_table($print_version, $spojeni->Record, $nonauthorized, $contrains_user_id);
+    $navrat .= get_row_of_table($print_version, $spojeni->row, $nonauthorized, $contrains_user_id);
   }
   $navrat .= get_foot_of_table($print_version);
   $navrat .= '<!--input type="hidden" name="action" value="delete_word">';
@@ -325,7 +325,7 @@ function authorize_word($ID) {
   require_once("./classes/db.php");
   $spojeni = new DB_Sql();
   $dotaz = "UPDATE dict SET autorized = 1
-                        WHERE \"IDdict\" = '$ID'";
+                        WHERE IDdict = '$ID'";
   $spojeni->query($dotaz);
   if ($spojeni->connection->errno != 0) {
     return false;
@@ -336,7 +336,7 @@ function authorize_word($ID) {
 function delete_word($ID) {
   require_once("./classes/db.php");
   $spojeni = new DB_Sql();
-  $dotaz = "DELETE FROM dict WHERE \"IDdict\" = '$ID'";
+  $dotaz = "DELETE FROM dict WHERE IDdict = '$ID'";
   $spojeni->query($dotaz);
   if ($spojeni->connection->errno != 0) {
     return false;
diff --git a/old/html/multidic/app/webroot/classes/db.php b/old/html/multidic/app/webroot/classes/db.php
index ad088f2..05adc71 100644
--- a/old/html/multidic/app/webroot/classes/db.php
+++ b/old/html/multidic/app/webroot/classes/db.php
@@ -13,7 +13,7 @@ class DB_Sql
     var $Host = "Filek.cz";
     var $Database = "aswi-dictionary";
     var $User = "dbowner";
-    var $Password = "db486ex12";
+    var $Password = "";
 
     /** @var mysqli_result */
     var $result = null;
diff --git a/old/html/multidic/app/webroot/functions/dictionary.php b/old/html/multidic/app/webroot/functions/dictionary.php
index b00e5e4..c432fdc 100644
--- a/old/html/multidic/app/webroot/functions/dictionary.php
+++ b/old/html/multidic/app/webroot/functions/dictionary.php
@@ -227,7 +227,7 @@ function insert_picture($class = "obrazek")
         $anglicky = $obrazek["english"];
         $arabsky = $obrazek["orig"];
 
-        $navrat .= "
+        $navrat = "
 <div id=\"$class\">
   <table>
     <tr>
@@ -263,10 +263,10 @@ function print_context_chooser($source_id)
     } else {
         $navrat = "<select name=\"context\" size=\"6\">";
         while ($spojeni->next_record()) {
-            $navrat .= "  <option value=\"" . $spojeni->Record["IDcontext"] . "\">  " .
-                $spojeni->Record[cz_context] . " - " .
-                $spojeni->Record[en_context] . " - " .
-                $spojeni->Record[orig_context] .
+            $navrat .= "  <option value=\"" . $spojeni->row["IDcontext"] . "\">  " .
+                $spojeni->row[cz_context] . " - " .
+                $spojeni->row[en_context] . " - " .
+                $spojeni->row[orig_context] .
                 "  </option>\n";
         }
         $navrat .= '</select>';
@@ -282,7 +282,7 @@ function get_translation_chooser()
     $spojeni = new DB_Sql();
     $dotaz = "SELECT * FROM translation_lang";
     $result = $spojeni->query($dotaz);
-    $navrat .= '<select name="translation_lang_id" size="4">';
+    $navrat = '<select name="translation_lang_id" size="4">';
     foreach ($result as $radka) {
         $navrat .= "  <option value=\"" . $radka["code"] . "\">  " . $radka["name"] . "  </option>";
     }
@@ -298,7 +298,7 @@ function get_field_chooser()
     $radky = $spojeni->query($dotaz);
     $navrat = "<select name=\"field\" size=\"1\">";
     while ($spojeni->next_record()) {
-        $navrat .= "  <option value=\"" . $spojeni->Record[0] . "\">  " . $spojeni->Record[1] . "  </option>";
+        $navrat .= "  <option value=\"" . $spojeni->row[0] . "\">  " . $spojeni->row[1] . "  </option>";
     }
     $navrat .= '</select>';
     return $navrat;
@@ -355,8 +355,8 @@ function get_author_chooser()
     $radky = $spojeni->query($dotaz);
     $navrat = "<select name=\"author_id\" size=\"1\">\n";
     while ($spojeni->next_record()) {
-        $navrat .= "  <option value=\"" . $spojeni->Record[0] . "\">  " .
-            $spojeni->Record[1] . " " . $spojeni->Record[2] . "  </option>\n";
+        $navrat .= "  <option value=\"" . $spojeni->row[0] . "\">  " .
+            $spojeni->row[1] . " " . $spojeni->row[2] . "  </option>\n";
     }
     $navrat .= "</select>\n";
     return $navrat;
diff --git a/old/html/utf/autor/multidic2/administration/article.php b/old/html/utf/autor/multidic2/administration/article.php
index 4b34ca8..1840ee9 100644
--- a/old/html/utf/autor/multidic2/administration/article.php
+++ b/old/html/utf/autor/multidic2/administration/article.php
@@ -200,12 +200,12 @@ function print_table_of_article($language = "all", $contrains_source = "all", $c
     $dotaz .= "AND lection = '$contrains_lection'";
 
 
-  $dotaz .= " ORDER BY \"$order\" OFFSET $od LIMIT $limit";
+  $dotaz .= " ORDER BY \"$order\" LIMIT $limit OFFSET $od";
 
   $radky = $spojeni->query($dotaz);
 
   while ($spojeni->next_record()) {
-    $navrat .= get_row_of_table($spojeni->Record);
+    $navrat .= get_row_of_table($spojeni->row);
   }
   $navrat .= get_foot_of_table();
   $navrat .= "</table>";
@@ -219,11 +219,11 @@ function get_article($id) {
   $radky = $spojeni->query($dotaz);
   $spojeni->next_record();
 
-  if ($spojeni->Errno != 0) {
+  if ($spojeni->connection->errno != 0) {
     print_hlasku("Clanek se nepodařilo načíst.");
   }
 
-  return $spojeni->Record;
+  return $spojeni->row;
 }
 
 function delete_article($ID) {
@@ -231,7 +231,7 @@ function delete_article($ID) {
   $spojeni = new DB_Sql();
   $dotaz = "DELETE FROM article WHERE \"IDarticle\" = '$ID'";
   $spojeni->query($dotaz);
-  if ($spojeni->Errno != 0) {
+  if ($spojeni->connection->errno != 0) {
     return false;
   }
   return true;
@@ -247,7 +247,7 @@ function update_article($id, $title, $body, $note, $lection) {
                             lection = '".AddSlashes($lection)."'
                             WHERE \"IDarticle\" = '".AddSlashes($id)."'";
   $spojeni->query($dotaz);
-  if ($spojeni->Errno != 0) {
+  if ($spojeni->connection->errno != 0) {
     print_hlasku("Slovo se nepodařilo upravit.");
   }
   print_hlasku("Slovo změněno.");
@@ -261,14 +261,14 @@ function insert_article($language,$source,$lection,$title,$body,$note,$user){
   $spojeni = new DB_Sql();
   //$NOW = Date("YmdHis");
   
-  $dotaz = "INSERT INTO article (\"language\", 
-                              \"source\",
-                              \"lection\",
-                              \"inserted_by\",
-                              \"title\",
-                              \"body\",
-                              \"note\",
-                              \"article_voice\")
+  $dotaz = "INSERT INTO article (language, 
+                              source,
+                              lection,
+                              inserted_by,
+                              title,
+                              body,
+                              note,
+                              article_voice)
                     VALUES ('$language', 
                             '$source',
                             '$lection',
@@ -278,7 +278,7 @@ function insert_article($language,$source,$lection,$title,$body,$note,$user){
                             '$note',
                             '0')";
   $spojeni->query($dotaz);
-  if ($spojeni->Errno != 0) {
+  if ($spojeni->connection->errno != 0) {
     return false;
   }
   return true;
