source: spip-zone/_plugins_/inc/image_insertion.php @ 31412

Last change on this file since 31412 was 31412, checked in by fdm@…, 12 years ago

Mise à jour spip 2.0

File size: 576 bytes
Line 
1
2<?
3/*
4--------G.E.N.E.S.P.I.P-------
5---SITE genealogique & SPIP---
6------Christophe RENOU--------
7*/
8echo "test2";
9$chemin=_DIR_PLUGIN_GENESPIP.'IMG/';
10$split = split('/',$_FILES['image']['type']);
11echo $chemin;
12if (is_uploaded_file($_FILES['image']['tmp_name'])) {
13   echo "Fichier ". $_FILES['image']['name'] ." t&eacute;l&eacute;charg&eacute; avec succ&egrave;s.\n";
14   move_uploaded_file ( $_FILES['image']['tmp_name'],$chemin."portrait".$_POST['id_individu'].".".$split[1]);
15genespip_modif_fiche_portrait(1,$_POST['id_individu'],$split[1]);
16}
17
18
19?>
20
Note: See TracBrowser for help on using the repository browser.