HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyc
ó
ÛXc@@sddlmZddlZddlZddlZddlmZejZdZdZ	dZ
dZd	Zd
Z
dZdZd
„Zd„ZegZdefd„ƒYZdefd„ƒYZd„Zdd„Zd„Zd„Zd„Zdd„Zd„Zd„ZdS(i(tabsolute_importNi(tutiliÈi0ii‘i“i”i•iôcC@s|dgkp||kS(sÒCheck if username is a member of userlist.

    If userlist has a single '*' member, all users are considered members.
    Can be overridden by extensions to provide more complex authorization
    schemes.
    t*((tuitusernametuserlist((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pytismembersc
C@sá|jjdƒ}|jddƒ}|r[|sIt|jj||ƒr[ttdƒ‚n|jddƒ}|ržt|jj||ƒržttdƒ‚n|dkrÆ|jrÆttdƒ‚n|dksÞ|dkrâdS|jd	d
kr
d}tt
|ƒ‚n|jjdƒ}|jdd
tƒrR|dkrRtt
dƒ‚n|jddƒ}|r›|s‰t|jj||ƒr›ttdƒ‚n|jddƒ}	|	oÈt|jj||	ƒsÝttdƒ‚ndS(sšCheck permission for operation based on request data (including
    authentication info). Return if op allowed, else raise an ErrorResponse
    exception.tREMOTE_USERtwebt	deny_readsread not authorizedt
allow_readtpullspull not authorizedNtREQUEST_METHODtPOSTspush requires POST requestswsgi.url_schemetpush_sslthttpssssl requiredt	deny_pushspush not authorizedt
allow_push(tenvtgett
configlistRtrepoRt
ErrorResponsetHTTP_UNAUTHORIZEDt	allowpulltNonetHTTP_METHOD_NOT_ALLOWEDt
configbooltTruetHTTP_FORBIDDEN(
thgwebtreqtoptuserR	R
tmsgtschemetdenytallow((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt
checkauthz&s.%!%RcB@seZdgd„ZRS(cC@sA|dkrt|ƒ}ntj||ƒ||_||_dS(N(Rt_statusmessaget	Exceptiont__init__tcodetheaders(tselfR*tmessageR+((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyR)Xs
	N(t__name__t
__module__RR)(((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyRWstcontinuereadercB@s&eZd„Zdd„Zd„ZRS(cC@s||_||_t|_dS(N(tft_writetFalset	continued(R,R1twrite((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyR)`s		iÿÿÿÿcC@s2|js"t|_|jdƒn|jj|ƒS(NsHTTP/1.1 100 Continue

(R4RR2R1tread(R,tamt((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyR6es		cC@s&|dkrt|j|ƒSt‚dS(Ntclosetreadlinet	readlinest__iter__(R8R9R:R;(tgetattrR1tAttributeError(R,tattr((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt__getattr__ks(R.R/R)R6R?(((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyR0_s	cC@s tjj}|j|dƒdS(NtErrors
Unknown errori(R@s
Unknown error(t
httpservertbasehttprequesthandlert	responsesR(R*RC((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyR'pscC@sd||pt|ƒfS(Ns%d %s(R'(R*R-((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt
statusmessagetscC@sEtjj||ƒ}tjj|ƒr4tj|ƒStj|ƒSdS(s%stat fn if it exists, spath otherwiseN(tostpathtjointexistststat(tspathtfntcl_path((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pytget_statws
cC@st|dƒjS(Ns
00changelog.i(RMtst_mtime(RJ((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt	get_mtimescC@s¦|jdƒ}xZ|D]R}|dtjtjfksdtj|ksdtjdk	rtj|krdSqWtjj|Œ}t	|t
ƒr™|g}nx9|D]1}tjj||ƒ}tjj|ƒr Pq q Wyetj|ƒt
j|ƒdpûd}t|dƒ}	|	jƒ}
|	jƒ|jt|d|
ƒWnetk
r\ttdƒ‚nFtk
r¡}|jtjkrŒttƒ‚q¢tt|jƒ‚nXdS(	s+return a file inside directory with guessed Content-Type header

    fname always uses '/' as directory separator and isn't allowed to
    contain unusual path components.
    Content-Type is guessed using the mimetypes module.
    Return an empty string if fname is illegal or file not found.

    t/tNis
text/plaintrbtbodysillegal filename(tsplitREtcurdirtpardirtseptaltsepRRFRGt
isinstancetstrRHRIt	mimetypest
guess_typetopenR6R8trespondtHTTP_OKt	TypeErrorRtHTTP_SERVER_ERRORtOSErrorterrnotENOENTtHTTP_NOT_FOUNDtstrerror(t	directorytfnameRtpartstparttfpathtdRFtcttfptdataterr((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt
staticfile‚s2	
-



cc@s€|r/|r/|||}|||d@}nd}d}x>tr{|V|d7}|r>||kr>d|}d}q>q>WdS(s5count parity of horizontal stripes for easier readingiiN(R(tstripecounttoffsettcounttparity((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt	paritygen¦s	

cC@s4|ddƒp3|ddƒp3tjjdƒp3dS(s¾Return repo contact information or empty string.

    web.contact is the primary source, but if that is not set, try
    ui.username or $EMAIL as a fallback to display something useful.
    RtcontactRRtEMAILRQ(REtenvironR(tconfig((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pytget_contact¶scC@sNd|j}|jjdƒ|kr4ttƒ‚n|jjd|fƒdS(NsW/"%s"tHTTP_IF_NONE_MATCHtETag(tmtimeRRRtHTTP_NOT_MODIFIEDR+tappend(RRttag((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pytcachingÀs
( t
__future__RRcR[RERQRRAR_RtHTTP_BAD_REQUESTRRReRRaRR&t	permhooksR(RtobjectR0R'RRDRMRORqRvR{R‚(((s:/usr/lib/python2.7/dist-packages/mercurial/hgweb/common.pyt<module>	s4				.					$