$domain has been added to the domain table!\n"; print "
\n";
} else {
print_error ("Unable to add: $domain to the domain table!");
}
if ($aliases == "on") {
$alias_keys = array_keys($default_aliases);
$alias_values = array_values($default_aliases);
for ($i = 0; $i < count($alias_keys); $i++) {
$address = $alias_keys[$i] . "@" . $domain;
$result = db_query ("INSERT INTO alias (address,goto,domain,create_date,change_date) VALUES('$address','$alias_values[$i]','$domain',NOW(),NOW())");
if ($result['rows'] == 1) {
print "$address has been added to the alias table!
\n";
} else {
print_error ("Unable to add: $address to the alias table!");
}
}
print "