;ò
í€öBc           @   sè   d  k  Z  d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k	 Z	 d  k
 Z
 d  k Z d  k Z d k l Z d  k Z e
 i i e i d ƒ d e e
 i e d „ Z d „  Z e d j o e ƒ  n d  S(   N(   s   Sorteri    i   c   7         sµ  t  i ƒ  } t i } t i } t i } t i }
 t i } t i	 }0 t i
 } t i }( t i } t i } t i }% t i }% t i }# t i } t i }3 t i d d t i ƒy t i }$ Wn d }$ n Xt i d | ƒ } t i t | ƒ d t i ƒy t | d i ƒ ‰  Wn d ‰  n Xy t | d i ƒ } Wn t i } n Xd }& d } | d j o
 t" ˆ  ƒ ov yM t# i$ ˆ  i% d	 ƒ d
 ƒ }5 |5 d j o  t' i( ˆ  i% d	 ƒ d
 ƒ }& n Wn n Xt" |& ƒ o |& d } qán t i d t ˆ  ƒ d |  d t i ƒy t* | d i ƒ } Wn |0 } n Xy t* | d i ƒ }6 Wn | }6 n Xt- i. t i/ t0 i1 d ƒ } t3 ƒ  }  |  | d ƒ d t5 ƒ  } t i7 } t i8 }. y t9 i: d } Wn d } n Xd d f t i< g  j }1 d d f t i< g  j | d j @}/ d d f t i< g  j | d j @}) t@ | i ƒ }	 tB iC t@ | i ƒ ƒ } t@ | i ƒ } t@ | iF ƒ }+ d }$ |$ o | |% |# | f j o. | d t5 ƒ  7} d  kH }* | |* iI ƒ  7} n | d 7} d } | d 7} xL | D]D }2 | d t |2 d ƒ d 7} | d |2 d d |2 d d 7} qàW|  | d ƒ xL | D]D }2 | d t |2 d ƒ d 7} | d |2 d d |2 d d 7} q<W| d 7} | d t5 ƒ  7} tL iM iN ƒ  } | i4 ƒ  | d  7} | d! 7} | d" 7} | d# 7} | d$ 7} | d% 7} | d& 7} | d' 7} | d( 7} | d) 7} | d& 7} | d* 7} x| D]ü}2 tL iM iP |2 d |2 d ƒ } xÖ| D]Î}4 |4 d+ ˆ  j o·tS |4 ƒ GHt  iT |4 d, d- d. d/ d0 d1 d2 d3 d4 d5 d6 d7 g ƒ\ } } } |4 d8 d9 tX | ƒ }" |4 d: d9 tX | ƒ }' | d; 7} | d< |2 d 7} | d= |4 d> d? d f |4 d> d j 7} | d= |4 d@ d? d f |4 d@ d j 7} | d= |4 dA d? d f |4 dA d j 7} | d< dB 7} | dC dD dE f |4 d> d j |" f 7} | dC dD dE f |4 d@ d j |' f 7} | dC dD dE f |4 dA d j | f 7} | d< | 7} | d* 7} qaqaWq7W| dF 7} | dG 7} | dH 7} | dI 7} | dJ 7} | dK 7} | d* 7} | dL 7} | dM 7} t[ i\ ˆ  d ƒ } | dG 7} | dN 7} | d; 7} | dO 7} | dP 7} | d* 7} t" | ƒ oT xQ | D]E }2 | d; 7} | d= |2 7} | d< t[ i^ i_ |2 ƒ i` 7} | d* 7} qóWn | dF 7} t[ i\ ˆ  d ƒ } | dG 7} | dN 7} | d; 7} | dO 7} | dQ 7} | d* 7} t" | ƒ oT xQ | D]E }2 | d; 7} | d= |2 7} | d< t[ i^ i_ |2 ƒ i` 7} | d* 7} q¬Wn | dF 7} t[ ia ˆ  d ƒ } | dG 7} | dN 7} | d; 7} | dO 7} | dR 7} | d* 7} t" | ƒ oT xQ | D]E }2 | d; 7} | d= |2 7} | d< t[ i^ ib |2 ƒ i` 7} | d* 7} qe	Wn | dF 7} t[ ia ˆ  d ƒ } | dG 7} | dN 7} | d; 7} | dO 7} | dS 7} | d* 7} t" | ƒ oT xQ | D]E }2 | d; 7} | d= |2 7} | d< t[ i^ ib |2 ƒ i` 7} | d* 7} q
