Ajout du TLD contenu dans le fichier de configuration.
Suppression des possibles "point" doublons. - si l'utilisateur entre "mondomaine." par exempe.
This commit is contained in:
parent
c4f54bfd0d
commit
8ebd61261f
@ -1,11 +1,18 @@
|
|||||||
|
# TLD
|
||||||
|
# Must contains the first "."
|
||||||
|
tld = ".netlib.re"
|
||||||
|
|
||||||
|
# Database Options
|
||||||
|
sgbd = mysql
|
||||||
dbname = dnsmanager
|
dbname = dnsmanager
|
||||||
host = localhost
|
host = localhost
|
||||||
# other options : see DBI module
|
|
||||||
sgbd = mysql
|
|
||||||
# default port for mysql
|
# default port for mysql
|
||||||
port = 3306
|
port = 3306
|
||||||
user = bla
|
user = bla
|
||||||
passwd = HardPass4bla
|
passwd = HardPass4bla
|
||||||
|
# other options : see DBI module
|
||||||
|
|
||||||
# possible options for dnsserver : bind rndc
|
# possible options for dnsserver : bind rndc
|
||||||
dnsapp = rndc
|
dnsapp = rndc
|
||||||
zones_path = "/srv/named/"
|
zones_path = "/srv/named/"
|
||||||
|
@ -137,6 +137,10 @@ prefix '/domain' => sub {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
# Add tld
|
||||||
|
my $domain = param('domain').$cfg->param('tld');
|
||||||
|
$domain =~ s/\.{2,}/\./g;
|
||||||
|
# create domain
|
||||||
my $app = initco();
|
my $app = initco();
|
||||||
$app->add_domain( session('login'), param('domain') );
|
$app->add_domain( session('login'), param('domain') );
|
||||||
redirect '/home';
|
redirect '/home';
|
||||||
|
Reference in New Issue
Block a user