GRAYBYTE WORDPRESS FILE MANAGER7410

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/userswp/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/userswp/includes//template-functions.php
<?php

/**
 * get_templates_dir function.
 *
 * The function returns template dir path.
 *
 * @since 1.2.1.3
 *
 * @return string Templates dir path.
 */
function uwp_get_templates_dir() {
	return USERSWP_PATH . 'templates';
}

/**
 * get_templates_url function.
 *
 * The function returns template dir url.
 *
 * @since 1.2.1.3
 *
 * @return string Templates dir url.
 */
function uwp_get_templates_url() {
	return USERSWP_PLUGIN_URL . '/templates';
}

/**
 * get_theme_template_dir_name function.
 *
 * The function returns theme template dir name.
 *
 * @since 1.2.1.3
 *
 * @return string Theme template dir name.
 */
function uwp_get_theme_template_dir_name() {
	return untrailingslashit( apply_filters( 'uwp_templates_dir', 'userswp' ) );
}

/*
 * Function to include the template file.
 *
 * @param string $type Template type.
 * @param string $template_path Template path. (default: '').
 *
 * @deprecated 1.2.1.3 Use uwp_get_template()
 *
 */
function uwp_locate_template($type, $template_path = "" ){

	if(!$template_path){
		$template_path = uwp_get_templates_dir();
	}

	$template = locate_template(array("userswp/".$type.".php"));
	if (!$template) {
		$template = untrailingslashit( $template_path ) . '/' .$type.'.php';
	}

	$template = apply_filters('uwp_template_'.$type, $template, $template_path);

	if (file_exists($template)) {
		include($template);
	}

}

/**
 * Function to display no user found message from template.
 */
function uwp_no_users_found($args = array()){
	$design_style = uwp_get_option("design_style",'bootstrap');
	$template = $design_style ? $design_style."/no-users-found.php" : "no-users-found.php";
	uwp_get_template( $template, $args );
}

/**
 * Get other templates passing attributes and including the file.
 *
 * @param string $template_name Template name.
 * @param array  $args          Arguments. (default: array).
 * @param string $template_path Template path. (default: '').
 * @param string $default_path  Default path. (default: '').
 */
function uwp_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
	if ( ! empty( $args ) && is_array( $args ) ) {
		extract( $args );
	}

	$located = UsersWP_Templates::locate_template( $template_name, $template_path, $default_path );

	if ( ! file_exists( $located ) ) {
		uwp_doing_it_wrong( __FUNCTION__, sprintf( __( '%s does not exist.', 'userswp' ), '<code>' . $located . '</code>' ), '2.1' );

		return;
	}

	// Allow 3rd party plugin filter template file from their plugin.
	$located = apply_filters( 'uwp_get_template', $located, $template_name, $args, $template_path, $default_path );

	do_action( 'uwp_before_template_part', $template_name, $template_path, $located, $args );

	include( $located );

	do_action( 'uwp_after_template_part', $template_name, $template_path, $located, $args );
}

/**
 * Like uwp_get_template, but returns the HTML instead of outputting.
 *
 * @see uwp_get_template
 * @since 1.2.1.3
 * @param string $template_name Template name.
 * @param array  $args          Arguments. (default: array).
 * @param string $template_path Template path. (default: '').
 * @param string $default_path  Default path. (default: '').
 *
 * @return string
 */
function uwp_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
	ob_start();
	uwp_get_template( $template_name, $args, $template_path, $default_path );
	return ob_get_clean();
}

/**
 * doing_it_wrong function.
 *
 * A function is called when mark something as being incorrectly called.
 *
 * @since 1.2.1.3
 *
 * @param string $function The function that was called.
 * @param string $message A message explaining what has been done incorrectly.
 * @param string $version The version of WordPress where the message was added.
 */
