Update of /cvsroot/php-blog/serendipity/include/admin/importers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11250/include/admin/importers
Modified Files:
generic.inc.php movabletype.inc.php wordpress.inc.php
Log Message:
Update and unify licensing header
Index: generic.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/importers/generic.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- generic.inc.php 2 Dec 2004 10:54:56 -0000 1.4
+++ generic.inc.php 26 Jan 2005 14:14:05 -0000 1.5
@@ -1,4 +1,6 @@
<?php # $Id$
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
+# All rights reserved. See LICENSE file for licensing details
require_once 'bundled-libs/Onyx/RSS.php';
Index: wordpress.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/importers/wordpress.inc.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- wordpress.inc.php 3 Dec 2004 18:47:18 -0000 1.7
+++ wordpress.inc.php 26 Jan 2005 14:14:05 -0000 1.8
@@ -1,4 +1,6 @@
<?php # $Id$
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
+# All rights reserved. See LICENSE file for licensing details
/*****************************************************************
* WordPress Importer, by Evan Nemerson *
Index: movabletype.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/importers/movabletype.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- movabletype.inc.php 9 Jan 2005 10:34:04 -0000 1.4
+++ movabletype.inc.php 26 Jan 2005 14:14:05 -0000 1.5
@@ -1,4 +1,6 @@
<?php # $Id$
+# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
+# All rights reserved. See LICENSE file for licensing details
/*****************************************************************
* MovableType Importer, by Evan Nemerson *
@@ -64,7 +66,7 @@
$entry = array();
$entry['categories'] = array();
$entryprops = array();
-
+
foreach($mt_entry as $name => $data){
switch($name){
case 'AUTHOR':
@@ -112,7 +114,7 @@
$cat_found = true;
break;
}
- }
+ }
if ( $cat_found){
if (!in_array($this->categories[$y]['categoryid'], $entry['categories']) ) {
//$entries[$n]['categories'][] = $categories[$y]['categoryid'];
@@ -128,7 +130,7 @@
$entry['props'] = $entryprops;
return $entry;
}
-
+
function import() {
global $serendipity;
@@ -149,9 +151,9 @@
$entries = array();
$fh = fopen($_FILES['serendipity']['tmp_name']['import']['mt_dat'], 'r');
-
+
$n = 0;
-
+
$entry = array();
$el = "";
$skip = false;
@@ -160,7 +162,7 @@
if ($skip && (!preg_match('/^--------/', $line)))
continue;
if (preg_match('/^--------/', $line)){
- // We found the end marker of the current entry. Add to
+ // We found the end marker of the current entry. Add to
// entries-Array
$entries[] = $this->doEntryWork($entry, $tasks);
$entry = array();
@@ -171,7 +173,7 @@
if (preg_match('/^([A-Z]+):/', $line, $matches)){
if ($matches[1] == 'COMMENT'){
// todo: really handle comments.
- $skip = true;
+ $skip = true;
}else{
$el = $matches[1];
}
|