Changeset 28773 in spip-zone


Ignore:
Timestamp:
May 22, 2009, 7:18:15 PM (12 years ago)
Author:
fil@…
Message:

compte de tests + antibegaiement

Location:
_plugins_/_test_/microblog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/microblog/fonds/cfg_microblog.html

    r28772 r28773  
    5555</p>
    5656
    57 
     57<p><small>Compte de tests : twitter | spipotest spipotest1</small></p>
    5858</fieldset>
    5959
  • _plugins_/_test_/microblog/inc/microblog.php

    r28772 r28773  
    6363        $datas = array('status' => $status);
    6464
     65        // anti-begaiment
     66        $begaie = md5("$service $user $status");
     67        if ($md5 == $GLOBALS['meta']['microblog_begaie']) {
     68                spip_log("begaie $service $user $status", 'microblog');
     69                return false;
     70        }
     71
    6572        // ping et renvoyer la reponse xml
    6673        include_spip('inc/distant');
    67         return recuperer_page($api, false, false, null, $datas);
    68 
     74        $ret = recuperer_page($api, false, false, null, $datas);
     75        spip_log("$service $user $status ".strlen($ret), 'microblog');
     76        return $ret;
    6977}
    7078
Note: See TracChangeset for help on using the changeset viewer.