wp_die(sprintf(__('This blog has not been activated yet. If you are having problems activating your blog, please contact <a href="mailto:%1$s">%1$s</a>.'),str_replace('@',' AT ',get_site_option('admin_email',"support@{$current_site->domain}"))));
$current_site->site_name=$wpdb->get_var($wpdb->prepare("SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = %d AND meta_key = 'site_name'",$current_site->id));
$current_site=$wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain = %s AND path = %s",$domain,$path));
else
$current_site=$wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain IN ( %s, %s ) AND path = %s ORDER BY CHAR_LENGTH( domain ) DESC LIMIT 1",$domain,$cookie_domain,$path));
if($current_site==null){
if($domain==$cookie_domain)
$current_site=$wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain = %s AND path='/'",$domain));
else
$current_site=$wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain IN ( %s, %s ) AND path = '/' ORDER BY CHAR_LENGTH( domain ) DESC LIMIT 1",$domain,$cookie_domain,$path));
die("That blog does not exist. Please try <a href='http://{$current_site->domain}{$current_site->path}'>http://{$current_site->domain}{$current_site->path}</a>");
die("No WPMU site defined on this host. If you are the owner of this site, please check <a href='http://codex.wordpress.org/Debugging_WPMU'>Debugging WPMU</a> for further assistance.");
die("That blog does not exist. Please try <a href='http://{$current_site->domain}{$current_site->path}'>http://{$current_site->domain}{$current_site->path}</a>");
}else{
die("No WPMU site defined on this host. If you are the owner of this site, please check <a href='http://codex.wordpress.org/Debugging_WPMU'>Debugging WPMU</a> for further assistance.");
$check=$wpdb->get_results("SELECT * FROM $wpdb->site");
$msg="If your blog does not display, please contact the owner of this site.<br /><br />If you are the owner of this site please check that MySQL is running properly and all tables are error free.<br /><br />";
if($check==false){
$msg.="<strong>Database Tables Missing.</strong><br />Database tables are missing. This means that MySQL is either not running, WPMU was not installed properly, or someone deleted {$wpdb->site}. You really <em>should</em> look at your database now.<br />";
}else{
$msg.='<strong>Could Not Find Blog!</strong><br />';
$msg.="Searched for <em>".$domain.$path."</em> in ".DB_NAME."::".$wpdb->blogs." table. Is that right?<br />";
}
$msg.="<br />\n<h1>What do I do now?</h1>";
$msg.="Read the <a target='_blank' href='http://codex.wordpress.org/Debugging_WPMU'>bug report</a> page. Some of the guidelines there may help you figure out what went wrong.<br />";
$msg.="If you're still stuck with this message, then check that your database contains the following tables:<ul>
<li>$wpdb->blogs</li>
<li>$wpdb->users</li>
<li>$wpdb->usermeta</li>
<li>$wpdb->site</li>
<li>$wpdb->sitemeta</li>
<li>$wpdb->sitecategories</li>
</ul>";
$msg.="If you suspect a problem please report it to the support forums but you must include the information asked for in the <a href='http://codex.wordpress.org/Debugging_WPMU'>WPMU bug reporting guidelines</a>!<br /><br />";
if(is_file('release-info.txt')){
$msg.='Your bug report must include the following text: "';