__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/usr/bin/perl
# This file was preprocessed, do not edit!
package Debconf::DbDriver;
use warnings;
use strict;
use Debconf::Log qw{:all};
use base 1.01; # ensure that they don't have a broken perl installation
use fields qw(name readonly required backup failed
accept_type reject_type accept_name reject_name root);
our %drivers;
sub new {
my Debconf::DbDriver $this=shift;
unless (ref $this) {
$this = fields::new($this);
}
$this->{required}=1;
$this->{readonly}=0;
$this->{failed}=0;
my %params=@_;
foreach my $field (keys %params) {
if ($field eq 'readonly' || $field eq 'required' || $field eq 'backup') {
if (lc($params{$field}) eq "true") {
$this->{$field}=1;
next;
} elsif (lc($params{$field}) eq "false") {
$this->{$field}=0;
next;
}
}
elsif ($field=~/^(accept|reject)_/) {
$this->{$field}=qr/$params{$field}/i;
}
$this->{$field}=$params{$field};
}
unless (exists $this->{name}) {
$this->{name}="(unknown)";
$this->error("no name specified");
}
$drivers{$this->{name}} = $this;
$this->init;
return $this;
}
sub init {}
sub error {
my $this=shift;
if ($this->{required}) {
warn('DbDriver "'.$this->{name}.'":', @_);
exit 1;
}
else {
warn('DbDriver "'.$this->{name}.'" warning:', @_);
}
}
sub driver {
my $this=shift;
my $name=shift;
return $drivers{$name};
}
sub accept {
my $this=shift;
my $name=shift;
my $type=shift;
return if $this->{failed};
if ((exists $this->{accept_name} && $name !~ /$this->{accept_name}/) ||
(exists $this->{reject_name} && $name =~ /$this->{reject_name}/)) {
debug "db $this->{name}" => "reject $name";
return;
}
if (exists $this->{accept_type} || exists $this->{reject_type}) {
if (! defined $type || ! length $type) {
my $template = Debconf::Template->get($this->getfield($name, 'template'));
return 1 unless $template; # no type to act on
$type=$template->type || '';
}
return if exists $this->{accept_type} && $type !~ /$this->{accept_type}/;
return if exists $this->{reject_type} && $type =~ /$this->{reject_type}/;
}
return 1;
}
sub ispassword {
my $this=shift;
my $item=shift;
my $template=$this->getfield($item, 'template');
return unless defined $template;
$template=Debconf::Template->get($template);
return unless $template;
my $type=$template->type || '';
return 1 if $type eq 'password';
return 0;
}
1
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Client | Folder | 0755 |
|
|
| DbDriver | Folder | 0755 |
|
|
| Element | Folder | 0755 |
|
|
| Format | Folder | 0755 |
|
|
| FrontEnd | Folder | 0755 |
|
|
| Template | Folder | 0755 |
|
|
| AutoSelect.pm | File | 1.98 KB | 0644 |
|
| Base.pm | File | 510 B | 0644 |
|
| ConfModule.pm | File | 15.35 KB | 0644 |
|
| Config.pm | File | 7.01 KB | 0644 |
|
| Db.pm | File | 1.18 KB | 0644 |
|
| DbDriver.pm | File | 2.35 KB | 0644 |
|
| Element.pm | File | 206 B | 0644 |
|
| Encoding.pm | File | 1.45 KB | 0644 |
|
| Format.pm | File | 144 B | 0644 |
|
| FrontEnd.pm | File | 2.8 KB | 0644 |
|
| Gettext.pm | File | 311 B | 0644 |
|
| Iterator.pm | File | 209 B | 0644 |
|
| Log.pm | File | 926 B | 0644 |
|
| Path.pm | File | 305 B | 0644 |
|
| Priority.pm | File | 676 B | 0644 |
|
| Question.pm | File | 5.72 KB | 0644 |
|
| Template.pm | File | 8.01 KB | 0644 |
|
| TmpFile.pm | File | 388 B | 0644 |
|