Done ! 403WebShell
403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/TF89388/wp-content/plugins/noisa-toolkit/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/TF89388/wp-content/plugins/noisa-toolkit/includes/class-register-metaboxes.php
<?php
/**
 * Rascals MetaBox
 *
 * Register Metaboxes
 *
 * @author Rascals Themes
 * @category Core
 * @package Noisa Toolkit
 * @version 1.0.0
 */

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

class RascalsRegisterMetaBoxes {
	
	/*
	Public variables
	 */
	public $plugin_path = null;

	/**
	 *  Constructor.
	 * @return void
	 */
	public function __construct() {
		$this->init();
	}

	/**
	 * Initialize class
	 * @return void
	 */
	public function init() {

		// Set plugin path
		$this->plugin_path = RASCALS_TOOLKIT_PATH;

		// Include main RascalsBox class
		include_once( $this->plugin_path . '/includes/class-metabox.php' );

		// include all metaboxes
		add_action( 'wp_loaded', array( $this, 'includesMetaboxes' ), 0 );
	}

	/**
	 * Register Post Type
	 * @return void
	 */
	public function includesMetaboxes() {

		// COMMON
		include_once( $this->plugin_path . '/includes/metabox-options/common.php' );

		// POST
		include_once( $this->plugin_path . '/includes/metabox-options/post.php' );

		// PAGE
		include_once( $this->plugin_path . '/includes/metabox-options/page.php' );

		// Blog
		include_once( $this->plugin_path . '/includes/metabox-options/blog.php' );


		// Artists
		include_once( $this->plugin_path . '/includes/metabox-options/artists.php' );

		// Releases
		include_once( $this->plugin_path . '/includes/metabox-options/releases.php' );

		// Events
		include_once( $this->plugin_path . '/includes/metabox-options/events.php' );

		// Gallery
		include_once( $this->plugin_path . '/includes/metabox-options/gallery.php' );

		// Slider
		include_once( $this->plugin_path . '/includes/metabox-options/slider.php' );

		// Tracks
		include_once( $this->plugin_path . '/includes/metabox-options/tracks.php' );
		
	}


	/**
	 * Get Revo Slider list
	 * @param  null
	 * @version 1.1.0 [compatible with Revo Slider 6+]
	 * @return array
	 */
	public function getRevoSliders(){
	    $intro_revslider = array( array( 'name' => esc_html__( 'Select slider...', 'noisa-toolkit' ), 'value' => '' ) );
	    if ( class_exists( 'RevSlider' ) && function_exists( 'rev_slider_shortcode' ) ) {
	    	if ( defined('RS_REVISION') && version_compare( RS_REVISION, '6.0.0' ) >= 0 ) {
		        $rev_slider = new RevSlider();
		        $slides = $rev_slider->get_sliders();
		        if ( ! empty( $slides ) ) {
		            $count = 1;
		            foreach ($slides as $slide) {
		                $alias = $slide->alias;
	                    $title = $slide->title;
		                $intro_revslider[$count]['name'] = $title;
			            $intro_revslider[$count]['value'] = $alias;
		                $count++;
		            }
		        }
		    }
	    } 
	    return $intro_revslider;
	}


	/**
	 * Get Slider list
	 * @param  post_name string
	 * @return array
	 */
	public function getSlider( $post_name = null ){
	    global $wpdb;

	    $intro_slider = array( array( 'name' => esc_html__( 'Select slider...', 'noisa-toolkit' ), 'value' => '' ) );
	    
		$slider_post_type = $post_name;
		$slider_query = $wpdb->prepare(
			"
		    SELECT
				{$wpdb->posts}.id,
				{$wpdb->posts}.post_title
		  	FROM 
				{$wpdb->posts}
		  	WHERE
				{$wpdb->posts}.post_type = %s
			AND 
				{$wpdb->posts}.post_status = 'publish'
			",
			$slider_post_type
		);

		$sql_slider = $wpdb->get_results( $slider_query );
		  
		if ( $sql_slider ) {
			$count = 1;
			foreach( $sql_slider as $slider_post ) {
				$intro_slider[$count]['name'] = $slider_post->post_title;
				$intro_slider[$count]['value'] = $slider_post->id;
				$count++;
			}
		}

	    return $intro_slider;
	}


	/**
	 * Get Music Tracks
	 * @param  post_name string
	 * @return array
	 */
	function getTracks( $post_name = null ){
		global $wpdb;

		/* Get Audio Tracks  */
		$tracks = array( array( 'name' => esc_html__( 'Select tracks...', 'noisa-toolkit' ), 'value' => 'none' ) );
		$tracks_post_type = $post_name;
		$tracks_query = $wpdb->prepare(
			"
		    SELECT
				{$wpdb->posts}.id,
				{$wpdb->posts}.post_title
		  	FROM 
				{$wpdb->posts}
		  	WHERE
				{$wpdb->posts}.post_type = %s
			AND 
				{$wpdb->posts}.post_status = 'publish'
			",
			$tracks_post_type
		);

		$sql_tracks = $wpdb->get_results( $tracks_query );
		  
		if ( $sql_tracks ) {
			$count = 1;
			foreach( $sql_tracks as $track_post ) {
				$tracks[$count]['name'] = $track_post->post_title;
				$tracks[$count]['value'] = $track_post->id;
				$count++;
			}
		}

		return $tracks;
	}


	/**
	 * Get Custom Sidebars
	 * @param  $panel_name
	 * @param  $option_name
	 * @return array
	 */
	function getSidebars( $panel_name = null, $option_name = 'custom_sidebars' ){
		
		$panel_options = get_option( $panel_name );

		if ( isset( $panel_options[ $option_name ] ) ) {
			$s_list = $panel_options[ $option_name ];
			$temp_list = array();
			foreach ($s_list as $key => $li) {
				$temp_list[$key]['name'] = $li['name'];
				$temp_list[$key]['value'] = sanitize_title_with_dashes( $li['name'] );
			}
			$s_list = $temp_list;

		} else {
			$s_list = null;
		}
		return $s_list;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit