Changeset 6965
- Timestamp:
- 02/21/08 23:55:11 (8 months ago)
- Files:
-
- trunk/wp-admin/css/install.css (modified) (2 diffs)
- trunk/wp-admin/install.php (modified) (5 diffs)
- trunk/wp-admin/setup-config.php (modified) (5 diffs)
- trunk/wp-admin/upgrade.php (modified) (1 diff)
- trunk/wp-blog-header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/css/install.css
r5631 r6965 1 html { background: # eee; }1 html { background: #f1f1f1; } 2 2 3 3 body { 4 4 background: #fff; 5 color: #000; 6 font-family: Georgia, "Times New Roman", Times, serif; 7 margin-left: 20%; 8 margin-right: 20%; 9 padding: .2em 2em; 5 color: #333; 6 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 7 margin: 2em auto 0 auto; 8 width: 700px; 9 padding: 1em 2em; 10 -webkit-border-radius: 12px; 11 font-size: 62.5%; 10 12 } 11 13 14 a { color: #2583ad; text-decoration: none; } 15 16 a:hover { color: #d54e21; } 17 18 12 19 h1 { 13 color: #006;14 20 font-size: 18px; 15 font-weight: lighter;21 margin-bottom: 0; 16 22 } 17 23 18 24 h2 { font-size: 16px; } 19 25 20 p, li, dt { 21 line-height: 140%; 26 p, li { 22 27 padding-bottom: 2px; 28 font-size: 1.3em; 29 line-height: 1.8em; 23 30 } 24 31 25 ul, ol { padding: 5px 5px 5px 20px; } 32 code { 33 font-size: 1.3em; 34 } 26 35 27 #logo { margin-bottom: 2em; } 36 ul, ol { padding: 5px 5px 5px 22px; } 37 38 #logo { margin: 6px 0 14px 0px; border-bottom: none;} 28 39 29 40 .step a, .step input { font-size: 2em; } … … 31 42 td input { font-size: 1.5em; } 32 43 33 .step, th { text-align: right; }44 .step, th { text-align: left; padding: 0; } 34 45 35 #footer { 36 text-align: center; 37 border-top: 1px solid #ccc; 38 padding-top: 1em; 39 font-style: italic; 46 .submit input, .button, .button-secondary { 47 font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; 48 padding: 6px; 49 border: none; 50 margin-left: 0; 51 font-size: 13px !important; 52 -moz-border-radius: 2px; 53 -khtml-border-radius: 2px; 54 -webkit-border-radius: 2px; 55 border-radius: 2px; 56 color: #246; 57 background: #e5e5e5; 40 58 } 59 60 .button-secondary { 61 background: #cee1ef; 62 } 63 64 .submit input:hover, .button:hover, .button-secondary:hover { 65 color: #d54e21; 66 } 67 68 .niceblue { 69 border-collapse: collapse; 70 margin-top: 1em; 71 width: 100%; 72 } 73 74 .niceblue td { 75 margin-bottom: 9px; 76 padding: 10px; 77 border-bottom: 8px solid #fff; 78 } 79 80 .niceblue th { 81 font-size: 12px; 82 text-align: left; 83 padding: 12px 10px 10px 10px; 84 border-bottom: 8px solid #fff; 85 width: 110px; 86 vertical-align: top; 87 } 88 89 .niceblue tr { 90 background: #eaf3fa; 91 } 92 93 .niceblue code { 94 line-height: 18px; 95 font-size: 18px; 96 } 97 98 .niceblue p { 99 margin: 4px 0 0 0; 100 font-size: 11px; 101 } 102 103 h1 { 104 border-bottom: 1px solid #dadada; 105 clear: both; 106 color: #666666; 107 font: 24px Georgia, "Times New Roman", Times, serif; 108 margin: 5px 0 0 -4px; 109 padding: 0; 110 padding-bottom: 7px; 111 } trunk/wp-admin/install.php
r6943 r6965 4 4 require_once('../wp-includes/compat.php'); 5 5 require_once('../wp-includes/functions.php'); 6 wp_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://codex.wordpress.org/Editing_wp-config.php'>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.", "WordPress › Error");6 wp_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://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='setup-config.php' class='button'>Create a Configuration File</a>", "WordPress › Error"); 7 7 } 8 8 … … 46 46 47 47 <form id="setup" method="post" action="install.php?step=2"> 48 <table width="100%">48 <table class="niceblue"> 49 49 <tr> 50 <th width="33%"><?php _e('Blog title:'); ?></th>50 <th scope="row"><?php _e('Blog Title'); ?></th> 51 51 <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td> 52 52 </tr> 53 53 <tr> 54 <th><?php _e('Your e-mail:'); ?></th> 55 <td><input name="admin_email" type="text" id="admin_email" size="25" /></td> 54 <th><?php _e('Your E-mail'); ?></th> 55 <td><input name="admin_email" type="text" id="admin_email" size="25" /><br /> 56 <?php _e('Double-check your email address before continuing.'); ?> 56 57 </tr> 57 58 <tr> 58 <td> </td> 59 <td><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td> 59 <td colspan="2"><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td> 60 60 </tr> 61 61 </table> 62 <p><em><?php _e('Double-check your email address before continuing.'); ?></em></p> 63 <h2 class="step"><input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" /></h2> 62 <input type="submit" name="Submit" value="<?php _e('Install WordPress'); ?>" class="button" /> 64 63 </form> 65 64 … … 78 77 if (empty($admin_email)) { 79 78 // TODO: poka-yoke 80 die(__("< strong>ERROR</strong>: you must provide an e-mail address"));79 die(__("<p><strong>ERROR</strong>: you must provide an e-mail address.</p>")); 81 80 } else if (!is_email($admin_email)) { 82 81 // TODO: poka-yoke … … 91 90 <h1><?php _e('Success!'); ?></h1> 92 91 93 <p><?php printf(__('WordPress has been installed. 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', $password); ?></p> 94 <p><?php _e('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.'); ?></p> 92 <p><?php printf(__('WordPress has been installed. Were you expecting more steps? Sorry to disappoint.'), ''); ?></p> 95 93 96 <dl> 97 <dt><?php _e('Username'); ?></dt> 98 <dd><code>admin</code></dd> 99 <dt><?php _e('Password'); ?></dt> 100 <dd><code><?php echo $password; ?></code></dd> 101 <dt><?php _e('Login address'); ?></dt> 102 <dd><a href="../wp-login.php">wp-login.php</a></dd> 103 </dl> 104 <p><?php _e('Were you expecting more steps? Sorry to disappoint. :)'); ?></p> 94 <table class="niceblue"> 95 <tr> 96 <th><?php _e('Username'); ?></th> 97 <td><code>admin</code></td> 98 </tr> 99 <tr> 100 <th><?php _e('Password'); ?></th> 101 <td><code><?php echo $password; ?></code><br /> 102 <?php _e('<p><strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.</p>'); ?></td> 103 </tr> 104 </table> 105 106 <p><a href="../wp-login.php" class="button">Log In</a> 105 107 106 108 <?php … … 108 110 } 109 111 ?> 110 111 <p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p>112 112 </body> 113 113 </html> trunk/wp-admin/setup-config.php
r6726 r6965 34 34 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 35 35 <title>WordPress › Setup Configuration File</title> 36 <link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install.css" type="text/css" /> 36 37 37 <style media="screen" type="text/css">38 <!--39 html {40 background: #eee;41 }42 body {43 background: #fff;44 color: #000;45 font-family: Georgia, "Times New Roman", Times, serif;46 margin-left: 20%;47 margin-right: 20%;48 padding: .2em 2em;49 }50 51 h1 {52 color: #006;53 font-size: 18px;54 font-weight: lighter;55 }56 57 h2 {58 font-size: 16px;59 }60 61 p, li, dt {62 line-height: 140%;63 padding-bottom: 2px;64 }65 66 ul, ol {67 padding: 5px 5px 5px 20px;68 }69 #logo {70 margin-bottom: 2em;71 }72 .step a, .step input {73 font-size: 2em;74 }75 td input {76 font-size: 1.5em;77 }78 .step, th {79 text-align: right;80 }81 #footer {82 text-align: center;83 border-top: 1px solid #ccc;84 padding-top: 1em;85 font-style: italic;86 }87 -->88 </style>89 38 </head> 90 39 <body> … … 107 56 </ol> 108 57 <p><strong>If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open <code>wp-config-sample.php</code> in a text editor, fill in your information, and save it as <code>wp-config.php</code>. </strong></p> 109 <p>In all likelihood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready, <a href="setup-config.php?step=1">let’s go</a>! </p> 58 <p>In all likelihood, these items were supplied to you by your ISP. If you do not have this information, then you will need to contact them before you can continue. If you’re all ready…</p> 59 60 <p><a href="setup-config.php?step=1" class="button">Let’s go!</a></p> 110 61 <?php 111 62 break; … … 114 65 display_header(); 115 66 ?> 116 </p>117 67 <form method="post" action="setup-config.php?step=2"> 118 68 <p>Below you should enter your database connection details. If you're not sure about these, contact your host. </p> 119 <table >69 <table class="niceblue"> 120 70 <tr> 121 71 <th scope="row">Database Name</th> … … 145 95 </table> 146 96 <h2 class="step"> 147 <input name="submit" type="submit" value="Submit" />97 <input name="submit" type="submit" value="Submit" class="button" /> 148 98 </h2> 149 99 </form> … … 198 148 display_header(); 199 149 ?> 200 <p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to <a href="install.php">run the install!</a></p> 150 <p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…</p> 151 152 <p><a href="install.php" class="button">Run the install</a></p> 201 153 <?php 202 154 break; 203 155 } 204 156 ?> 205 <p id="footer"><a href="http://wordpress.org/">WordPress</a>, personal publishing platform.</p>206 157 </body> 207 158 </html> trunk/wp-admin/upgrade.php
r6943 r6965 2 2 define('WP_INSTALLING', true); 3 3 if (!file_exists('../wp-config.php')) 4 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://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php'>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.");4 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://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='setup-config.php' class='button'>Create a Configuration File</a>"); 5 5 6 6 require('../wp-config.php'); trunk/wp-blog-header.php
r6775 r6965 9 9 require_once( dirname(__FILE__) . '/wp-includes/functions.php'); 10 10 require_once( dirname(__FILE__) . '/wp-includes/plugin.php'); 11 wp_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://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}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.", "WordPress › Error");11 wp_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://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='{$path}setup-config.php' class='button'>Create a Configuration File</a>", "WordPress › Error"); 12 12 } 13 13
