Ticket #5477: install-php.diff
| File install-php.diff, 2.2 KB (added by , 18 years ago) |
|---|
-
install.php
48 48 <table width="100%"> 49 49 <tr> 50 50 <th width="33%"><?php _e('Blog title:'); ?></th> 51 <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>51 <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php print $_POST['eweblog_title']; ?>" /></td> 52 52 </tr> 53 53 <tr> 54 54 <th><?php _e('Your e-mail:'); ?></th> 55 <td><input name="admin_email" type="text" id="admin_email" size="25" /></td>55 <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php print $_POST['eadmin_email']; ?>" /></td> 56 56 </tr> 57 57 <tr> 58 58 <td> </td> … … 76 76 // check e-mail address 77 77 if (empty($admin_email)) { 78 78 // TODO: poka-yoke 79 die(__( "<strong>ERROR</strong>: you must provide an e-mail address"));79 die(__('<strong>ERROR</strong>: you must provide an e-mail address<br /><form id="error" method="post" action="install.php"><input type="hidden" name="eweblog_title" value="' . $_POST['weblog_title'] . '" /><input type="hidden" name="eadmin_email" value="' . $_POST['admin_email'] . '" /><input type="submit" name="Submit" value="Go Back" /></form>')); 80 80 } else if (!is_email($admin_email)) { 81 81 // TODO: poka-yoke 82 die(__('<strong>ERROR</strong>: that isn\'t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code> '));82 die(__('<strong>ERROR</strong>: that isn\'t a valid e-mail address. E-mail addresses look like: <code>username@example.com</code><br /><form id="error" method="post" action="install.php"><input type="hidden" name="eweblog_title" value="' . $_POST['weblog_title'] . '" /><input type="hidden" name="eadmin_email" value="' . $_POST['admin_email'] . '" /><input type="submit" name="Submit" value="Go Back" /></form>')); 83 83 } 84 84 85 85 $result = wp_install($weblog_title, 'admin', $admin_email, $public); … … 108 108 109 109 <p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p> 110 110 </body> 111 </html> 112 No newline at end of file 111 </html>