mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 20:41:27 +02:00
add a few info on the current state
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
* Administration - Database Utilities
|
* Administration - Database Utilities
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/db.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/db.php,v $
|
||||||
* $Revision: 1.43 $
|
* $Revision: 1.44 $
|
||||||
* $Date: 2009-11-14 04:05:35 $
|
* $Date: 2009-11-14 04:14:56 $
|
||||||
* $Author: e107coders $
|
* $Author: marj_nl_fr $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -210,22 +210,34 @@ class system_tools
|
|||||||
|
|
||||||
private function convertUTF8Form()
|
private function convertUTF8Form()
|
||||||
{
|
{
|
||||||
$mes = e107::getMessage();
|
$emessage = e107::getMessage();
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
//TODO a function to call the e107_config information in e107_class.php.
|
//TODO a function to call the e107_config information in e107_class.php.
|
||||||
require(e_BASE."e107_config.php");
|
require(e_BASE."e107_config.php");
|
||||||
$dbtable = $mySQLdefaultdb;
|
$dbtable = $mySQLdefaultdb;
|
||||||
|
|
||||||
//TODO LAN
|
//TODO LAN
|
||||||
$message = "
|
$message = '
|
||||||
This function will permanantly modify all tables in your database. (".$mySQLdefaultdb.")<br />
|
This function will permanently modify all tables in your database. ('.$mySQLdefaultdb.')<br />
|
||||||
It is <b>HIGHLY</b> recommended that you backup your database first.<br />
|
It is <b>HIGHLY</b> recommended that you backup your database first.<br />
|
||||||
Be sure to click the 'Convert Database' button only once.
|
If possible use a copy of your database.<br />
|
||||||
The conversion process can take up to one 1 minute or more depending on the size of your database.
|
Do not forget to purge unnecessary input - e.g. old chatbox messages, pm, …<br />
|
||||||
";
|
as well as to set the maintenance flag to main admins only.<br />
|
||||||
|
<br />
|
||||||
|
Be sure to click the “Convert Database” button only once.<br />
|
||||||
|
The conversion process can take up to one minute or much much more depending on the size of your database.<br />
|
||||||
|
<br />
|
||||||
|
Known problems (list non-exhaustive):
|
||||||
|
<ul>
|
||||||
|
<li>The MySQL user needs privileges to ALTER the database - this is mandatory.</li>
|
||||||
|
<li>The conversion does not work with serialised arrays.<br />
|
||||||
|
<strong>Be sure</strong> you followed all steps of the upgrade process first.</li>
|
||||||
|
<li>It should work without troubles for databases of sites using only UTF-8 charset. Probably not with other charsets.</li>
|
||||||
|
<li>The function uses the information_schema database for now.</li>
|
||||||
|
</ul>
|
||||||
|
';
|
||||||
|
|
||||||
$mes->add($message, E_MESSAGE_WARNING);
|
$emessage->add($message, E_MESSAGE_WARNING);
|
||||||
|
|
||||||
$text = "<div style='text-align:center'>
|
$text = "<div style='text-align:center'>
|
||||||
<form method='post' action='".e_SELF."' id='linkform'>
|
<form method='post' action='".e_SELF."' id='linkform'>
|
||||||
@@ -237,7 +249,7 @@ class system_tools
|
|||||||
</form>
|
</form>
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
e107::getRender()->tablerender("Convert", $mes->render().$text);
|
e107::getRender()->tablerender("Convert", $emessage->render().$text);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user