WordPress.org

Plugin Directory

Changeset 168595


Ignore:
Timestamp:
10/30/09 02:06:59 (4 years ago)
Author:
ikailo
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-hive/tags/0.5.2/add-ons/root-files-rewriter.php

    r168173 r168595  
    2626 */ 
    2727function hive_robots_check() { 
    28     global $wpdb, $hostname; 
     28    global $wpdb, $wphive; 
    2929 
    30     $robotsfile = WP_CONTENT_DIR . '/wp-hive/'. $hostname . '/robots.txt'; 
     30    $robotsfile = WP_CONTENT_DIR . '/wp-hive/'. $wphive->current_site->host . 'robots.txt'; 
    3131    if ( file_exists ( $robotsfile ) ) { 
    3232        readfile( $robotsfile ); 
     
    4343 */ 
    4444function hive_sitemap_check() { 
    45     global $wpdb, $wp_query, $hostname; 
     45    global $wpdb, $wp_query, $wphive; 
    4646 
    4747    if ( $wp_query->get('sitemap') == '1') { 
    48         $sitemapfile = WP_CONTENT_DIR . '/wp-hive/'. $hostname . '/sitemap.xml'; 
     48        $sitemapfile = WP_CONTENT_DIR . '/wp-hive/'. $wphive->current_site->host . 'sitemap.xml'; 
    4949        if ( file_exists ( $sitemapfile ) ) { 
    5050            header('Content-type: application/xml; charset="utf-8"'); 
     
    5959    } 
    6060    elseif ( $wp_query->get('sitemapgz') == '1' ) { 
    61         $sitemapgzfile = WP_CONTENT_DIR . '/wp-hive/'. $hostname . '/sitemap.xml.gz'; 
     61        $sitemapgzfile = WP_CONTENT_DIR . '/wp-hive/'. $wphive->current_site->host .'sitemap.xml.gz'; 
    6262        if ( file_exists ( $sitemapgzfile ) ) { 
    6363            header('Content-type: application/x-gzip'); 
     
    100100 */ 
    101101function hive_favicon_check() { 
    102     global $wpdb, $wp_query, $hostname; 
     102    global $wpdb, $wp_query, $wphive; 
    103103 
    104104    if ( $wp_query->get('favicon') == '1') { 
    105         $faviconfile = WP_CONTENT_DIR . '/wp-hive/'. $hostname . '/favicon.ico'; 
     105        $faviconfile = WP_CONTENT_DIR . '/wp-hive/'. $wphive->current_site->host . 'favicon.ico'; 
    106106        if ( file_exists ( $faviconfile ) ) { 
    107107            if (function_exists('finfo_open')) { 
Note: See TracChangeset for help on using the changeset viewer.