Plugin cfg, formulaires, include

Bonjour

Je développe actuellement un plugin dont l’interface administration est codée en utilisant, en partie, cfg.

J’ai été contraint d’insérer avec du code PHP mon propre formulaire tel que:

<form method="post" action="/spip/plugins/simplegallery/sources/controler/ControlerDeletedPictures.php">
    <div style="display:inline ">
        <img src="http://localhost/spip/plugins/simplegallery/Icon/red.jpg" alt="red.jpg" class="class_deleteIcon" />
        <input type="checkbox" name="red.jpg" id="red.jpg" /> 
        <label for="red.jpg">Supprimer</label>
    </div>
    <div style="display:inline ">
        <img src="http://localhost/spip/plugins/simplegallery/Icon/black.gif" alt="black.gif" class="class_deleteIcon" />
        <input type="checkbox" name="black.gif" id="black.gif" /> 
        <label for="black.gif">Supprimer</label>
    </div>
    <input type="submit" name="envoyer" value="Supprimer"/>
</form>

Le code php "/spip/plugins/simplegallery/sources/controler/ControlerDeletedPictures.php" appelé par mon formula
ire doit pouvoir utiliser les fonction spip et cfg tel que lire_config or je ne vois pas quels fichiers de code inclure?

Quelqu'un a t-il une solution à mon problème :p?


Votre correspondant a choisi Hotmail et profite d’un stockage quasiment illimité. Créez un compte Hotmail gratuitement !