Changeset 1581

Show
Ignore:
Timestamp:
05/05/06 15:35:54 (2 years ago)
Author:
pierre-gilles
Message:

Complete the work ...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-awstats/trunk/bureau/admin/aws_add.php

    r1576 r1581  
    6060foreach ($hl as $ho) { 
    6161  echo "<input type=\"checkbox\" name=\"hostaliases[]\" id=\"ha_$ho\" value=\"$ho\""; 
    62   if (in_array($_REQUEST["hostaliases"],$ho)) echo " checked=\"checked\""; 
     62  if (in_array(get_hostaliases($id),$ho)) echo " checked=\"checked\""; 
    6363  echo " /><label for=\"ha_$ho\">$ho</label><br />\n"; 
    6464} 
  • alternc-awstats/trunk/bureau/class/m_aws.php

    r1576 r1581  
    214214  /* ----------------------------------------------------------------- */ 
    215215  /**  
     216   * Return the hostaliases list with an id. 
     217   */ 
     218  function get_hostaliases($id) { 
     219    global $db,$err,$cuid; 
     220    $r=array(); 
     221    if ($id = NULL)   
     222      return $r;  
     223    $db->query("SELECT hostaliases FROM aws WHERE uid='$cuid' and id='$id' ORDER by hostaliases;"); 
     224    while ($db->next_record()) { 
     225      if ($db->f("sub")) { 
     226        $r[]=$db->f("sub").".".$db->f("domaine"); 
     227      } else { 
     228        $r[]=$db->f("domaine"); 
     229      } 
     230    } 
     231    return $r; 
     232  } 
     233 
     234  /* ----------------------------------------------------------------- */ 
     235  /**  
    216236   * Edit a statistic set (change allowed user list) 
    217237   * @param integer $id the stat number we change 
  • alternc-awstats/trunk/debian/changelog

    r1570 r1581  
    77  * Now provide users with hostaliases management in their awstats config file. 
    88  * Major performance enhancement in the daily script. 
     9  * Now this package didn't broke the apache's conf. 
    910 
    1011 -- Benjamin Sonntag <benjamin@alternc.org>  Thu,  4 May 2006 03:57:35 +0200