403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.92
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/imperial28.ru/wp-content/plugins/seoplugins/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/imperial28.ru/wp-content/plugins/seoplugins/includes/admin.php
<?php
if(!defined('LINK_PREVIEW')) return;

/**
 * Set defaults for the first run if needed
 */
if (!get_option('linkpreview_firsttime_setup') && get_option('linkpreview_firsttime_setup') !== '1') {
	linkpreview_reset_settings();
	add_option("linkpreview_firsttime_setup", '1');
}

/**
 * Reset settings
 */
function linkpreview_reset_settings() {
	delete_option('linkpreview_settings');
	add_option('linkpreview_settings');
	$default_options = array(
		'linkpreview_local_curl'	=>	'off',
		'linkpreview_cache_time'	=>	'60',
		'linkpreview_api_key'		=>	'f150278',
		'linkpreview_filter_out'	=>	'png,jpg,jpeg,gif,tiff,tif,pdf,zip,rar,7z,txt,doc,docx',
		'linkpreview_max_url_size'	=> 	'128',
		'linkpreview_exclude_class'	=>	'btn,button,img,image',
		'linkpreview_tooltip_enable'=>	'on',
		'linkpreview_favicon'		=>	'on',
		'linkpreview_javascript'	=>	'tooltipster',
		'linkpreview_tooltipster_theme'	=>	'shadow',
		'linkpreview_jquery_ui_theme'	=>	'default'
	);
	$settings = serialize($default_options);
	update_option('linkpreview_settings', $settings);
}

/**
 * Read existing settings
 */
function linkpreview_get_settings() {
	return unserialize(get_option('linkpreview_settings'));
}

/**
 * Add Link Preview settings to dashboard
 */
add_action('admin_menu', 'linkpreview_menu');
function linkpreview_menu() {
	add_submenu_page('options-general.php', 'Link Preview settings', 'Link Preview', 'manage_options', 'link-preview', 'linkpreview_admin_settings' );
}

function linkpreview_admin_settings() {
	if (isset($_POST["update_settings"])) {
		$_POST['lp_postdata']['linkpreview_tooltip_enable'] = (isset($_POST['lp_postdata']['linkpreview_tooltip_enable']) && $_POST['lp_postdata']['linkpreview_tooltip_enable'] == 'on') ? 'on' : 'off';
		$_POST['lp_postdata']['linkpreview_local_curl'] = (isset($_POST['lp_postdata']['linkpreview_local_curl']) && $_POST['lp_postdata']['linkpreview_local_curl'] == 'on') ? 'on' : 'off';
		$_POST['lp_postdata']['linkpreview_favicon'] = (isset($_POST['lp_postdata']['linkpreview_favicon']) && $_POST['lp_postdata']['linkpreview_favicon'] == 'on') ? 'on' : 'off';
		$new_options=array();
		foreach ($_POST['lp_postdata'] as $key=>$val) {
			$new_options[$key] = $val;
		}
		update_option('linkpreview_settings', serialize($new_options));
		echo '<div id="message" class="updated"><h4>Link Preview - settings saved</h4></div>';
	}
	if (isset($_POST["reset_settings"])) {
		linkpreview_reset_settings();
		echo '<div id="message" class="notice"><h4>Link Preview - settings reset</h4></div>';
	}
	$linkpreview_settings = linkpreview_get_settings();
	extract($linkpreview_settings);
	include(LINKPREVIEW_ADMIN);
}

/**
 * Shortcode definition
 */
if (!shortcode_exists('link_preview')) add_shortcode( 'link_preview', 'linkpreview_shortcode' );
function linkpreview_shortcode( $atts, $content = null ) {
	if ($atts) extract($atts);
	$linkPreview = new linkPreview();
	$result = $linkPreview->showtime($content);
	return $result;
}

/**
 * Add admin CSS
 */
add_action ('admin_init', 'linkpreview_style_admin');
function linkpreview_style_admin() {
	wp_enqueue_style("linkpreview-admin", LINKPREVIEW_URL."/css/admin.css", false, LINKPREVIEW_VERSION, "all");
}

Youez - 2016 - github.com/yon3zu
LinuXploit