php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /usr/libexec/usermin/Webmin/ |
files >> //usr/libexec/usermin/Webmin/ConfirmPage.pm |
package Webmin::ConfirmPage; use Webmin::Page; use WebminCore; @ISA = ( "Webmin::Page" ); =head2 new Webmin::ConfirmPage(subheading, title, message, cgi, &in, [ok-message], [cancel-message], [help-name]) Create a new page object that asks if the user is sure if he wants to do something or not. =cut sub new { if (defined(&Webmin::Theme::ConfirmPage::new)) { return new Webmin::Theme::ConfirmPage(@_[1..$#_]); } my ($self, $subheading, $title, $message, $cgi, $in, $ok, $cancel, $help) = @_; $self = new Webmin::Page($subheading, $title, $help); $self->{'in'} = $in; $self->add_message($message); my $form = new Webmin::Form($cgi, "get"); $form->set_input($in); $self->add_form($form); foreach my $i (keys %$in) { foreach my $v (split(/\0/, $in->{$i})) { $form->add_hidden($i, $v); } } $form->add_button(new Webmin::Submit($ok || "OK", "ui_confirm")); $form->add_button(new Webmin::Submit($cancel || $text{'cancel'}, "ui_cancel")); bless($self); return $self; } sub get_confirm { my ($self) = @_; return $self->{'in'}->{'ui_confirm'} ? 1 : 0; } sub get_cancel { my ($self) = @_; return $self->{'in'}->{'ui_cancel'} ? 1 : 0; } 1;y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`