GlisWeb framework
_ehiweb.php
Vai alla documentazione di questo file.
1 <?php
2 
14  // inclusione del framework
15  require '../../../_src/_config.php';
16 
17  // ordinamento degli array per la scrittura
18  rksort( $cf );
19  rksort( $ct );
20 
21  // output
22  $tx = NULL;
23  $r = NULL;
24 
25  // invio mail di test (decommentare per l'invio)
26  $r = ehiwebSend(
27  'SMS di prova àèéìòù',
28  array( '393294349095' ),
29  $cf['sms']['servers']['ehiweb']['username'],
30  $cf['sms']['servers']['ehiweb']['password'],
31  'GlisWeb',
32  $cf['sms']['servers']['ehiweb']['id_api']
33  );
34 
35  // esito
36  $tx .= 'esito invio SMS di test: ' . $r . PHP_EOL;
37 
38  // nascondo le password
39  array_walk_recursive( $cf['sms'], function( &$v, $k ) { if( $k === 'password' || $k === 'private' ) { $v = '***'; } } );
40 
41  // array $cf
42  $tx .= print_r( $cf['sms'], true ) . PHP_EOL;
43 
44  // output
45  build( $tx );
46 
47 ?>
if(isset( $cx['contatti'])) if(isset( $cf['site']['contatti'])) $ct['contatti']
Definition: _035.common.php:24
rksort(&$array)
$r
Definition: _ehiweb.php:23
$cf['ricerca']['template']
Definition: _030.common.php:7
ehiwebSend( $testo, $to, $user=NULL, $pasw=NULL, $from=NULL, $id_api=NULL, $url='https://secure.apisms.it/http/send_sms')
$tx
Definition: _ehiweb.php:22
build( $content, $type=MIME_TEXT_PLAIN, $encoding=ENCODING_UTF8, $headers=array())