whoami7 - Manager
:
/
home
/
fresvfqn
/
waterdamageremovalsuffolkcounty.com
/
wp-content
/
plugins
/
duplica
/
src
/
Upload File:
files >> //home/fresvfqn/waterdamageremovalsuffolkcounty.com/wp-content/plugins/duplica/src/Helper.php
<?php namespace Codexpert\Duplica; use Codexpert\Plugin\Base; use Codexpert\Plugin\License; /** * if accessed directly, exit. */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @package Plugin * @subpackage Helper * @author Codexpert <hi@codexpert.io> */ class Helper extends Base { public $plugin; /** * Constructor function */ public function __construct( $plugin ) { $this->plugin = $plugin; $this->slug = $plugin['TextDomain']; $this->name = $plugin['Name']; $this->server = $plugin['server']; $this->version = $plugin['Version']; } public static function pri( $data ) { echo '<pre>'; if( is_object( $data ) || is_array( $data ) ) { print_r( $data ); } else { var_dump( $data ); } echo '</pre>'; } public static function get_option( $key, $section, $default = '', $repeater = false ) { $options = get_option( $key ); if ( isset( $options[ $section ] ) ) { $option = $options[ $section ]; if( $repeater === true ) { $_option = []; foreach ( $option as $key => $values ) { $index = 0; foreach ( $values as $value ) { $_option[ $index ][ $key ] = $value; $index++; } } return $_option; } return $option; } return $default; } }
Copyright ©2021 || Defacer Indonesia