diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-31 01:40:42 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-12-31 01:40:42 +0000 |
commit | ed4930953197324008fe13ae2eee874bbcbc48fd (patch) | |
tree | 7f661341cb1308849ef53065ddafc6da466fd8be /wp-inst | |
parent | 5beef288184938af60e93569b1e616b30e861fa9 (diff) | |
download | wordpress-mu-ed4930953197324008fe13ae2eee874bbcbc48fd.tar.gz wordpress-mu-ed4930953197324008fe13ae2eee874bbcbc48fd.tar.xz wordpress-mu-ed4930953197324008fe13ae2eee874bbcbc48fd.zip |
Not needed any more.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@488 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r-- | wp-inst/readme.html | 120 | ||||
-rw-r--r-- | wp-inst/wp-admin/install.php | 226 |
2 files changed, 0 insertions, 346 deletions
diff --git a/wp-inst/readme.html b/wp-inst/readme.html deleted file mode 100644 index bfe4db3..0000000 --- a/wp-inst/readme.html +++ /dev/null @@ -1,120 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<title>WordPress › ReadMe</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<style type="text/css" media="screen"> - <!-- - html { - background: #eee; - } - body { - background: #fff; - color: #000; - font-family: Georgia, "Times New Roman", Times, serif; - margin-left: 25%; - margin-right: 25%; - padding: .2em 2em; - } - - h1 { - color: #006; - font-size: 18px; - font-weight: lighter; - } - - h2 { - font-size: 16px; - } - - p, li, dt { - line-height: 140%; - padding-bottom: 2px; - } - - ul, ol { - padding: 5px 5px 5px 20px; - } - --> - </style> -</head> -<body> -<h1 style="text-align: center"><img alt="WordPress" src="http://wordpress.org/images/wordpress.gif" /> <br /> - Version 2.0</h1> -<p style="text-align: center"> Semantic Personal Publishing Platform </p> -<h1>First Things First</h1> -<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I'm proud to be a part of. Thousands of hours have gone into WordPress, and we're dedicated to making it better every day. Thank you for making it part of your world.</p> -<p style="text-align: right;">— Matt Mullenweg </p> - -<h1 id="installation">Installation: Famous 5-minute install</h1> -<ol> - <li>Unzip the package in an empty directory</li> - <li>Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details</li> - <li>Save the file as <code>wp-config.php</code> </li> - <li>Upload everything.</li> - <li>Open <span class="file"><a href="wp-admin/install.php">/wp-admin/install.php</a></span> in your browser. This should setup the tables needed for your blog. If there is an error, double check your <span class="file">wp-config.php</span> file, and try again. If it fails again, please go to the <a href="http://wordpress.org/support/">support forums</a> with as much data as you can gather. </li> - <li><strong>Note the password given to you.</strong></li> - <li> The install script should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username <code>admin</code> and the password generated during the installation. You can then click on 'Profile' to change the password.</li> -</ol> - -<h1>Upgrading</h1> -<p>Before you upgrade anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</p> -<h2>Upgrading from any previous WordPress to 2.0:</h2> -<ol> - <li>Delete your old WP files, saving ones you've modified </li> - <li>Upload the new files</li> - <li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a></span></li> - <li>You wanted more, perhaps? That's it!</li> -</ol> -<h2>Template Changes</h2> -<p>If you have customized your templates you will probably have to make some changes to them. If you're converting your 1.2 or earlier templates, <a href="http://codex.wordpress.org/Upgrade_1.2_to_1.5">we've created a special guide for you</a>. </p> -<h1>Online Resources</h1> -<p>If you have any questions that aren't addressed in this document, please take advantage of WordPress' numerous online resources:</p> -<dl> - <dt><a href="http://codex.wordpress.org/">The WordPress Codex </a></dt> - <dd>The Codex is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available. </dd> - <dt><a href="http://wordpress.org/development/">The Development Blog</a></dt> - <dd>This is where you'll find the latest updates and news related to WordPress. Bookmark and check often. </dd> - <dt><a href="http://planet.wordpress.org/">WordPress Planet </a></dt> - <dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web. </dd> - <dt><a href="http://wordpress.org/support/">WordPress Support Forums</a></dt> - <dd>If you've looked everywhere and still can't find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible. </dd> - <dt><a href="http://codex.wordpress.org/IRC">WordPress IRC Channel</a></dt> - <dd>Finally, there is an online chat channel that is used for discussion amoung people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (irc.freenode.net #wordpresss) </dd> -</dl> - -<h1 id="requirements">System Recommendations</h1> -<ul> - <li>PHP version <strong>4.1</strong> or higher</li> - <li>MySQL version <strong>3.23.23</strong> or higher</li> - <li>... and a link to <a href="http://wordpress.org/">http://wordpress.org</a> on your site.</li> -</ul> -<p>WordPress is the official continuation of <a href="http://cafelog.com/">b2/cafélog</a>, which came from Michel V. The work has been continued by the <a href="http://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="http://wordpress.org/donate/">donating</a>. </p> - -<h1>Upgrading from another system</h1> -<p>WordPress can <a href="http://codex.wordpress.org/Importing_from_other_blogging_software">import from a number of systems</a>. First you need to get WordPress installed and working as described above.</p> - -<h1 id="templates">XML-RPC Interface</h1> -<p>You can now post to your WordPress blog with tools like <a href="http://ecto.kung-foo.tv/">Ecto</a>, <a href="http://blogbuddy.sourceforge.net">BlogBuddy</a>, <a href="http://bloggar.com/">Bloggar</a>, <a href="http://www.ubique.ch/wapblogger/">WapBlogger</a> (post from your Wap cellphone!), <a href="http://radio.userland.com">Radio Userland</a> (which means you can use Radio's email-to-blog feature), <a href="http://www.zempt.com/">Zempt</a>, <a href="http://www.newzcrawler.com/">NewzCrawler</a>, and other tools that support the Blogging APIs! :) You can read more about <a href="http://codex.wordpress.org/XML-RPC_Support">XML-RPC support on the Codex</a>.</p> - -<h1>Post via Email</h1> -<p>You can post from an email client! To set this up go to your "Writing" options screen and fill in the connection details for your secret POP3 account. Then you need to set up <code>wp-mail.php</code> to execute periodically to check the mailbox for new posts. You can do it with Cron-jobs, or if your host doesn't support it you can look into the various website-monitoring services, and make them check your <code>wp-mail.php</code> URL. </p> -<p> Posting is easy: Any email sent to the address you specify will be posted, with the subject as the title. It is best to keep the address dicrete. The script will <i>delete</i> emails that are successfully posted. </p> -<h1 id="roles">User Roles </h1> - -<p>We've eliminated user levels in order to make way for the much more flexible roles system introduced in 2.0. You can <a href="http://codex.wordpress.org/Roles_and_Capabilities">read more about Roles and Capabilities on the Codex</a>.</p> - -<h1> Final notes</h1> -<ul> - <li>If you have any suggestions, ideas, comments, or if you (gasp!) found a bug, join us in the <a href="http://wordpress.org/support/">Support Forums</a></li> - <li>WordPress now has a robust plugin API that makes extending the code easy. If you are a developer interested in utilizing this see the <a href="http://codex.wordpress.org/Plugin_API">plugin documentation in the Codex</a>. In most all cases you shouldn't modify any of the core code.</li> -</ul> - -<h1>Share the Love</h1> -<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgable than yourself, or writing the author of a media article that overlooks us.</p> - -<h1>Copyright</h1> -<p>WordPress is released under the <abbr title="GNU Public License">GPL</abbr> (see <a href="license.txt">license.txt</a>).</p> - -</body> -</html> diff --git a/wp-inst/wp-admin/install.php b/wp-inst/wp-admin/install.php deleted file mode 100644 index f86d38a..0000000 --- a/wp-inst/wp-admin/install.php +++ /dev/null @@ -1,226 +0,0 @@ -<?php -define('WP_INSTALLING', true); -if (!file_exists('../wp-config.php')) - die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file."); - -require_once('../wp-config.php'); -require_once('./upgrade-functions.php'); - -$schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; -$guessurl = str_replace('/wp-admin/install.php?step=2', '', $schema . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) ); - -if (isset($_GET['step'])) - $step = $_GET['step']; -else - $step = 0; -header( 'Content-Type: text/html; charset=utf-8' ); -?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <title><?php _e('WordPress › Installation'); ?></title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <style media="screen" type="text/css"> - <!-- - html { - background: #eee; - } - body { - background: #fff; - color: #000; - font-family: Georgia, "Times New Roman", Times, serif; - margin-left: 20%; - margin-right: 20%; - padding: .2em 2em; - } - - h1 { - color: #006; - font-size: 18px; - font-weight: lighter; - } - - h2 { - font-size: 16px; - } - - p, li, dt { - line-height: 140%; - padding-bottom: 2px; - } - - ul, ol { - padding: 5px 5px 5px 20px; - } - #logo { - margin-bottom: 2em; - } - .step a, .step input { - font-size: 2em; - } - td input { - font-size: 1.5em; - } - .step, th { - text-align: right; - } - #footer { - text-align: center; - border-top: 1px solid #ccc; - padding-top: 1em; - font-style: italic; - } - --> - </style> -</head> -<body> -<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> -<?php -// Let's check to make sure WP isn't already installed. -$wpdb->hide_errors(); -$installed = $wpdb->get_results("SELECT * FROM $wpdb->users"); -if ($installed) die('<h1>'.__('Already Installed').'</h1><p>'.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'</p></body></html>'); -$wpdb->show_errors(); - -switch($step) { - - case 0: -?> -<p><?php printf(__('Welcome to WordPress installation. We’re now going to go through a few steps to get you up and running with the latest in personal publishing platforms. You may want to peruse the <a href="%s">ReadMe documentation</a> at your leisure.'), '../readme.html'); ?></p> - <h2 class="step"><a href="install.php?step=1"><?php _e('First Step »'); ?></a></h2> -<?php - break; - - case 1: - -?> -<h1><?php _e('First Step'); ?></h1> -<p><?php _e("Before we begin we need a little bit of information. Don't worry, you can always change these later."); ?></p> - -<form id="setup" method="post" action="install.php?step=2"> -<table width="100%"> -<tr> -<th width="33%"><?php _e('Weblog title:'); ?></th> -<td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td> -</tr> -<tr> -<th><?php _e('Your e-mail:'); ?></th> - <td><input name="admin_email" type="text" id="admin_email" size="25" /></td> -</tr> -</table> -<p><em><?php _e('Double-check that email address before continuing.'); ?></em></p> -<h2 class="step"> -<input type="submit" name="Submit" value="<?php _e('Continue to Second Step »'); ?>" /> -</h2> -</form> - -<?php - break; - case 2: - -// Fill in the data we gathered -$weblog_title = stripslashes($_POST['weblog_title']); -$admin_email = stripslashes($_POST['admin_email']); -// check e-mail address -if (empty($admin_email)) { - die (__("<strong>ERROR</strong>: please type your e-mail address")); -} else if (!is_email($admin_email)) { - die (__("<strong>ERROR</strong>: the e-mail address isn't correct")); -} - -?> -<h1><?php _e('Second Step'); ?></h1> -<p><?php _e('Now we’re going to create the database tables and fill them with some default data.'); ?></p> - - -<?php -flush(); - -// Set everything up -wp_cache_flush(); -make_db_current_silent(); -populate_options(); -populate_roles(); - -update_option('blogname', $weblog_title); -update_option('admin_email', $admin_email); - -// Now drop in some default links -$wpdb->query("INSERT INTO $wpdb->linkcategories (cat_id, cat_name) VALUES (1, '".$wpdb->escape(__('Blogroll'))."')"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://blogs.linux.ie/xeer/', 'Donncha', 1, 'http://blogs.linux.ie/xeer/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zengun.org/weblog/', 'Michel', 1, 'http://zengun.org/weblog/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://boren.nu/', 'Ryan', 1, 'http://boren.nu/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://photomatt.net/', 'Matt', 1, 'http://xml.photomatt.net/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://zed1.com/journalized/', 'Mike', 1, 'http://zed1.com/journalized/feed/', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://www.alexking.org/', 'Alex', 1, 'http://www.alexking.org/blog/wp-rss2.php', '');"); -$wpdb->query("INSERT INTO $wpdb->links (link_url, link_name, link_category, link_rss, link_notes) VALUES ('http://dougal.gunters.org/', 'Dougal', 1, 'http://dougal.gunters.org/feed/', '');"); - -// Default category -$wpdb->query("INSERT INTO $wpdb->categories (cat_ID, cat_name, category_nicename, category_count, category_description) VALUES ('0', '".$wpdb->escape(__('Uncategorized'))."', '".sanitize_title(__('Uncategorized'))."', '1', '')"); - -// First post -$now = date('Y-m-d H:i:s'); -$now_gmt = gmdate('Y-m-d H:i:s'); -$wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_excerpt, post_title, post_category, post_name, post_modified, post_modified_gmt, comment_count, to_ping, pinged, post_content_filtered) VALUES ('1', '$now', '$now_gmt', '".$wpdb->escape(__('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!'))."', '', '".$wpdb->escape(__('Hello world!'))."', '0', '".$wpdb->escape(__('hello-world'))."', '$now', '$now_gmt', '1', '', '', '')"); - -$wpdb->query( "INSERT INTO $wpdb->post2cat (`rel_id`, `post_id`, `category_id`) VALUES (1, 1, 1)" ); - -// Default comment -$wpdb->query("INSERT INTO $wpdb->comments (comment_post_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_date_gmt, comment_content) VALUES ('1', '".$wpdb->escape(__('Mr WordPress'))."', '', 'http://wordpress.org/', '$now', '$now_gmt', '".$wpdb->escape(__('Hi, this is a comment.<br />To delete a comment, just log in, and view the posts\' comments, there you will have the option to edit or delete them.'))."')"); - -// First Page - -$wpdb->query("INSERT INTO $wpdb->posts (post_author, post_date, post_date_gmt, post_content, post_excerpt, post_title, post_category, post_name, post_modified, post_modified_gmt, post_status, to_ping, pinged, post_content_filtered) VALUES ('1', '$now', '$now_gmt', '".$wpdb->escape(__('This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.'))."', '', '".$wpdb->escape(__('About'))."', '0', '".$wpdb->escape(__('about'))."', '$now', '$now_gmt', 'static', '', '', '')"); -generate_page_rewrite_rules(); - -// Set up admin user -$random_password = substr(md5(uniqid(microtime())), 0, 6); -$display_name_array = explode('@', $admin_email); -$display_name = $display_name_array[0]; -$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename) VALUES ( '1', 'admin', MD5('$random_password'), '$admin_email', NOW(), '$display_name', '$display_name')"); -$wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}user_level', '10');"); -$admin_caps = serialize(array('administrator' => true)); -$wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}capabilities', '{$admin_caps}');"); - -$message_headers = 'From: ' . $weblog_title . ' <wordpress@' . $_SERVER['SERVER_NAME'] . '>'; -$message = sprintf(__("Your new WordPress blog has been successfully set up at: - -%1\$s - -You can log in to the administrator account with the following information: - -Username: admin -Password: %2\$s - -We hope you enjoy your new weblog. Thanks! - ---The WordPress Team -http://wordpress.org/ -"), $guessurl, $random_password); - -@wp_mail($admin_email, __('New WordPress Blog'), $message, $message_headers); - -wp_cache_flush(); -?> - -<p><em><?php _e('Finished!'); ?></em></p> - -<p><?php printf(__('Now you can <a href="%1$s">log in</a> with the <strong>username</strong> "<code>admin</code>" and <strong>password</strong> "<code>%2$s</code>".'), '../wp-login.php', $random_password); ?></p> -<p><?php _e('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you. If you lose it, you will have to delete the tables from the database yourself, and re-install WordPress. So to review:'); ?> -</p> -<dl> -<dt><?php _e('Username'); ?></dt> -<dd><code>admin</code></dd> -<dt><?php _e('Password'); ?></dt> -<dd><code><?php echo $random_password; ?></code></dd> - <dt><?php _e('Login address'); ?></dt> -<dd><a href="../wp-login.php">wp-login.php</a></dd> -</dl> -<p><?php _e('Were you expecting more steps? Sorry to disappoint. All done! :)'); ?></p> -<?php - break; -} -?> -<p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p> -</body> -</html> |