Changeset 112609 in spip-zone
- Timestamp:
- Dec 3, 2018, 1:51:33 PM (2 years ago)
- Location:
- _plugins_/sms/trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/sms/trunk/classes/octopush/config.inc.php
r108050 r112609 42 42 define('SIMULATION', 'simu'); 43 43 define('REEL', 'real'); 44 ?> -
_plugins_/sms/trunk/classes/octopush/sms.inc.php
r108399 r112609 49 49 $this->api_key = ''; 50 50 51 $this->sms_text 51 $this->sms_text = ''; 52 52 53 53 $this->sms_recipients = array(); … … 81 81 public function send() 82 82 { 83 $domain 84 $path = PATH_SMS;85 $port = PORT;83 $domain = DOMAIN; 84 $path = PATH_SMS; 85 $port = PORT; 86 86 87 87 $data = array( … … 203 203 204 204 $data = array( 205 'user_login' 206 'api_key' 207 'first_name' 208 'last_name' 209 'raison_sociale' 210 'alert_bound' 211 'alert_sms_type' 205 'user_login' => $this->user_login, 206 'api_key' => $this->api_key, 207 'first_name' => $first_name, 208 'last_name' => $last_name, 209 'raison_sociale'=> $raison_sociale, 210 'alert_bound' => intval($alert_bound), 211 'alert_sms_type'=> $alert_sms_type 212 212 ); 213 213 … … 229 229 230 230 $data = array( 231 'user_login' 232 'api_key' 233 'sub_account_email' 231 'user_login' => $user_login, 232 'api_key' => $api_key, 233 'sub_account_email' => $sub_account_email 234 234 ); 235 235 … … 269 269 270 270 $data = array( 271 'user_login' 272 'api_key' 273 'sub_account_email' 274 'sms_number' 275 'sms_type' 276 'token' 271 'user_login' => $user_login, 272 'api_key' => $api_key, 273 'sub_account_email' => $sub_account_email, 274 'sms_number' => $sms_amount, 275 'sms_type' => $sms_type, 276 'token' => $token 277 277 ); 278 278 … … 546 546 547 547 } 548 549 ?> -
_plugins_/sms/trunk/formulaires/configurer_sms.html
r108050 r112609 62 62 <li class="fieldset octopush"> 63 63 <h3 class="legend">Octopush</h3> 64 #SET{standard,#VAL{standard}|balance} 65 #SET{premium,#VAL{premium}|balance} 66 <p class="explication"><:sms:explication_octopush{standard=#GET{standard}, premium=#GET{premium}}:></p> 64 <p class="explication"><INCLURE{fond=inclure/octopush_balance} /></p> 67 65 <ul> 68 66 <li class="editer"> -
_plugins_/sms/trunk/paquet.xml
r112139 r112609 2 2 prefix="sms" 3 3 categorie="communication" 4 version="1.1. 5"4 version="1.1.6" 5 5 etat="test" 6 6 compatibilite="[3.0.0;3.2.*]" … … 15 15 <licence>GNU/GPL</licence> 16 16 17 <pipeline nom="declarer_tables_objets_sql" inclure 18 <pipeline nom="declarer_tables_interfaces" inclure 17 <pipeline nom="declarer_tables_objets_sql" inclure="base/sms.php" /> 18 <pipeline nom="declarer_tables_interfaces" inclure="base/sms.php" /> 19 19 20 20 </paquet> -
_plugins_/sms/trunk/sms_fonctions.php
r112139 r112609 118 118 return $xml; 119 119 } 120 121 122 /** 123 * Afficher la balance de sms disponible 124 * 125 * <INCLURE{fond=inclure/octopush_balance} /> pour l'affichage 126 * 127 * @param string $type 128 * standard ou premium 129 * @return boolean 130 * valeur en nombre entier de sms restant 131 **/ 120 132 function filtre_balance($type) { 121 133 $username = lire_config('sms/login_octopush');
Note: See TracChangeset
for help on using the changeset viewer.