drop unsupported things
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 24 Sep 2005 16:37:41 +0000 (16:37 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 24 Sep 2005 16:37:41 +0000 (16:37 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@52 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs.net/groupe/mail.php
include/xnet/mail.inc.php
templates/xnet/groupe/mail.tpl

index f81937a..71ac706 100644 (file)
@@ -6,19 +6,15 @@
     $client =& lists_xmlrpc(Session::getInt('uid'), Session::get('password'), $globals->asso('mail_domain'));
     $page->assign('listes', $client->get_lists());
 
-    $alias = $globals->xdb->query("SELECT alias FROM virtual WHERE alias LIKE {?} AND type='user' ORDER BY alias", '%@'.$globals->asso("mail_domain"));
-    $page->assign('alias', $alias->fetchColumn());
-
     if (Post::has('send')) {
         $from  = Post::get('from');
         $sujet = Post::get('sujet');
         $body  = Post::get('body');
 
         $mls = array_keys(Env::getMixed('ml', array()));
-        $als = array_keys(Env::getMixed('al', array()));
 
         require_once 'xnet/mail.inc.php';
-        $tos = get_all_redirects(Post::has('membres'), $mls, $als, $client);
+        $tos = get_all_redirects(Post::has('membres'), $mls, $client);
         send_xnet_mails($from, $sujet, $body, $tos);
         $page->kill("Mail envoyé !");
         $page->assign('sent', true);
index ad5f4d2..9380a79 100644 (file)
@@ -23,7 +23,7 @@ require_once 'diogenes/diogenes.hermes.inc.php';
 
 // {{{ get_all_redirects
 
-function get_all_redirects($membres, $mls, $alias, &$client)
+function get_all_redirects($membres, $mls, &$client)
 {
     global $globals;
     
index fcc6a4b..f6ae741 100644 (file)
@@ -68,21 +68,6 @@ masculin ou f
     </tr>
     {/foreach}
 
-    {* NOT SUPPORTED ATM
-    {foreach from=$alias item=a}
-    {assign var=b value=$a|regex_replace:"!@.*!":""}
-    <tr>
-      <td style='padding-left: 1em' class='titre'>
-        *&nbsp;{$b}
-      </td>
-      <td>
-        <input type="checkbox" name="al[{$b}]" value="1" {if $smarty.request.al[$b]}checked="checked"{/if} />
-        {$a} <a href="alias-admin.php?liste={$b}" class='popup'>(voir composition)</a>
-      </td>
-    </tr>
-    {/foreach}
-    *}
-
     <tr>
       <th colspan="2">Contenu du mail</th>
     </tr>