Wn | dF 7} | dT 7} | dU 7} | dV 7} t[ ic ˆ  dW ƒ } | dN 7} | d; 7} | dO 7} | dX 7} | d* 7} t" | ƒ on xk | D]_ }2 t[ i^ id dW |2 ƒ }, | d! 7} | d= |2 7} | d< |, if t" |, ig ƒ d 7} | d* 7} që
Wn | dF 7} | dV 7} tL iM ih ƒ  }- |- o% ti dY „  tj ‡  dZ †  |- ƒ ƒ }! n g  }! | dN 7} | d; 7} | d[ 7} | d\ 7} | d* 7} t" |! ƒ on xk |! D]_ }2 t[ i^ id dW |2 ƒ }, | d; 7} | d= |2 7} | d< |, if t" |, ig ƒ d 7} | d* 7} qíWn | dF 7} | dT 7} | d* 7} | dF 7} | d] 7} | d^ 7} t i8 o | Sn d_ GHH| GHd  Sd  S(`   NsO   ============================= start script ====================================s   hosti    s   environs   IPs    s   reverselookups   1s   /iÿÿÿÿs   IP_address=s    file2recall=s   charts	   charttypes   pix_static.txti   s
  
<html>
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="brinet ab">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="sv">
<meta name="ROBOTS" content="All">
<meta name="RESOURCE-TYPE" content="document">
<meta name="distribution" content="GLOBAL">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Expires" content="Thu, 01 Dec 1994 16:00:00 GMT"
<link rel="STYLESHEET" href="../statistics.css" type="text/css">

<script>
	function findIP(IP_address) {
		found = 0
		//alert('FindIP ' + IP_address)
		//alert('Length ' + document.xlateIP.xlate.length)
		for (var i = 0; i < document.xlateIP.xlate.length; i++) {
			//alert(i)
			//alert(document.xlateIP.xlate[i].value)

			if (document.xlateIP.xlate[i].value==IP_address) {
				document.xlateIP.xlate[i].selected='selected'
				found = 1
			}
		}

		if (found == 0) {
			document.xlateIP.xlate[0].value==IP_address + 'NOT FOUND'
			document.xlateIP.xlate[0].selected='selected'
		}
	}

</script>

</head>

<body bgcolor="#e0e0e0">
	s   0i
   sÐ  

<script>
var custom = 0
var priority = %(priority)s
var development = "%(development)s"
var twisted = "%(twisted)s"
var bgpmenu = "%(bgp)s"
var bgpmenu1 = "%(bgp1)s"
var bgpmenu2 = "%(bgp2)s"
var maintarget = "_self"
var toolBox = "%(toolBox)s"
var input_IP = 1
var input_Hosts = 0
var clean_IP_addr = "%(clean_IP_addr)s"
var speedPopdown = 1

</script>

<!--
	 Milonic DHTML Website Navigation Menu Version 5.0+
	 Copyright 2004 (c) Milonic Solutions Limited (UK). All Rights Reserved.
	 Please visit http://www.milonic.com/ for more information.
-->

<script type="text/javascript" src="milonic_src.js"></script>
<param copyright="JavaScript Menu by Milonic" value="http://www.milonic.com/"></param>
<script	type="text/javascript">

if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); 

</script>

<script type="text/javascript" src="contextmenu.js"></script>
		s½   

  <form name="xlateIP" metod="post" encType="multipart/form-data" action="%(file2Call)s" target="xlateList">
  <b>Xlate</B>
  <br>
  <select name ="xlate" encType="multipart/form-data">
	s.   <option value="notfound"> NOT FOUND </option>
s   <option value="s   "s   >s   ---i   s
   </option>
i   s
   </select>
s3  
</form>

<form method=GET name=InputIP action="%(file2recall)s" style='margin:0px;'>
  <table>
    <tr>
      <td>
        Hostname
      </td>
    </tr>
    <tr>
      <td>
        <input type="text" name=hostname value = "%(hostname)s" size=30 )'>
      </td>
    </tr>

    <tr>
      <td>
        IP address
      </td>
    </tr>
    <tr>
      <td>
        <input name=IP value = "%(IP_address)s" size=14 )'>
        <input type="submit" value="Find Xlate" >
      </td>
    </tr>

  </table>
</form>
<br><br>

<script>
  findIP("%(IP_address)s")
</script>
s?   <table width="710" border="1" cellspacing="0" cellpadding="0">
s     <tr>sC       <th width="260" align="left" scope="col">&nbsp;VBS Object</th>
sA       <th width="60" align="right" scope="col">Speed in&nbsp;</th>
sB       <th width="60" align="right" scope="col">Speed out&nbsp;</th>
sB       <th width="60" align="right" scope="col">Speed tot&nbsp;</th>
s9       <th width="45" align="right" scope="col">&nbsp;</th>
s@       <th width="60" align="right" scope="col">Data in&nbsp;</th>
sA       <th width="60" align="right" scope="col">Data out&nbsp;</th>
sA       <th width="60" align="right" scope="col">Data tot&nbsp;</th>
s     </tr>
s	   splitnames   bidirectionals   basei   s   unitss    Bytess   KiBytes   MiBytes   GiBytes   TiBytes   ?????1s   ?????2s   ?????3s   inboundf1024.0s   outbounds     <tr>
s#       <td align="left">&nbsp;%s</td>
s$       <td align="right">%s&nbsp;</td>
s   inbound speedi   s   outbound speeds   bidirectional speeds   kbpss<       <td align="right"><font color=%s>%.1f&nbsp;</font></td>
s   reds   blacks	   </table>
s   <BR>
s?   <table width="710" border="0" cellspacing="0" cellpadding="0">
s   <tr>
s'     <th scope="col">Member in rules</th>
s)     <th scope="col">Member in objects</th>
s     <tr valign="top">
s       <td align="left">
s?   <table width="350" border="1" cellspacing="0" cellpadding="0">
s;       <th width="30" align="right" scope="col">Id&nbsp;</th>
sW       <th width="320" align="left" scope="col">&nbsp;Shaping rule, normal NetObject</th>
sX       <th width="320" align="left" scope="col">&nbsp;Shaping rule, dynamic NetObject</th>
sR       <th width="320" align="left" scope="col">&nbsp;FW rule, normal NetObject</th>
sS       <th width="320" align="left" scope="col">&nbsp;FW rule, dynamic NetObject</th>
s
       </td>
s       <td align="right">
s   <BR>s   /NetObjectssB       <th width="320" align="left" scope="col">&nbsp;NetObject</th>
c         C   s
   |  d j S(   Ni    (   s   d(   s   d(    (    s   C:\Python\PL\PL2_Xlate.pys   <lambda>Ö  s    c            s   |  d ˆ  j |  d S(   Ni   i    (   s   xs
   IP_address(   s   x(   s
   IP_address(    s   C:\Python\PL\PL2_Xlate.pys   <lambda>Ö  s    s<       <th width="30" align="right" scope="col" >Id&nbsp;</th>
sJ       <th width="320" align="left" scope="col">&nbsp;Dynamic NetObject</th>
s   </body>
s   </html>
s   Content-type: text/html
(l   s	   drawgraphs	   GraphParas
   speedCharts   PL_consts
   Hour_charts	   Day_charts
   Week_charts   Month_charts
   Year_charts	   Bar_charts
   Line_charts	   Pie_charts	   TCP_charts	   BGP_charts   LiveLine_charts   LiveBar_charts   LivePie_charts   PL2_inis   toolBoxs   PL_debugs   debugMsgs	   debugHosts	   popUpMenus   cgis   FieldStorages   environs   querys   strs   values
   IP_addresss   reverseLookups   default_reverseLookups   thenames   hostnames   lens   IP_miscs   dottedQuadToNums   splits   numIPs   sockets   gethostbyaddrs   file2recalls   ints   Charts
   Chart_Types   PIXs   readPIXxlates   PL_paths   oss   seps	   xlateLists   Sorters   sorts   varss   HTMLs   developments   twisteds	   graphDatas   clickableLabelss   prioritys   PL2_BGP_statPaths   bgps   bgp1s   bgp2s
   escapeTexts   IP_addrs   PL_miscs   removeDataBeforeSlashs   clean_IP_addrs   HTML_IPs   groupIds
   HTML_groups   PL2_menus   menuss   xlate_founds   xs
   PL2_pldPLDs   pldPLDs   vbs_lists   VBSs	   vbs_querys   VBS_datas   VBS_items   reprs	   scaleDatas   totals   units   unit_ptrs   floats   inbounds   outbounds   PL2_pldbRulesets   isHostInShapingrules   nets   pldbRulesets   shapingrule_find_ids   names   isHostInfwrules   fwrule_find_ids   isHostInNets   object_find_ids   objs   fullpaths	   base_paths   dyn_lists   filters   maps   redirect_obj(7   s   file2recalls
   IP_addresss   environs   twisted_requests
   Line_charts	   Day_charts   unit_ptrs	   xlateLists   VBSs   IP_addrs   Month_charts   querys	   BGP_charts
   speedCharts   units   prioritys   HTML_IPs   totals   LivePie_charts   reverseLookups   hostnames   Charts   xlate_founds   HTMLs   developments	   TCP_charts
   Year_charts   nets
   Hour_charts   VBS_datas
   Week_charts   clean_IP_addrs   sorts   redirect_objs   inbounds   LiveBar_charts	   popUpMenus   LiveLine_charts   thenames   outbounds	   Pie_charts   bgp2s   PL2_menus
   HTML_groups   objs   dyn_lists   twisteds   bgp1s	   Bar_charts   bgps   xs   toolBoxs   VBS_items   numIPs
   Chart_Type(    (   s
   IP_addresss   C:\Python\PL\PL2_Xlate.pys   xlate   sà   															

$ (

		.		
## '	

 & &
(












  @
***(((














 







 







 







 









 
"

%




 
"






c         C   s,   |  i t d ƒ d ƒ i t d ƒ d ƒ Sd  S(   Ni   s   %0Di
   s   %0A(   s   texts   replaces   chr(   s   text(    (    s   C:\Python\PL\PL2_Xlate.pys
   escapeTextý  s    s   __main__(   s   IP_miscs	   drawgraphs
   PL2_pldPLDs   PL2_pldbRulesets   PL_debugs   PL_consts   PL_miscs   PIXs   PL2_inis   cgis   oss   syss   sockets   sorts   Sorters   PL2_javascripts   paths   splits   argvs   Nones   environs   xlates
   escapeTexts   __name__(   s   cgis   IP_miscs   PL2_inis   sockets
   escapeTexts	   drawgraphs   PL_debugs   PL2_pldbRulesets   PL2_javascripts
   PL2_pldPLDs   PIXs   PL_miscs   syss   PL_consts   xlates   Sorters   os(    (    s   C:\Python\PL\PL2_Xlate.pys   ?   s$   												/ÿ ê	