Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27249/include/admin
Modified Files:
import.inc.php
Log Message:
New MT-Importer.
- Actually works
- Tries hard to inform the user of missing plugins concerning conversion of linebreaks
- Uses transactions to import all in one transaction. Much faster in PG and SQLite
Index: import.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/import.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- import.inc.php 19 Nov 2004 11:05:32 -0000 1.2
+++ import.inc.php 9 Jan 2005 10:34:03 -0000 1.3
@@ -9,6 +9,7 @@
/* For later use */
class Serendipity_Import {
+ function getImportNotes(){ return ""; }
}
@@ -41,7 +42,7 @@
<?php echo IMPORT_PLEASE_ENTER ?>:<br />
<br />
-<form action="" method="POST">
+<form action="" method="POST" enctype="multipart/form-data">
<table cellpadding="3" cellspacing="2">
<?php foreach ( $importer->getInputFields() as $field ) { ?>
<tr>
@@ -49,6 +50,14 @@
<td><?php serendipity_guessInput($field['type'], 'serendipity[import]['. $field['name'] .']', $serendipity['POST']['import'][$field['name']], $field['default']) ?></td>
</tr>
<?php } ?>
+ <?php if ($notes = $importer->getImportNotes()){ ?>
+ <tr>
+ <td colspan="2">
+ <b><?php echo IMPORT_NOTES; ?></b><br />
+ <?php echo $notes ?>
+ </td>
+ </tr>
+ <?php } ?>
<tr>
<td colspan="2" align="right"><input type="submit" value="<?php echo IMPORT_NOW ?>"></td>
</tr>
|