Changeset 7842 in spip-zone


Ignore:
Timestamp:
Dec 9, 2006, 4:41:33 PM (12 years ago)
Author:
bertrand@…
Message:

Un driver passant de GET a l'interieur de POST
Ajout du cfg sms2email pour voir.

Location:
_plugins_/_dev_/sms
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/sms/exec/config_sms.php

    r7841 r7842  
    11<?php
    22/*
    3  * Envoi de sms
     3 * Config du plugin sms pour Net_SMS de Horde
    44 *
    55 * Auteur : bertrand@toggg.com
     
    1010function exec_config_sms_dist()
    1111{
     12        $contexte = array('base_url' => generer_url_ecrire('config_sms', ''));
     13        if (($addDriver = _request('adddriver'))) {
     14                $contexte['driver'] = $addDriver;
     15        }
     16
    1217        $champs = array('prestataire', 'user', 'password', 'api_id',
    1318                                        'text', 'from', 'to', 'id');
     
    2631*/
    2732        config_sms_debut_page($message);
    28 // pour developpement, fixe clickatell
    29         $contexte['driver'] = 'clickatell_http';
     33
    3034        echo config_sms_fond($contexte);
    3135       
  • _plugins_/_dev_/sms/exec/envoi_sms.php

    r7774 r7842  
    1010function exec_envoi_sms_dist()
    1111{
     12        $contexte = array('base_url' => generer_url_ecrire('envoi_sms'));
    1213        $champs = array('prestataire', 'user', 'password', 'api_id',
    1314                                        'text', 'from', 'to', 'id');
  • _plugins_/_dev_/sms/fonds/cfg_clickatell_http.html

    r7841 r7842  
    55]
    66#CACHE{0}
    7 [(#INCLURE{fond=fonds/config_sms_head}{lang}{hash}{arg}{compte=1})]
     7[(#INCLURE{fond=fonds/config_sms_head}{lang}{base_url}{hash}{arg}{compte=1})]
    88
    9 <fieldset><legend>Identification</legend>
    10 <label>*<:SMS:compte:></label>
     9<fieldset><legend><:Identification:> Clickatell</legend>
     10<label>*<:SMS:login:></label>
    1111<input type="text" name="user" value="#ENV{user}" size="10" />
    1212<label>*<:SMS:mot_de_passe:>
    1313</label><input type="password" name="password" value="#ENV{password}" size="10" />
    14 <label><:SMS:api_id:></label>
     14<label>*<:SMS:api_id:></label>
    1515<input type="text" name="api_id" value="#ENV{api_id}" size="8" />
    1616</fieldset>
  • _plugins_/_dev_/sms/fonds/config_sms_foot.html

    r7841 r7842  
    55]
    66<input type="submit" name="ok" value="<:OK:>" />
     7<input type="reset" value="<:Reset:>" />
    78<input type="submit" name="delete" value="<:Supprimer:>" />
    89</form>
  • _plugins_/_dev_/sms/fonds/config_sms_head.html

    r7841 r7842  
    55]
    66<div>
    7 <form method="post">
     7<form method="post" action="#ENV{base_url}">
    88<input name="hash" type="hidden" value="#ENV{hash}" />
    99<input name="arg" type="hidden" value="#ENV{arg}" />
    1010<input name="exec" type="hidden" value="config_sms" />
    11 <fieldset><legend><:SMS:parametres_pour_compte:></legend>
     11<fieldset><label>*<:SMS:compte:></label>
    1212<input type="text" name="compte" value="#ENV{compte}" size="15" />
    1313<input type="hidden" name="was_compte" value="#ENV{compte}" />
  • _plugins_/_dev_/sms/fonds/envoi_sms.html

    r7766 r7842  
    66#CACHE{0}
    77<div>
    8 <form method="post">
     8<form method="post" action="#ENV{base_url}">
    99<input name="hash" type="hidden" value="#ENV{hash}" />
    1010<input name="arg" type="hidden" value="#ENV{arg}" />
Note: See TracChangeset for help on using the changeset viewer.