diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-07-27 10:05:23 +0200 |
| commit | 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab (patch) | |
| tree | 39a1a4629749056191c05dfd899f931701b7acf3 /srcs/wordpress/wp-admin/network | |
| parent | 5afd237bbd22028b85532b8c0b3fcead49a00764 (diff) | |
| download | ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.gz ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.tar.bz2 ft_server-5bf66662a9bdd62c5bccab15e607cd95cfb8fcab.zip | |
Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my famillyHEADmaster
Diffstat (limited to 'srcs/wordpress/wp-admin/network')
29 files changed, 0 insertions, 3582 deletions
diff --git a/srcs/wordpress/wp-admin/network/about.php b/srcs/wordpress/wp-admin/network/about.php deleted file mode 100644 index 829fa1b..0000000 --- a/srcs/wordpress/wp-admin/network/about.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Network About administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.4.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/about.php' ); diff --git a/srcs/wordpress/wp-admin/network/admin.php b/srcs/wordpress/wp-admin/network/admin.php deleted file mode 100644 index 693fa5a..0000000 --- a/srcs/wordpress/wp-admin/network/admin.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php -/** - * WordPress Network Administration Bootstrap - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -define( 'WP_NETWORK_ADMIN', true ); - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( dirname( __FILE__ ) ) . '/admin.php' ); - -// Do not remove this check. It is required by individual network admin pages. -if ( ! is_multisite() ) { - wp_die( __( 'Multisite support is not enabled.' ) ); -} - -$redirect_network_admin_request = 0 !== strcasecmp( $current_blog->domain, $current_site->domain ) || 0 !== strcasecmp( $current_blog->path, $current_site->path ); - -/** - * Filters whether to redirect the request to the Network Admin. - * - * @since 3.2.0 - * - * @param bool $redirect_network_admin_request Whether the request should be redirected. - */ -$redirect_network_admin_request = apply_filters( 'redirect_network_admin_request', $redirect_network_admin_request ); -if ( $redirect_network_admin_request ) { - wp_redirect( network_admin_url() ); - exit; -} -unset( $redirect_network_admin_request ); diff --git a/srcs/wordpress/wp-admin/network/credits.php b/srcs/wordpress/wp-admin/network/credits.php deleted file mode 100644 index 75ee6e7..0000000 --- a/srcs/wordpress/wp-admin/network/credits.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Network Credits administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.4.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/credits.php' ); diff --git a/srcs/wordpress/wp-admin/network/edit.php b/srcs/wordpress/wp-admin/network/edit.php deleted file mode 100644 index 51381e4..0000000 --- a/srcs/wordpress/wp-admin/network/edit.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php -/** - * Action handler for Multisite administration panels. - * - * @package WordPress - * @subpackage Multisite - * @since 3.0.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -$action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : ''; - -if ( empty( $action ) ) { - wp_redirect( network_admin_url() ); - exit; -} - -/** - * Fires just before the action handler in several Network Admin screens. - * - * This hook fires on multiple screens in the Multisite Network Admin, - * including Users, Network Settings, and Site Settings. - * - * @since 3.0.0 - */ -do_action( 'wpmuadminedit' ); - -/** - * Fires the requested handler action. - * - * The dynamic portion of the hook name, `$action`, refers to the name - * of the requested action derived from the `GET` request. - * - * @since 3.1.0 - */ -do_action( "network_admin_edit_{$action}" ); - -wp_redirect( network_admin_url() ); -exit(); diff --git a/srcs/wordpress/wp-admin/network/freedoms.php b/srcs/wordpress/wp-admin/network/freedoms.php deleted file mode 100644 index 9afbe82..0000000 --- a/srcs/wordpress/wp-admin/network/freedoms.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Network Freedoms administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.4.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/freedoms.php' ); diff --git a/srcs/wordpress/wp-admin/network/index.php b/srcs/wordpress/wp-admin/network/index.php deleted file mode 100644 index fbc169b..0000000 --- a/srcs/wordpress/wp-admin/network/index.php +++ /dev/null @@ -1,83 +0,0 @@ -<?php -/** - * Multisite administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.0.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -/** Load WordPress dashboard API */ -require_once( ABSPATH . 'wp-admin/includes/dashboard.php' ); - -if ( ! current_user_can( 'manage_network' ) ) { - wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); -} - -$title = __( 'Dashboard' ); -$parent_file = 'index.php'; - -$overview = '<p>' . __( 'Welcome to your Network Admin. This area of the Administration Screens is used for managing all aspects of your Multisite Network.' ) . '</p>'; -$overview .= '<p>' . __( 'From here you can:' ) . '</p>'; -$overview .= '<ul><li>' . __( 'Add and manage sites or users' ) . '</li>'; -$overview .= '<li>' . __( 'Install and activate themes or plugins' ) . '</li>'; -$overview .= '<li>' . __( 'Update your network' ) . '</li>'; -$overview .= '<li>' . __( 'Modify global network settings' ) . '</li></ul>'; - -get_current_screen()->add_help_tab( - array( - 'id' => 'overview', - 'title' => __( 'Overview' ), - 'content' => $overview, - ) -); - -$quick_tasks = '<p>' . __( 'The Right Now widget on this screen provides current user and site counts on your network.' ) . '</p>'; -$quick_tasks .= '<ul><li>' . __( 'To add a new user, <strong>click Create a New User</strong>.' ) . '</li>'; -$quick_tasks .= '<li>' . __( 'To add a new site, <strong>click Create a New Site</strong>.' ) . '</li></ul>'; -$quick_tasks .= '<p>' . __( 'To search for a user or site, use the search boxes.' ) . '</p>'; -$quick_tasks .= '<ul><li>' . __( 'To search for a user, <strong>enter an email address or username</strong>. Use a wildcard to search for a partial username, such as user*.' ) . '</li>'; -$quick_tasks .= '<li>' . __( 'To search for a site, <strong>enter the path or domain</strong>.' ) . '</li></ul>'; - -get_current_screen()->add_help_tab( - array( - 'id' => 'quick-tasks', - 'title' => __( 'Quick Tasks' ), - 'content' => $quick_tasks, - ) -); - -get_current_screen()->set_help_sidebar( - '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . - '<p>' . __( '<a href="https://wordpress.org/support/article/network-admin/">Documentation on the Network Admin</a>' ) . '</p>' . - '<p>' . __( '<a href="https://wordpress.org/support/forum/multisite/">Support Forums</a>' ) . '</p>' -); - -wp_dashboard_setup(); - -wp_enqueue_script( 'dashboard' ); -wp_enqueue_script( 'plugin-install' ); -add_thickbox(); - -require_once( ABSPATH . 'wp-admin/admin-header.php' ); - -?> - -<div class="wrap"> -<h1><?php echo esc_html( $title ); ?></h1> - -<div id="dashboard-widgets-wrap"> - -<?php wp_dashboard(); ?> - -<div class="clear"></div> -</div><!-- dashboard-widgets-wrap --> - -</div><!-- wrap --> - -<?php -wp_print_community_events_templates(); -include( ABSPATH . 'wp-admin/admin-footer.php' ); diff --git a/srcs/wordpress/wp-admin/network/menu.php b/srcs/wordpress/wp-admin/network/menu.php deleted file mode 100644 index 03a2edf..0000000 --- a/srcs/wordpress/wp-admin/network/menu.php +++ /dev/null @@ -1,118 +0,0 @@ -<?php -/** - * Build Network Administration Menu. - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -/* translators: Network menu item. */ -$menu[2] = array( __( 'Dashboard' ), 'manage_network', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' ); - -$submenu['index.php'][0] = array( __( 'Home' ), 'read', 'index.php' ); - -if ( current_user_can( 'update_core' ) ) { - $cap = 'update_core'; -} elseif ( current_user_can( 'update_plugins' ) ) { - $cap = 'update_plugins'; -} elseif ( current_user_can( 'update_themes' ) ) { - $cap = 'update_themes'; -} else { - $cap = 'update_languages'; -} - -$update_data = wp_get_update_data(); -if ( $update_data['counts']['total'] ) { - $submenu['index.php'][10] = array( - sprintf( - /* translators: %s: Number of available updates. */ - __( 'Updates %s' ), - sprintf( - '<span class="update-plugins count-%s"><span class="update-count">%s</span></span>', - $update_data['counts']['total'], - number_format_i18n( $update_data['counts']['total'] ) - ) - ), - $cap, - 'update-core.php', - ); -} else { - $submenu['index.php'][10] = array( __( 'Updates' ), $cap, 'update-core.php' ); -} - -unset( $cap ); - -$submenu['index.php'][15] = array( __( 'Upgrade Network' ), 'upgrade_network', 'upgrade.php' ); - -$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' ); - -/* translators: Sites menu item. */ -$menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' ); -$submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' ); -$submenu['sites.php'][10] = array( _x( 'Add New', 'site' ), 'create_sites', 'site-new.php' ); - -$menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' ); -$submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' ); -$submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' ); - -if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) { - $menu[15] = array( - sprintf( - /* translators: %s: Number of available theme updates. */ - __( 'Themes %s' ), - sprintf( - '<span class="update-plugins count-%s"><span class="theme-count">%s</span></span>', - $update_data['counts']['themes'], - number_format_i18n( $update_data['counts']['themes'] ) - ) - ), - 'manage_network_themes', - 'themes.php', - '', - 'menu-top menu-icon-appearance', - 'menu-appearance', - 'dashicons-admin-appearance', - ); -} else { - $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' ); -} -$submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' ); -$submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' ); -$submenu['themes.php'][15] = array( __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' ); - -if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { - $menu[20] = array( - sprintf( - /* translators: %s: Number of available plugin updates. */ - __( 'Plugins %s' ), - sprintf( - '<span class="update-plugins count-%s"><span class="plugin-count">%s</span></span>', - $update_data['counts']['plugins'], - number_format_i18n( $update_data['counts']['plugins'] ) - ) - ), - 'manage_network_plugins', - 'plugins.php', - '', - 'menu-top menu-icon-plugins', - 'menu-plugins', - 'dashicons-admin-plugins', - ); -} else { - $menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); -} -$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' ); -$submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' ); -$submenu['plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' ); - -$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); -if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) { - $submenu['settings.php'][5] = array( __( 'Network Settings' ), 'manage_network_options', 'settings.php' ); - $submenu['settings.php'][10] = array( __( 'Network Setup' ), 'setup_network', 'setup.php' ); -} -unset( $update_data ); - -$menu[99] = array( '', 'exist', 'separator-last', '', 'wp-menu-separator' ); - -require_once( ABSPATH . 'wp-admin/includes/menu.php' ); diff --git a/srcs/wordpress/wp-admin/network/plugin-editor.php b/srcs/wordpress/wp-admin/network/plugin-editor.php deleted file mode 100644 index 7171e72..0000000 --- a/srcs/wordpress/wp-admin/network/plugin-editor.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Plugin editor network administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/plugin-editor.php' ); diff --git a/srcs/wordpress/wp-admin/network/plugin-install.php b/srcs/wordpress/wp-admin/network/plugin-install.php deleted file mode 100644 index f771f63..0000000 --- a/srcs/wordpress/wp-admin/network/plugin-install.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * Install plugin network administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -if ( isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) { - define( 'IFRAME_REQUEST', true ); -} - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/plugin-install.php' ); diff --git a/srcs/wordpress/wp-admin/network/plugins.php b/srcs/wordpress/wp-admin/network/plugins.php deleted file mode 100644 index 56c3deb..0000000 --- a/srcs/wordpress/wp-admin/network/plugins.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Network Plugins administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/plugins.php' ); diff --git a/srcs/wordpress/wp-admin/network/privacy.php b/srcs/wordpress/wp-admin/network/privacy.php deleted file mode 100644 index 5cba05d..0000000 --- a/srcs/wordpress/wp-admin/network/privacy.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * Network Privacy administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 4.9.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/privacy.php' ); diff --git a/srcs/wordpress/wp-admin/network/profile.php b/srcs/wordpress/wp-admin/network/profile.php deleted file mode 100644 index 240ef98..0000000 --- a/srcs/wordpress/wp-admin/network/profile.php +++ /dev/null @@ -1,13 +0,0 @@ -<?php -/** - * User profile network administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.1.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -require( ABSPATH . 'wp-admin/profile.php' ); diff --git a/srcs/wordpress/wp-admin/network/settings.php b/srcs/wordpress/wp-admin/network/settings.php deleted file mode 100644 index c100a66..0000000 --- a/srcs/wordpress/wp-admin/network/settings.php +++ /dev/null @@ -1,489 +0,0 @@ -<?php -/** - * Multisite network settings administration panel. - * - * @package WordPress - * @subpackage Multisite - * @since 3.0.0 - */ - -/** Load WordPress Administration Bootstrap */ -require_once( dirname( __FILE__ ) . '/admin.php' ); - -/** WordPress Translation Installation API */ -require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); - -if ( ! current_user_can( 'manage_network_options' ) ) { - wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 ); -} - -$title = __( 'Network Settings' ); -$parent_file = 'settings.php'; - -// Handle network admin email change requests -if ( ! empty( $_GET['network_admin_hash'] ) ) { - $new_admin_details = get_site_option( 'network_admin_hash' ); - $redirect = 'settings.php?updated=false'; - if ( is_array( $new_admin_details ) && hash_equals( $new_admin_details['hash'], $_GET['network_admin_hash'] ) && ! empty( $new_admin_details['newemail'] ) ) { - update_site_option( 'admin_email', $new_admin_details['newemail'] ); - delete_site_option( 'network_admin_hash' ); - delete_site_option( 'new_admin_email' ); - $redirect = 'settings.php?updated=true'; - } - wp_redirect( network_admin_url( $redirect ) ); - exit; -} elseif ( ! empty( $_GET['dismiss'] ) && 'new_network_admin_email' == $_GET['dismiss'] ) { - check_admin_referer( 'dismiss_new_network_admin_email' ); - delete_site_option( 'network_admin_hash' ); - delete_site_option( 'new_admin_email' ); - wp_redirect( network_admin_url( 'settings.php?updated=true' ) ); - exit; -} - -add_action( 'admin_head', 'network_settings_add_js' ); - -get_current_screen()->add_help_tab( - array( - 'id' => 'overview', - 'title' => __( 'Overview' ), - 'content' => - '<p>' . __( 'This screen sets and changes options for the network as a whole. The first site is the main site in the network and network options are pulled from that original site’s options.' ) . '</p>' . - '<p>' . __( 'Operational settings has fields for the network’s name and admin email.' ) . '</p>' . - '<p>' . __( 'Registration settings can disable/enable public signups. If you let others sign up for a site, install spam plugins. Spaces, not commas, should separate names banned as sites for this network.' ) . '</p>' . - '<p>' . __( 'New site settings are defaults applied when a new site is created in the network. These include welcome email for when a new site or user account is registered, and what᾿s put in the first post, page, comment, comment author, and comment URL.' ) . '</p>' . - '<p>' . __( 'Upload settings control the size of the uploaded files and the amount of available upload space for each site. You can change the default value for specific sites when you edit a particular site. Allowed file types are also listed (space separated only).' ) . '</p>' . - '<p>' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '</p>' . - '<p>' . __( 'Menu setting enables/disables the plugin menus from appearing for non super admins, so that only super admins, not site admins, have access to activate plugins.' ) . '</p>' . - '<p>' . __( 'Super admins can no longer be added on the Options screen. You must now go to the list of existing users on Network Admin > Users and click on Username or the Edit action link below that name. This goes to an Edit User page where you can check a box to grant super admin privileges.' ) . '</p>', - ) -); - -get_current_screen()->set_help_sidebar( - '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . - '<p>' . __( '<a href="https://codex.wordpress.org/Network_Admin_Settings_Screen">Documentation on Network Settings</a>' ) . '</p>' . - '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' -); - -if ( $_POST ) { - /** This action is documented in wp-admin/network/edit.php */ - do_action( 'wpmuadminedit' ); - - check_admin_referer( 'siteoptions' ); - - $checked_options = array( - 'menu_items' => array(), - 'registrationnotification' => 'no', - 'upload_space_check_disabled' => 1, - 'add_new_users' => 0, - ); - foreach ( $checked_options as $option_name => $option_unchecked_value ) { - if ( ! isset( $_POST[ $option_name ] ) ) { - $_POST[ $option_name ] = $option_unchecked_value; - } - } - - $options = array( - 'registrationnotification', - 'registration', - 'add_new_users', - 'menu_items', - 'upload_space_check_disabled', - 'blog_upload_space', - 'upload_filetypes', - 'site_name', - 'first_post', - 'first_page', - 'first_comment', - 'first_comment_url', - 'first_comment_author', - 'welcome_email', - 'welcome_user_email', - 'fileupload_maxk', - 'global_terms_enabled', - 'illegal_names', - 'limited_email_domains', - 'banned_email_domains', - 'WPLANG', - 'new_admin_email', - 'first_comment_email', - ); - - // Handle translation installation. - if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) { - $language = wp_download_language_pack( $_POST['WPLANG'] ); - if ( $language ) { - $_POST['WPLANG'] = $language; - } - } - - foreach ( $options as $option_name ) { - if ( ! isset( $_POST[ $option_name ] ) ) { - continue; - } - $value = wp_unslash( $_POST[ $option_name ] ); - update_site_option( $option_name, $value ); - } - - /** - * Fires after the network options are updated. - * - * @since MU (3.0.0) - */ - do_action( 'update_wpmu_options' ); - - wp_redirect( add_query_arg( 'updated', 'true', network_admin_url( 'settings.php' ) ) ); - exit(); -} - -include( ABSPATH . 'wp-admin/admin-header.php' ); - -if ( isset( $_GET['updated'] ) ) { - ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ); ?></p></div> - <?php -} -?> - -<div class="wrap"> - <h1><?php echo esc_html( $title ); ?></h1> - <form method="post" action="settings.php" novalidate="novalidate"> - <?php wp_nonce_field( 'siteoptions' ); ?> - <h2><?php _e( 'Operational Settings' ); ?></h2> - <table class="form-table" role="presentation"> - <tr> - <th scope="row"><label for="site_name"><?php _e( 'Network Title' ); ?></label></th> - <td> - <input name="site_name" type="text" id="site_name" class="regular-text" value="<?php echo esc_attr( get_network()->site_name ); ?>" /> - </td> - </tr> - - <tr> - <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ); ?></label></th> - <td> - <input name="new_admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ); ?>" /> - <p class="description" id="admin-email-desc"> - <?php _e( 'This address is used for admin purposes. If you change this we will send you an email at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?> - </p> - <?php - $new_admin_email = get_site_option( 'new_admin_email' ); - if ( $new_admin_email && $new_admin_email != get_site_option( 'admin_email' ) ) : - ?> - <div class="updated inline"> - <p> - <?php - printf( - /* translators: %s: New network admin email. */ - __( 'There is a pending change of the network admin email to %s.' ), - '<code>' . esc_html( $new_admin_email ) . '</code>' - ); - printf( - ' <a href="%1$s">%2$s</a>', - esc_url( wp_nonce_url( network_admin_url( 'settings.php?dismiss=new_network_admin_email' ), 'dismiss_new_network_admin_email' ) ), - __( 'Cancel' ) - ); - ?> - </p> - </div> - <?php endif; ?> - </td> - </tr> - </table> - <h2><?php _e( 'Registration Settings' ); ?></h2> - <table class="form-table" role="presentation"> - <tr> - <th scope="row"><?php _e( 'Allow new registrations' ); ?></th> - <?php - if ( ! get_site_option( 'registration' ) ) { - update_site_option( 'registration', 'none' ); - } - $reg = get_site_option( 'registration' ); - ?> - <td> - <fieldset> - <legend class="screen-reader-text"><?php _e( 'New registrations settings' ); ?></legend> - <label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br /> - <label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br /> - <label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br /> - <label><input name="registration" type="radio" id="registration4" value="all"<?php checked( $reg, 'all' ); ?> /> <?php _e( 'Both sites and user accounts can be registered' ); ?></label> - <?php - if ( is_subdomain_install() ) { - echo '<p class="description">'; - printf( - /* translators: 1: NOBLOGREDIRECT, 2: wp-config.php */ - __( 'If registration is disabled, please set %1$s in %2$s to a URL you will redirect visitors to if they visit a non-existent site.' ), - '<code>NOBLOGREDIRECT</code>', - '<code>wp-config.php</code>' - ); - echo '</p>'; - } - ?> - </fieldset> - </td> - </tr> - - <tr> - <th scope="row"><?php _e( 'Registration notification' ); ?></th> - <?php - if ( ! get_site_option( 'registrationnotification' ) ) { - update_site_option( 'registrationnotification', 'yes' ); - } - ?> - <td> - <label><input name="registrationnotification" type="checkbox" id="registrationnotification" value="yes"<?php checked( get_site_option( 'registrationnotification' ), 'yes' ); ?> /> <?php _e( 'Send the network admin an email notification every time someone registers a site or user account' ); ?></label> - </td> - </tr> - - <tr id="addnewusers"> - <th scope="row"><?php _e( 'Add New Users' ); ?></th> - <td> - <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ); ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users → Add New" page' ); ?></label> - </td> - </tr> - - <tr> - <th scope="row"><label for="illegal_names"><?php _e( 'Banned Names' ); ?></label></th> - <td> - <input name="illegal_names" type="text" id="illegal_names" aria-describedby="illegal-names-desc" class="large-text" value="<?php echo esc_attr( implode( ' ', (array) get_site_option( 'illegal_names' ) ) ); ?>" size="45" /> - <p class="description" id="illegal-names-desc"> - <?php _e( 'Users are not allowed to register these sites. Separate names by spaces.' ); ?> - </p> - </td> - </tr> - - <tr> - <th scope="row"><label for="limited_email_domains"><?php _e( 'Limited Email Registrations' ); ?></label></th> - <td> - <?php - $limited_email_domains = get_site_option( 'limited_email_domains' ); - $limited_email_domains = str_replace( ' ', "\n", $limited_email_domains ); - ?> - <textarea name="limited_email_domains" id="limited_email_domains" aria-describedby="limited-email-domains-desc" cols="45" rows="5"> -<?php echo esc_textarea( $limited_email_domains == '' ? '' : implode( "\n", (array) $limited_email_domains ) ); ?></textarea> - <p class="description" id="limited-em |
