소스 검색

add tranlsation for user forms

rajven 3 년 전
부모
커밋
d71da4d4f2
7개의 변경된 파일222개의 추가작업 그리고 199개의 파일을 삭제
  1. 33 32
      html/admin/users/add_dhcp.php
  2. 10 9
      html/admin/users/edit_alias.php
  3. 13 12
      html/admin/users/edit_rules.php
  4. 55 55
      html/admin/users/editauth.php
  5. 58 58
      html/admin/users/edituser.php
  6. 32 33
      html/admin/users/index.php
  7. 21 0
      html/inc/languages/russian.php

+ 33 - 32
html/admin/users/add_dhcp.php

@@ -13,54 +13,55 @@ if (!empty($_GET["ip"]) and !empty($_GET["mac"])) {
 
     LOG_VERBOSE($db_link, "external dhcp request for $ip [$mac] $action");
     if (checkValidIp($ip) and is_our_network($db_link, $ip)) {
-	$log_dhcp = 1;
+		$log_dhcp = 1;
         $ip_aton = ip2long($ip);
-	//check hotspot
-	$hotspot_user = is_hotspot($db_link,$ip);
-	if ($hotspot_user) {
-		LOG_DEBUG($db_link,"Hotspot user found!");
-		$log_dhcp_hotspot = get_option($db_link,44);
-		if (!isset($log_dhcp_hotspot)) { $log_dhcp_hotspot = 0; }
-		$log_dhcp = !$log_dhcp_hotspot;
-		}
-	$auth = get_record_sql($db_link,"SELECT * FROM User_auth WHERE ip_int=" . $ip_aton . " AND deleted=0");
-	$aid = NULL;
-	if (!empty($auth)) {
-	    $aid = $auth['id'];
-	    LOG_VERBOSE($db_link,"Found auth for dhcp id: $aid with ip: $ip mac: $mac",$aid);
+		//check hotspot
+		$hotspot_user = is_hotspot($db_link,$ip);
+		if ($hotspot_user) {
+			LOG_DEBUG($db_link,"Hotspot user found!");
+			$log_dhcp_hotspot = get_option($db_link,44);
+			if (!isset($log_dhcp_hotspot)) { $log_dhcp_hotspot = 0; }
+			$log_dhcp = !$log_dhcp_hotspot;
+			}
+		$auth = get_record_sql($db_link,"SELECT * FROM User_auth WHERE ip_int=" . $ip_aton . " AND deleted=0");
+		$aid = NULL;
+		if (!empty($auth)) {
+	    	$aid = $auth['id'];
+	    	LOG_VERBOSE($db_link,"Found auth for dhcp id: $aid with ip: $ip mac: $mac",$aid);
             } else {
-	    LOG_VERBOSE($db_link,"User ip record not found for ip: $ip mac: $mac action: $action. Create it!",0);
-	    $aid = resurrection_auth($db_link, $ip, $mac, $action, $dhcp_hostname);
-	    if (empty($aid)) {
+	    	LOG_VERBOSE($db_link,"User ip record not found for ip: $ip mac: $mac action: $action. Create it!",0);
+	    	$aid = resurrection_auth($db_link, $ip, $mac, $action, $dhcp_hostname);
+	    	if (empty($aid)) {
                 LOG_ERRROR($db_link,"Failed create new user record",0);
                 exit;
                 }
-	    LOG_VERBOSE($db_link,"Add user by dhcp request ip: $ip mac: $mac action: $action",$aid);
+	    	LOG_VERBOSE($db_link,"Add user by dhcp request ip: $ip mac: $mac action: $action",$aid);
             $auth = get_record_sql($db_link,"SELECT * FROM User_auth WHERE id=" . $aid);
             }
-        if ($action ==='del' and !empty($auth['dhcp_time'])) {
+       		if ($action ==='del' and !empty($auth['dhcp_time'])) {
                 $last_time = strtotime($auth['dhcp_time']);
                 LOG_VERBOSE($db_link,"Delete action found for ip $ip (id: $aid, userid: ".$auth['user_id']."). Last timestamp = ".strftime('%Y-%m-%d %H-%M-%S',$last_time)." Now = ".strftime('%Y-%m-%d %H-%M-%S',time()),$aid);
-	        if ((time() - $last_time>60) and ($auth['ou_id'] == get_const('default_user_ou_id') or $auth['ou_id'] == get_const('default_hotspot_ou_id'))) {
+	        	if ((time() - $last_time>60) and ($auth['ou_id'] == get_const('default_user_ou_id') or $auth['ou_id'] == get_const('default_hotspot_ou_id'))) {
                     LOG_VERBOSE($db_link,"Remove dynamic user ip (id: $aid) by dhcp request for ip: $ip mac: $mac",$aid);
-	            delete_record($db_link,"User_auth","id=".$aid);
-	            $u_count=get_count_records($db_link,'User_auth','deleted=0 and user_id='.$auth['user_id']);
-	            if ($u_count == 0) {
-	    	        delete_record($db_link,"User_list","id=".$auth['user_id']);
+	            	delete_record($db_link,"User_auth","id=".$aid);
+	            	$u_count=get_count_records($db_link,'User_auth','deleted=0 and user_id='.$auth['user_id']);
+	            	if ($u_count == 0) {
+	    	       		delete_record($db_link,"User_list","id=".$auth['user_id']);
                         LOG_VERBOSE($db_link,"Remove dynamic user id: ".$auth['user_id']." by dhcp request",$aid);
-	    	    }
-	        }
-	    }
-        if ($log_dhcp) {
+	    	    		}
+	        		}
+	    	}
+        	if ($log_dhcp) {
     	        $dhcp_log['auth_id'] = $aid;
                 $dhcp_log['ip'] = $ip;
-	        $dhcp_log['ip_int'] = $ip_aton;
+	        	$dhcp_log['ip_int'] = $ip_aton;
                 $dhcp_log['mac'] = $mac;
-	        $dhcp_log['action'] = $action;
-	        $dhcp_log['dhcp_hostname'] = $dhcp_hostname;
+	        	$dhcp_log['action'] = $action;
+	        	$dhcp_log['dhcp_hostname'] = $dhcp_hostname;
     	        insert_record($db_link, "dhcp_log", $dhcp_log); 
     	        }
         } else { LOG_ERROR($db_link, "$ip - wrong network!"); }
-}
+	}
 unset($_GET);
+logout();
 ?>

+ 10 - 9
html/admin/users/edit_alias.php

@@ -56,14 +56,14 @@ require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php");
 <div id="cont">
 <br>
 <form name="def" action="edit_alias.php?id=<?php echo $id; ?>" method="post">
-<b>Альясы для <?php print_url($auth_info['ip'],"/admin/users/editauth.php?id=$id"); ?></b> <br>
+<b><?php print WEB_user_alias_for."&nbsp"; print_url($auth_info['ip'],"/admin/users/editauth.php?id=$id"); ?></b> <br>
 <table class="data">
 <tr align="center">
 	<td></td>
 	<td width=30><b>id</b></td>
-	<td><b>Название</b></td>
-	<td><b>Комментарий</b></td>
-	<td><input type="submit" onclick="return confirm('Удалить?')" name="s_remove" value="Удалить"></td>
+	<td><b><?php echo WEB_cell_name; ?></b></td>
+	<td><b><?php echo WEB_cell_comment; ?></b></td>
+	<td><input type="submit" onclick="return confirm('<?php echo WEB_msg_delete; ?>?')" name="s_remove" value="<?php echo WEB_btn_delete; ?>"></td>
 </tr>
 <?php
 $t_User_auth_alias = get_records($db_link,'User_auth_alias',"auth_id=$id ORDER BY alias");
@@ -74,16 +74,17 @@ foreach ( $t_User_auth_alias as $row ) {
     print "<td class=\"data\"><input type=\"hidden\" name='n_id[]' value='{$row['id']}'>{$row['id']}</td>\n";
     print "<td class=\"data\"><input type=\"text\" name='s_alias[]' value='{$row['alias']}' pattern=\"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$\"></td>\n";
     print "<td class=\"data\"><input type=\"text\" name='s_comment[]' value='{$row['description']}'></td>\n";
-    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>Сохранить</button></td>\n";
+    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>".WEB_btn_save."</button></td>\n";
     print "</tr>\n";
 }
 }
 ?>
-<tr>
-<td colspan=6>Новый альяс :<?php print "<input type=\"text\" name='s_create_alias' value='' pattern=\"^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$\">"; ?></td>
-<td><input type="submit" name="s_create" value="Добавить"></td>
-</tr>
 </table>
+<div>
+<?php echo WEB_user_dns_add_alias; ?>:
+<input type="text" name='s_create_alias' value='' pattern="^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$">
+<input type="submit" name="s_create" value="<?php echo WEB_btn_add; ?>">
+</div>
 </form>
 <?php
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php");

+ 13 - 12
html/admin/users/edit_rules.php

@@ -60,17 +60,17 @@ require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php");
 <div id="cont">
 <br>
 <form name="def" action="edit_rules.php?id=<?php echo $id; ?>" method="post">
-<b>Правила автоназначения адресов в <?php print_url($auth_info['login'],"/admin/users/edituser.php?id=$id"); ?></b>
+<b><?php print WEB_ou_rules_for_autoassigning."&nbsp"; print_url($auth_info['login'],"/admin/users/edituser.php?id=$id"); ?></b>
 <br>
-Порядок применения: hotspot => subnet => mac => hostname => default user
+<?php echo WEB_ou_rules_order; ?>:  hotspot => subnet => mac => hostname => default user
 <br><br>
 <table class="data">
 <tr align="center">
-	<td></td>
-	<td width=30><b>id</b></td>
-	<td><b>Тип</b></td>
-	<td><b>Правило</b></td>
-	<td><input type="submit" onclick="return confirm('Удалить?')" name="s_remove" value="Удалить"></td>
+    <td></td>
+    <td width=30><b>id</b></td>
+    <td><b><?php echo WEB_cell_type; ?></b></td>
+    <td><b><?php echo WEB_ou_rule; ?></b></td>
+    <td><input type="submit" onclick="return confirm('<?php echo WEB_msg_delete; ?>?')" name="s_remove" value="<?php echo WEB_btn_delete; ?>"></td>
 </tr>
 <?php
 $t_auth_rules = get_records($db_link,'auth_rules',"user_id=$id ORDER BY id");
@@ -80,15 +80,16 @@ foreach ( $t_auth_rules as $row ) {
     print "<td class=\"data\"><input type=\"hidden\" name='n_id[]' value='{$row['id']}'>{$row['id']}</td>\n";
     print "<td class=\"data\">"; print_qa_rule_select("s_type[]","{$row['type']}"); print "</td>\n";
     print "<td class=\"data\"><input type=\"text\" name='s_rule[]' value='{$row['rule']}'></td>\n";
-    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>Сохранить</button></td>\n";
+    print "<td class=\"data\"><button name='s_save[]' value='{$row['id']}'>".WEB_btn_save."</button></td>\n";
     print "</tr>\n";
 }
 ?>
-<tr>
-<td colspan=6>Новое правило :<?php print_qa_rule_select("s_new_type","1");  print "<input type=\"text\" name='s_new_rule' value=''>"; ?></td>
-<td><input type="submit" name="s_create" value="Добавить"></td>
-</tr>
 </table>
+<div>
+<?php print WEB_ou_new_rule."&nbsp"; print_qa_rule_select("s_new_type","1");  
+print "<input type=\"text\" name='s_new_rule' value=''>"; ?>
+<input type="submit" name="s_create" value="<?php echo WEB_btn_add; ?>">
+</div>
 </form>
 <?php
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php");

+ 55 - 55
html/admin/users/editauth.php

@@ -80,7 +80,7 @@ if (isset($_POST["editauth"]) and !$old_auth_info['deleted']) {
             }
         if ($new['nagios'] ==0) { $new['nagios_status']='UP'; }
         $changes = get_diff_rec($db_link,"User_auth","id='$id'", $new, 0);
-        if (!empty($changes)) { LOG_WARNING($db_link,"Изменена запись для адреса $ip! Список изменений: ".$changes,$id); }
+        if (!empty($changes)) { LOG_WARNING($db_link,"Changed record for $ip! Log: ".$changes,$id); }
         if (is_auth_bind_changed($db_link,$id,$ip,$mac)) {
             $new_id = copy_auth($db_link,$id,$new);
             header("Location: /admin/users/editauth.php?id=".$new_id,TRUE, 302);
@@ -99,7 +99,7 @@ if (isset($_POST["editauth"]) and !$old_auth_info['deleted']) {
 if (isset($_POST["moveauth"]) and !$old_auth_info['deleted']) {
     $new_parent_id = $_POST["f_new_parent"]*1;
     $changes=apply_auth_rule($db_link,$id,$new_parent_id);
-    LOG_WARNING($db_link,"Адрес доступа перемещён к другому пользователю! Применено: ".get_rec_str($changes),$id);
+    LOG_WARNING($db_link,"IP-address moved to another user! Applyed: ".get_rec_str($changes),$id);
     header("Location: " . $_SERVER["REQUEST_URI"]);
     exit;
     }
@@ -108,48 +108,48 @@ if (isset($_POST["recovery"]) and $old_auth_info['deleted']) {
     $ip = trim($_POST["f_ip"]);
     if (checkValidIp($ip)) {
         $ip_aton = ip2long($ip);
-	$mac=mac_dotted($_POST["f_mac"]);
+	    $mac=mac_dotted($_POST["f_mac"]);
         //search mac
-	$mac_exists=find_mac_in_subnet($db_link,$ip,$mac);
-	if (isset($mac_exists) and $mac_exists['count']>=1 and !in_array($parent_id,$mac_exists['users_id'])) {
+	    $mac_exists=find_mac_in_subnet($db_link,$ip,$mac);
+	    if (isset($mac_exists) and $mac_exists['count']>=1 and !in_array($parent_id,$mac_exists['users_id'])) {
 	        $dup_sql = "SELECT * FROM User_list WHERE id=".$mac_exists['users_id']['0'];
 	        $dup_info = get_record_sql($db_link, $dup_sql);
-		$msg_error="Mac already exists at another user in this subnet! Skip creating $ip [$mac].<br>Old user id: ".$dup_info['id']." login: ".$dup_info['login'];
-		$_SESSION[$page_url]['msg'] = $msg_error;
+		    $msg_error="Mac already exists at another user in this subnet! Skip creating $ip [$mac].<br>Old user id: ".$dup_info['id']." login: ".$dup_info['login'];
+		    $_SESSION[$page_url]['msg'] = $msg_error;
 	        LOG_ERROR($db_link, $msg_error);
 	        header("Location: " . $_SERVER["REQUEST_URI"]);
 	        exit;
-		}
-	//disable dhcp for secondary ip
-	$f_dhcp = $_POST["f_dhcp"] * 1;
-	if (in_array($parent_id,$mac_exists['users_id'])) {
-	    if ($parent_id != $mac_exists['users_id'][0]) { $f_dhcp = 0; }
-	    }
-	//search ip
+		    }
+	    //disable dhcp for secondary ip
+	    $f_dhcp = $_POST["f_dhcp"] * 1;
+	    if (in_array($parent_id,$mac_exists['users_id'])) {
+	         if ($parent_id != $mac_exists['users_id'][0]) { $f_dhcp = 0; }
+	        }
+	    //search ip
         $dup_ip_record = get_record_sql($db_link, "SELECT * FROM User_auth WHERE `ip_int`=$ip_aton AND id<>$id AND deleted=0");
         if (!empty($dup_ip_record)) {
             $dup_info = get_record_sql($db_link, "SELECT * FROM User_list WHERE id=".$dup_ip_record['user_id']);
             $msg_error = "$ip already exists. Skip creating $ip [$mac].<br>Old user id: ".$dup_info['id']." login: ".$dup_info['login'];
-	    $_SESSION[$page_url]['msg'] = $msg_error;
+	        $_SESSION[$page_url]['msg'] = $msg_error;
             LOG_ERROR($db_link, $msg_error);
             header("Location: " . $_SERVER["REQUEST_URI"]);
             exit;
     	    }
         $new['deleted'] = 0;
 
-	if (!empty($_POST["f_nagios"])) { $a_nagios=$_POST["f_nagios"] * 1; } else { $a_nagios = 0; }
-	if (!empty($_POST["f_link"])) { $a_link=$_POST["f_link"] * 1; } else { $a_link = 0; }
+	    if (!empty($_POST["f_nagios"])) { $a_nagios=$_POST["f_nagios"] * 1; } else { $a_nagios = 0; }
+	    if (!empty($_POST["f_link"])) { $a_link=$_POST["f_link"] * 1; } else { $a_link = 0; }
 
         $new_parent = get_record_sql($db_link,"User_list","id=".$parent_id);
         if (!empty($new_parent)) {
 	        $new['user_id'] = $parent_id;
-		$new['ou_id'] = $new_parent['ou_id'];
-		} else {
+		    $new['ou_id'] = $new_parent['ou_id'];
+		    } else {
 	        $new_user_info = get_new_user_id($db_link, $ip, $mac, NULL);
 	        if ($new_user_info['user_id']) { $new_user_id = $new_user_info['user_id']; }
 	        if (empty($new_user_id)) { $new_user_id = new_user($db_link,$new_user_info); }
 	        $new['user_id'] = $new_user_id;
-		}
+		    }
 
         if (get_const('default_user_ou_id') == $parent_ou_id or get_const('default_hotspot_ou_id') == $parent_ou_id) {
                 $new['nagios_handler'] = '';
@@ -174,13 +174,13 @@ if (isset($_POST["recovery"]) and $old_auth_info['deleted']) {
                 $new['filter_group_id'] = $_POST["f_group_id"] * 1;
             }
         $changes = get_diff_rec($db_link,"User_auth","id='$id'", $new, 0);
-        if (!empty($changes)) { LOG_WARNING($db_link,"Восстановлен адрес доступа! Применено: $changes",$id); }
+        if (!empty($changes)) { LOG_WARNING($db_link,"Recovered ip-address. Applyed: $changes",$id); }
         update_record($db_link, "User_auth", "id='$id'", $new);
-	apply_auth_rule($db_link,$id,$new['user_id']);
-	} else {
+	    apply_auth_rule($db_link,$id,$new['user_id']);
+	    } else {
         $msg_error = "$msg_ip_error xxx.xxx.xxx.xxx/xx";
         $_SESSION[$page_url]['msg'] = $msg_error;
-	}
+	    }
     header("Location: " . $_SERVER["REQUEST_URI"]);
     exit;
     }
@@ -203,16 +203,16 @@ if (!empty($_SESSION[$page_url]['msg'])) {
     print '<div id="msg">'.$_SESSION[$page_url]['msg'].'</div>';
     unset($_SESSION[$page_url]['msg']);
     }
-print "<b> Адрес доступа пользователя <a href=/admin/users/edituser.php?id=".$auth_info['user_id'].">".$parent_name."</a> </b>";
+print "<b>".WEB_user_title."<a href=/admin/users/edituser.php?id=".$auth_info['user_id'].">".$parent_name."</a> </b>";
 ?>
 <form name="def" action="editauth.php?id=<?php echo $id; ?>" method="post">
 <input type="hidden" name="id" value=<?php echo $id; ?>>
 <table class="data">
 <tr>
-<td width=200><?php print $cell_dns_name." &nbsp | &nbsp "; print_url("Альясы","/admin/users/edit_alias.php?id=$id"); ?></td>
-<td width=200><?php print $cell_comment; ?></td>
-<td width=70><?php print $cell_enabled; ?></td>
-<td><?php print $cell_traf; ?></td>
+<td width=200><?php print WEB_cell_dns_name." &nbsp | &nbsp "; print_url("Альясы","/admin/users/edit_alias.php?id=$id"); ?></td>
+<td width=200><?php print WEB_cell_comment; ?></td>
+<td width=70><?php print WEB_cell_enabled; ?></td>
+<td><?php print WEB_cell_traf; ?></td>
 <td></td>
 </tr>
 <tr>
@@ -223,10 +223,10 @@ print "<b> Адрес доступа пользователя <a href=/admin/use
 <td></td>
 </tr>
 <tr>
-<td><?php print $cell_ip; ?></td>
-<td><?php print $cell_mac; ?></td>
-<td><?php print $cell_dhcp; ?></td>
-<td><?php print $cell_acl; ?></td>
+<td><?php print WEB_cell_ip; ?></td>
+<td><?php print WEB_cell_mac; ?></td>
+<td><?php print WEB_cell_dhcp; ?></td>
+<td><?php print WEB_cell_acl; ?></td>
 <td></td>
 <tr>
 <td><input type="text" name="f_ip" value="<?php echo $auth_info['ip']; ?>" pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"></td>
@@ -235,11 +235,11 @@ print "<b> Адрес доступа пользователя <a href=/admin/use
 <td colspan=2><input type="text" name="f_acl" value="<?php echo $auth_info['dhcp_acl']; ?>"></td>
 </tr>
 <tr>
-<td><?php print $cell_filter; ?></td>
-<td><?php print $cell_shaper; ?></td>
-<td><?php print $cell_blocked; ?></td>
-<td><?php print $cell_perday; ?></td>
-<td><?php print $cell_permonth; ?></td>
+<td><?php print WEB_cell_filter; ?></td>
+<td><?php print WEB_cell_shaper; ?></td>
+<td><?php print WEB_cell_blocked; ?></td>
+<td><?php print WEB_cell_perday; ?></td>
+<td><?php print WEB_cell_permonth; ?></td>
 </tr>
 <tr>
 <td><?php print_group_select($db_link, 'f_group_id', $auth_info['filter_group_id']); ?> </td>
@@ -249,19 +249,19 @@ print "<b> Адрес доступа пользователя <a href=/admin/use
 <td><input type="text" name="f_month_q" value="<?php echo $auth_info['month_quota']; ?>" size=5></td>
 </tr>
 <tr>
-<td><?php print $cell_nagios_handler; ?></td>
+<td><?php print WEB_cell_nagios_handler; ?></td>
 <td width=200>
 <?php 
 if (!empty($auth_info['WikiName'])) {
     $wiki_url = rtrim(get_option($db_link, 60),'/');
-    if (preg_match('/127.0.0.1/', $wiki_url)) { print $cell_wikiname; } else {
+    if (preg_match('/127.0.0.1/', $wiki_url)) { print WEB_cell_wikiname; } else {
         $wiki_web = rtrim(get_option($db_link, 63),'/');
         $wiki_web = ltrim($wiki_web,'/');
         $wiki_link = $wiki_url.'/'.$wiki_web.'/'.$auth_info['WikiName'];
-        print_url($cell_wikiname,$wiki_link);
+        print_url(WEB_cell_wikiname,$wiki_link);
         }
     } else {
-    print $cell_wikiname;
+    print WEB_cell_wikiname;
     }
 $dev_id = get_device_by_auth($db_link,$auth_info['user_id']);
 if (isset($dev_id)) {
@@ -270,8 +270,8 @@ if (isset($dev_id)) {
     }
 ?>
 </td>
-<td><?php if (empty($device) or (!empty($device) and $device['device_type']>2)) { print $cell_nagios; } ?></td>
-<td><?php if (empty($device) or (!empty($device) and $device['device_type']>2)) {  print $cell_link; }?></td>
+<td><?php if (empty($device) or (!empty($device) and $device['device_type']>2)) { print WEB_cell_nagios; } ?></td>
+<td><?php if (empty($device) or (!empty($device) and $device['device_type']>2)) {  print WEB_cell_link; }?></td>
 <tr>
 <td><input type="text" name="f_handler"	value="<?php echo $auth_info['nagios_handler']; ?>"></td>
 <td><input type="text" name="f_wiki" value="<?php echo $auth_info['WikiName']; ?>"></td>
@@ -280,31 +280,31 @@ if (isset($dev_id)) {
 <td></td>
 </tr>
 <tr>
-<td colspan=2><input type="submit" name="moveauth" value=<?php print $btn_move; ?>><?php print_login_select($db_link, 'f_new_parent', $auth_info['user_id']); ?></td>
-<td><a href=/admin/logs/authlog.php?auth_id=<?php print $id; ?>>Лог</a></td>
+<td colspan=2><input type="submit" name="moveauth" value=<?php print WEB_btn_move; ?>><?php print_login_select($db_link, 'f_new_parent', $auth_info['user_id']); ?></td>
+<td><a href=/admin/logs/authlog.php?auth_id=<?php print $id; ?>><?php print WEB_log; ?></a></td>
 <?php
 if ($auth_info['deleted']) {
-    print "<td >Deleted: " . $auth_info['changed_time']."</td>";
-    print "<td align=right><input type=\"submit\" name=\"recovery\" value=\"Восстановить\"></td>";
+    print "<td >".WEB_deleted.": " . $auth_info['changed_time']."</td>";
+    print "<td align=right><input type=\"submit\" name=\"recovery\" value='".WEB_btn_recover."'></td>";
 } else {
     print "<td ></td>";
-    print "<td align=right><input type=\"submit\" name=\"editauth\" value=\"$btn_save\"></td>";
+    print "<td align=right><input type=\"submit\" name=\"editauth\" value='".WEB_btn_save."'></td>";
 }
 ?>
 </tr>
 </table>
 <table class="data">
-<tr><td class="data" colspan=5>Status:</td></tr>
+<tr><td class="data" colspan=5><?php echo WEB_status.":"; ?></td></tr>
 <tr>
-<td colspan=2><?php print "Dhcp hostname: " . $auth_info['dhcp_hostname']; ?></td><td width=100>&nbsp</td><td align=right><?php print "Dhcp event: " . $dhcp_str; ?></td>
+<td colspan=2><?php print WEB_cell_dhcp_hostname.": " . $auth_info['dhcp_hostname']; ?></td><td width=100>&nbsp</td><td align=right><?php print "Dhcp event: " . $dhcp_str; ?></td>
 </tr>
 <tr>
-<td><?php print "Created: "; ?></td><td><?php print $auth_info['timestamp']; ?></td>
-<td align=right colspan=2><?php print_url("Трафик за день","/admin/reports/authday.php?id=$id"); ?></td>
+<td><?php print WEB_cell_created.": "; ?></td><td><?php print $auth_info['timestamp']; ?></td>
+<td align=right colspan=2><?php print_url(WEB_report_by_day,"/admin/reports/authday.php?id=$id"); ?></td>
 </tr>
 <tr>
-<td><?php print "Last found: "; ?></td><td><?php print $auth_info['last_found']."<br>"; ?></td>
-<td align=right><?php print "Connected: "; ?></td><td align=right><?php print get_connection($db_link, $id)."<br>"; ?></td>
+<td><?php print WEB_cell_last_found.": "; ?></td><td><?php print $auth_info['last_found']."<br>"; ?></td>
+<td align=right><?php print WEB_cell_connection.": "; ?></td><td align=right><?php print get_connection($db_link, $id)."<br>"; ?></td>
 </tr>
 </table>
 <?php

+ 58 - 58
html/admin/users/edituser.php

@@ -48,9 +48,9 @@ if (isset($_POST["addMacRule"])) {
         $new['user_id']=$id;
         $new['type']=2;
         $new['rule']=$first_auth['mac'];
-	insert_record($db_link,"auth_rules",$new);
-	LOG_INFO($db_link,"Создано правило атоназначения юзеру id: ".$id." login: ".$user_info["login"]." для мака ".$first_auth['mac']);
-	}
+	    insert_record($db_link,"auth_rules",$new);
+	    LOG_INFO($db_link,"Создано правило атоназначения юзеру id: ".$id." login: ".$user_info["login"]." для мака ".$first_auth['mac']);
+	    }
     header("Location: " . $_SERVER["REQUEST_URI"]);
     exit;
 }
@@ -69,8 +69,8 @@ if (isset($_POST["addIPRule"])) {
         $new['user_id']=$id;
         $new['type']=1;
         $new['rule']=$first_auth['ip'];
-	insert_record($db_link,"auth_rules",$new);
-	LOG_INFO($db_link,"Создано правило атоназначения юзеру id: ".$id." login: ".$user_info["login"]." для IP ".$first_auth['IP']);
+	    insert_record($db_link,"auth_rules",$new);
+	    LOG_INFO($db_link,"Создано правило атоназначения юзеру id: ".$id." login: ".$user_info["login"]." для IP ".$first_auth['IP']);
 	}
     header("Location: " . $_SERVER["REQUEST_URI"]);
     exit;
@@ -87,7 +87,7 @@ if (isset($_POST["showDevice"])) {
     $device = get_record_sql($db_link,"SELECT * FROM devices WHERE user_id=".$id);
     $auth = get_record_sql($db_link,"SELECT * FROM User_auth WHERE user_id=".$id);
     if (empty($device) and !empty($auth)) {
-	$new['user_id']=$id;
+	    $new['user_id']=$id;
         $new['device_name'] = $user_info['login'];
         $new['device_type'] = 5;
         $new['ip']=$auth['ip'];
@@ -97,13 +97,13 @@ if (isset($_POST["showDevice"])) {
         unset($_POST);
         if (!empty($new_id)) {
             LOG_INFO($db_link, "Created device with id: $new_id for auth_id: $id");
-	    header("Location: /admin/devices/editdevice.php?id={$new_id}");
-	    exit;
-	    } else {
-	    header("Location: ".$_SERVER["REQUEST_URI"]);
-	    exit;
+	        header("Location: /admin/devices/editdevice.php?id={$new_id}");
+	        exit;
+	        } else {
+	        header("Location: ".$_SERVER["REQUEST_URI"]);
+	        exit;
+	        }
 	    }
-	}
     header("Location: /admin/devices/editdevice.php?id=".$device['id']);
     exit;
 }
@@ -147,8 +147,8 @@ if (isset($_POST["addauth"])) {
                 header("Location: /admin/users/editauth.php?id=".$fid);
                 exit;
                 }
-	    header("Location: " . $_SERVER["REQUEST_URI"]);
-	    exit;
+	        header("Location: " . $_SERVER["REQUEST_URI"]);
+	        exit;
     	    } else {
                 $msg_error = "$msg_ip_error xxx.xxx.xxx.xxx";
                 $_SESSION[$page_url]['msg'] = $msg_error;
@@ -179,15 +179,15 @@ if (isset($_POST["new_user"])) {
     $save_traf = get_option($db_link, 23) * 1;
     foreach ($auth_id as $key => $val) {
         if ($val) {
-	    $auth_info = get_record_sql($db_link,"SELECT ip, mac, comments, dns_name, dhcp_hostname FROM User_auth WHERE id=$val");
+	        $auth_info = get_record_sql($db_link,"SELECT ip, mac, comments, dns_name, dhcp_hostname FROM User_auth WHERE id=$val");
             $ou_id = $user_info["ou_id"];
             $login = NULL;
             if (!empty($auth_info["dns_name"])) { $login = $auth_info["dns_name"]; }
             if (empty($login) and !empty($auth_info["comments"])) { $login = transliterate($auth_info["comments"]); }
             if (empty($login) and !empty($auth_info["dhcp_hostname"])) { $login = $auth_info["dhcp_hostname"]; }
             if (empty($login) and !empty($auth_info["mac"])) { $login = $auth_info["mac"]; }
-	    if (empty($login)) { $login = $auth_info["ip"]; }
-	    $new_user = get_record_sql($db_link,"SELECT * FROM User_list WHERE LCase(login)=LCase('$login') and deleted=0");
+	        if (empty($login)) { $login = $auth_info["ip"]; }
+	        $new_user = get_record_sql($db_link,"SELECT * FROM User_list WHERE LCase(login)=LCase('$login') and deleted=0");
             if (!empty($new_user)) {
                 // move auth
                 $auth["user_id"] = $new_user["id"];
@@ -226,9 +226,9 @@ if (!empty($_SESSION[$page_url]['msg'])) {
 <input type="hidden" name="id" value=<?php echo $id; ?>>
 <table class="data">
 <tr>
-<td colspan=2><?php print $cell_login; ?></td>
-<td colspan=2><?php print $cell_fio; ?></td>
-<td colspan=2><?php print $cell_ou; ?></td>
+<td colspan=2><?php print WEB_cell_login; ?></td>
+<td colspan=2><?php print WEB_cell_fio; ?></td>
+<td colspan=2><?php print WEB_cell_ou; ?></td>
 </tr>
 <tr>
 <td colspan=2><input type="text" name="f_login" value="<?php print $user_info["login"]; ?>" size=25></td>
@@ -236,10 +236,10 @@ if (!empty($_SESSION[$page_url]['msg'])) {
 <td colspan=2><?php print_ou_set($db_link, 'f_ou', $user_info["ou_id"]); ?></td>
 </tr>
 <tr>
-<td colspan=2><?php print $cell_perday; ?></td>
-<td colspan=2><?php print $cell_permonth; ?></td>
-<td><?php print $cell_blocked; ?></td>
-<td><?php print $cell_enabled; ?></td>
+<td colspan=2><?php print WEB_cell_perday; ?></td>
+<td colspan=2><?php print WEB_cell_permonth; ?></td>
+<td><?php print WEB_cell_blocked; ?></td>
+<td><?php print WEB_cell_enabled; ?></td>
 </tr>
 <tr>
 <td colspan=2><input type="text" name="f_perday" value="<?php echo $user_info["day_quota"]; ?>" size=5></td>
@@ -247,10 +247,10 @@ if (!empty($_SESSION[$page_url]['msg'])) {
 <td ><?php print_qa_select('f_blocked', $user_info["blocked"]); ?></td>
 <td ><?php print_qa_select('f_enabled', $user_info["enabled"]); ?></td>
 </tr>
-<tr><td class=data colspan=6>Параметры для автоназначенных адресов:</td></tr>
+<tr><td class=data colspan=6><?php echo WEB_user_rules_for_autoassign; ?>:</td></tr>
 <tr>
-<td colspan=2><?php print $cell_filter; ?></td>
-<td colspan=2><?php print $cell_shaper; ?></td>
+<td colspan=2><?php print WEB_cell_filter; ?></td>
+<td colspan=2><?php print WEB_cell_shaper; ?></td>
 <td colspan=2></td>
 </tr>
 <tr>
@@ -260,7 +260,7 @@ if (!empty($_SESSION[$page_url]['msg'])) {
 </tr>
 <tr>
 <?php
-print "<td>"; print_url("Список правил","/admin/users/edit_rules.php?id=$id"); print "</td>";
+print "<td>"; print_url(WEB_user_rule_list,"/admin/users/edit_rules.php?id=$id"); print "</td>";
 $rule_count = get_count_records($db_link,"auth_rules","user_id=".$id);
 print "<td > Count: ".$rule_count."</td>";
 $first_auth = get_record_sql($db_link,"SELECT id FROM User_auth WHERE user_id=".$id." AND deleted=0 ORDER BY id");
@@ -268,27 +268,27 @@ if (!empty($first_auth)) {
     //mac
     $mac_rule_count = get_count_records($db_link,"auth_rules","user_id=".$id." AND type=2");
     if (!empty($mac_rule_count)) { 
-	print "<td><input type=\"submit\" name=\"delMacRule\" value=".$btn_mac_del." ></td>";
-	} else {
-	print "<td><input type=\"submit\" name=\"addMacRule\" value=".$btn_mac_add." ></td>";
-	}
+	    print "<td><input type=\"submit\" name=\"delMacRule\" value=".WEB_btn_mac_del." ></td>";
+	    } else {
+	    print "<td><input type=\"submit\" name=\"addMacRule\" value=".WEB_btn_mac_add." ></td>";
+	    }
     //ip
     $ip_rule_count = get_count_records($db_link,"auth_rules","user_id=".$id." AND type=1");
     if (!empty($ip_rule_count)) { 
-	print "<td><input type=\"submit\" name=\"delIPRule\" value=".$btn_ip_del." ></td>";
-	} else {
-	print "<td><input type=\"submit\" name=\"addIPRule\" value=".$btn_ip_add." ></td>";
-	}
+	    print "<td><input type=\"submit\" name=\"delIPRule\" value=".WEB_btn_ip_del." ></td>";
+	    } else {
+	    print "<td><input type=\"submit\" name=\"addIPRule\" value=".WEB_btn_ip_add." ></td>";
+	    }
     } else { print "<td colspan=2></td>"; }
 ?>
-<td colspan=2 align=right>Created: <?php print $user_info["timestamp"]; ?></td>
+<td colspan=2 align=right><?php print WEB_cell_created.":";print $user_info["timestamp"]; ?></td>
 </tr>
 <tr>
-<?php print "<td colspan=2>"; print_url("Трафик за день","/admin/reports/userday.php?id=$id"); ?></td>
+<?php print "<td colspan=2>"; print_url(WEB_report_by_day,"/admin/reports/userday.php?id=$id"); ?></td>
 <td></td>
-<td><input type="submit" name="showDevice" value=<?php print $btn_device; ?>></td>
+<td><input type="submit" name="showDevice" value=<?php print WEB_btn_device; ?>></td>
 <td></td>
-<td align=right><input type="submit" name="edituser" value=<?php print $btn_save; ?>></td>
+<td align=right><input type="submit" name="edituser" value=<?php print WEB_btn_save; ?>></td>
 </tr>
 </table>
 <?php
@@ -298,33 +298,33 @@ $sort_table = 'User_auth';
 $sort_url = "<a href=edituser.php?id=" . $id;
 ?>
 
-<br><b>Список адресов доступа</b><br>
+<br><b><?php echo WEB_user_ip_list; ?></b><br>
 <table class="data">
 <tr>
-<td class="data">Новый адрес доступа IP:&nbsp<input type=text name=newip value=""></td>
-<td class="data">Mac (необязательно):&nbsp<input type=text name=newmac value=""></td>
-<td class="data"><input type="submit" name="addauth" value="Добавить"></td>
-<td class="data" align=right><input type="submit" name="new_user" value="Преобразовать"></td>
+<td class="data"><?php echo WEB_user_add_ip; ?>:&nbsp<input type=text name=newip value=""></td>
+<td class="data"><?php echo WEB_user_add_mac; ?>:&nbsp<input type=text name=newmac value=""></td>
+<td class="data"><input type="submit" name="addauth" value="<?php echo WEB_btn_add; ?>"></td>
+<td class="data" align=right><input type="submit" name="new_user" value="<?php echo WEB_btn_transfom; ?>"></td>
 </tr>
 </table>
 
 <table class="data">
 <tr>
 <td class="data"><input type="checkbox" onClick="checkAll(this.checked);"></td>
-<td class="data"><?php print $sort_url . "&sort=ip_int&order=$new_order>" . $cell_ip . "</a>"; ?></td>
-<td class="data"><?php print $sort_url . "&sort=mac&order=$new_order>" . $cell_mac . "</a>"; ?></td>
-<td class="data"><?php print $cell_comment; ?></td>
-<td class="data"><?php print $sort_url . "&sort=dns_name&order=$new_order>" . $cell_dns_name . "</a>"; ?></td>
-<td class="data"><?php print $cell_enabled; ?></td>
-<td class="data"><?php print $cell_dhcp; ?></td>
-<td class="data"><?php print $cell_filter; ?></td>
-<td class="data"><?php print $cell_shaper; ?></td>
-<td class="data"><?php print $cell_perday."/<br>".$cell_permonth.", Mb"; ?></td>
-<td class="data"><?php print $cell_connection; ?></td>
-<td class="data"><?php print $sort_url . "&sort=timestamp&order=$new_order>Created</a>"; ?></td>
+<td class="data"><?php print $sort_url . "&sort=ip_int&order=$new_order>" . WEB_cell_ip . "</a>"; ?></td>
+<td class="data"><?php print $sort_url . "&sort=mac&order=$new_order>" . WEB_cell_mac . "</a>"; ?></td>
+<td class="data"><?php print WEB_cell_comment; ?></td>
+<td class="data"><?php print $sort_url . "&sort=dns_name&order=$new_order>" . WEB_cell_dns_name . "</a>"; ?></td>
+<td class="data"><?php print WEB_cell_enabled; ?></td>
+<td class="data"><?php print WEB_cell_dhcp; ?></td>
+<td class="data"><?php print WEB_cell_filter; ?></td>
+<td class="data"><?php print WEB_cell_shaper; ?></td>
+<td class="data"><?php print WEB_cell_perday."/<br>".WEB_cell_permonth.", Mb"; ?></td>
+<td class="data"><?php print WEB_cell_connection; ?></td>
+<td class="data"><?php print $sort_url . "&sort=timestamp&order=$new_order>".WEB_cell_created."</a>"; ?></td>
 <td class="data">Last DHCP/ARP Event</td>
-<td class="data"><?php print $sort_url . "&sort=last_found&order=$new_order>Last found</a>"; ?></td>
-<td class="data"><?php print "<input type=\"submit\" onclick=\"return confirm('Применить для выделенных?')\" name=\"removeauth\" value=".$btn_remove.">"; ?></td>
+<td class="data"><?php print $sort_url . "&sort=last_found&order=$new_order>".WEB_cell_last_found."</a>"; ?></td>
+<td class="data"><?php print "<input type=\"submit\" onclick=\"return confirm('".WEB_msg_apply_selected."?')\" name=\"removeauth\" value=".WEB_btn_remove.">"; ?></td>
 </tr>
 
 <?php

+ 32 - 33
html/admin/users/index.php

@@ -16,7 +16,7 @@ if (isset($_POST["create"])) {
     if (!empty($login)) {
         $lcount = get_count_records($db_link,"User_list","LCase(login)=LCase('$login')");
         if ($lcount > 0) {
-            $msg_error = "$cell_login $login $msg_exists!";
+            $msg_error = "WEB_cell_login $login $msg_exists!";
             unset($_POST);
         } else {
             $new['login'] = $login;
@@ -73,13 +73,13 @@ if (isset($_POST["remove"])) {
             $login = get_record($db_link,"User_list","id='$val'");
             LOG_INFO($db_link, "Delete device for user id: $val");
             $device= get_record($db_link,"devices","user_id='$val'");
-	    if (!empty($device)) {
+	        if (!empty($device)) {
                 unbind_ports($db_link, $device['id']);
-	        run_sql($db_link, "DELETE FROM connections WHERE device_id=".$device['id']);
+	            run_sql($db_link, "DELETE FROM connections WHERE device_id=".$device['id']);
     	        run_sql($db_link, "DELETE FROM device_l3_interfaces WHERE device_id=".$device['id']);
-    		run_sql($db_link, "DELETE FROM device_ports WHERE device_id=".$device['id']);
+    		    run_sql($db_link, "DELETE FROM device_ports WHERE device_id=".$device['id']);
                 delete_record($db_link, "devices", "id=".$device['id']);
-		}
+		        }
             run_sql($db_link,"DELETE FROM auth_rules WHERE user_id=$val");
             run_sql($db_link,"UPDATE User_auth SET deleted=1 WHERE user_id=$val");
             delete_record($db_link, "User_list", "id=$val");
@@ -104,25 +104,24 @@ if ($msg_error) {
 
 ?>
 <form name="def" action="index.php" method="post">
+<div><b><?php print WEB_list_ou; ?> - </b>
+<?php print_ou_select($db_link, 'ou', $rou); 
+print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
+<input type="submit" value="<?php echo WEB_btn_show; ?>">
+</div>
 <table class="data">
 <tr>
-<td><b><?php print $list_ou ?> - </b><?php print_ou_select($db_link, 'ou', $rou); ?> Отображать:<?php print_row_at_pages('rows',$displayed); ?>
-<input type="submit" value="Показать"></td>
-</tr>
-</table>
-<table class="data">
-<tr>
-<td>Применить к списку</td>
-<td>Включен&nbsp<?php print_qa_select('a_enabled', 0); ?></td>
-<td>Фильтр&nbsp<?php print_group_select($db_link, 'a_group_id', 0); ?></td>
-<td>Шейпер&nbsp<?php print_queue_select($db_link, 'a_queue_id', 0); ?></td>
-<td>В день&nbsp<input type="text" name="a_day_q" value="0" size=5></td>
-<td>В месяц&nbsp<input type="text" name="a_month_q" value="0" size=5></td>
-<td>Группа:&nbsp<?php print_ou_select($db_link, 'a_new_ou', $rou); ?></td>
-<td>&nbsp<input type="submit" onclick="return confirm('Применить для выделенных?')" name="ApplyForAll" value="Применить"></td>
+<td><?php echo WEB_user_list_apply; ?></td>
+<td><?php print WEB_cell_enabled."&nbsp";print_qa_select('a_enabled', 0); ?></td>
+<td><?php print WEB_cell_filter."&nbsp";print_group_select($db_link, 'a_group_id', 0); ?></td>
+<td><?php print WEB_cell_shaper."&nbsp";print_queue_select($db_link, 'a_queue_id', 0); ?></td>
+<td><?php print WEB_cell_perday."&nbsp"; ?><input type="text" name="a_day_q" value="0" size=5></td>
+<td><?php print WEB_cell_permonth."&nbsp"; ?><input type="text" name="a_month_q" value="0" size=5></td>
+<td><?php print WEB_cell_ou."&nbsp";print_ou_select($db_link, 'a_new_ou', $rou); ?></td>
+<td>&nbsp<input type="submit" onclick="return confirm('<?php echo WEB_msg_apply_selected; ?>?')" name="ApplyForAll" value="<?php echo WEB_btn_apply; ?>"></td>
 </tr>
 <tr>
-<td><input type="submit" name="create" value="Добавить пользователя"></td>
+<td><input type="submit" name="create" value="<?php echo WEB_btn_add; ?>"></td>
 <td><input type=text name=newlogin value="Unknown"></td>
 <td colspan=5></td>
 </tr>
@@ -153,15 +152,15 @@ $sSQL = "SELECT U.id, U.login, U.fio, O.ou_name, U.enabled, U.day_quota, U.month
 <tr align="center">
 <td><input type="checkbox" onClick="checkAll(this.checked);"></td>
 <td><b><?php print $sort_url . "sort=id&order=$new_order>id</a>"; ?></b></td>
-<td><b><?php print $sort_url . "sort=login&order=$new_order>" . $cell_login . "</a>"; ?></b></td>
-<td><b><?php print $sort_url . "sort=fio&order=$new_order>" . $cell_fio . "</a>"; ?></b></td>
-<td><b><?php print $cell_rule; ?></b></td>
-<td><b><?php print $cell_ou; ?></b></td>
-<td><b><?php print $cell_enabled; ?></b></td>
-<td><b><?php print $cell_perday; ?></b></td>
-<td><b><?php print $cell_permonth; ?></b></td>
-<td><b><?php print $cell_report; ?></b></td>
-<td><input type="submit" onclick="return confirm('Удалить выделенных?')" name="remove" value="Удалить"></td>
+<td><b><?php print $sort_url . "sort=login&order=$new_order>" . WEB_cell_login . "</a>"; ?></b></td>
+<td><b><?php print $sort_url . "sort=fio&order=$new_order>" . WEB_cell_fio . "</a>"; ?></b></td>
+<td><b><?php print WEB_cell_rule; ?></b></td>
+<td><b><?php print WEB_cell_ou; ?></b></td>
+<td><b><?php print WEB_cell_enabled; ?></b></td>
+<td><b><?php print WEB_cell_perday; ?></b></td>
+<td><b><?php print WEB_cell_permonth; ?></b></td>
+<td><b><?php print WEB_cell_report; ?></b></td>
+<td><input type="submit" onclick="return confirm('<?php echo WEB_msg_delete; ?>?')" name="remove" value="<?php echo WEB_btn_delete; ?>"></td>
 </tr>
 <?php
 
@@ -201,12 +200,12 @@ print_navigation($page_url,$page,$displayed,$count_records[0],$total);
 </form>
 <table class="data">
 <tr>
-<td>Цветовая маркировка</td>
+<td colspan = 3><?php echo WEB_color_description; ?></td>
 </tr>
 <tr>
-<td class="nb">Логин пуст</td>
-<td class="warn">Пользователь выключен</td>
-<td class="error">Блокировка по трафику</td>
+<td class="nb"><?php echo WEB_color_user_empty; ?></td>
+<td class="warn"><?php echo WEB_color_user_disabled; ?></td>
+<td class="error"><?php echo WEB_color_user_blocked; ?></td>
 </table>
 <?php
 require_once ($_SERVER['DOCUMENT_ROOT']."/inc/footer.php");

+ 21 - 0
html/inc/languages/russian.php

@@ -21,6 +21,10 @@ define("WEB_sec","секунд");
 define("WEB_date","Дата");
 define("WEB_bytes","Байт");
 define("WEB_pkts","Pkt");
+define("WEB_log","Лог");
+define("WEB_deleted","Удалён");
+define("WEB_status","Состояние");
+
 define("WEB_page_speed","Страница сгенерирована за ");
 define("WEB_rows_at_page","Записей на страницу");
 define("WEB_nagios","Nagios");
@@ -68,6 +72,7 @@ define("WEB_color_description","Цветовая маркировка");
 define("WEB_color_user_disabled","Пользователь выключен");
 define("WEB_color_user_blocked","Блокировка по трафику");
 define("WEB_color_device_description","Состояние устройства");
+define("WEB_color_user_empty","Логин пуст");
 
 /* device and port state */
 define("WEB_device_online","Online");
@@ -207,6 +212,7 @@ define("WEB_cell_flags","Флаги");
 define("WEB_cell_created","Создан");
 define("WEB_cell_deleted","Удалён");
 define("WEB_cell_gateway","Шлюз");
+define("WEB_cell_rule","Правил");
 
 /* lists name */
 define("WEB_list_ou","Список групп");
@@ -235,6 +241,8 @@ define("WEB_btn_delete","Удалить");
 define("WEB_btn_apply","Применить");
 define("WEB_btn_show","Показать");
 define("WEB_btn_reorder","Применить порядок");
+define("WEB_btn_recover","Восстановить");
+define("WEB_btn_transfom","Преобразовать");
 
 /* control options */
 define("WEB_config_remove_option","Удалён параметр");
@@ -427,4 +435,17 @@ define("WEB_report_traffic_for_ip","для адреса");
 define("WEB_report_detail","Детализация");
 define("WEB_report_top10_in","Топ 10 по входящему трафику");
 define("WEB_report_top10_out","Топ 10 по исходящему трафику");
+define("WEB_report_by_day","Трафик за день");
+
+/* user info */
+define("WEB_user_alias_for","Альясы для");
+define("WEB_user_dns_add_alias","Новый альяс");
+define("WEB_user_title","Адрес доступа пользователя");
+define("WEB_user_rules_for_autoassign","Параметры для автоназначенных адресов");
+define("WEB_user_rule_list","Список правил");
+define("WEB_user_ip_list","Список адресов доступа");
+define("WEB_user_add_ip","Новый адрес доступа IP");
+define("WEB_user_add_mac","Mac (необязательно)");
+define("WEB_user_list_apply","Применить к списку");
+
 ?>