X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fplugins%2Fcrayons%2Faction%2Fcrayons_upload.php;fp=www%2Fplugins%2Fcrayons%2Faction%2Fcrayons_upload.php;h=f09e7befd5ed1f3eecfd9af0ae16adabfd2f275d;hp=0000000000000000000000000000000000000000;hb=39f8b2ffa1fd0a3c67d6c74ed0fee9af296ccbb8;hpb=65eb21b34b55f850024ccda121bb96c73be4309f diff --git a/www/plugins/crayons/action/crayons_upload.php b/www/plugins/crayons/action/crayons_upload.php new file mode 100644 index 0000000..f09e7be --- /dev/null +++ b/www/plugins/crayons/action/crayons_upload.php @@ -0,0 +1,61 @@ +=')) + define('_SPIP3', true); + } + if (defined('_SPIP3')) { + include_spip('action/ajouter_documents'); + $ajouter_un_document = charger_fonction('ajouter_un_document','action'); + $id = $ajouter_un_document("new", $file, $type, $id, 'document'); + } else { + include_spip('inc/ajouter_documents'); + $id = ajouter_un_document($source, $nom_envoye, $type, $id, 'document', $id_document=0, $documents_actifs, $titrer=true); + } + } + + if (!$id) + $erreur = "erreur !"; + + $a = recuperer_fond('modeles/uploader_item',array('id_document' => $id, 'erreur' => $erreur)); + + echo $a; +} + +?>