Changeset 2564
- Timestamp:
- 10/01/09 19:06:42 (4 years ago)
- File:
-
- 1 edited
-
alternc-mailman/trunk/bureau/class/m_mailman.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc-mailman/trunk/bureau/class/m_mailman.php
r2561 r2564 265 265 266 266 /* ----------------------------------------------------------------- */ 267 /** Echoes the list's members as a text file, one subscriber per 268 * line. 267 /** Echoes the list's members as a text file, one subscriber per line. 268 * 269 * Assumes that you are using the Mailman multi-domain patch, 270 * but will fallback to check only the list name (without domain) 271 * to support also installations without the patch. 272 * 269 273 * @param $id integer The list whose members we want to dump 270 274 * @return void : this function ECHOES the result ! 271 275 */ 272 function members($id) {276 function members($id) { 273 277 global $err,$db,$cuid; 274 278 $err->log("mailman","members"); 275 $db->query("SELECT * FROM mailman WHERE uid='$cuid' AND id='$id';"); 279 $db->query("SELECT CONCAT(list, '-', domain) as list FROM mailman WHERE 280 uid='$cuid' AND id='$id';"); 281 276 282 if (!$db->num_rows()) { 277 $err->raise("mailman",1); 278 return false; 279 } 283 // fallback 284 $db->query("SELECT list FROM mailman WHERE uid='$cuid' AND id='$id';"); 285 286 if (!$db->num_rows()) { 287 $err->raise("mailman",1); 288 return false; 289 } 290 } 291 280 292 $db->next_record(); 281 293 passthru("/usr/lib/alternc/mailman.list ".$db->Record["list"]);
Note: See TracChangeset
for help on using the changeset viewer.
