summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 17:12:51 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-31 17:12:51 +0000
commitb97ffeeb3d4ac57c41e3884c949eca65e427da39 (patch)
tree033ae7853239a0dd0b9a725fef2dd33f5921b70f /index.php
parentf0b71c9b71ed231ce98e1b6863e724f330afdaee (diff)
downloadwordpress-mu-b97ffeeb3d4ac57c41e3884c949eca65e427da39.tar.gz
wordpress-mu-b97ffeeb3d4ac57c41e3884c949eca65e427da39.tar.xz
wordpress-mu-b97ffeeb3d4ac57c41e3884c949eca65e427da39.zip
Major overhaul of rewrite rules, "main" blog now displays a "home" page.
Hopefully non-vhost install is working again. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@266 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r--index.php26
1 files changed, 15 insertions, 11 deletions
diff --git a/index.php b/index.php
index 275c864..fb9ab4e 100644
--- a/index.php
+++ b/index.php
@@ -61,7 +61,7 @@ text-align: center; border-top: 1px solid #ccc; padding-top: 1em; font-style: it
</head>
<body>
-<div align="center"><img src="wp-inst/wp-images/wordpress-mu.png"></div><br>
+<div align="center"><img src="wp-inst/wp-includes/images/wordpress-mu.png"></div><br>
Welcome to WordPress MU, the Multi User Weblog System built on WordPress.<br><br>
';
}
@@ -262,6 +262,7 @@ function printstep1form( $dbname = 'wordpress', $uname = 'username', $pwd = 'pas
<h1>Virtual Server Support</h1>
<p>Each blog on your site will have their own hostname or 'sub domain'. Your blog addresses will appear like <span class='fakelink'>http://joesblog.example.com/</span> instead of <span class='fakelink'>http://www.example.com/joesblog/</span> but you need to do a few more things to Apache and your DNS settings before it'll work.</p>
<p>Apache will have to have a <q>wildcard</q> alias configured in the virtual server definition of your server. You'll have to add a wildcard DNS record for your domain too. That's usually as easy as adding a <q>*</q> hostname in your online dns software.</p>
+ <p>Virtual Server Support: <input type='radio' name='vhost' value='yes'> Yes&nbsp;&nbsp;<input type='radio' name='vhost' value='no' checked>No</p>
<p>More: <ul><li> <a href='http://codewalkers.com/archives/general_admin/234.html'>Sub-domain catch-all with Apache</a> via <a href='http://www.google.com/search?q=apache+wildcard+alias'>Google Search: apache wildcard alias</a></li><li> <a href='http://photomatt.net/2003/10/10/wildcard-dns-and-sub-domains/'>Wildcard dns and sub domains</a> via <a href='http://www.google.com/search?q=dns+wildcard+sub+domain'>Google Search: dns wildcard sub domain</a></li><li><a href='http://mu.wordpress.org/forums/topic/126#post-677'>mu forums: how to setup vhosts</a></li></ul></p>
<br />
<h1>Database</h1>
@@ -349,7 +350,7 @@ function step2() {
fwrite($handle, str_replace("localhost", $dbhost, $line));
break;
case "define('VHOST', ":
- fwrite($handle, str_replace("VHOSTSETTING", 'yes', $line));
+ fwrite($handle, str_replace("VHOSTSETTING", $vhost, $line));
break;
case '$table_prefix =':
fwrite($handle, str_replace('wp_', $prefix, $line));
@@ -428,15 +429,18 @@ SITE_NAME')" );
$res = createBlog( $domain, $base, 'admin', $weblog_title, $email );
if( $res == 'ok' ) {
$url = "http://".$_SERVER["HTTP_HOST"] . $base;
- $realpath = dirname(__FILE__);
- do_htaccess( "htaccess.dist", ".htaccess", $realpath, $base, $url );
- do_htaccess( "wp-inst/htaccess.dist", "wp-inst/.htaccess", $realpath, $base, $url );
-
- $illegal_names = array( "www", "web", "root", "admin", "main", "invite", "administrator", "blog" );
- add_site_settings( "illegal_names", $illegal_names );
-
- print "<p>Well Done! Your blog has been set up and you have been sent details of your login and password in an email.</p>";
- print "<p>You may view your new blog by visiting <a href='".$url."'>".$url."</a>!</p>";
+ update_option( "template", "home" );
+ update_option( "stylesheet", "home" );
+ add_site_option( "allowed_themes", 'a:2:{s:17:"WordPress Classic";b:1;s:17:"WordPress Default";b:1;}' );
+ $realpath = dirname(__FILE__);
+ do_htaccess( "htaccess.dist", ".htaccess", $realpath, $base, $url );
+ do_htaccess( "wp-inst/htaccess.dist", "wp-inst/.htaccess", $realpath, $base, $url );
+
+ $illegal_names = array( "www", "web", "root", "admin", "main", "invite", "administrator", "blog" );
+ add_site_settings( "illegal_names", $illegal_names );
+
+ print "<p>Well Done! Your blog has been set up and you have been sent details of your login and password in an email.</p>";
+ print "<p>You may view your new blog by visiting <a href='".$url."'>".$url."</a>!</p>";
} else {
if( $res == 'error: problem creating blog entry' ) {
print "The <q>main</q> blog has already been created. Edit your blogs table and delete the entry for this domain!";