Viewing File: /usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/listinfo.pyc

ó
)¿Úhc@sådZddlZddlZddlZddlmZddlmZddlmZddlmZddlm	Z	ddl
Tdd	lmZe	j
Z
e	jejƒd
„Zdd„Zd
„ZedkráeƒndS(sAProduce listinfo page, primary web entry-point to mailing lists.
iÿÿÿÿN(tmm_cfg(tUtils(tMailList(tErrors(ti18n(t*(tsyslogcCsbtjƒ}|stƒdS|djƒ}ytj|ddƒ}WnNtjk
r–}tj|ƒ}dGHttdƒƒt	dd||ƒdSXt
jƒ}y|jdƒ}Wnpt
k
r(tƒ}|jtjƒ|jtdtd	ƒƒƒ|jttd
ƒƒƒdGH|jƒGHdSXtj|ƒsD|j}ntj|ƒt||ƒdS(NitlocksStatus: 404 Not Founds&No such list <em>%(safelistname)s</em>terrorslistinfo: No such list "%s": %stlanguageitErrorsInvalid options to CGI script.sStatus: 400 Bad Request(Rt
GetPathPiecestlistinfo_overviewtlowerRRtMMListErrortwebsafet_RtcgitFieldStoragetgetfirstt	TypeErrortDocumenttset_languageRtDEFAULT_SERVER_LANGUAGEtAddItemtHeadertBoldtFormatt
IsLanguagetpreferred_languageRt
list_listinfo(tpartstlistnametmlisttetsafelistnametcgidataR	tdoc((s:/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/listinfo.pytmain)s8
	
tc	CsÚtjƒ}tƒ}|jtjƒtdƒ}|j|ƒtddddƒ}|j	t
td|ƒƒgƒ|j|j
ƒddddtjƒg}tjƒ}|jƒxÅ|D]½}ytj|d	dƒ}Wntjk
ròqºnX|jrºtjrC|jjd
|ƒdkrC|jjd|ƒdkrCqºqw|j|jd
ƒ|jtj|jƒƒfƒqºqºW|rœt|ddddƒ}	nttdƒddƒ}	|	g}
ttjtdƒƒj ƒ}|s÷|
j!tdƒƒn|
jtdƒƒ|rtdƒpd}tj"ƒ}
|
j!tdƒttj#dƒtdƒƒtdƒtd|
|
ƒdfƒ|j	t$t%|
ƒgƒ|jt&|j
ƒdƒdddƒ|r¡|j	ddgƒ|j	t'ttd ƒddƒƒt'ttd!ƒddƒƒgƒd"}xƒ|D]x\}}}|j	t|t'|ƒƒ|p^t(td#ƒƒgƒ|r“tj)r“|j*|j
ƒdtj)ƒn|}q"Wn|j+|ƒ|j+d$ƒ|j+t,ƒƒ|j ƒGHdS(%Ns%(hostname)s Mailing Liststborderitwidths100%itcolspantbgcolorRs/%s/iÿÿÿÿs/%s:tlistinfotcolortff5060tsizes+1sWelcome!s+2tMailmansh<p>There currently are no publicly-advertised
            %(mailmanlink)s mailing lists on %(hostname)s.s÷<p>Below is a listing of all the public mailing lists on
            %(hostname)s.  Click on a list name to get more information about
            the list, or to subscribe, unsubscribe, and change the preferences
            on your subscription.trightR'sÒ To visit the general information page for an unadvertised list,
        open a URL similar to this one, but with a '/' and the %(adj)s
        list name appended.
        <p>List administrators, you can visit tadminsthe list admin overview pagesw to find the management interface for your list.
         <p>If you are having trouble using the lists, please contact smailto:s.<p>s&nbsp;tListtDescriptionis[no description available]s<hr>(-Rt
get_domainRRRRRtSetTitletTabletAddRowtCenterRtAddCellInfotGetCurrentRowIndextWEB_HEADER_COLORt
list_namestsortRRtMMUnknownListErrort
advertisedtVIRTUAL_HOST_OVERVIEWtweb_page_urltfindtappendtGetScriptURLt	real_nameRtGetDescriptiontFontAttrtLinktMAILMAN_URLRtextendtget_site_emailt	ScriptURLtapplyt	ContainertmaxRtItalictWEB_HIGHLIGHT_COLORt
AddRowInfoRtMailmanLogo(tmsgthostnameR%tlegendttableR@t	listnamestnameR!tgreetingtwelcometmailmanlinktadjt	siteownert	highlightturlRFtdescription((s:/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/listinfo.pyRQs†	



		 	


%!"


cCsËtƒ}|j|ƒ|j|ƒ}|js9|jrdd|d<d|d<d|d<d|d<n4|jƒ|d<|jƒ|d<d|d<d|d<|jƒ|d<|jƒ|d	<|j	d
ddƒ|d
<|j
ddtdƒƒ|d<|jdƒ|d<|jdƒ|d<|j
dƒ|d<tjr‡tttjƒƒƒ}tjjdtjjdtjjddƒƒƒ}|jdƒdkr«|jddƒd}n|jddƒd}ttjtƒr)d tjkr)tj||tjƒ\}}}td!ƒ}	d"|	||f|d#<nd}|dcd$||tjtjd|d|d|jƒd|ƒjƒf7<n|j
d%ƒ|d&<|j |ƒ|d'<|j
d(ƒ|d)<|j!|ƒ|d*<t"d+td,ƒƒj#ƒ|d-<t$|j%ƒƒdkrd}
n|j
d.dtd/ƒƒ}
|
|d0<|j
d1ƒ|d2<|j	d3ddƒ|d4<tj&r–td5ƒ}d6||tj&f|d7<n
d|d7<|j'|j(d8||ƒƒ|j#ƒGHdS(9NR's<mm-digest-radio-button>s<mm-undigest-radio-button>s<!-- s<mm-digest-question-start>s -->s<mm-digest-question-end>s<mm-plain-digests-button>s<mm-mime-digests-button>temailR/is<mm-subscribe-box>semail-buttonttextt	Subscribes<mm-subscribe-button>tpws<mm-new-password-box>spw-confs<mm-confirm-password>t	subscribes<mm-subscribe-form-start>tHTTP_FORWARDED_FORtHTTP_X_FORWARDED_FORtREMOTE_ADDRsw.x.y.zt.iit:tensYPlease answer the following question to prove that
                    you are not a bot:s7<tr><td BGCOLOR="#dddddd">%s<br>%s</td><td>%s</td></tr>s<mm-captcha-ui>s=<input type="hidden" name="sub_form_token" value="%s:%s:%s">
