summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-17 16:52:02 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-17 16:52:02 +0000
commitaed98e7115b2f477c776d614a2288d6ce7f70953 (patch)
tree6f2ce22d2e5e161e6eaecc1ddb6779574818e1bb /lib/network
parent08240c05e95fc7ad4a7fe1ea7b8aa4890a90da34 (diff)
downloaddrakx-net-aed98e7115b2f477c776d614a2288d6ce7f70953.tar
drakx-net-aed98e7115b2f477c776d614a2288d6ce7f70953.tar.gz
drakx-net-aed98e7115b2f477c776d614a2288d6ce7f70953.tar.bz2
drakx-net-aed98e7115b2f477c776d614a2288d6ce7f70953.tar.xz
drakx-net-aed98e7115b2f477c776d614a2288d6ce7f70953.zip
Removed debugging code (duh..).
Diffstat (limited to 'lib/network')
-rw-r--r--lib/network/drakfirewall.pm5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm
index 80fcb8e..45b9c23 100644
--- a/lib/network/drakfirewall.pm
+++ b/lib/network/drakfirewall.pm
@@ -291,9 +291,6 @@ Please select which network activities should be watched."),
sub main {
my ($in, $disabled) = @_;
- use Data::Dumper;
- print Dumper(@all_servers);
-
($disabled, my $servers, my $unlisted, my $log_net_drop) = get_conf($in, $disabled) or return;
($disabled, $servers, $unlisted, $log_net_drop) = choose_allowed_services($in, $disabled, $servers, $unlisted, $log_net_drop) or return;
@@ -307,8 +304,6 @@ sub main {
exists $_->{prepare} and $_->{prepare}();
}
- print Dumper($servers);
-
my $ports = to_ports($servers, $unlisted);
set_ports($in->do_pkgs, $disabled, $ports, $log_net_drop, $in) or return;
="hl kwa">public function enable($type = ''); /** * Adds a log entry to the database * * @param string $mode The mode defines which log_type is used and from which log the entry is retrieved * @param int $user_id User ID of the user * @param string $log_ip IP address of the user * @param string $log_operation Name of the operation * @param int|bool $log_time Timestamp when the log entry was added. If false, time() will be used * @param array $additional_data More arguments can be added, depending on the log_type * * @return int|bool Returns the log_id, if the entry was added to the database, false otherwise. */ public function add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array()); /** * Delete entries in the logs * * @param string $mode The mode defines which log_type is used and from which log the entries are deleted * @param array $conditions An array of conditions, 3 different forms are accepted * 1) <key> => <value> transformed into 'AND <key> = <value>' (value should be an integer) * 2) <key> => array(<operator>, <value>) transformed into 'AND <key> <operator> <value>' (values can't be an array) * 3) <key> => array('IN' => array(<values>)) transformed into 'AND <key> IN <values>' * A special field, keywords, can also be defined. In this case only the log entries that have the keywords in log_operation or log_data will be deleted. */ public function delete($mode, $conditions = array()); /** * Grab the logs from the database * * @param string $mode The mode defines which log_type is used and ifrom which log the entry is retrieved * @param bool $count_logs Shall we count all matching log entries? * @param int $limit Limit the number of entries that are returned * @param int $offset Offset when fetching the log entries, f.e. when paginating * @param mixed $forum_id Restrict the log entries to the given forum_id (can also be an array of forum_ids) * @param int $topic_id Restrict the log entries to the given topic_id * @param int $user_id Restrict the log entries to the given user_id * @param int $log_time Only get log entries newer than the given timestamp * @param string $sort_by SQL order option, e.g. 'l.log_time DESC' * @param string $keywords Will only return log entries that have the keywords in log_operation or log_data * * @return array The result array with the logs */ public function get_logs($mode, $count_logs = true, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $log_time = 0, $sort_by = 'l.log_time DESC', $keywords = ''); /** * Get total log count * * @return int Returns the number of matching logs from the last call to get_logs() */ public function get_log_count(); /** * Get offset of the last valid page * * @return int Returns the offset of the last valid page from the last call to get_logs() */ public function get_valid_offset(); }