function uwp_doing_it_wrong( $function, $message, $version ) {
	$message .= ' Backtrace: ' . wp_debug_backtrace_summary();

	if ( defined( 'DOING_AJAX' ) ) {
		do_action( 'doing_it_wrong_run', $function, $message, $version );
		uwp_error_log( $function . ' was called incorrectly. ' . $message . '. This message was added in version ' . $version . '.' );
	} else {
		_doing_it_wrong( $function, $message, $version ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	}
}

function uwp_password_strength_inline_js() {
	wp_enqueue_script( 'password-strength-meter' ); // add scripts
	?>
	<script>
        jQuery( document ).ready( function( $ ) {

            $( 'body' ).on( 'keyup', 'input[name=password], input[name=confirm_password]',
                function( event ) {
                    var $form = $(this).closest('form');
                    if( ! $form.hasClass('uwp-login-form') ) {
                        uwp_checkPasswordStrength(
                            $('input[name=password]', $form),         // First password field
                            $('input[name=confirm_password]', $form), // Second password field
                            $('#uwp-password-strength', $form),           // Strength meter
                            $('input[type=submit]', $form),           // Submit button
                            ['black', 'listed', 'word']        // Blacklisted words
                        );
                    }
                }
            );
        });
	</script>
	<?php
}

/**
 * Get all UsersWP screen ids.
 *
 * @since 1.2.3.22
 *
 * @return array UsersWP screen IDs
 */
function uwp_get_screen_ids() {
	$screen_ids = array(
		'toplevel_page_userswp',
		'userswp_page_uwp_form_builder',
		'userswp_page_uwp_tools',
		'userswp_page_uwp_status',
		'userswp_page_uwp-addons',
		'userswp_page_uwp_user_types',
		'profile',
		'users',
		'user-edit',
	);

	// Check for translated screen id.
	$uwp_screen_id = sanitize_title( __( 'UsersWP', 'userswp' ) );

	if ( $uwp_screen_id != 'userswp' ) {
		$screen_ids[] = 'toplevel_page_' . $uwp_screen_id;
		$screen_ids[] = $uwp_screen_id . '_page_uwp_form_builder';
		$screen_ids[] = $uwp_screen_id . '_page_uwp_tools';
		$screen_ids[] = $uwp_screen_id . '_page_uwp_status';
		$screen_ids[] = $uwp_screen_id . '_page_uwp-addons';
		$screen_ids[] = $uwp_screen_id . '_page_uwp-user_types';
	}

	return apply_filters( 'uwp_screen_ids', $screen_ids );
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
helpers
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
libraries
--
July 10 2025 04:32:23
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
inteuuod / inteuuod
0644
abstract-uwp-privacy.php
3.543 KB
May 24 2018 18:32:58
inteuuod / inteuuod
0644
class-account.php
9.071 KB
January 09 2025 21:52:58
inteuuod / inteuuod
0644
class-activator.php
30.118 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-addons.php
9.592 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-ajax.php
2.782 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-countries.php
11.445 KB
April 28 2022 17:18:48
inteuuod / inteuuod
0644
class-date.php
6.316 KB
September 19 2017 17:57:46
inteuuod / inteuuod
0644
class-emails.php
22.155 KB
April 10 2025 19:10:18
inteuuod / inteuuod
0644
class-files.php
23.46 KB
July 16 2024 18:34:28
inteuuod / inteuuod
0644
class-forms.php
170.66 KB
February 19 2025 22:09:02
inteuuod / inteuuod
0644
class-meta.php
12.987 KB
May 25 2022 16:36:12
inteuuod / inteuuod
0644
class-notices.php
7.954 KB
December 12 2024 21:47:10
inteuuod / inteuuod
0644
class-pages.php
17.646 KB
June 01 2021 17:14:04
inteuuod / inteuuod
0644
class-profile.php
60.792 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-status.php
19.468 KB
July 16 2020 17:09:12
inteuuod / inteuuod
0644
class-tables.php
13.046 KB
June 25 2024 02:23:32
inteuuod / inteuuod
0644
class-templates.php
43.835 KB
March 19 2025 15:13:04
inteuuod / inteuuod
0644
class-tools.php
38.828 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-user-notifications.php
5.606 KB
February 19 2025 22:09:02
inteuuod / inteuuod
0644
class-userswp.php
35.552 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-uwp-background-updater.php
3.044 KB
June 27 2019 18:13:34
inteuuod / inteuuod
0644
class-uwp-compatibility.php
3.123 KB
October 10 2024 19:01:40
inteuuod / inteuuod
0644
class-uwp-defaults.php
9.666 KB
February 04 2025 23:32:52
inteuuod / inteuuod
0644
class-uwp-privacy-erasers.php
1.328 KB
May 24 2018 18:32:58
inteuuod / inteuuod
0644
class-uwp-privacy-exporters.php
3.309 KB
February 19 2020 16:22:32
inteuuod / inteuuod
0644
class-uwp-privacy.php
3.062 KB
December 20 2024 18:16:58
inteuuod / inteuuod
0644
class-uwp-seo.php
11.987 KB
March 13 2024 17:47:28
inteuuod / inteuuod
0644
class-validation.php
15.852 KB
November 01 2023 11:49:38
inteuuod / inteuuod
0644
deprecated-functions.php
0.181 KB
January 23 2020 19:10:04
inteuuod / inteuuod
0644
helpers.php
0.502 KB
January 23 2020 19:10:04
inteuuod / inteuuod
0644
index.php
0.025 KB
July 27 2017 16:44:24
inteuuod / inteuuod
0644
template-functions.php
6.082 KB
December 12 2024 21:47:10
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF