Changeset 27121 in spip-zone


Ignore:
Timestamp:
Mar 7, 2009, 1:22:26 AM (11 years ago)
Author:
booz@…
Message:

garder les id du joomla dans le spip

Location:
_plugins_/_test_/joomla2spip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/joomla2spip/joomla2spip-convertir.html

    r26242 r27121  
    7171<hr />
    7272[(#REM) importer l'article]
    73 [(#SET{mon_article,#ARRAY{rubrique,#GET{rubrique},date,#PUBLISH_UP,maj,#MODIFIED,statut,#GET{statut},visites,#HITS,titre,#TITLE*,descriptif,#GET{descriptif},ps,#GET{titre_original},chapo,#GET{chapo},texte,#GET{texte}}})]
     73[(#SET{mon_article,#ARRAY{rubrique,#GET{rubrique},date,#PUBLISH_UP,maj,#MODIFIED,statut,#GET{statut},visites,#HITS,titre,#TITLE*,descriptif,#GET{descriptif},ps,#GET{titre_original},chapo,#GET{chapo},texte,#GET{texte},id_article,#ID}})]
    7474[(#GET{mon_article}|article_import)]
    7575</BOUCLE_articles>
  • _plugins_/_test_/joomla2spip/joomla2spip_fonctions.php

    r27119 r27121  
    167167        include_spip('action/editer_article');
    168168        $id_article = insert_article($id_rubrique);
    169 
     169        $ancien_id = $mon_article['id_article'];
     170        $sql = "UPDATE spip_articles SET id_article = '$ancien_id' WHERE id_article = '$id_article'";
     171        spip_query($sql);
     172        $id_article = $ancien_id ;
    170173        // le remplir
    171174        $c = array();
  • _plugins_/_test_/joomla2spip/notes.txt

    r27116 r27121  
    56565       publisher       
    57576       manager
     58
     59
     60Pour lancer la convertion regler php.ini
     61
     62;;;;;;;;;;;;;;;;;;;
     63; Resource Limits ;
     64;;;;;;;;;;;;;;;;;;;
     65
     66max_execution_time = 18000     ; Maximum execution time of each script, in seconds
     67max_input_time = 18000  ; Maximum amount of time each script may spend parsing request data
     68memory_limit = 64M      ; Maximum amount of memory a script may consume (8MB)
Note: See TracChangeset for help on using the changeset viewer.