trosters<mm-roster-form-start>s<mm-roster-option>toptionss<mm-options-form-start>s<mm-editing-options>tUserOptionssEdit Optionss<mm-info-button>sdisplang-buttonsView this page ins<mm-displang-box>R,s<mm-lang-form-start>tfullnames<mm-fullname-box>sThis form requires JavaScript.sï<tr><td>&nbsp;</td><td>
            <noscript>%s</noscript>
            <script src="https://www.google.com/recaptcha/api.js?hl=%s">
            </script>
            <div class="g-recaptcha" data-sitekey="%s"></div>
            </td></tr>s<mm-recaptcha-ui>s
listinfo.html()tHeadlessDocumentRtGetStandardReplacementst
digestablet
nondigestabletFormatDigestButtontFormatUndigestButtontFormatPlainDigestsButtontFormatMimeDigestsButtont	FormatBoxtFormatButtonRtFormatSecureBoxtFormatFormStartRtSUBSCRIBE_FORM_SECRETtstrtintttimetostenvirontgetRCtrsplitt
isinstancetCAPTCHAStdictRtcaptcha_displaytsha_newt
internal_namet	hexdigesttFormatRosterOptionForUsertFormatEditingOptiontSubmitButtonRtlentGetAvailableLanguagestRECAPTCHA_SITE_KEYRt	ParseTags(R!tlangR%treplacementstnowtremotetcaptcha_questiontcaptcha_boxtcaptcha_idxtpre_questiontdisplangtnoscript((s:/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/listinfo.pyR°s~	







	!!	
(	
	
t__main__(t__doc__R‚RRR0RRRRRtMailman.htmlformattMailman.Logging.SyslogRRRRR&RRt__name__(((s:/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/listinfo.pyt<module>s"
		(_	l
Back to Directory File Manager