Last change
on this file since 533 was
76,
checked in by sebas, 16 years ago
|
plugin de abonomailman para enviar boletin electronico
basado sobre los cambios de sebas para arreglar los envios.
|
-
Property svn:executable set to
*
|
File size:
944 bytes
|
Rev | Line | |
---|
[76] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | * Abomailmans |
---|
| 4 | * MaZiaR - NetAktiv |
---|
| 5 | * tech@netaktiv.com |
---|
| 6 | * Printemps 2007 |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | $spip_abomailmans = array( |
---|
| 10 | "id_abomailman" => "bigint(21) NOT NULL", |
---|
| 11 | "titre" => "varchar(255) NOT NULL", |
---|
| 12 | "descriptif" => "text", |
---|
| 13 | "email" => "varchar(255)", |
---|
| 14 | "maj" => "TIMESTAMP"); |
---|
| 15 | |
---|
| 16 | $spip_abomailmans_key = array( |
---|
| 17 | "PRIMARY KEY" => "id_abomailman"); |
---|
| 18 | |
---|
| 19 | global $tables_principales; |
---|
| 20 | $tables_principales['spip_abomailmans'] = array( |
---|
| 21 | 'field' => &$spip_abomailmans, |
---|
| 22 | 'key' => &$spip_abomailmans_key); |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | global $table_des_tables; |
---|
| 27 | $table_des_tables['abomailmans']='abomailmans'; |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | // |
---|
| 31 | // <BOUCLE(ABONNEMENTSMAILMANS)> |
---|
| 32 | // |
---|
| 33 | |
---|
| 34 | function boucle_ABOMAILMANS_dist($id_boucle, &$boucles) { |
---|
| 35 | $boucle = &$boucles[$id_boucle]; |
---|
| 36 | $id_table = $boucle->id_table; |
---|
| 37 | $boucle->from[$id_table] = "spip_abomailmans"; |
---|
| 38 | $email_liste = $id_table .'.email'; |
---|
| 39 | $boucle->where[]= array("'IS NOT'", "'$email_liste'", "'NULL'"); |
---|
| 40 | |
---|
| 41 | return calculer_boucle($id_boucle, $boucles); |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.