| Name | Size | Mode | Actions |
|---|---|---|---|
| slide/ | - | 0755 | rm |
| slider/ | - | 0755 | rm |
| metaslider.imagehelper.class.php | 19064 | 0644 | editdlrm |
| metaslider.systemcheck.class.php | 7546 | 0644 | editdlrm |
| metaslider.widget.class.php | 4267 | 0644 | editdlrm |
/home/vianto5/cititower.mx/wp-content/plugins/ml-slider/inc/metaslider.systemcheck.class.php (7546B)
max_input_vars',
$max_input_vars,
sprintf('%s', __('this article', 'ml-slider')),
'' . php_ini_loaded_file() . ''
);
$this->printMessage($error, 'maxInputVars', 'dismissable');
}
/**
* Check the WordPress version.
*/
private function checkWordPressVersion()
{
if (!is_array($this->options)) {
$this->options = [];
}
if (!isset($this->options['wordPressVersion']) || !is_bool($this->options['wordPressVersion'])) {
$this->options['wordPressVersion'] = null;
}
if ($this->options['wordPressVersion'] === true) {
return;
}
if (!function_exists('wp_enqueue_media')) {
$error = "MetaSlider requires WordPress 3.5 or above. Please upgrade your WordPress installation.";
$this->printMessage($error, 'wordPressVersion');
} else {
$this->options['wordPressVersion'] = true;
}
}
/**
* Check GD or ImageMagick library exists
*/
private function checkImageLibrary()
{
if (isset($this->options['imageLibrary']) && $this->options['imageLibrary'] === false) {
return;
}
if (( !extension_loaded('gd') || !function_exists('gd_info') ) && ( !extension_loaded('imagick') || !class_exists('Imagick') || !class_exists('ImagickPixel') )) {
$error = "MetaSlider requires the GD or ImageMagick PHP extension. Please contact your hosting provider";
$this->printMessage($error, 'imageLibrary');
} else {
$this->options['imageLibrary'] = false;
}
}
/**
* Detect the role scoper plugin
*/
private function checkRoleScoper()
{
if (isset($this->options['roleScoper']) && $this->options['roleScoper'] === false) {
return;
}
if (function_exists('is_plugin_active') && is_plugin_active('role-scoper/role-scoper.php')) {
$access_types = get_option('scoper_disabled_access_types');
if (isset($access_types['front']) && !$access_types['front']) {
$error = 'Role Scoper Plugin Detected. Please go to Roles > Options. Click the Realm Tab, scroll down to "Access Types" and uncheck the "Viewing content (front-end)" setting.';
$this->printMessage($error, 'roleScoper');
}
}
}
/**
* Check the theme has a call to 'wp_footer'
*/
private function checkWpFooter()
{
$current_theme = wp_get_theme();
$theme_name = $current_theme->Template;
$key = 'wpFooter:' . $theme_name;
if (isset($this->options[$key]) && $this->options[$key] === false) {
return;
}
$child_footer = get_stylesheet_directory() . '/footer.php';
$parent_footer = TEMPLATEPATH . '/footer.php';
$theme_type = 'parent';
if (file_exists($child_footer)) {
$theme_type = 'child';
$footer_file = file_get_contents($child_footer);
if (strpos($footer_file, 'wp_footer()')) {
return;
}
} else if (file_exists($parent_footer . '/footer.php')) {
$theme_type = 'parent';
$footer_file = file_get_contents($parent_footer . '/footer.php');
if (strpos($footer_file, 'wp_footer()')) {
return;
}
}
if ($theme_type == 'parent') {
$file_path = $parent_footer;
} else {
$file_path = $child_footer;
}
$error = "Required call to wp_footer() not found in file {$file_path}. tag."; $this->printMessage($error, $key); } /** * Print a warning message to the screen * * @param string $message Warning message to be shown * @param string $key Message Key * @param string $style The functional style of the notice */ private function printMessage($message, $key, $style = 'dismissable') { $nonce = wp_create_nonce("metaslider-dismiss-{$key}"); $message = sprintf('%s ', esc_html__('Warning:', 'ml-slider')) . $message; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo "
"; } }