;ò
·ºÏBc           @   s  d  k  l Z d k l Z d k l 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 e i ƒ  Z d a d a d „  Z d d d d d „ Z d „  Z e e
 i d	 „ Z d
 „  Z d e f d „  ƒ  YZ e ƒ  Z d S(   (   s   Resource(   s   server(   s   StringIONi    s    c         C   sD   t  |  i ƒ } t i o d Gt  |  i ƒ GHn d } | St ƒ  Sd  S(   Ns0   ************** NotLogedIn ***************** uri=sY  
<?xml version="1.0"?>

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

  <script language="JavaScript">
  function PL2_statlogin()  {
      var myPopUp = null
      var myPopUp = window.open('statlogin.rpy', 'login', 'menubar=no, width=390, height=250, titlebar=no');
      if (myPopUp != null) {
         myPopUp.focus()
      }
  }
    function login() {
        document.startlogin.action = "statlogin.rpy"
        document.startlogin.target = "login"
        document.startlogin.submit()
    }

  </script>
 </head>
 <body bgcolor="#e0e0e0" onload='PL2_statlogin()' >
  <form onSubmit="PL2_statlogin()" name="startlogin" metod="post" encType="multipart/form-data" >
  <input type="submit"  value="Login">
  </form>
 </body>
</html>
	(   s   strs   requests   uris   redirect_uris   PL2_inis   developments   HTMLs	   statLogin(   s   requests   HTMLs   redirect_uri(    (    s   C:\Python\PL\myresource.pys
   notLogedIn   s    
!c         C   s›   d t  ƒ  } | o | d 7} d } n+ | d 7} t i d j o
 d } n d } | d t  ƒ  7} |  o | d 7} n | d	 7} | d
 t  ƒ  7} | Sd  S(   Ns°  
<?xml version="1.0"?>

<html>
 <head>
  <meta content="brinet ab" name="author" />
  <title>WebStatistics Login</title>
  <link href="../statistics.css" type="text/css" rel="STYLESHEET" />
  <style type="text/css">
.formDescription, .formError {
    /* fixme - inherit */
    font-size: smaller;
    font-family: arial;
    margin-bottom: 1em;
}

.formDescription {
    color: green;
}

.formError {
    color: red;
}
</style>
<script language="JavaScript">

  function submitLogin()  {
    document.login.action = "perspective-init";
    document.login.action = "statloginaspluser.rpy";
    alert('Hupp ' + document.login.action);
    document.login.submit();
    }

</script>
 </head> s9   <body bgcolor="#e0e0e0" onload="document.login.submit()">s   perspective-inits8   <body bgcolor="#e0e0e0" onload="login.username.focus()">i   s   statloginaspluser.rpys  
  <IMG SRC="../images/loginlogo.gif" />
  <h3>Webstatistics Login
  </h3>
  <div class="shell">
   <div class="loginform">
    <form name="login" action="%(action)s" method="post" enctype="multipart/form-data">
     <table border="0">
      <tr>
       <td align="right" valign="top">Username:</td>
       <td valign="top"><input type="text" name="username" value="%(username)s" size="50" />
        <div class="formDescription">Your user name.
        </div></td>
      </tr>
      <tr>
       <td align="right" valign="top">Password:</td>
       <td valign="top"><input type="password" name="password" value="%(password)s" size="50" /> sb   
		<div class="formError">Login failed, please enter correct username and password.
		</div></td> s.   
		<div class="formDescription">Your password.s  
        </div></td>
      </tr>
      <tr>
       <td colspan="2" valign="top">
        <div><input type="submit" value="Login" /> 
        </div></td>
      </tr>
      <tr>
       <td colspan="2"></td>
      </tr>
     </table>
    </form>
   </div>
  </div>
 </body>
</html>
	(   s   varss   HTMLs
   autoSubmits   actions   PL2_inis   PL2_useraccounts   loginErr(   s   loginErrs   usernames   passwords
   autoSubmits   HTMLs   action(    (    s   C:\Python\PL\myresource.pys	   statLogin9   s    $




c          C   s0   t  i i t i d d ƒ d ƒ }  d t ƒ  Sd  S(   Ns   .:-s   ___s    sz  
<html>
<head>
<script language="JavaScript">

function callLogout() {

	var channelStatPopUp = window.open('#', 'channelStat_%(PL_address)s', 'menubar=no, width=0, height=0, titlebar=no');
	if (channelStatPopUp != null) {
		channelStatPopUp.close()
	}

	var webstatPopUp = window.open('#', 'webStat_%(PL_address)s', 'menubar=no, width=0, height=0, titlebar=no');
	if (webstatPopUp != null) {
		webstatPopUp.close()
	}


	window.close
	loginwin = window.open('perspective-destroy', '_parent')
	loginwin.focus()
}
</script>

<title>Logout</title>
<style type="text/css">
</style>
</head>
<body onload ="callLogout()">
</body>
</html>
	(   s   PL2_inis   PL2_address1s	   translates   strings	   maketranss
   PL_addresss   vars(   s
   PL_address(    (    s   C:\Python\PL\myresource.pys
   statLogout—   s    ! c         C   sB  |  i GH|  i GH| GH| GHt i i GH|  i }	 t	 i
 t |	 ƒ d t i ƒy t |	 d d ƒ } Wn d } n Xy t |	 d d ƒ } Wn d } n Xd  k } yO | i ƒ  } | i d t i d | d | ƒ | i d j o
 d } n d } Wn d } n Xt } | o t d	 d ƒ Sn d
 } d }
 d t ƒ  } | Sd  S(   Ns   hosts   usernamei    s    s   passwords   addresss   useri   s   loginErrs   PL_users   fK9sp03Asx  
<?xml version="1.0"?>

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

 '<body bgcolor="#e0e0e0" onload="document.loginAsPLUser.submit()">'

  <IMG SRC="../images/loginlogo.gif" />
  <h3>Webstatistics Login
  </h3>

    <form name="loginAsPLUser" action="perspective-init" method="post" enctype="multipart/form-data">
      <input type="hidden" name="username" value="%(username)s" size="50" />
      <input type="hidden" name="password" value="%(password)s" size="50" />
    </form>
 </body>
</html>
	(   s   requests   paths   argss
   IP_addresss   environs   webenvs   guardResources   resources   querys   PL_debugs   debugMsgs   strs   PL2_inis	   debugHosts   PL_usernames   PL_passwords   PL2_PLDBs   pls   connects	   auth_addrs	   connecteds	   validUsers   Nones	   statLogins   usernames   passwords   varss   HTML(   s   requests
   IP_addresss   environs   usernames   PL_usernames	   validUsers   PL_passwords   HTMLs   PL2_PLDBs   querys   passwords   pl(    (    s   C:\Python\PL\myresource.pys   loginAsPLuser¾   s@     	

	


c          C   s   d t  d }  |  Sd  S(   Nsj   <html>
<head>
<script language="JavaScript">
 
function calljustLogedin() {

    opener.location.href = ' sw    ';
    window.close()
}
</script>

<title>Loged in</title>

</head>
<body onload ="calljustLogedin()">
</body>
</html>(   s   redirect_uris   HTML(   s   HTML(    (    s   C:\Python\PL\myresource.pys   justlogedin$  s    s
   MyResourcec           B   s5   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   t  i o	 d GHn |  Sd  S(   Ns"   getChild *************************(   s   PL2_inis   developments   self(   s   selfs   paths   request(    (    s   C:\Python\PL\myresource.pys   getChild<  s    
	c         C   sO   t  i o	 d GHn d k l } | i |  i |  i ƒ  |  i |  i	 |  i
 ƒ Sd  S(   Ns*   directoryListing *************************(   s   dirlist(   s   PL2_inis   developments   twisted.web.wovens   dirlists   DirectoryListers   selfs   paths	   listNamess   contentTypess   contentEncodingss   defaultType(   s   selfs   dirlist(    (    s   C:\Python\PL\myresource.pys   directoryListingA  s    
		c   "      C   s[  d G| i ƒ  GHd G| i GH| i t i ƒ } t d 7a t i	 oÐ d t
 | i ƒ GHd t
 | i ƒ  ƒ GHd t
 | i ƒ  ƒ GHd t
 | i ƒ GHd t
 | i ƒ GHd	 t
 | i ƒ GHd
 t
 | i ƒ GHd t
 t i i | ƒ ƒ GHd t
 | i ƒ GHd t
 | i ƒ GHd G| GHn t i | i ƒ  d ƒ d }  h  d d <d | i <d | i <d | i <d d <d |  <d t
 | i ƒ  d ƒ <d | i <d t i <} d GH| i ƒ  } | t! j	 o | | d <d G| GHn | i" ƒ  } | t! j	 o | | d  <d! G| GHn t i$ | i d" ƒ } | d# j oŸ t i	 o d$ G| GHn | i | d } | d% <t i	 o d& G| d% GHn d' | j o
 g  } qÙg  i( } | i d( ƒ D] } | t+ i, | ƒ ƒ q£~ } n d | d% <g  } xi | i ƒ  i- ƒ  D]U \ } } t i0 t i1 | d) d* ƒ ƒ } | d+ d, f j o d- | } n | | | <qìWx< t3 i4 i- ƒ  D]+ \ } } | i7 | ƒ o | | | <qUqUW| o\ | i d. j o t8 ƒ  Sn | i d/ j o t9 | | | ƒ SqWt
 | i ƒ a: t; | ƒ Snpt i	 o$ d0 G| i t i ƒ i< GH| i GHn | i d1 j o) d  k= } | i> | i | | d2 | ƒSn | i d3 j o) d  k? } | i@ | i | | d2 | ƒSn | i d4 j o# d  kA } | iB | i | | ƒ Sn | i d5 j o, d  kC } tD iE | iF | i | | ƒ ƒ Sn | i d6 j o, d  kG } tD iE | iF | i | | ƒ ƒ Sn | i d7 j o, d  kH } tD iE | iF | i | | ƒ ƒ Sn | i d8 j oP t iI o# d  kJ }! |! iI | i | | ƒ SqÏd  kK }	 |	 iI | i | | ƒ Sn | i d9 j o# d  kL } | iM | i | | ƒ Sn | i d: j o- d  kN } t d 8a | iO | i | | ƒ Sn | i d; d< g j o# d  kP } | iQ | i | | ƒ Sn | i d/ j o t9 | | | ƒ Sn | i d. j o t8 ƒ  Sn | i d= j o tR ƒ  Sn | i d> j o tS ƒ  Sn | i d? j o# d  kT } | iU | i | | ƒ Sn | i d@ j o, d  kV } tD iE | iF | i | | ƒ ƒ Sn | i dA j o, d  kW } tD iE | iF | i | | ƒ ƒ Sn | i dB j o, d  kX }
 tD iE |
 iB | i | | ƒ ƒ Sn | i dC j o) d  kY } | iZ | i | | d2 | ƒSn | i dD j o# d  k[ } | i\ | i | | ƒ Sn dE dF | i dF dG Sd  S(H   Ns   All headers s   Outgoing header i   s   method=	s   prePathURL=	s	   URLPath=	s	   prepath=	s
   postpath=	s   path=	s   uri=	s	   session=	s   args=	s
   setupURL=	s   auth=s   :i    s   GATEWAY_INTERFACEs   CGI/1.1s	   PATH_INFOs   REQUEST_METHODs   REQUEST_URIs   SCRIPT_NAMEs    s   SERVER_NAMEs   SERVER_PORTi   s   SERVER_PROTOCOLs   SERVER_SOFTWAREs   search for clients   REMOTE_HOSTs   clients   REMOTE_ADDRs   ips   ?iÿÿÿÿs   qindex=s   QUERY_STRINGs   QUERY_STRING=s   =s   +s   -s   _s   content-types   content-lengths   HTTP_s   /statlogin.rpys   /statloginaspluser.rpys   Loged in as s   /PL2_SpeedGraph.rpys   twisted_requests   /PL2_ToplistGraph.rpys   /PL2_test.rpys   /PL2_control1.rpys   /PL2_browse.rpys   /PL2_VBS.rpys   /PL2_SelectHosts.rpys   /PL2_SelectToplist.rpys   /PL2_wc.rpys   /s   /PL2_Stat.rpys   /statlogout.rpys   /PL2_justlogedin.rpys   /PL2_saveexport.rpys   /PL2_conf.rpys   /PL2_saveconf.rpys   /PL2_config.rpys   /PL2_Xlate.rpys   /PL_customreports.rpys   <html>s   's    Nothing to do</html>(]   s   requests   getAllHeaderss   headerss   getComponents   PL2_simpleguards   Authenticateds   auths   cous   PL2_inis   developments   strs   methods
   prePathURLs   URLPaths   prepaths   postpaths   paths   uris   servers   Requests
   getSessions   argss   setupSessionURLs   strings   splits   getRequestHostnames
   serverNames   getHosts   clientprotos   versions   envs	   getClients   clients   Nones   getClientIPs   ips   finds   qindexs   qss   qargss   appends   _[1]s   xs   urllibs   unquotes   itemss   titles   headers   uppers   replaces   envnames   oss   environs   keys   values   has_keys	   statLogins   loginAsPLusers   redirect_uris
   notLogedIns   names   PL_SpeedGraphs
   SpeedGraphs   PL_ToplistGraphs   toplistGraphs   PL2_tests   tests   PL_control1s   PL2_languages   swapLanguages   mains	   PL_browses   PL_VBSs   selectHostss   PL_SelectHostss   PL_SelectHostsEmptys   PL_SelectToplists   selectToplists   PL_wcs   wcs   PL2_Stats   PL2_stats
   statLogouts   justlogedins   PL2_saveexports   saveCSVs   PL_confs   PL_saveconfs
   PL2_configs	   PL2_Xlates   xlates   PL_customreportss   customreports("   s   selfs   requests   PL_VBSs   PL_wcs   ips   PL2_saveexports   PL_control1s   headers   qargss   PL_SelectHostsEmptys
   PL2_configs   PL_customreportss   titles   envs   PL2_tests   PL_saveconfs   PL_SelectToplists   auths	   PL_browses   envnames   keys   PL_ToplistGraphs   qindexs   qss	   PL2_Xlates   PL_SpeedGraphs   values   _[1]s   clients   PL_confs   PL2_Stats   xs
   serverNames   PL_SelectHosts(    (    s   C:\Python\PL\myresource.pys
   render_GETM  sô     

v




=
   
	 	 		#	#	#
				
			#	#	#	 	c         C   s   |  i | ƒ Sd Sd  S(   Ns   <html>Hello, world  POST</html>(   s   selfs
   render_GETs   request(   s   selfs   request(    (    s   C:\Python\PL\myresource.pys   render_POST  s    c         C   s   d Sd  S(   Ns   <html>Hello, world  HEAD</html>(    (   s   selfs   request(    (    s   C:\Python\PL\myresource.pys   render_HEAD
  s    (   s   __name__s
   __module__s   getChilds   directoryListings
   render_GETs   render_POSTs   render_HEAD(    (    (    s   C:\Python\PL\myresource.pys
   MyResource:  s
   			·	(   s   twisted.web.resources   Resources   twisted.webs   servers   StringIOs   PL2_simpleguards   PL2_inis   PL_debugs   times   strings   oss   cgis   urllibs   statwebs   webenvs   PL2_languages
   start_times   cous   redirect_uris
   notLogedIns	   statLogins
   statLogouts   Nones   environs   loginAsPLusers   justlogedins
   MyResources   resource(   s
   notLogedIns   servers
   MyResources   webenvs   resources   PL_debugs   urllibs   loginAsPLusers   statwebs   cgis   Resources   strings   justlogedins
   start_times   PL2_simpleguards
   statLogouts   PL2_inis	   statLogins   StringIOs   PL2_languages   times   os(    (    s   C:\Python\PL\myresource.pys   ?   s$   			-		*^	'f	Ó