";
for($x=0; $x<=6; $x++) {
$chk="";
- if($filled[$x])
- $chk="checked";
+
+
+ $inv_check="";
+ if($filled[$x][disabled] == 1) {
+ $inv_check="checked";
+ }
- $plan_box .= "" . $wdays[$x] . " ";
+ $plan_box .= "" . $wdays[$x] . " invert ";
+
}
$plan_box .= "Time ranges are seperated with ',' e.g.: 14:30-15:20,01:20-02:30 make 24h a day ";
$plan_box .= "";
diff -Nur /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/modify_worker.php bartlby-ui/modify_worker.php
--- /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/modify_worker.php 2007-01-27 20:52:21.000000000 +0100
+++ bartlby-ui/modify_worker.php 2007-03-22 02:10:18.000000000 +0100
@@ -222,7 +222,7 @@
$ov .= $layout->Tr(
$layout->Td(
array(
- 0=>"Active?:",
+ 0=>"Notifications:",
1=>$layout->DropDown("worker_active", $act)
)
)
@@ -342,4 +342,4 @@
$layout->TableEnd();
$layout->FormEnd();
-$layout->display();
\ No newline at end of file
+$layout->display();
diff -Nur /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/print_report.php bartlby-ui/print_report.php
--- /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/print_report.php 1970-01-01 01:00:00.000000000 +0100
+++ bartlby-ui/print_report.php 2007-04-24 21:25:50.000000000 +0200
@@ -0,0 +1,93 @@
+
+set_time_limit(0);
+
+include "layout.class.php";
+include "config.php";
+include "bartlby-ui.class.php";
+$btl=new BartlbyUi($Bartlby_CONF);
+$btl->hasright("log.report");
+$btl->hasServerorServiceRight($_GET[report_service]);
+
+
+echo "";
+
+$defaults=bartlby_get_service_by_id($btl->CFG, $_GET[report_service]);
+$rap = "Second filter: " . $_GET[sec_filter] . "Print it Report for: " . $defaults[server_name] . "/" . $defaults[service_name] . "\n";
+
+$rep=$btl->do_report($_GET[report_start], $_GET[report_end], $_GET[report_init], $_GET[report_service]);
+$rap .= "FROM: " . $_GET[report_start] . " TO: " . $_GET[report_end] . "\n";
+
+$file .= $out;
+
+
+
+
+$file .= $btl->format_report($rep, "html", $rap, true);
+
+$svc=$rep[svc];
+$state_array=$rep[state_array];
+$notify=$rep[notify];
+$files_scanned=$rep[files_scanned];
+$hun=$svc[0]+$svc[1]+$svc[2];
+$flash[0]="0";
+$flash[1]="0";
+$flash[2]="0";
+
+//$img_file=$btl->create_report_img($state_array, $time_start, $time_end);
+
+
+
+
+
+while(list($state, $time) = @each($svc)) {
+
+
+ $perc = (($hun-$time) * 100 / $hun);
+ $perc =100-$perc;
+
+
+ $flash[$state]=$perc;
+
+
+}
+
+for($x=0; $x<3; $x++) {
+ $nstate= $x+1;
+ $rstr .= "&text_" . $nstate . "=" . $btl->getState($x) . "&value_" . $nstate . "=" . $flash[$x];
+}
+
+$out .= '
+
+
+
+
+
+
+
+
+
+';
+
+
+
+
+echo $file;
+
\ No newline at end of file
diff -Nur /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/report.php bartlby-ui/report.php
--- /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/report.php 2007-02-02 21:56:17.000000000 +0100
+++ bartlby-ui/report.php 2007-04-24 21:25:50.000000000 +0200
@@ -36,7 +36,12 @@
if(!$_GET[report_service] || !$log_mask) {
$out ="You v choosen a server? or log file is not set";
} else {
- $out = "creating report for service: $_GET[report_service] From: $_GET[report_start] To: $_GET[report_end] ";
+
+ if($_POST[report_rcpt]) {
+
+ $out .= $btl->send_custom_report($_POST[report_rcpt], $_GET[report_service], $_GET[report_start], $_GET[report_end]);
+ }
+ $out .= "creating report for service: $_GET[report_service] From: $_GET[report_start] To: $_GET[report_end] ";
$ra=$btl->do_report($_GET[report_start], $_GET[report_end], $_GET[report_init], $_GET[report_service]);
$svc=$ra[svc];
@@ -82,7 +87,7 @@
$rstr .= "&text_" . $nstate . "=" . $btl->getState($x) . "&value_" . $nstate . "=" . $flash[$x];
}
$idx=$btl->findSHMPlace($defaults[service_id]);
- $svc_option_line="" . $defaults[server_name] . ":" . $defaults[client_port] . "/" . $defaults[service_name] . " " . $btl->getServiceOptions($defaults, $layout);
+ $svc_option_line="" . $defaults[server_name] . ":" . $defaults[client_port] . "/" . $defaults[service_name] . " " . $btl->getServiceOptions($defaults, $layout) . "Print ";
$out .= " ";
diff -Nur /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/rights/admin.dat bartlby-ui/rights/admin.dat
--- /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/rights/admin.dat 2007-01-05 02:49:49.000000000 +0100
+++ bartlby-ui/rights/admin.dat 2007-04-01 18:06:47.000000000 +0200
@@ -1,5 +1,5 @@
-selected_servers=
-selected_services=
+selected_servers=,
+selected_services=,
view_service_output=true
super_user=true
action.reload=true
@@ -45,3 +45,11 @@
action.delete_worker=true
action.modify_worker=true
action.copy_worker=true
+
+
+
+
+
+
+
+
Binary files /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/server_icons/vista.gif and bartlby-ui/server_icons/vista.gif differ
diff -Nur /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/template.html bartlby-ui/template.html
--- /var/www/htdocs/bartlby.januschka.com/cvs/last_full//bartlby-ui/template.html 2006-12-10 16:56:51.000000000 +0100
+++ bartlby-ui/template.html 2007-04-24 21:25:50.000000000 +0200
@@ -9,6 +9,14 @@