403Webshell
Server IP : 172.67.159.97  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/convertplug/framework/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/convertplug/framework/functions/functions.php
<?php
/**
 * Prohibit direct script loading.
 *
 * @package Convert_Plus.
 */

defined( 'ABSPATH' ) || exit;

/**
 * Register Functions & Components.
 */

require_once CP_BASE_DIR . '/framework/functions/functions.admin.php';
require_once CP_BASE_DIR . '/framework/functions/component-multi-form.php';
require_once CP_BASE_DIR . '/framework/functions/component-social-media.php';
require_once CP_BASE_DIR . '/framework/functions/component-count-down.php';

/**
 *  Component - Multi Form - Generate DropDown HTML
 */

/**
 * Function Name: mb_dropdown_string_to_html.
 *
 * @param  string $dropdown_options option string.
 * @return string                  option string.
 */
function mb_dropdown_string_to_html( $dropdown_options ) {

	$lines       = explode( PHP_EOL, $dropdown_options );
	$all_options = '';
	foreach ( $lines as $key => $line ) {
		$line = trim( $line );
		if ( '' === $line ) {
			continue;
		}
		$line_to_array = explode( '+', $line );
		$label         = ( isset( $line_to_array[0] ) ) ? ucfirst( $line_to_array[0] ) : ucfirst( $line );
		$value         = ( isset( $line_to_array[1] ) ) ? $line_to_array[1] : $line;
		$all_options  .= '<option value="' . trim( $value ) . '">' . trim( $label ) . '</option>';
	}
	return $all_options;
}

/**
 * Function Name: generate_global_shortcode_vars Generate Global shortcode variables.
 *
 * @param  array $ar array parameters.
 * @return array     array parameters.
 */
function generate_global_shortcode_vars( $ar ) {

	$v = array();

	foreach ( $ar as $key => $value ) {
		if ( isset( $value['name'] ) && ! empty( $value['name'] ) ) {
			$v[ $value['name'] ] = '';
		}
	}

	return $v;
}

/**
 * Helper Functions - Smile Framework.
 */
add_action( 'wp_ajax_framework_update_options', 'framework_update_options' );
add_action( 'wp_ajax_framework_update_preview_data', 'framework_update_preview_data' );

// function to return style settings array.
if ( ! function_exists( 'smile_get_style_settings' ) ) {
	/**
	 * Function Name: smile_get_style_settings.
	 *
	 * @param  array  $option get styles option.
	 * @param  string $style  module type.
	 * @return array         array values.
	 */
	function smile_get_style_settings( $option, $style ) {
		$prev_styles = get_option( $option );
		$styles      = array();
		foreach ( $prev_styles as $key => $settings ) {
			if ( $settings['style_id'] === $style ) {
				$styles = maybe_serialize( $prev_styles[ $key ]['style_settings'] );
			}
		}

		$style_settings = array();
		foreach ( $styles as $key => $setting ) {
			$style_settings[ $key ] = apply_filters( 'smile_render_setting', $setting );
		}
		return $style_settings;
	}
}




Youez - 2016 - github.com/yon3zu
LinuXploit