30 lines
523 B
Perl
30 lines
523 B
Perl
|
#!/usr/bin/perl -w
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
use v5.14;
|
||
|
use autodie;
|
||
|
use Modern::Perl;
|
||
|
use DNS::ZoneParse;
|
||
|
use Config::Simple;
|
||
|
use Data::Dump qw( dump );
|
||
|
|
||
|
use lib '../';
|
||
|
use app::app;
|
||
|
|
||
|
use initco;
|
||
|
|
||
|
if( @ARGV != 0 ) {
|
||
|
say "usage : ./get_all_domains.pl";
|
||
|
exit 1;
|
||
|
}
|
||
|
|
||
|
my $app = initco::initco();
|
||
|
|
||
|
my ($success) = $app->register_user("bla", 'password');
|
||
|
die "erreur de nom, déjà pris" unless $success;
|
||
|
|
||
|
($success) = $app->register_user("bla", 'password');
|
||
|
die "erreur de nom, déjà pris" unless $success;
|
||
|
|
||
|
say "fin";
|