Changeset 7851 in spip-zone


Ignore:
Timestamp:
Dec 10, 2006, 1:30:40 AM (12 years ago)
Author:
bertrand@…
Message:

Juste histoire d'y poser , mais c'est pas possible d'utiliser ca :(

File:
1 edited

Legend:

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

    r7850 r7851  
    6464
    6565    return $drivers;
     66}
     67
     68function lire_config_sms()
     69{
     70    global $meta;
     71    if (!($meta['config_sms'])) {
     72        return array();
     73    }
     74    return unserialize($meta['config_sms']);
     75}
     76
     77function ecrire_config_sms($compte = '', $data = array())
     78{
     79    $cfg = lire_config_sms();
     80    if ($data) {
     81        $cfg[$compte] = $data;
     82    } else {
     83        unset($cfg[$compte]);
     84    }
     85    if (count($cfg)) {
     86            ecrire_meta('config_sms', serialize($cfg));
     87    } else {
     88            effacer_meta('config_sms');
     89    }
    6690}
    6791
Note: See TracChangeset for help on using the changeset viewer.