[
MAINHACK SHELL
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Notices.php.tar
home/inceptionblue/public_html/wp-content/plugins/google-site-kit/includes/Core/Admin/Notices.php 0000644 00000003257 15150011150 0027257 0 ustar 00 <?php /** * Class Google\Site_Kit\Core\Admin\Notices * * @package Google\Site_Kit * @copyright 2021 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Admin; /** * Class managing admin notices. * * @since 1.0.0 * @access private * @ignore */ final class Notices { /** * Registers functionality through WordPress hooks. * * @since 1.0.0 */ public function register() { $callback = function() { global $hook_suffix; if ( empty( $hook_suffix ) ) { return; } $this->render_notices( $hook_suffix ); }; add_action( 'admin_notices', $callback ); add_action( 'network_admin_notices', $callback ); } /** * Renders admin notices. * * @since 1.0.0 * * @param string $hook_suffix The current admin screen hook suffix. */ private function render_notices( $hook_suffix ) { $notices = $this->get_notices(); if ( empty( $notices ) ) { return; } /** * Notice object. * * @var Notice $notice Notice object. */ foreach ( $notices as $notice ) { if ( ! $notice->is_active( $hook_suffix ) ) { continue; } $notice->render(); } } /** * Gets available admin notices. * * @since 1.0.0 * * @return array List of Notice instances. */ private function get_notices() { /** * Filters the list of available admin notices. * * @since 1.0.0 * * @param array $notices List of Notice instances. */ $notices = apply_filters( 'googlesitekit_admin_notices', array() ); return array_filter( $notices, function( $notice ) { return $notice instanceof Notice; } ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server.isorus.org
Server IP: 159.223.142.74
PHP Version: 7.4.33
Server Software: Apache
System: Linux server.isorus.org 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64
HDD Total: 319.99 GB
HDD Free: 212.35 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
Off
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: inceptionblue
User ID (UID): 1042
Group ID (GID): 1043
Script Owner UID:
Current Dir Owner: 1042