3
0
This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
dnsmanagerv1/lib/rt/rootfake.pm

30 lines
490 B
Perl
Raw Normal View History

package rt::rootfake;
use configuration ':all';
use app;
use utf8;
2016-02-10 11:07:34 +01:00
use open qw/:std :utf8/;
use Exporter 'import';
# what we want to export eventually
our @EXPORT_OK = qw/rt_root_fake/;
# bundle of exports (tags)
our %EXPORT_TAGS = ( all => [qw/rt_root_fake/] );
sub rt_root_fake {
my ($session) = @_;
my $res;
$$res{template} = 'index';
$$res{params} = {
login => "toto"
, admin => 1
, domains => qw/toto.netlib.re/
};
$res
}
1;