apache_mod_loaded example



/** * Returns whether the server is running Apache with the mod_rewrite module loaded. * * @since 2.0.0 * * @return bool Whether the server is running Apache with the mod_rewrite module loaded. */
function got_mod_rewrite() {
    $got_rewrite = apache_mod_loaded( 'mod_rewrite', true );

    /** * Filters whether Apache and mod_rewrite are present. * * This filter was previously used to force URL rewriting for other servers, * like nginx. Use the {@see 'got_url_rewrite'} filter in got_url_rewrite() instead. * * @since 2.5.0 * * @see got_url_rewrite() * * @param bool $got_rewrite Whether Apache and mod_rewrite are present. */
$admin_email = $_POST['email'];
    } else {
        $admin_email = get_option( 'admin_email' );
    }
    ?> <p><?php _e( 'Welcome to the Network installation process!' ); ?></p> <p><?php _e( 'Fill in the information below and you&#8217;ll be on your way to creating a network of WordPress sites. Configuration files will be created in the next step.' ); ?></p> <?php
    if ( isset( $_POST['subdomain_install'] ) ) {
        $subdomain_install = (bool) $_POST['subdomain_install'];
    } elseif ( apache_mod_loaded( 'mod_rewrite' ) ) { // Assume nothing.         $subdomain_install = true;
    } elseif ( ! allow_subdirectory_install() ) {
        $subdomain_install = true;
    } else {
        $subdomain_install = false;
        $got_mod_rewrite   = got_mod_rewrite();
        if ( $got_mod_rewrite ) { // Dangerous assumptions.             echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ';
            printf(
                /* translators: %s: mod_rewrite */
                __( 'Please make sure the Apache %s module is installed as it will be used at the end of this installation.' ),
                
Home | Imprint | This part of the site doesn't use cookies.