Changeset 1581 for alternc-awstats/trunk
- Timestamp:
- 05/05/06 15:35:54 (7 years ago)
- Location:
- alternc-awstats/trunk
- Files:
-
- 3 edited
-
bureau/admin/aws_add.php (modified) (1 diff)
-
bureau/class/m_aws.php (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc-awstats/trunk/bureau/admin/aws_add.php
r1576 r1581 60 60 foreach ($hl as $ho) { 61 61 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\""; 63 63 echo " /><label for=\"ha_$ho\">$ho</label><br />\n"; 64 64 } -
alternc-awstats/trunk/bureau/class/m_aws.php
r1576 r1581 214 214 /* ----------------------------------------------------------------- */ 215 215 /** 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 /** 216 236 * Edit a statistic set (change allowed user list) 217 237 * @param integer $id the stat number we change -
alternc-awstats/trunk/debian/changelog
r1570 r1581 7 7 * Now provide users with hostaliases management in their awstats config file. 8 8 * Major performance enhancement in the daily script. 9 * Now this package didn't broke the apache's conf. 9 10 10 11 -- Benjamin Sonntag <benjamin@alternc.org> Thu, 4 May 2006 03:57:35 +0200
Note: See TracChangeset
for help on using the changeset viewer.
