summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-26 17:58:16 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-26 17:58:16 +0000
commit6cf4b84da914560d29e5bee31e599fd1ffb49f39 (patch)
tree281e60ba2e34dccc9ca26ec6ab037071e09f2c23
parent9b71c00515330393003964728cc754b96e8153de (diff)
downloaddrakguard-6cf4b84da914560d29e5bee31e599fd1ffb49f39.tar
drakguard-6cf4b84da914560d29e5bee31e599fd1ffb49f39.tar.gz
drakguard-6cf4b84da914560d29e5bee31e599fd1ffb49f39.tar.bz2
drakguard-6cf4b84da914560d29e5bee31e599fd1ffb49f39.tar.xz
drakguard-6cf4b84da914560d29e5bee31e599fd1ffb49f39.zip
reorder
-rwxr-xr-xbin/drakguard14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/drakguard b/bin/drakguard
index f1dde04..1443780 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -22,6 +22,13 @@ my %dansguardian_levels = (
50 => N_("High"),
);
+my $blacklist_url_file = "/etc/dansguardian/lists/blacklists/drakguard/urls";
+my $whitelist_url_file = "/etc/dansguardian/lists/whitelists/drakguard/urls";
+my ($enable, $level, $time_control, $allow_time_change);
+my $shorewall = network::shorewall::read();
+load();
+
+
my $toolname = 'drakguard';
my $title = N("Parental Control");
my $icon = "IC-control-52";
@@ -32,10 +39,6 @@ my $w = ugtk2->new($title);
$::main_window = $w->{real_window};
my $in = interactive->vnew('su');
-my $shorewall = network::shorewall::read();
-my $blacklist_url_file = "/etc/dansguardian/lists/blacklists/drakguard/urls";
-my $whitelist_url_file = "/etc/dansguardian/lists/whitelists/drakguard/urls";
-
my $allusers_list = Gtk2::SimpleList->new(N("All users") => 'text');
$allusers_list->get_selection->set_mode('multiple');
@{$allusers_list->{data}} = sort(list_users());
@@ -51,9 +54,6 @@ my $blacklist = Gtk2::SimpleList->new(N("Forbidden addresses") => 'text');
$blacklist->get_selection->set_mode('multiple');
@{$blacklist->{data}} = read_url_list($blacklist_url_file);
-my ($enable, $level, $time_control, $allow_time_change);
-load();
-
sub update_time_change() {
gtkval_modify(\$allow_time_change, $enable && $time_control);
}