__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

function nggallery_wpmu_setup() {

	// to be sure.
	if ( ! is_super_admin() ) {
		die( 'You are not allowed to call this page.' );
	}

	// Get current settings.
	$ngg_options = \Imagely\NGG\Settings\GlobalSettings::get_instance();

	$messagetext = [];

	if ( isset( $_POST['updateoption'] ) ) {
		check_admin_referer( 'ngg_wpmu_settings' );

		// Set all options other than the gallerypath.
		$valid_options = [
			'wpmuRoles',
			'wpmuQuotaCheck',
			'wpmuZipUpload',
			'wpmuImportFolder',
			'wpmuRoles',
		];

		foreach ( $valid_options as $option_name ) {
			$option_value = isset( $_POST[ $option_name ] ) ? intval( $_POST[ $option_name ] ) : 0;
			$ngg_options->set( $option_name, $option_value );
		}

		if ( isset( $_POST['gallerypath'] ) ) {
			$new_gallerypath = trailingslashit( $_POST['gallerypath'] );
			$fs              = \Imagely\NGG\Util\Filesystem::get_instance();
			$root            = $fs->get_document_root( 'galleries' );
			if ( $root[0] != DIRECTORY_SEPARATOR ) {
				$root = DIRECTORY_SEPARATOR . $root;
			}

			$gallery_abspath = $fs->get_absolute_path( $fs->join_paths( $root, $new_gallerypath ) );

			if ( $gallery_abspath[0] != DIRECTORY_SEPARATOR ) {
				$gallery_abspath = DIRECTORY_SEPARATOR . $gallery_abspath;
			}

			if ( strpos( $gallery_abspath, $root ) === false ) {
				$messagetext[] = sprintf( __( 'Gallery path must be located in %s.', 'nggallery' ), $root );
			} elseif ( preg_match( '\.+[/\\]', $new_gallerypath ) ) {
				$messagetext[] = __( 'Gallery path cannot include relative paths.', 'nggallery' );
			} else {
				$ngg_options->set( 'gallerypath', $new_gallerypath );
				$ngg_options->save();
			}
		}

		$ngg_options->save();
		$messagetext[] = __( 'Updated successfully.', 'nggallery' );

		$messagetext = implode( ' ', $messagetext );
	}

	// message windows.
	if ( ! empty( $messagetext ) ) {
		echo '<!-- Last Action --><div id="message" class="updated fade"><p>' . esc_html( $messagetext ) . '</p></div>'; }

	?>

	<div class="wrap">
		<h2><?php esc_html_e( 'Network Options', 'nggallery' ); ?></h2>
		<form name="generaloptions" method="post">
	<?php wp_nonce_field( 'ngg_wpmu_settings' ); ?>
			<table class="form-table">
				<tr valign="top">
					<th align="left"><?php esc_html_e( 'Gallery path', 'nggallery' ); ?></th>
					<td><input type="text" size="50" name="gallerypath" value="<?php echo $ngg_options->get( 'gallerypath' ); ?>" /><br />
				<?php esc_html_e( 'This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better.', 'nggallery' ); ?>
				<?php echo str_replace( '%s', '<code>wp-content/uploads/sites/%BLOG_ID%/nggallery/</code>', __( 'The default setting should be %s', 'nggallery' ) ); ?>
					</td>
				</tr>
				<tr>
					<th valign="top"><?php esc_html_e( 'Enable upload quota check', 'nggallery' ); ?>:</th>
					<td><input name="wpmuQuotaCheck" type="checkbox" value="1" <?php checked( '1', $ngg_options->get( 'wpmuQuotaCheck' ) ); ?> />
				<?php esc_html_e( 'Should work if the gallery is bellow the blog.dir', 'nggallery' ); ?>
					</td>
				</tr>
				<tr>
					<th valign="top"><?php esc_html_e( 'Enable zip upload option', 'nggallery' ); ?>:</th>
					<td><input name="wpmuZipUpload" type="checkbox" value="1" <?php checked( '1', $ngg_options->get( 'wpmuZipUpload' ) ); ?> />
				<?php esc_html_e( 'Allow users to upload zip folders.', 'nggallery' ); ?>
					</td>
				</tr>
				<tr>
					<th valign="top"><?php esc_html_e( 'Enable import function', 'nggallery' ); ?>:</th>
					<td><input name="wpmuImportFolder" type="checkbox" value="1" <?php checked( '1', $ngg_options->get( 'wpmuImportFolder' ) ); ?> />
				<?php esc_html_e( 'Allow users to import images folders from the server.', 'nggallery' ); ?>
					</td>
				</tr>
				<tr>
					<th valign="top"><?php esc_html_e( 'Enable roles/capabilities', 'nggallery' ); ?>:</th>
					<td><input name="wpmuRoles" type="checkbox" value="1" <?php checked( '1', $ngg_options->get( 'wpmuRoles' ) ); ?> />
				<?php esc_html_e( 'Allow users to change the roles for other blog authors.', 'nggallery' ); ?>
					</td>
				</tr>
			</table>
			<div class="submit"><input type="submit" name="updateoption" value="<?php esc_attr_e( 'Update', 'nggallery' ); ?>"/></div>
		</form>
	</div>

	<?php
}

Filemanager

Name Type Size Permission Actions
css Folder 0755
images Folder 0755
js Folder 0755
templates Folder 0755
admin.php File 14.54 KB 0644
ajax.php File 4.97 KB 0644
album.php File 26.37 KB 0644
edit-thumbnail.php File 6.76 KB 0644
functions.php File 19.93 KB 0644
install.php File 2.99 KB 0644
manage-galleries.php File 19.75 KB 0644
manage-images.php File 27.47 KB 0644
manage-sort.php File 6.75 KB 0644
manage.php File 40.74 KB 0644
media-upload.php File 14.86 KB 0644
overview.php File 14.21 KB 0644
roles.php File 5.79 KB 0644
rotate.php File 3.3 KB 0644
showmeta.php File 4.93 KB 0644
tags.php File 11.41 KB 0644
thumbnails-template.php File 3.5 KB 0644
wpmu.php File 4.26 KB 0644
Filemanager