Add support for RTL in install.php, upgrade.php and inline-uploading.php. Props Sewar. #3136
git-svn-id: http://svn.automattic.com/wordpress/trunk@4259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
43f36aab78
commit
c0580ed6f7
71
readme.html
71
readme.html
|
@ -1,52 +1,22 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>WordPress › ReadMe</title>
|
<title>WordPress › ReadMe</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<style type="text/css" media="screen">
|
<link rel="stylesheet" href="wp-admin/install.css" type="text/css" />
|
||||||
<!--
|
|
||||||
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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 style="text-align: center"><img alt="WordPress" src="http://wordpress.org/images/wordpress.gif" /> <br />
|
<h1 id="logo" style="text-align: center">
|
||||||
Version 2.0</h1>
|
<img alt="WordPress" src="wp-admin/images/wordpress-logo.png" />
|
||||||
<p style="text-align: center"> Semantic Personal Publishing Platform </p>
|
<br /> Version 2.1-ALPHA
|
||||||
|
</h1>
|
||||||
|
<p style="text-align: center">Semantic Personal Publishing Platform</p>
|
||||||
|
|
||||||
<h1>First Things First</h1>
|
<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>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>
|
<p style="text-align: right;">— Matt Mullenweg </p>
|
||||||
|
|
||||||
<h1 id="installation">Installation: Famous 5-minute install</h1>
|
<h1>Installation: Famous 5-minute install</h1>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Unzip the package in an empty directory</li>
|
<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>Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details</li>
|
||||||
|
@ -68,22 +38,23 @@
|
||||||
</ol>
|
</ol>
|
||||||
<h2>Template Changes</h2>
|
<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>
|
<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>
|
<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>
|
<p>If you have any questions that aren't addressed in this document, please take advantage of WordPress' numerous online resources:</p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt><a href="http://codex.wordpress.org/">The WordPress Codex </a></dt>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
<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>
|
</dl>
|
||||||
|
|
||||||
<h1 id="requirements">System Recommendations</h1>
|
<h1>System Recommendations</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li>PHP version <strong>4.1</strong> or higher</li>
|
<li>PHP version <strong>4.1</strong> or higher</li>
|
||||||
<li>MySQL version <strong>3.23.23</strong> or higher</li>
|
<li>MySQL version <strong>3.23.23</strong> or higher</li>
|
||||||
|
@ -94,14 +65,14 @@
|
||||||
<h1>Upgrading from another system</h1>
|
<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>
|
<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>
|
<h1>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>
|
<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>
|
<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>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>
|
<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>
|
|
||||||
|
|
||||||
|
<h1>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>
|
<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>
|
<h1> Final notes</h1>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
<div id="footer"><p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
|
<div id="footer">
|
||||||
<p>
|
<p><a href="http://wordpress.org/" id="wordpress-logo"><img src="images/wordpress-logo.png" alt="WordPress" /></a></p>
|
||||||
<a href="http://codex.wordpress.org/"><?php _e('Documentation'); ?></a> — <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a> <br />
|
<p>
|
||||||
<?php bloginfo('version'); ?> — <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
|
<?php _e('<a href="http://codex.wordpress.org/">Documentation</a>'); ?> — <?php _e('<a href="http://wordpress.org/support/">Support Forums</a>'); ?> <br />
|
||||||
</p>
|
<?php bloginfo('version'); ?> — <?php printf(__('%s seconds'), number_format(timer_stop(), 2)); ?>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php do_action('admin_footer', ''); ?>
|
<?php do_action('admin_footer', ''); ?>
|
||||||
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
|
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||||
header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
|
||||||
|
|
||||||
if (!current_user_can('upload_files'))
|
if (!current_user_can('upload_files'))
|
||||||
wp_die(__('You do not have permission to upload files.'));
|
wp_die(__('You do not have permission to upload files.'));
|
||||||
|
@ -276,12 +274,12 @@ $images_width = $uwidth_sum + ( count($images) * 6 ) + 35;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
wp_die(__('This script was not meant to be called directly.'));
|
wp_die(__('This script was not meant to be called directly.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
||||||
<title></title>
|
<title></title>
|
||||||
|
@ -427,280 +425,338 @@ function sendToEditor(n) {
|
||||||
// ]]>
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<?php if ( $action == 'links' ) : ?>
|
<?php if ( $action == 'links' ) : ?>
|
||||||
* html { overflow-x: hidden; }
|
* html { overflow-x: hidden; }
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
* html { overflow-y: hidden; }
|
* html { overflow-y: hidden; }
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
body {
|
|
||||||
font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana;
|
body {
|
||||||
border: none;
|
font: 13px "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana;
|
||||||
margin: 0px;
|
border: none;
|
||||||
height: 150px;
|
margin: 0px;
|
||||||
background: #dfe8f1;
|
height: 150px;
|
||||||
}
|
background: #dfe8f1;
|
||||||
form {
|
}
|
||||||
margin: 3px 2px 0px 6px;
|
|
||||||
}
|
form { margin: 3px 2px 0px 6px; }
|
||||||
#wrap {
|
|
||||||
clear: both;
|
#wrap {
|
||||||
padding: 0px;
|
clear: both;
|
||||||
width: 100%;
|
padding: 0px;
|
||||||
}
|
width: 100%;
|
||||||
#images {
|
}
|
||||||
position: absolute;
|
|
||||||
clear: both;
|
#images {
|
||||||
margin: 0px;
|
position: absolute;
|
||||||
padding: 15px 15px;
|
clear: both;
|
||||||
width: <?php echo $images_width; ?>px;
|
margin: 0px;
|
||||||
}
|
padding: 15px 15px;
|
||||||
#images img {
|
width: <?php echo $images_width; ?>px;
|
||||||
background-color: rgb(209, 226, 239);
|
}
|
||||||
}
|
|
||||||
<?php echo $style; ?>
|
#images img { background-color: rgb(209, 226, 239); }
|
||||||
.attwrap, .attwrap * {
|
|
||||||
margin: 0px;
|
<?php echo $style; ?>
|
||||||
padding: 0px;
|
|
||||||
border: 0px;
|
.attwrap, .attwrap * {
|
||||||
}
|
margin: 0px;
|
||||||
.imagewrap {
|
padding: 0px;
|
||||||
margin-right: 5px;
|
border: 0px;
|
||||||
overflow: hidden;
|
}
|
||||||
width: 128px;
|
|
||||||
}
|
.imagewrap {
|
||||||
.otherwrap {
|
margin-right: 5px;
|
||||||
margin-right: 5px;
|
overflow: hidden;
|
||||||
overflow: hidden;
|
width: 128px;
|
||||||
background-color: #f9fcfe;
|
}
|
||||||
}
|
|
||||||
.otherwrap a {
|
.otherwrap {
|
||||||
display: block;
|
margin-right: 5px;
|
||||||
}
|
overflow: hidden;
|
||||||
.otherwrap a, .otherwrap a:hover, .otherwrap a:active, .otherwrap a:visited {
|
background-color: #f9fcfe;
|
||||||
color: blue;
|
}
|
||||||
}
|
|
||||||
.usingicon {
|
.otherwrap a { display: block; }
|
||||||
padding: 0px;
|
|
||||||
height: 96px;
|
.otherwrap a, .otherwrap a:hover, .otherwrap a:active, .otherwrap a:visited { color: blue; }
|
||||||
text-align: center;
|
|
||||||
width: 128px;
|
.usingicon {
|
||||||
}
|
padding: 0px;
|
||||||
.usingtext {
|
height: 96px;
|
||||||
padding: 3px;
|
text-align: center;
|
||||||
height: 90px;
|
width: 128px;
|
||||||
text-align: left;
|
}
|
||||||
width: 122px;
|
|
||||||
}
|
.usingtext {
|
||||||
.filetype {
|
padding: 3px;
|
||||||
font-size: 80%;
|
height: 90px;
|
||||||
border-bottom: 3px double #89a
|
text-align: left;
|
||||||
}
|
width: 122px;
|
||||||
.imagewrap, .imagewrap img, .imagewrap a, .imagewrap a img, .imagewrap a:hover img, .imagewrap a:visited img, .imagewrap a:active img {
|
}
|
||||||
text-decoration: none;
|
|
||||||
}
|
.filetype {
|
||||||
#upload-menu {
|
font-size: 80%;
|
||||||
background: #fff;
|
border-bottom: 3px double #89a;
|
||||||
margin: 0px;
|
}
|
||||||
padding: 0;
|
|
||||||
list-style: none;
|
.imagewrap, .imagewrap img, .imagewrap a, .imagewrap a img, .imagewrap a:hover img, .imagewrap a:visited img, .imagewrap a:active img { text-decoration: none; }
|
||||||
height: 2em;
|
|
||||||
border-bottom: 1px solid #448abd;
|
#upload-menu {
|
||||||
width: 100%;
|
background: #fff;
|
||||||
}
|
margin: 0px;
|
||||||
#upload-menu li {
|
padding: 0;
|
||||||
float: left;
|
list-style: none;
|
||||||
margin: 0 0 0 .75em;
|
height: 2em;
|
||||||
}
|
border-bottom: 1px solid #448abd;
|
||||||
#upload-menu a {
|
width: 100%;
|
||||||
display: block;
|
}
|
||||||
padding: 5px;
|
|
||||||
text-decoration: none;
|
#upload-menu li {
|
||||||
color: #000;
|
float: left;
|
||||||
border-top: 3px solid #fff;
|
margin: 0 0 0 .75em;
|
||||||
}
|
}
|
||||||
#upload-menu .current a {
|
|
||||||
background: #dfe8f1;
|
#upload-menu a {
|
||||||
border-right: 2px solid #448abd;
|
display: block;
|
||||||
}
|
padding: 5px;
|
||||||
#upload-menu a:hover {
|
text-decoration: none;
|
||||||
background: #dfe8f1;
|
color: #000;
|
||||||
color: #000;
|
border-top: 3px solid #fff;
|
||||||
}
|
}
|
||||||
.tip {
|
|
||||||
color: rgb(68, 138, 189);
|
#upload-menu .current a {
|
||||||
padding: 2px 1em;
|
background: #dfe8f1;
|
||||||
}
|
border-right: 2px solid #448abd;
|
||||||
.inactive {
|
}
|
||||||
color: #fff;
|
|
||||||
padding: 1px 3px;
|
#upload-menu a:hover {
|
||||||
}
|
background: #dfe8f1;
|
||||||
.left {
|
color: #000;
|
||||||
float: left;
|
}
|
||||||
}
|
|
||||||
.right {
|
.tip {
|
||||||
float: right;
|
color: rgb(68, 138, 189);
|
||||||
}
|
padding: 2px 1em;
|
||||||
.center {
|
}
|
||||||
text-align: center;
|
|
||||||
}
|
.inactive {
|
||||||
#upload-menu li.spacer {
|
color: #fff;
|
||||||
margin-left: 40px;
|
padding: 1px 3px;
|
||||||
}
|
}
|
||||||
#title, #descr {
|
|
||||||
width: 99%;
|
.left { float: left; }
|
||||||
margin-top: 1px;
|
|
||||||
}
|
.right { float: right; }
|
||||||
th {
|
|
||||||
width: 4.5em;
|
.center { text-align: center; }
|
||||||
}
|
|
||||||
#descr {
|
#upload-menu li.spacer { margin-left: 40px; }
|
||||||
height: 36px;
|
|
||||||
}
|
#title, #descr {
|
||||||
#buttons {
|
width: 99%;
|
||||||
margin-top: 2px;
|
margin-top: 1px;
|
||||||
text-align: right;
|
}
|
||||||
}
|
|
||||||
.popup {
|
th {
|
||||||
margin: 4px 4px;
|
text-align: right;
|
||||||
padding: 1px;
|
width: 4.5em;
|
||||||
position: absolute;
|
}
|
||||||
width: 114px;
|
|
||||||
display: none;
|
#descr { height: 36px; }
|
||||||
background-color: rgb(240, 240, 238);
|
|
||||||
border-top: 2px solid #fff;
|
#buttons {
|
||||||
border-right: 2px solid #ddd;
|
margin-top: 2px;
|
||||||
border-bottom: 2px solid #ddd;
|
text-align: right;
|
||||||
border-left: 2px solid #fff;
|
}
|
||||||
text-align: center;
|
|
||||||
}
|
.popup {
|
||||||
.imagewrap .popup {
|
margin: 4px 4px;
|
||||||
opacity: .90;
|
padding: 1px;
|
||||||
filter:alpha(opacity=90);
|
position: absolute;
|
||||||
}
|
width: 114px;
|
||||||
.otherwrap .popup {
|
display: none;
|
||||||
padding-top: 20px;
|
background-color: rgb(240, 240, 238);
|
||||||
}
|
border-top: 2px solid #fff;
|
||||||
.popup a, .popup a:visited, .popup a:active {
|
border-right: 2px solid #ddd;
|
||||||
background-color: transparent;
|
border-bottom: 2px solid #ddd;
|
||||||
display: block;
|
border-left: 2px solid #fff;
|
||||||
width: 100%;
|
text-align: center;
|
||||||
text-decoration: none;
|
}
|
||||||
color: #246;
|
|
||||||
}
|
.imagewrap .popup {
|
||||||
.popup a:hover {
|
opacity: .90;
|
||||||
background-color: #fff;
|
filter:alpha(opacity=90);
|
||||||
color: #000;
|
}
|
||||||
}
|
|
||||||
.caption {
|
.otherwrap .popup { padding-top: 20px; }
|
||||||
text-align: center;
|
|
||||||
}
|
.popup a, .popup a:visited, .popup a:active {
|
||||||
#submit {
|
background-color: transparent;
|
||||||
margin: 1px;
|
display: block;
|
||||||
width: 99%;
|
width: 100%;
|
||||||
}
|
text-decoration: none;
|
||||||
#submit input, #submit input:focus {
|
color: #246;
|
||||||
background: url( images/fade-butt.png );
|
}
|
||||||
border: 3px double #999;
|
|
||||||
border-left-color: #ccc;
|
.popup a:hover {
|
||||||
border-top-color: #ccc;
|
background-color: #fff;
|
||||||
color: #333;
|
color: #000;
|
||||||
padding: 0.25em;
|
}
|
||||||
}
|
|
||||||
#submit input:active {
|
.caption { text-align: center; }
|
||||||
background: #f4f4f4;
|
|
||||||
border: 3px double #ccc;
|
#submit {
|
||||||
border-left-color: #999;
|
margin: 1px;
|
||||||
border-top-color: #999;
|
width: 99%;
|
||||||
}
|
}
|
||||||
.zerosize {
|
|
||||||
width: 0px;
|
#submit input, #submit input:focus {
|
||||||
height: 0px;
|
background: url( images/fade-butt.png );
|
||||||
overflow: hidden;
|
border: 3px double #999;
|
||||||
position: absolute;
|
border-left-color: #ccc;
|
||||||
}
|
border-top-color: #ccc;
|
||||||
#links {
|
color: #333;
|
||||||
margin: 3px 8px;
|
padding: 0.25em;
|
||||||
line-height: 2em;
|
}
|
||||||
}
|
|
||||||
#links textarea {
|
#submit input:active {
|
||||||
width: 95%;
|
background: #f4f4f4;
|
||||||
height: 4.5em;
|
border: 3px double #ccc;
|
||||||
}
|
border-left-color: #999;
|
||||||
|
border-top-color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.zerosize {
|
||||||
|
width: 0px;
|
||||||
|
height: 0px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
#links {
|
||||||
|
margin: 3px 8px;
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#links textarea {
|
||||||
|
width: 95%;
|
||||||
|
height: 4.5em;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<?php if ( ('rtl' == $wp_locale->text_direction) ): ?>
|
||||||
|
<style type="text/css">
|
||||||
|
body { font: 13px Tahoma, "Lucida Grande", "Lucida Sans Unicode", Verdana; }
|
||||||
|
|
||||||
|
.usingtext { text-align: right; }
|
||||||
|
|
||||||
|
th { text-align: left; }
|
||||||
|
|
||||||
|
.left, #upload-menu li { float: right; }
|
||||||
|
|
||||||
|
.right { float: left; }
|
||||||
|
|
||||||
|
.popup {
|
||||||
|
border-right: 2px solid #fff;
|
||||||
|
border-left: 2px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#upload-menu .current a {
|
||||||
|
border-right: 0;
|
||||||
|
border-left: 2px solid #448abd;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submit input, #submit input:focus {
|
||||||
|
border-left: 0;
|
||||||
|
border-right-color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submit input:active {
|
||||||
|
border-left: 0;
|
||||||
|
border-right-color: #999;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<?php endif; ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<ul id="upload-menu">
|
<ul id="upload-menu">
|
||||||
<li<?php echo $current_1; ?>><a href="<?php echo basename(__FILE__) . "?action=upload&post=$post&all=$all&start=$start"; ?>"><?php _e('Upload'); ?></a></li>
|
<li<?php echo $current_1; ?>><a href="<?php echo basename(__FILE__) . "?action=upload&post=$post&all=$all&start=$start"; ?>"><?php _e('Upload'); ?></a></li>
|
||||||
<?php if ( $attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ) { ?>
|
|
||||||
<li<?php echo $current_2; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=false"; ?>"><?php _e('Browse'); ?></a></li>
|
<?php if ( $attachments = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_parent = '$post'") ): ?>
|
||||||
<?php } ?>
|
<li<?php echo $current_2; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=false"; ?>"><?php _e('Browse'); ?></a></li>
|
||||||
<?php if ($wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_type = 'attachment'")) { ?>
|
<?php endif; ?>
|
||||||
<li<?php echo $current_3; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=true"; ?>"><?php _e('Browse All'); ?></a></li>
|
|
||||||
<?php } ?>
|
<?php if ($wpdb->get_var("SELECT count(ID) FROM $wpdb->posts WHERE post_type = 'attachment'")): ?>
|
||||||
<li> </li>
|
<li<?php echo $current_3; ?>><a href="<?php echo basename(__FILE__) . "?action=view&post=$post&all=true"; ?>"><?php _e('Browse All'); ?></a></li>
|
||||||
<?php if ( $action == 'view' ) { ?>
|
<?php endif; ?>
|
||||||
<?php if ( false !== $back ) : ?>
|
|
||||||
<li class="spacer"><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=0"; ?>" title="<?php _e('First'); ?>">|«</a></li>
|
<li> </li>
|
||||||
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$back"; ?>">« <?php _e('Back'); ?></a></li>
|
|
||||||
<?php else : ?>
|
<?php if ( $action == 'view' ): ?>
|
||||||
<li class="inactive spacer">|«</li>
|
<?php if ( false !== $back ): ?>
|
||||||
<li class="inactive">« <?php _e('Back'); ?></li>
|
<li class="spacer"><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=0"; ?>" title="<?php _e('First'); ?>">|«</a></li>
|
||||||
<?php endif; ?>
|
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$back"; ?>">« <?php _e('Back'); ?></a></li>
|
||||||
<?php if ( false !== $next ) : ?>
|
<?php else: ?>
|
||||||
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$next"; ?>"><?php _e('Next »'); ?></a></li>
|
<li class="inactive spacer">|«</li>
|
||||||
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&last=true"; ?>" title="<?php _e('Last'); ?>">»|</a></li>
|
<li class="inactive">« <?php _e('Back'); ?></li>
|
||||||
<?php else : ?>
|
<?php endif; ?>
|
||||||
<li class="inactive"><?php _e('Next »'); ?></li>
|
|
||||||
<li class="inactive">»|</li>
|
<?php if ( false !== $next ): ?>
|
||||||
<?php endif; ?>
|
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&start=$next"; ?>"><?php _e('Next »'); ?></a></li>
|
||||||
<?php } // endif not upload?>
|
<li><a href="<?php echo basename(__FILE__) . "?action=$action&post=$post&all=$all&last=true"; ?>" title="<?php _e('Last'); ?>">»|</a></li>
|
||||||
|
<?php else: ?>
|
||||||
|
<li class="inactive"><?php _e('Next »'); ?></li>
|
||||||
|
<li class="inactive">»|</li>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ( $action == 'view' ) : ?>
|
|
||||||
<div id="wrap">
|
<?php if ( $action == 'view' ): ?>
|
||||||
<!--<div class="tip"><?php _e('You can drag and drop these items into your post. Click on one for more options.'); ?></div>-->
|
<div id="wrap">
|
||||||
<div id="images">
|
<!--<div class="tip"><?php _e('You can drag and drop these items into your post. Click on one for more options.'); ?></div>-->
|
||||||
<?php echo $html; ?>
|
<div id="images">
|
||||||
<?php echo $popups; ?>
|
<?php echo $html; ?>
|
||||||
</div>
|
<?php echo $popups; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php elseif ( $action == 'upload' ) : ?>
|
</div>
|
||||||
<div class="tip"></div>
|
<?php elseif ( $action == 'upload' ): ?>
|
||||||
<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>">
|
<div class="tip"></div>
|
||||||
<table style="width:99%;">
|
<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>">
|
||||||
<tr>
|
<table style="width: 99%">
|
||||||
<th scope="row" align="right"><label for="upload"><?php _e('File:'); ?></label></th>
|
<tr>
|
||||||
<td><input type="file" id="upload" name="image" /></td>
|
<th scope="row"><label for="upload"><?php _e('File:'); ?></label></th>
|
||||||
</tr>
|
<td><input type="file" id="upload" name="image" /></td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row" align="right"><label for="title"><?php _e('Title:'); ?></label></th>
|
<tr>
|
||||||
<td><input type="text" id="title" name="imgtitle" /></td>
|
<th scope="row"><label for="title"><?php _e('Title:'); ?></label></th>
|
||||||
</tr>
|
<td><input type="text" id="title" name="imgtitle" /></td>
|
||||||
<tr>
|
</tr>
|
||||||
<th scope="row" align="right"><label for="descr"><?php _e('Description:'); ?></label></th>
|
<tr>
|
||||||
<td><input type="textarea" name="descr" id="descr" value="" /></td>
|
<th scope="row"><label for="descr"><?php _e('Description:'); ?></label></th>
|
||||||
</tr>
|
<td><input type="textarea" name="descr" id="descr" value="" /></td>
|
||||||
<tr id="buttons">
|
</tr>
|
||||||
<th></th>
|
<tr id="buttons">
|
||||||
<td>
|
<th></th>
|
||||||
<input type="hidden" name="action" value="save" />
|
<td>
|
||||||
<input type="hidden" name="post" value="<?php echo $post; ?>" />
|
<input type="hidden" name="action" value="save" />
|
||||||
<input type="hidden" name="all" value="<?php echo $all; ?>" />
|
<input type="hidden" name="post" value="<?php echo $post; ?>" />
|
||||||
<input type="hidden" name="start" value="<?php echo $start; ?>" />
|
<input type="hidden" name="all" value="<?php echo $all; ?>" />
|
||||||
<?php wp_nonce_field( 'inlineuploading' ); ?>
|
<input type="hidden" name="start" value="<?php echo $start; ?>" />
|
||||||
<div id="submit">
|
<?php wp_nonce_field( 'inlineuploading' ); ?>
|
||||||
<input type="submit" value="<?php _e('Upload'); ?>" />
|
<div id="submit">
|
||||||
<?php if ( !empty($all) ) : ?>
|
<input type="submit" value="<?php _e('Upload'); ?>" />
|
||||||
<input type="button" value="<?php _e('Cancel'); ?>" onclick="cancelUpload()" />
|
<?php if ( !empty($all) ): ?>
|
||||||
<?php endif; ?>
|
<input type="button" value="<?php _e('Cancel'); ?>" onclick="cancelUpload()" />
|
||||||
</div>
|
<?php endif; ?>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
</form>
|
</table>
|
||||||
<?php elseif ( $action == 'links' ) : ?>
|
</form>
|
||||||
<div id="links">
|
<?php elseif ( $action == 'links' ): ?>
|
||||||
<?php the_attachment_links($attachment); ?>
|
<div id="links">
|
||||||
</div>
|
<?php the_attachment_links($attachment); ?>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -0,0 +1 @@
|
||||||
|
body { font-family: Tahoma, Georgia, "Times New Roman", Times, serif; }
|
|
@ -0,0 +1,40 @@
|
||||||
|
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;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
define('WP_INSTALLING', true);
|
define('WP_INSTALLING', true);
|
||||||
if (!file_exists('../wp-config.php'))
|
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.");
|
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.");
|
||||||
|
|
||||||
require_once('../wp-config.php');
|
require_once('../wp-config.php');
|
||||||
require_once('./upgrade-functions.php');
|
require_once('./upgrade-functions.php');
|
||||||
|
@ -13,62 +13,14 @@ else
|
||||||
header( 'Content-Type: text/html; charset=utf-8' );
|
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">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
||||||
<head>
|
<head>
|
||||||
<title><?php _e('WordPress › Installation'); ?></title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<style media="screen" type="text/css">
|
<title><?php _e('WordPress › Installation'); ?></title>
|
||||||
<!--
|
<link rel="stylesheet" href="install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
|
||||||
html {
|
<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
|
||||||
background: #eee;
|
<link rel="stylesheet" href="install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
|
||||||
}
|
<?php endif; ?>
|
||||||
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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
||||||
|
@ -77,55 +29,49 @@ header( 'Content-Type: text/html; charset=utf-8' );
|
||||||
if ( is_blog_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>');
|
if ( is_blog_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>');
|
||||||
|
|
||||||
switch($step) {
|
switch($step) {
|
||||||
|
|
||||||
case 0:
|
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>
|
<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>
|
<h2 class="step"><a href="install.php?step=1"><?php _e('First Step »'); ?></a></h2>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h1><?php _e('First Step'); ?></h1>
|
<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>
|
<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">
|
<form id="setup" method="post" action="install.php?step=2">
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<th width="33%"><?php _e('Weblog title:'); ?></th>
|
<th width="33%"><?php _e('Weblog title:'); ?></th>
|
||||||
<td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
|
<td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php _e('Your e-mail:'); ?></th>
|
<th><?php _e('Your e-mail:'); ?></th>
|
||||||
<td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
|
<td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row" valign="top"> <?php __('Privacy:'); ?></th>
|
<th scope="row" valign="top"> <?php __('Privacy:'); ?></th>
|
||||||
<td><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('I would like my blog to appear in search engines like Google and Technorati.'); ?></label></td>
|
<td><label><input type="checkbox" name="blog_public" value="1" checked="checked" /> <?php _e('I would like my blog to appear in search engines like Google and Technorati.'); ?></label></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<p><em><?php _e('Double-check that email address before continuing.'); ?></em></p>
|
<p><em><?php _e('Double-check that email address before continuing.'); ?></em></p>
|
||||||
<h2 class="step">
|
<h2 class="step"><input type="submit" name="Submit" value="<?php _e('Continue to Second Step »'); ?>" /></h2>
|
||||||
<input type="submit" name="Submit" value="<?php _e('Continue to Second Step »'); ?>" />
|
|
||||||
</h2>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
// Fill in the data we gathered
|
||||||
// Fill in the data we gathered
|
$weblog_title = stripslashes($_POST['weblog_title']);
|
||||||
$weblog_title = stripslashes($_POST['weblog_title']);
|
$admin_email = stripslashes($_POST['admin_email']);
|
||||||
$admin_email = stripslashes($_POST['admin_email']);
|
$public = (int) $_POST['blog_public'];
|
||||||
$public = (int) $_POST['blog_public'];
|
// check e-mail address
|
||||||
// check e-mail address
|
if (empty($admin_email)) {
|
||||||
if (empty($admin_email)) {
|
die(__("<strong>ERROR</strong>: please type your e-mail address"));
|
||||||
die (__("<strong>ERROR</strong>: please type your e-mail address"));
|
} else if (!is_email($admin_email)) {
|
||||||
} else if (!is_email($admin_email)) {
|
die(__("<strong>ERROR</strong>: the e-mail address isn't correct"));
|
||||||
die (__("<strong>ERROR</strong>: the e-mail address isn't correct"));
|
}
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h1><?php _e('Second Step'); ?></h1>
|
<h1><?php _e('Second Step'); ?></h1>
|
||||||
|
@ -133,29 +79,30 @@ if (empty($admin_email)) {
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$result = wp_install($weblog_title, __('admin'), $admin_email, $public);
|
||||||
$result = wp_install($weblog_title, __('admin'), $admin_email, $public);
|
extract($result);
|
||||||
extract($result);
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p><em><?php _e('Finished!'); ?></em></p>
|
<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', $password); ?></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', $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><?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>
|
||||||
</p>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt><?php _e('Username'); ?></dt>
|
<dt><?php _e('Username'); ?></dt>
|
||||||
<dd><code><?php _e('admin') ?></code></dd>
|
<dd><code><?php _e('admin') ?></code></dd>
|
||||||
<dt><?php _e('Password'); ?></dt>
|
<dt><?php _e('Password'); ?></dt>
|
||||||
<dd><code><?php echo $password; ?></code></dd>
|
<dd><code><?php echo $password; ?></code></dd>
|
||||||
<dt><?php _e('Login address'); ?></dt>
|
<dt><?php _e('Login address'); ?></dt>
|
||||||
<dd><a href="../wp-login.php">wp-login.php</a></dd>
|
<dd><a href="../wp-login.php">wp-login.php</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p><?php _e('Were you expecting more steps? Sorry to disappoint. All done! :)'); ?></p>
|
<p><?php _e('Were you expecting more steps? Sorry to disappoint. All done! :)'); ?></p>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p>
|
<p id="footer"><?php _e('<a href="http://wordpress.org/">WordPress</a>, personal publishing platform.'); ?></p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,86 +1,46 @@
|
||||||
<?php
|
<?php
|
||||||
define('WP_INSTALLING', true);
|
define('WP_INSTALLING', true);
|
||||||
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
|
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://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.");
|
||||||
|
|
||||||
require('../wp-config.php');
|
require('../wp-config.php');
|
||||||
timer_start();
|
timer_start();
|
||||||
require_once(ABSPATH . '/wp-admin/upgrade-functions.php');
|
require_once(ABSPATH . '/wp-admin/upgrade-functions.php');
|
||||||
|
|
||||||
$step = $_GET['step'];
|
if (isset($_GET['step']))
|
||||||
if (!$step) $step = 0;
|
$step = $_GET['step'];
|
||||||
header( 'Content-Type: text/html; charset=utf-8' );
|
else
|
||||||
|
$step = 0;
|
||||||
|
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!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">
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
||||||
<head>
|
<head>
|
||||||
<title>WordPress › Upgrade</title>
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<title><?php _e('WordPress › Upgrade'); ?></title>
|
||||||
<style media="screen" type="text/css">
|
<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install.css?version=<?php bloginfo('version'); ?>" type="text/css" />
|
||||||
<!--
|
<?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
|
||||||
html {
|
<link rel="stylesheet" href="<?php echo get_option('siteurl') ?>/wp-admin/install-rtl.css?version=<?php bloginfo('version'); ?>" type="text/css" />
|
||||||
background: #eee;
|
<?php endif; ?>
|
||||||
}
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
.step, th {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
#footer {
|
|
||||||
text-align: center; border-top: 1px solid #ccc; padding-top: 1em; font-style: italic;
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
|
||||||
<?php
|
<?php
|
||||||
switch($step) {
|
switch($step) {
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
$goback = wp_specialchars(wp_get_referer());
|
$goback = wp_specialchars(wp_get_referer());
|
||||||
?>
|
?>
|
||||||
<p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p>
|
<p><?php _e('This file upgrades you from any previous version of WordPress to the latest. It may take a while though, so be patient.'); ?></p>
|
||||||
<h2 class="step"><a href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress »'); ?></a></h2>
|
<h2 class="step"><a href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress »'); ?></a></h2>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
wp_upgrade();
|
wp_upgrade();
|
||||||
|
|
||||||
if ( empty( $_GET['backto'] ) )
|
if ( empty( $_GET['backto'] ) )
|
||||||
$backto = __get_option('home');
|
$backto = __get_option('home');
|
||||||
else
|
else
|
||||||
$backto = wp_specialchars( $_GET['backto'] , 1 );
|
$backto = wp_specialchars( $_GET['backto'] , 1 );
|
||||||
?>
|
?>
|
||||||
<h2><?php _e('Step 1'); ?></h2>
|
<h2><?php _e('Step 1'); ?></h2>
|
||||||
<p><?php printf(__("There's actually only one step. So if you see this, you're done. <a href='%s'>Have fun</a>!"), $backto); ?></p>
|
<p><?php printf(__("There's actually only one step. So if you see this, you're done. <a href='%s'>Have fun</a>!"), $backto); ?></p>
|
||||||
|
@ -94,7 +54,7 @@ switch($step) {
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue