;ò
+EÑBc           @   sý   d  k  Z d  k Z d k Td  k Z d k Td k Td  k Z d  k Z d  k	 Z	 d  k
 Z
 d  k Z d  k Z d k l Z d  k Z d  k Z d  k Z d  k Z d  k 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   *(   s   strptimei    i   c   ·      C   s¸2  d  k  }Z t i ƒ  }e t i }> y t i }} Wn d }} n Xt i }R t d d t i	 ƒt
 i ƒ  } d }› | t j o+ y |Z i d | _ Wqª d | _ qª Xn
 | | _ t i d | ƒ }
 t t |
 ƒ d t i	 ƒy t |
 d i ƒ }¤ Wn t }¤ n Xy t |
 d	 i ƒ }W Wn d
 }W n Xy t |
 d i ƒ }B Wn t i	 }B n Xy t |
 d i ƒ }j Wn t i }j n Xy t |
 d i ƒ }] Wn t i }] n Xy t |
 d i ƒ }h Wn d }h n Xy t |
 d i ƒ }ˆ Wn d }ˆ n Xy t |
 d i ƒ } Wn t! } n Xy t |
 d i ƒ }~ Wn t# }~ n Xy t |
 d i ƒ }_ Wn t% }_ n Xy t |
 d i ƒ }s Wn( t' i( d t' i) t' i' ƒ  ƒ ƒ }s n Xy t |
 d i ƒ }c Wn, t' i( d t' i) t' i' ƒ  d ƒ ƒ }c n Xy t |
 d i ƒ }M Wn d }M n Xy t |
 d i ƒ d }d Wn. y t |s d d !ƒ }d Wq_d }d q_Xn Xy t |
 d i ƒ d }	 Wn. y t |s d d !ƒ }	 Wq«d }	 q«Xn Xy t |
 d i ƒ } Wn. y t |s d d  !ƒ } Wqód } qóXn Xy t |
 d! i ƒ }4 Wn d }4 n Xy t |
 d" i ƒ } Wn! t i1 o
 d# } qUd$ } n Xy t |
 d% i ƒ } Wn d } n Xy t |
 d& i ƒ | _3 Wn | | _3 n Xy t |
 d' i ƒ }" Wn d( }" n Xy t |
 d) i ƒ }“ Wn d* }“ n Xy t |
 d+ i ƒ }* Wn t i7 }* n Xy t |
 d, i ƒ }g Wn d- }g n Xy t |
 d. i ƒ }< Wn d/ }< n Xt d0 t |< ƒ d |B ƒyÝ d }N |
 d1 i }N |N i; t d$ ƒ }l t= |l ƒ d$ j  o |l d | _ d }› n |l d | _ |l d }› t d2 t> | i ƒ d3 t |› ƒ d |B ƒt? i@ | i ƒ }3 t= |3 i; d4 ƒ ƒ d  j o tB iC |3 ƒ n
 |N | _ Wn |N | _ d }› n Xt d5 t> | i ƒ d6 t> |› ƒ d7 d |B ƒy t |
 d8 i ƒ | _ Wn n Xt d9 t> | i ƒ d6 t> |› ƒ d7 d |B ƒ| i d j o d: | _ n y t |
 d; i ƒ | _D WnD t i1 o* |¤ tE j o d: | _D q{t iF | _D qd | _D n Xd< | iD d( d: j o | iD d(  | _D n | iD d j o d: | _D n | iD } | iD }u t i1 op | i } | d< d d: j o | d } n d< | iD d( d: j o | iD d: | | _I qT| iD | | _I n y t |
 d= i d> ƒ | _J Wn n Xy t |
 d? i d> ƒ | _K Wn n Xy t |
 d@ i d> ƒ | _L Wn n Xy t |
 dA i d> ƒ | _M Wn n Xy t |
 dB i d> ƒ | _N Wn n Xy t |
 dC i d> ƒ | _O Wn n Xy t |
 dD i d> ƒ | _P Wn n Xy t |
 dE i d> ƒ | _Q Wn n Xy t |
 dF i d> ƒ | _R Wn n Xy t |
 dG i d> ƒ | _S Wn n X|_ tT tU f j o
 tV }~ n |_ tW tX tY f j o
 t# }~ n |_ tZ t[ t\ f j o
 t] }~ n t dH t> | i ƒ d3 t> |› ƒ dI t> | iD ƒ dJ t> | iI ƒ d |B ƒd }® |› d j o |j dK j o t= | i ƒ o yS tB iC | i i; d: ƒ d( ƒ }0 |0 d j o# t` ia | i i; d: ƒ d( ƒ }® n Wn n Xt= |® ƒ o |® d | _ q3n t dL t> |® ƒ dM t> |j ƒ d |B ƒt' i' ƒ  }y |y d }§ t' i' ƒ  }y |y d }f |y d d }¦ |_ tT tU tf f j o
 tV }~ n |_ tW tX tY f j o
 t# }~ n |_ tZ t[ t\ f j o
 t] }~ n |_ tg th ti f j o
 tj }~ n |s }¡ |c }( |~ tm tV g j o
 dN } n |~ t# j o t i1 o
 d# } qid$ } n |~ tj j o
 d$ } n t' in to |¡ dO ƒ ƒ }% |_ tT j o@ t' i( d t' i) |y ƒ ƒ }¡ t' i( d t' i) |f ƒ ƒ }( dN } n |_ tU j o: t' i( d t' i) |§ ƒ ƒ }¡ t' i( d t' i) |y ƒ ƒ }( n |_ tW j oZ t' i( dP t' i) |y ƒ ƒ }¡ t' in to |¡ dO ƒ ƒ }% t' i( dP t' i) |% dQ d ƒ ƒ }( n |_ tX j oV t' i( dP t' i) |y ƒ ƒ }( t' in to |( dO ƒ ƒ }% t' i( dP t' i) |% d ƒ ƒ }¡ n |_ tY j o„ t' i( dO t' i) |y dQ d ƒ ƒ }¡ t' i( dO t' i) |y ƒ ƒ }( t' i( d t' i) |y dR d ƒ ƒ }¡ t' i( d t' i) |y d ƒ ƒ }( n t' i( d t' i) |y ƒ ƒ }= tr is t |= d d  !ƒ t |= d d !ƒ t |= d d !ƒ ƒ }7 |y |7 d }1 |_ tZ j oB t' i( d t' i) |1 ƒ ƒ }¡ t' i( d t' i) |1 d d ƒ ƒ }( n |_ t[ j oB t' i( d t' i) |1 d d ƒ ƒ }¡ t' i( d t' i) |1 ƒ ƒ }( n |_ t\ j o: t' i( d t' i) |¦ ƒ ƒ }¡ t' i( d t' i) |y ƒ ƒ }( n |_ tg j oB t' i( dS t' i) |% ƒ ƒ }¡ t' i( dS t' i) |% dT d ƒ ƒ }( n |_ th j oB t' i( dS t' i) |% dU d ƒ ƒ }¡ t' i( dS t' i) |% ƒ ƒ }( n |_ t% j oÙ|s }¡ |c }( t' i( dS t' i) |% dU d ƒ ƒ }’ t' i( dS t' i) |% ƒ ƒ }2 |~ tm j o
 |M d j o|d d j o | d j o
 |	 d j oN t dV | ƒ dW t dX |	 ƒ dW t dX |d ƒ d< t dX |M ƒ dY }¡ n= t' i( dO t' ix t' in to |¡ dO ƒ ƒ t' iy dZ |M ƒ ƒ }¡ t' in to |¡ dO ƒ ƒ t' iy }% t' i( d[ t' ix |% dZ ƒ ƒ }( t d\ t |M ƒ d< |¡ d< |( d |B ƒn |~ tV j o
 |d d j oö | d j o
 |	 d j o< t dV | ƒ dW t dX |	 ƒ dW t dX |d ƒ d] }¡ nf t' i( d t' i) t' in to |¡ dO ƒ ƒ d |d d ƒ ƒ }¡ t d^ t |~ ƒ t |d ƒ |s |¡ f d |B ƒt' in to |¡ dO ƒ ƒ }% t' i( d t' i) |% d ƒ ƒ }( n |~ t] j o$ |d d j o | d j o
 |	 d j oÜ t dV | ƒ dW t dX |	 ƒ dW t dX |d ƒ d] }¡ t' in to |¡ dO ƒ ƒ }% tr is t |¡ d d  !ƒ t |¡ d d !ƒ t |¡ d d !ƒ ƒ }7 |% |7 d }1 t' i( d t' i) |1 ƒ ƒ }¡ t' i( d t' i) |1 d d ƒ ƒ }( n |~ t# j |	 d j @oØ | }  |	 } |	 d }! |	 d_ j o d }! |  d }ª n |	 d }! |  }ª t dV |  ƒ dW t dX | ƒ d` }¡ t dV |ª ƒ dW t dX |! ƒ d` }( t' i( dO t' i) |y ƒ ƒ |( j  o t' i( dO t' i) |y ƒ ƒ }( qn |~ tj j | d j @o. t | ƒ da }¡ t t | ƒ d ƒ da }( qUn t db |¡ t' i( d t' i) |y ƒ ƒ d |B ƒt' i( d t' i) |y ƒ ƒ |¡ j | d$ j @o
 dc } n t i1 o |  dd de | iI }A n df }A t i€ o dg }G dh } n di }G dj } |A dk t |~ ƒ dl t | ƒ dm t |	 d ƒ dn t |d d ƒ 7}A |A do |¡ dp |( dq t |_ ƒ dr t | ƒ ds t | ƒ 7}A |A dt t |< ƒ du t |* ƒ dv t | ƒ dw t |¤ ƒ 7}A t dx |A d |B ƒ| i3 dy j o dz GHd{ tƒ ƒ  GHn d }h d }• |W | _ |¤ | _ | | _… |~ | _† |¡ | _k |( | _l |A | _ |j | _ |“ | _5 |4 | _/ | | _0 |g | _8 |< | _9 |h | _ |• | _„ |] | _ t‡ iˆ | ƒ \ }™ }F }n |F }‡ t d| |™ d} t | i3 ƒ d~ t | ƒ d t |~ ƒ d |B ƒ| i3 d j o dz GHd€ tƒ ƒ  GHn | i3 d j o‡t d |™ d |B ƒt i€ oK d‚ |™ }™ t dƒ |™ d |B ƒt |™ d„ ƒ }U |U i ƒ  } |U i‘ ƒ  | Sq»t i’ |Z i“ d… |Z i“ d† |Z i“ |™ }« t d‡ d |B ƒ|ˆ o8 dˆ |F d‰ }F t |ˆ dŠ ƒ }Ÿ |Ÿ i– |F ƒ |Ÿ i‘ ƒ  n t d‹ d |B ƒt |« d„ ƒ }U t dŒ |™ d d |B ƒdŽ GHy2 d  k— } d  k  }Z | i˜ |© iš i› ƒ  |Z iœ ƒ Wn n Xd  k™ }© |© iš i– |U i ƒ  ƒ |U i‘ ƒ  n | i3 d$ j oUt d t |~ ƒ d< |¡ d |B ƒt' in to |¡ dO ƒ ƒ t' iy }% t' i( d t' i) |y ƒ ƒ }5 t' i( d[ t' ix |% ƒ ƒ }¯ t' i( d[ t' ix |% dZ ƒ ƒ }# t' i( d[ t' ix |% dZ ƒ ƒ }8 t' i( d[ t' ix |% ƒ ƒ }{ t' i( d[ t' ix |% dZ ƒ ƒ }€ t' i( d[ t' ix |% d$ dZ ƒ ƒ }m t' in to |¡ d d !d d‘ ƒ ƒ } t' i( d[ t' ix | ƒ ƒ } t' i( d[ t' ix | dZ ƒ ƒ }¬ t' i( d[ t' i) |y ƒ ƒ }‹ t' i( d[ t' i) |y dZ ƒ ƒ }D t d’ |¯ d< |# d |B ƒt d“ |8 d< |{ d |B ƒt d” |€ d< |m d |B ƒt' i( d t' i) |% ƒ ƒ }‚ t' i( d t' i) |% d ƒ ƒ }” t' i( d t' i) |% d ƒ ƒ }Š t' i( d t' i) |% ƒ ƒ } t' i( d t' i) |% d ƒ ƒ }; t' i( d t' i) |% d$ d ƒ ƒ }/ t' in to |¡ d d !d d‘ ƒ ƒ }' t' i( d t' i) |' ƒ ƒ }¶ t' i( d t' i) |' d ƒ ƒ }^ t' i( d t' i) |y d ƒ ƒ } t' i( d t' i) |y ƒ ƒ } tr is t |¡ d d  !ƒ t |¡ d d !ƒ t |¡ d d !ƒ ƒ }7 |% |7 d }1 t' i( d t' i) |1 ƒ ƒ } t' i( d t' i) |1 d d ƒ ƒ }´ t' i( d t' i) |1 d d ƒ ƒ }r t' i( d t' i) |1 ƒ ƒ }Y t' i( d t' i) |1 d d ƒ ƒ }° t' i( d t' i) |1 d• d ƒ ƒ } t' in to |¡ d d !d d‘ ƒ ƒ }% tr is t |¡ d d  !ƒ d d ƒ }µ |% |µ d }| t' i( d t' i) || ƒ ƒ }š t' i( d t' i) || d d ƒ ƒ }@ tr is t |5 d d  !ƒ t |5 d d !ƒ t |5 d d !ƒ ƒ }C |y |C d } t' i( d t' i) | ƒ ƒ }² t' i( d t' i) | d d ƒ ƒ } t' in to |¡ d d !d– d‘ ƒ ƒ }% t' i( dP t' i) |% ƒ ƒ } t' i( dP t' i) |% dQ d ƒ ƒ }E t' i( dP t' i) |% d ƒ ƒ }¨ t' i( dP t' i) |% ƒ ƒ }£ t' i( dP t' i) |% dQ d ƒ ƒ }† t' i( dP t' i) |% d$ dQ d ƒ ƒ }[ t' i( dS t' i) |% ƒ ƒ }p t' i( d— t' i) |% ƒ ƒ }6 t' i( dP t' i) |y ƒ ƒ }˜ t' i( dP t' i) |y dQ d ƒ ƒ }S t' i( dS t' i) |% ƒ ƒ }³ t' i( dS t' i) |% dT d ƒ ƒ }: t' i( dS t' i) |% dU d ƒ ƒ }’ t' i( dS t' i) |% ƒ ƒ }2 t' i( dS t' i) |% dT d ƒ ƒ }b t' i( dS t' i) |% d$ dT d ƒ ƒ } t' i( dS t' i) |% ƒ ƒ }I t' i( dS t' i) |% dT d ƒ ƒ }o t' i( dS t' i) |% ƒ ƒ }‘ t' i( dS t' i) |% dT d ƒ ƒ }± d }` |~ tm j o@ |¯ } |# }¥ |8 } |{ }w |€ }K |m }­ | }? |¬ }Œ |‹ }v |D } n |~ tV j o@ |‚ } |” }¥ |Š } | }w |; }K |/ }­ |¶ }? |^ }Œ | }v | } n |~ t] j o@ | } |´ }¥ |r } |Y }w |° }K | }­ |š }? |@ }Œ |² }v | } n |~ t# j o@ | } |E }¥ |¨ } |£ }w |† }K |[ }­ |p }? |6 }Œ |˜ }v |S } n |~ tj j o@ |³ } |: }¥ |’ } |2 }w |b }K | }­ |I }? |o }Œ |‘ }v |± } n tß | i ƒ d˜ |› d™ tß | iD ƒ dq t |_ ƒ dv t | ƒ dw t |¤ ƒ } t' i( dš t' i) t' i' ƒ  ƒ ƒ }- t i1 o` | i d: j p t= | i ƒ d j o |u d(  |u d(  iâ d: ƒ  }u n |u d j o
 d: }u q9$n |  d› t |~ ƒ dœ t |W ƒ do |? dp |Œ d | ds t | ƒ dt t |< ƒ dž |- }\ |  d› t |~ ƒ dœ t |W ƒ do | dp |w d | ds t | ƒ dt t |< ƒ dž |- }x |  d› t |~ ƒ dœ t |W ƒ do |K dp |­ d | ds t | ƒ dt t |< ƒ dž |- }  |  d› t |~ ƒ dœ t |W ƒ do |v dp | d | ds t | ƒ dt t |< ƒ dž |- }V |G d› t |~ ƒ dv t tç ƒ do | dp |¥ dŸ t | ƒ dž |- d  | }H |G d› t |~ ƒ dv t t! ƒ do | dp |¥ dŸ t | ƒ dž |- d  | }ž t d¡ t |ž ƒ d |B ƒ|G d› t |~ ƒ dv t tê ƒ do | dp |¥ dŸ t | ƒ dž |- d  | } |  d¢ dœ t |W ƒ do |¯ dp |# d£ | ds t | ƒ dt t |< ƒ dž |- }… |  d¤ dœ t |W ƒ do |‚ dp |” d | ds t | ƒ dt t |< ƒ dž |- }$ |  d¥ dœ t |W ƒ do | dp |´ d | ds t | ƒ dt t |< ƒ dž |- }ƒ |  d¦ dœ t |W ƒ do | dp |E d | d§ dt t |< ƒ dž |- } |  d¨ dœ t |W ƒ do |³ dp |: d | d§ dt t |< ƒ dž |- }9 |  d© t |~ ƒ do |¡ dp |( dª d™ | iD dt t |< ƒ dž |- }O |  d© t |~ ƒ dœ t |W ƒ do |¡ dp |( dq t |_ ƒ d« d™ tß |u ƒ dv t | ƒ dw t |¤ ƒ dt t |< ƒ dž |- }X |  d© t |~ ƒ dœ t |W ƒ do |¡ dp |( dq t |_ ƒ dŸ t | ƒ d™ tß | iI ƒ dt t |< ƒ dž |- dv t | ƒ dw t |¤ ƒ }+ |G d› t |~ ƒ dv t tô ƒ do | dp |¥ d¬ t | ƒ dž |- d  | dw t |¤ ƒ }k |  d› t |~ ƒ dv t tç ƒ do | dp |¥ d­ t tö ƒ ds t | ƒ dž |- d  | dw t |¤ ƒ }„ |  d› t |~ ƒ dv t tç ƒ do | dp |¥ d­ t tø ƒ ds t | ƒ dž |- d  | dw t |¤ ƒ } |+ d® }4 d g d¯ }) d }i d° }, d± }Q t d² t t iþ ƒ d |B ƒd³ |H d´ t iþ dµ |Q d¶ |) d <d³ |ž d´ t iþ d· |Q d¶ |) d <d³ |O d´ t iþ d¸ |, d¶ |) d$ <d³ | d´ t iþ d¹ |Q d¶ |) dc <d³ |\ d´ t iþ dº |, d¶ |) d  <d³ |x d´ t iþ d» |, d¶ |) d <d³ |  d´ t iþ d¼ |, d¶ |) d½ <d³ |V d´ t iþ d¾ |, d¶ |) d <d³ |… d´ t iþ d¿ |, d¶ |) d <d³ |$ d´ t iþ dÀ |, d¶ |) dÁ <d³ |ƒ d´ t iþ dÂ |, d¶ |) d <d³ | d´ t iþ dÃ |, d¶ |) dÄ <d³ |9 d´ t iþ dÅ |, d¶ |) d_ <d³ |X d´ t iþ dÆ |, d¶ |) dÇ <d³ |„ d´ t iþ dÈ |, d¶ |) d• <d³ | d´ t iþ dÉ |, d¶ |) dÊ <d³ d d´ t iþ dË |) d> <x> tÿ d t= |) ƒ ƒ D]' }. |" d$ |. @o |i |) |. 7}i q¨-q¨-Wt i itidÌ dÍ ƒ d ƒ }z h  } | itƒ ƒ  ƒ | itƒ t ƒ ƒ dÎ } |* d j o | dÏ tƒ ƒ  7} n | dÐ |W dÑ 7} | dÒ 7} t i}t t i€ }a y |n i	d }q Wn d }q n Xt dÓ t |q ƒ d t i	 ƒdÔ dK f t ig  j }— dÔ dK f t ig  j o
 |q d j }œ dÔ dK f t ig  j o
 |q d j }J t i d$ j o
 d }" n t tç ƒ }L tß | i ƒ } y t |¡ d d  !ƒ }¢ Wn d }¢ n Xy t |¡ d d !ƒ d }& Wn d }& n Xy t |¡ d d !ƒ d }Ž Wn d }Ž n X| i3 }P | iI } | titƒ ƒ  titƒ ƒ  7} | dÕ tƒ ƒ  7} | dÖ tƒ ƒ  7} |" o | |i 7} n t i o | d× tƒ ƒ  7} n d  k}T | |T iƒ  7} |R o | dØ 7} n t dÙ |™ d |B ƒ| dÚ |™ dÛ 7} | |F 7} |R o | dÜ 7} n | dÝ tƒ ƒ  7} t i€ o, t dÞ t t= | ƒ ƒ dß d |B ƒ| Sq 1dz GHH| GHd  Sn | i3 dà dá f j o+ dâ } t i€ o | Sqa1dz GHH| GHd  Sn | i3 dÄ d_ f j o=t d |™ d |B ƒt i€ ou t dã d |B ƒt |™ d„ ƒ }U |U i ƒ  }‰ |U i‘ ƒ  | idä då ƒ | idæ dç |Z ii; |™ ƒ d dè ƒ |‰ Sq´2t i’ |™ }– t dé d |B ƒt |– d„ ƒ }U t dê d |B ƒdë GHy2 d  k— } d  k  }Z | i˜ |© iš i› ƒ  |Z iœ ƒ Wn n Xd  k™ }© |© iš i– |U i ƒ  ƒ |U i‘ ƒ  n d  S(ì   Ni    sO   ============================= start script ====================================s   hosts    s   REMOTE_ADDRs	   127.0.0.1s   environs   stats   titles
   Statisticss	   debugHosts   reverselookups   printhostnames	   chartnames   mapfiles   charts	   charttypes   graphs   froms   %Y-%m-%d 00:00s   toi€Q s   hours   dayi   i   i
   s   monthi   i   s   yeari   s   forces   stopig   i   s   imgs   outputs   toolboxiÿÿÿÿs   topboxiÿ   s   refreshs   sizei¼  s   hostsingraphi   s   hostsInGraph=s   xLabels    Före test av giltig IP-address: s
    hostname=s   .s#   After get IP-address from xLabel: <s   > hostname=<s   >s   IPs   After get IP-address from IP: <s   /s   groups    s   plotbgcolori   s   plotaltbgcolors   plotedgecolors   plothgridcolors   plotvgridcolors   topboxbgcolors   chartbgcolors   chartEdgebgcolors   titlebgcolors   titletextcolors   IP-address s	    groupId=s    netObject=s   1s
   thename = s    reverseLookup = ie   s   %Y-%m-%d %H:%Ms   %Y-%m-01 00:00i   i   s   %Y-01-01 00:00in  im  s   %04ds   -s   %02ds   :00i  s   %Y-%m-%d %H:00s   hour=s    00:00s6   Chart_Type=%s dayNo=%s from_date=%s stat_start_time=%si   s	   -01 00:00s   -01-01 00:00s   xxxxxxx i   s   ?s   group=s   PL2_SpeedGraph.py?s   PL2_SpeedGraph.rpys   PL2_ToplistGraph.rpys   PL2_SpeedGraph.pys   PL2_ToplistGraph.pys   &charttype=s   &year=s   &month=s   &day=s   &from=s   &to=s   &graph=s   &img=s   &stop=s   &hostsingraph=s	   &refresh=s   &chart=s   &stat=s   file2call = iW  s   Content-type: text/html
sÒ  
		<html>
		<body>
		<span id="sp1" style="background-color:red; position:absolute; top:70; left:50; width:400; height:100; padding:8; border-style:solid; border-width:4; border-color:black; z-index:1;">
		<p>&lt;script language="JavaScript"&gt;<br>
		var myPopUp = window.open("mypage.htm","pop_window","menubar=1,location=1,toolbar=0");<br>
		&lt;/script&gt;</p>
		</span>

		<script language="JavaScript">document.all.sp1.style.visibility = 'visible';</script>
		s   image=s    output=s    img= s    and Chart_Type = s*   
		<html>
		<body>

		</body>
		</html>
		s	   chartURL=s   tmp/tmpchart/s   twisted chart output: s   rbs   tmps   tmpcharts   Test mapFiles   <map name="im" id="im"> 
s   </map>s   ws    Output the chart as a PNG streams   Output the chart s    as a PNG streams   Content-type: image/png
s   Chart_Type = s   01-01s   %Y-%m-%ds
   cur _hour=s
   prev_hour=s
   next_hour=i   s   01s   %Y-02-01 00:00s
   &hostname=s   &group=s   %Y-%m-%d %H:%M:%Ss   ?charttype=s   &title=s   &graph=0&img=2&IP=s   &time=s   &img=2&stop=s   &IP=s   data=s   ?charttype=1s
   &img=2&IP=s   ?charttype=2s   ?charttype=3s   ?&charttype=4s   &stop=2s   ?&charttype=5s   ?&charttype=s   &graph=0&img=2&stop=2s   &img=2&stop=2s   &graph=0&img=2&stop=s   &img=2&output=s   &force=1i   s   '_self's   'speed's   PL2_ini.PL_imagepath=s   <input name="s   " type="image" src="s;   speedbutton.png" alt="SpeedGraph" onclick="callPython(name,s   )">s9   databutton.png" alt="DataGraph" onclick="callPython(name,s?   toplistbutton.png" alt="ToplistGraph" onclick="callPython(name,s7   piebutton.png" alt="PieGraph" onclick="callPython(name,s6   firstbutton.png" alt="First" onclick="callPython(name,s5   prevbutton.png" alt="Prev." onclick="callPython(name,s4   nextbutton.png" alt="Next" onclick="callPython(name,i   s4   lastbutton.png" alt="Last" onclick="callPython(name,s9   hourbutton.png" alt="HourGraph" onclick="callPython(name,s7   daybutton.png" alt="DayGraph" onclick="callPython(name,i	   s9   weekbutton.png" alt="WeekGraph" onclick="callPython(name,s;   monthbutton.png" alt="MonthGraph" onclick="callPython(name,i   s9   yearbutton.png" alt="YearGraph" onclick="callPython(name,s=   prevpathbutton.png" alt="Prev Path" onclick="callPython(name,i   s9   csvbutton.png" alt="Export CSV" onclick="callPython(name,s9   xmlbutton.png" alt="Export XML" onclick="callPython(name,i   sF   printbutton.png" target="_self" alt="Print Graph" onclick="printit()">s   .:-s   ___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">

		s8   <meta HTTP-EQUIV="Refresh" CONTENT='+ str(refresh) + '>
s   <title>s	   </title>
sA   <link rel="STYLESHEET" href="../statistics.css" type="text/css">
s	   Priority=s   0sh  

<script Language="Javascript">

var setChartGraph = setToplistChartGraph
var drawDateGraph = drawDateToplist
var drawCurGraph = drawToplistGraph

var reload = "%(reload)s"
var savecustomreport = 'PL_customreports.rpy?customreport=' + escape(reload)
var first = "%(first)s"
var next = "%(next)s"
var prev = "%(prev)s"
var last = "%(last)s"
var prevPath = "%(prevPath)s"

var toplistLabel = 'init'
var toplistHost = ''
var menu = '0'
var speedPopdown = 0

function reset_cur_date() {
	cur_year = %(year_no)s
	cur_month = %(month_no)s
	cur_day = %(day_no)s
	}

function setYear(year) {
	cur_year = year
	}

function setMonth(month) {
	cur_month = month-1
	}

function setDay(day) {
	cur_day = day-1
	}

function drawDateToplist(charttype, output) {
	if (charttype == 3) {
		document.toplist.from.value = "%(cur_week_start)s"
		document.toplist.to.value = "%(cur_week_stop)s"
		cur_year = -1
	}

	document.toplist.year.value = cur_year
	document.toplist.month.value = cur_month
	document.toplist.day.value = cur_day
	document.toplist.charttype.value = charttype
	document.toplist.graph.value = "0"
	drawToplistGraph(output)
	}

function toplistLabelMouseDown(label, node, menu) {
	toplistLabel = label
	toplistNode = unescape(node);
	contextMenu="contextMenu"+menu;
	debugContextMenu = contextMenu
	document.speedchart.xLabel.value = label
	document.speedchart.IP.value = unescape(node)
	// alert(contextMenu + ', ' + label + ', ' + node + '!')
	}

function setMenu(menu) {
	contextMenu="contextMenu"+menu;
	}


function setToplistChartGraph(graph, output) {

	document.toplist.graph.value = graph
	drawToplistGraph(output)
	}

function setChartPath(path, output) {

	document.toplist.group.value = path
	drawToplistGraph(output)
	}

function monthToplistGraph(month, output) {

	document.toplist.month.value = month
	document.toplist.graph.value = "0"
	drawToplistGraph(output)
	}

function dayToplistGraph(day, output) {

	document.toplist.charttype.value = "2"
	document.toplist.day.value = day
	document.toplist.graph.value = "0"
	drawToplistGraph(output)
	}

function exportData(output) {
	
	drawToplistGraph(output)
	}

function drawToplistGraph(output) {

	popdown ()
	document.toplist.output.value = output
	document.toplist.submit()
	}

function setLiveLineGraph(graphNode) {
	liveLineGraphId = graphNode
	}

function liveLineGraph (graphNode) {
	drawLiveLineGraph (graphNode, '')
	}

function liveLineGraphInOwnWin () {
	drawLiveLineGraph (liveLineGraphId, liveLineGraphId)
	}

function drawLiveLineGraph (graphNode, target) {
	fileName = 'PL2_SpeedGraph.rpy?chart=11&IP='+graphNode + '&img=2&toolbox=0'
	winName = 'livestat_%(PL_address)s' + target
	option = 'menubar=no, width=800,height=360, titlebar=no'
	var liveLinePopUp = window.open(fileName, winName, 'menubar=no, width=800, height=360, titlebar=no');
	liveLinePopUp.focus()
	}

function webStat()  {
	var webstatPopUp = window.open('PL2_wc.rpy', 'webStat_%(PL_address)s', 'menubar=no, width=484, height=360, titlebar=no');
	webstatPopUp.focus()
	}

function surftoNode() {
	url = 'http://' + document.speedchart.IP.value
	var surfTo = window.open(url,'xxxx');
	surfTo.focus()
	}

function popMenuPrint() {
	closeAllMenus ()
	printit ()
	}

function printit(){
if (window.print) {
	window.print() ;
} else {
	var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>;' 
	document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
	WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";
}
}

function callPython(site, target) {
	var myPopUp = window.open(site, target);
}

reset_cur_date()

</script>

</head>  sZ   
<body bgcolor="#e0e0e0" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
		sÛ  

<script>
var custom = 1
var customreport = "%(customreport)s"
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 = 0
var input_Hosts = 1
var hostsInGraph = %(hostsInGraph)s

</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>	

			s3   <div style="top:32px; left:0px; position:relative">s   Adding image: tmp/tmpchart/s   <img src="tmp/tmpchart/s|   " border="0" usemap="#map1" target="speed"><map name="map1" onmouseover = "javascript:toplistLabelMouseDown('/', '/', '0')">s   <div/>s  

<form accept-charset = "iso-8859-1" name ="speedchart" metod="post" encType="multipart/form-data"  %(speedFile2Call)s" target="speed">
  <input type="hidden" name = "charttype" value="%(Chart_Type)s">
  <input type="hidden" name = "chart" value=" %(chart)s">
  <input type="hidden" name = "from" value="%(cur_start_time)s">
  <input type="hidden" name = "to" value="%(cur_end_time)s">
  <input type="hidden" name = "img" value="2">
  <input type="hidden" name = "stop" value="%(stop)s">
  <input type="hidden" name = "time" value="%(curtime)s">

  <input type="hidden" name = "IP" value="%(IP_addr)s">
  <!--
  <input type="hidden" name = "hostname" value="%(hostname)s">
  -->
  <input type="hidden" name = "output" value="%(output)s">
  <input type="hidden" name = "group" value="%(group)s">
  <input type="hidden" name = "graph" value="%(Graph)s">
  <input type="hidden" name = "stat" value="%(stat)s">
  <input type="hidden" name = "xLabel" value="">
  <input type="hidden" name = "time" value="%(today)s">
</form>

<form name="toplist" metod="post" encType="multipart/form-data" action="%(toplistFile2Call)s" target="_self">
  <input type="hidden" name = "year" value="%(year_no)s">
  <input type="hidden" name = "month" value="%(month_no)s">
  <input type="hidden" name = "day" value="%(day_no)s">
  <input type="hidden" name = "from" value="%(cur_start_time)s">
  <input type="hidden" name = "to" value="%(cur_end_time)s">
  <input type="hidden" name = "img" value="%(img)s">
  <input type="hidden" name = "hostsingraph" value="%(hostsInGraph)s">
  <input type="hidden" name = "charttype" value="%(Chart_Type)s">
  <input type="hidden" name = "graph" value="%(Graph)s">
  <input type="hidden" name = "stat" value="%(stat)s">
  <input type="hidden" name = "stop" value="%(stop)s">
  <input type="hidden" name = "refresh" value="%(refresh)s">
  <input type="hidden" name = "output" value="%(output)s">
  <input type="hidden" name = "group" value="%(group)s">
  <input type="hidden" name = "title" value="%(winTitle)s">
</form>

</body>
</html>
		s   return HTML to twisted s    bytesi  i  sí  
<?xml version="1.0"?>

<html>
 <head>
  <meta content="brinet ab" name="author" />
  <title>WebStatistics Export</title>
  <link href="../statistics.css" type="text/css" rel="STYLESHEET" />

  <script language="JavaScript">
  
   function PL2_saveexport2()  {
     window.location.href = "export/toplistexport.zip";
     setTimeout("self.close()",1000);
   }

  function PL2_saveexport()  {
      var myPopUp = null
      var myPopUp = window.open("export/toplistexport.zip", "saveexport", "menubar=no width=100 height=100 titlebar=no");
      if (myPopUp != null) {
         myPopUp.focus()
        self.opener = ""
        
        setTimeout("self.close()",1000);
      }
  }

  </script>
 </head>
 <body bgcolor="#e0e0e0" onload='PL2_saveexport2()' >
  Exporting files. <br><br><br>
  <!-- <form onSubmit="PL2_saveexport()" name="saveexport" metod="post" encType="multipart/form-data" action = JAVASCRIPT:PL2_saveexport() >
  <input type="submit"  value="Save File">
  </form> -->
 </body>
</html>
		s   Twisted export outputs   Content-Types   application/downloads   Content-Dispositions   attachment;filename="s   "s   Send the file to webbrowsers2   Output the exportfile as "application/is-download"s&   Content-type: application/is-download
(  s   oss   PL_customreportss   loadReportss   customreports   PL2_inis   PL2_address1s	   popUpMenus   toolBoxs   debugMsgs	   debugHosts	   drawgraphs	   GraphParas   toplistCharts   hostnames
   IP_addresss   Nones   environs   cgis   FieldStorages   querys   strs   ints   values   stats
   Hosts_stats   winTitles   reverseLookups   default_reverseLookups   printhostnames   default_printhostnames	   chartNames   mapFiles   Charts	   Bar_charts
   Chart_Types   Month_charts   Graphs   customGraphs	   from_dates   times   strftimes	   localtimes   to_dates   hourNos   dayNos   monthNos   yearNos   forces   stops   PL2s   imgs   outputs   toolboxs   topboxs   refreshs   default_refreshtimes   sizes   hostsInGraphs   hosts   splits	   host_infos   lens   reprs   PL_miscs   removeDataBeforeSlashs   IP_adrs   IP_miscs   dottedQuadToNums   groupIds   VBS_stats   PL2_nodePaths   PL2_statPaths	   prev_paths	   netObjects   plotBgColors   plotAltBgColors   plotEdgeColors   plothGridColors   plotvGridColors   topboxBgColors   chartBgColors   chartEdgeBgColors   titleBgColors   titleTextColors
   todayGraphs   yesterdayGraphs	   Day_charts   curMonthGraphs   prevMonthGraphs   monthbackGraphs   thisWeekGraphs   prevWeekGraphs   weekbackGraphs
   Week_charts   thenames   numIPs   sockets   gethostbyaddrs   todays	   yesterdays   tomorrows   weekbacks   daybackGraphs   curYearGraphs   prevYearGraphs   yearbackGraphs
   Year_charts   stat_start_times   stat_end_times
   Hour_charts   mktimes   strptimes   time_tmps
   date_todays   calendars   weekdays   cur_weekdays   cur_weekday_starts   prev_year_starts   prev_year_stops   gmtimes   timezones	   from_years
   from_months   to_months   to_years   file2recalls	   file2calls   twisteds   speedFile2Calls   toplistFile2Calls   varss   topListBackgroundImages   charts
   chart_types
   PL_Toplists   toplistImages   chartURLs   imageMaps	   graphDatas   export_datas   opens   fs   reads   images   closes   PL_paths   seps	   chartfiles
   outputfiles   writes   msvcrts   setmodes   syss   stdouts   filenos   O_BINARYs   today_start_times   cur_hour_starts   cur_hour_stops   prev_hour_starts   prev_hour_stops   next_hour_starts   next_hour_stops   first_hour_in_years   first_hour_starts   first_hour_stops   last_hour_starts   last_hour_stops   cur_day_starts   cur_day_stops   prev_day_starts   prev_day_stops   next_day_starts   next_day_stops   first_day_in_years   first_day_starts   first_day_stops   last_day_starts   last_day_stops   cur_week_starts   cur_week_stops   prev_week_starts   prev_week_stops   next_week_starts   next_week_stops   first_weekdays   first_weekday_starts   first_week_starts   first_week_stops   last_weekdays   last_weekday_starts   last_week_starts   last_week_stops   cur_month_starts   cur_month_stops   prev_month_starts   prev_month_stops   next_month_starts   next_month_stops   first_month_starts   first_month_stops   last_month_starts   last_month_stops   cur_year_starts   cur_year_stops   next_year_starts   next_year_stops   first_year_starts   first_year_stops   last_year_starts   last_year_stops	   time_masks   cur_start_times   cur_end_times   prev_start_times   prev_end_times   next_start_times   next_end_times   first_start_times   first_end_times   last_start_times   last_end_times
   escapeTexts	   commonCmds   curtimes   rfinds   firsts   prevs   nexts   lasts
   Line_charts   speeds   datas	   Pie_charts   pies   hours   days   weeks   months   years   toplists   prevPaths   reloads	   TCP_charts   areas	   exportCSVs	   CSVExports	   exportXMLs	   XMLExports   buttons   buttonss   target1s   target2s   PL_imagepaths   ranges   xs	   translates   strings	   maketranss
   PL_addresss   HTML_templates   updates   HTMLs   developments   clickableLabelss   prioritys   PL2_BGP_statPaths   bgps   bgp1s   bgp2s   IP_addrs   year_nos   month_nos   day_nos   groups   PL2_javascripts   script1s   script2s   PL2_menus   menuss   exports   twisted_requests	   setHeaders   paths
   exportfile(·   s   file2recalls
   IP_addresss   environs   twisted_requests   toplistCharts	   commonCmds   prev_day_stops   yearNos   months   monthNos   querys   last_end_times   cur_start_times   msvcrts   last_day_stops   groups
   from_months   imgs   cur_week_starts   toplistFile2Calls   first_hour_starts   next_week_stops   last_weekday_starts   HTMLs   last_day_starts   first_hour_in_years   prev_start_times   images   IP_addrs   last_week_stops   stops   next_year_stops   nexts   to_months   toolboxs   cur_hour_stops   days   time_tmps   month_nos   first_day_in_years   stat_end_times   buttons   refreshs   reloads   target1s   curtimes   xs   next_day_stops   numIPs   cur_weekday_starts   prev_year_stops   IP_adrs   forces   today_start_times   first_month_stops   cur_weekdays   prev_hour_starts   years   cur_year_stops   next_day_starts   hostsInGraphs
   date_todays   PL2_address1s   first_start_times   first_week_stops	   file2calls	   debugHosts   last_weekdays   last_hour_stops   cur_month_stops   imageMaps   speedFile2Calls   speeds   first_year_starts   bgp2s   next_start_times   charts   hourNos   hosts   toplists   outputs   target2s   toolBoxs   last_month_stops   PL2_menus   fs   lasts   winTitles   prevPaths   prev_week_stops   oss   next_month_stops   firsts   printhostnames   first_day_stops   Graphs	   time_masks   twisteds   next_year_starts   to_dates   dayNos   customreports   tomorrows   sizes	   chartNames   buttonss   reverseLookups   areas	   host_infos   next_hour_stops	   graphDatas   first_year_stops   first_month_starts   prioritys   prev_week_starts	   from_dates   developments	   prev_paths   last_start_times   prev_end_times   prevs   todays
   PL_addresss   prev_hour_stops   first_weekday_starts	   popUpMenus
   Chart_Types   PL2_statPaths   next_hour_starts   HTML_templates   cur_day_starts   weeks	   CSVExports   hours   next_month_starts   export_datas   mapFiles   exports   prev_day_starts   last_hour_starts   first_end_times   cur_month_starts   day_nos	   XMLExports   pies   last_year_starts   prev_year_starts   topboxs   cur_day_stops   topListBackgroundImages
   exportfiles   bgps   last_month_starts   chartURLs   first_week_starts   hostnames   bgp1s   Charts   datas
   outputfiles	   from_years   stat_start_times   year_nos   prev_month_stops   stats   cur_end_times   weekbacks	   yesterdays   prev_month_starts   syss   to_years	   chartfiles   first_hour_stops   next_end_times   thenames   cur_hour_starts   next_week_starts   last_year_stops   last_week_starts   cur_year_starts   cur_week_stops   first_weekdays   first_day_start(    (    s   C:\Python\PL\PL_ToplistGraph.pys   toplistGraph%   sX   		
		
 
 




%)











+	
//	 
		
	 	


C
*' (











'####<'#'##'N<.<9,#48<'

&&"#"-,



F@>																A


* 	"####<#####"#<####'####'##




R!
&
 ^^^^	 PPPTTTJJI„‘^ll
%%%%%%%%%%%%%%%% !
		
&&



		"¤
(	
-
$&


( 	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\PL_ToplistGraph.pys
   escapeTextå  s    s   __main__(   s   os.paths   oss   syss   PL1_inis   PL2_inis   PL_debugs   PL_consts   sockets   calendars   cgis   times   strings   strptimes
   PL_Toplists	   drawgraphs   IP_miscs   PL_miscs   PL_customreportss   PL2_javascripts   paths   splits   argvs   Nones   environs   toplistGraphs
   escapeTexts   __name__(   s   cgis   IP_miscs   PL2_inis   PL_customreportss   sockets	   drawgraphs   toplistGraphs   strptimes
   PL_Toplists   PL2_javascripts   syss   times   PL_miscs   calendars   oss
   escapeTexts   string(    (    s   C:\Python\PL\PL_ToplistGraph.pys   ?   s6   															/ÿ ÿ ÿ ÿ ÿ Å	