| Server IP : 89.39.208.18 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : User : ( ) PHP Version : 7.4.33 Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home3/mahyarcake/././www/wp-content/plugins/wordpress-seo/admin/menu/ |
Upload File : |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Menu
*/
/**
* Registers the regular admin menu and network admin menu implementations.
*/
class WPSEO_Menu implements WPSEO_WordPress_Integration {
/**
* The page identifier used in WordPress to register the admin page.
*
* !DO NOT CHANGE THIS!
*
* @var string
*/
public const PAGE_IDENTIFIER = 'wpseo_dashboard';
/**
* List of classes that add admin functionality.
*
* @var array
*/
protected $admin_features;
/**
* Registers all hooks to WordPress.
*
* @return void
*/
public function register_hooks() {
$admin_menu = new WPSEO_Admin_Menu( $this );
$admin_menu->register_hooks();
if ( WPSEO_Utils::is_plugin_network_active() ) {
$network_admin_menu = new WPSEO_Network_Admin_Menu( $this );
$network_admin_menu->register_hooks();
}
$capability_normalizer = new WPSEO_Submenu_Capability_Normalize();
$capability_normalizer->register_hooks();
}
/**
* Returns the main menu page identifier.
*
* @return string Page identifier to use.
*/
public function get_page_identifier() {
return self::PAGE_IDENTIFIER;
}
/**
* Loads the requested admin settings page.
*
* @return void
*/
public function load_page() {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
if ( isset( $_GET['page'] ) && is_string( $_GET['page'] ) ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
$page = sanitize_text_field( wp_unslash( $_GET['page'] ) );
$this->show_page( $page );
}
}
/**
* Shows an admin settings page.
*
* @param string $page Page to display.
*
* @return void
*/
protected function show_page( $page ) {
switch ( $page ) {
case 'wpseo_tools':
require_once WPSEO_PATH . 'admin/pages/tools.php';
break;
case 'wpseo_licenses':
require_once WPSEO_PATH . 'admin/pages/licenses.php';
break;
case 'wpseo_files':
require_once WPSEO_PATH . 'admin/views/tool-file-editor.php';
break;
default:
require_once WPSEO_PATH . 'admin/pages/dashboard.php';
break;
}
}
}