K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / perl5 / Debconf / Element /
server ip : 172.67.156.115

your ip : 172.70.100.194

H O M E


Filename/usr/share/perl5/Debconf/Element/Multiselect.pm
Size916
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified23-Feb-2014 22:30
Last accessed06-Jul-2025 12:44
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/usr/bin/perl -w
# This file was preprocessed, do not edit!


package Debconf::Element::Multiselect;
use strict;
use base qw(Debconf::Element::Select);


sub order_values {
my $this=shift;
my %vals=map { $_ => 1 } @_;
$this->question->template->i18n('');
my @ret=grep { $vals{$_} } $this->question->choices_split;
$this->question->template->i18n(1);
return @ret;
}


sub visible {
my $this=shift;

my @choices=$this->question->choices_split;
return ($#choices >= 0);
}


sub translate_default {
my $this=shift;

my @choices=$this->question->choices_split;
$this->question->template->i18n('');
my @choices_c=$this->question->choices_split;
$this->question->template->i18n(1);

my @ret;
foreach my $c_default ($this->question->value_split) {
foreach (my $x=0; $x <= $#choices; $x++) {
push @ret, $choices[$x]
if $choices_c[$x] eq $c_default;
}
}
return @ret;
}


1