diff -Naur -U 8 cacti-0.8.6h-old/data_sources.php cacti-0.8.6h/data_sources.php --- cacti-0.8.6h-old/data_sources.php 2006-01-03 21:08:30.000000000 -0600 +++ cacti-0.8.6h/data_sources.php 2006-01-05 23:25:32.000000000 -0600 @@ -1038,28 +1038,35 @@ print $nav; html_header_checkbox(array("Name", "Data Input Method", "Active", "Template Name")); $i = 0; if (sizeof($data_sources) > 0) { foreach ($data_sources as $data_source) { form_alternate_row_color($colors["alternate"],$colors["light"],$i); $i++; + + $ds_table['data_source'] = $data_source; + $ds_table['data_input_name'] = $data_source['data_input_name']; + $ds_table['active'] = (($data_source["active"] == "on") ? "Yes" : "No"); + $ds_table['template_name'] = ((empty($data_source["data_template_name"])) ? "None" : $data_source["data_template_name"]); + $ds_table = do_hook_function("data_sources_table", $ds_table); + ?> \\1", title_trim($data_source["name_cache"], read_config_option("max_title_data_source"))); }else{ print title_trim($data_source["name_cache"], read_config_option("max_title_data_source")); } ?> - + - No");?> + - None" : $data_source["data_template_name"]);?> + "> Create new graphs for the following host: *">Edit this Host
- *Create New Host + *Create New Host
+ - Cancel - + images/button_cancel2.gif' alt='Cancel' align='absmiddle' border='0'> + images/' alt='' align='absmiddle'> diff -Naur -U 8 cacti-0.8.6h-old/lib/html.php cacti-0.8.6h/lib/html.php --- cacti-0.8.6h-old/lib/html.php 2006-01-03 21:08:30.000000000 -0600 +++ cacti-0.8.6h/lib/html.php 2006-01-05 23:26:10.000000000 -0600 @@ -83,33 +83,34 @@ @arg $graph_array - the array to contains graph information. for each graph in the array, the following two keys must exist $arr[0]["local_graph_id"] // graph id $arr[0]["title_cache"] // graph title @arg $no_graphs_message - display this message if no graphs are found in $graph_array @arg $extra_url_args - extra arguments to append to the url @arg $header - html to use as a header */ function html_graph_area(&$graph_array, $no_graphs_message = "", $extra_url_args = "", $header = "") { + global $config; $i = 0; if (sizeof($graph_array) > 0) { if ($header != "") { print $header; } foreach ($graph_array as $graph) { ?>
- <?php print $graph["title_cache"];?> + graph.php?local_graph_id=&rra_id=all'>graph_image.php?local_graph_id=&rra_id=0' border='0' alt=''> - Zoom Graph
+ graph.php?action=zoom&local_graph_id=&rra_id=0&'>images/graph_zoom.gif' border='0' alt='Zoom Graph' title='Zoom Graph' style='padding: 3px;'>
0) { if ($header != "") { print $header; } print ""; foreach ($graph_array as $graph) { ?>
- <?php print $graph["title_cache"];?> + graph.php?rra_id=all&local_graph_id='>graph_image.php?local_graph_id=&rra_id=0&graph_height=&graph_width=&graph_nolegend=true' border='0' alt=''> - Zoom Graph
+ graph.php?action=zoom&local_graph_id=&rra_id=0&'>images/graph_zoom.gif' border='0' alt='Zoom Graph' title='Zoom Graph' style='padding: 3px;'>
0) { $prepend_string = "--- "; }else{ $prepend_string = ""; } /* do not put a line between each sub-item */ if (($i == 0) || ($draw_sub_items == false)) { - $background = "images/menu_line.gif"; + $background = $config['url_path'] . "images/menu_line.gif"; }else{ $background = ""; } /* draw all of the sub-items as selected for ui grouping reasons. we can use the 'bold' or 'not bold' to distinguish which sub-item is actually selected */ if ((basename($_SERVER["PHP_SELF"]) == basename($item_sub_url)) || ($draw_sub_items)) { $td_class = "textMenuItemSelected"; @@ -463,48 +467,50 @@ } $i++; } } }else{ if ((isset($user_realms[$current_realm_id])) || (!isset($user_auth_realm_filenames{basename($item_url)}))) { /* draw normal (non sub-item) menu item */ + $item_url = $config['url_path'] . $item_url; if (basename($_SERVER["PHP_SELF"]) == basename($item_url)) { - print "$item_title\n"; + print "$item_title\n"; }else{ - print "$item_title\n"; + print "$item_title\n"; } } } } } - print "\n"; + print "\n"; print ''; } /* draw_actions_dropdown - draws a table the allows the user to select an action to perform on one or more data elements @arg $actions_array - an array that contains a list of possible actions. this array should be compatible with the form_dropdown() function */ function draw_actions_dropdown($actions_array) { + global $config; ?>
-   + images/arrow.gif' alt='' align='absmiddle'>  Choose an action: - + images/button_go.gif' alt='Go'>
+?> \ No newline at end of file diff -Naur -U 8 cacti-0.8.6h-old/plugins/index.php cacti-0.8.6h/plugins/index.php --- cacti-0.8.6h-old/plugins/index.php 1969-12-31 17:00:00.000000000 -0700 +++ cacti-0.8.6h/plugins/index.php 2006-01-05 23:26:14.000000000 -0600 @@ -0,0 +1,5 @@ + diff -Naur -U 8 cacti-0.8.6h-old/poller.php cacti-0.8.6h/poller.php --- cacti-0.8.6h-old/poller.php 2006-01-03 21:08:30.000000000 -0600 +++ cacti-0.8.6h/poller.php 2006-01-05 23:25:38.000000000 -0600 @@ -35,16 +35,18 @@ /* Start Initialization Section */ include(dirname(__FILE__) . "/include/config.php"); include_once($config["base_path"] . "/lib/poller.php"); include_once($config["base_path"] . "/lib/data_query.php"); include_once($config["base_path"] . "/lib/graph_export.php"); include_once($config["base_path"] . "/lib/rrd.php"); +do_hook("poller_top"); + /* Record Start Time */ list($micro,$seconds) = split(" ", microtime()); $start = $seconds + $micro; /* Get number of polling items from the database */ $polling_interval = read_config_option("poller_interval"); if (isset($polling_interval)) { @@ -263,9 +265,11 @@ if ($method == "cactid") { chdir(read_config_option("path_webroot")); } }else{ print "There are no items in your poller cache or polling is disabled. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.\n"; } // End Mainline Processing -?> +do_hook("poller_bottom"); + +?> \ No newline at end of file diff -Naur -U 8 cacti-0.8.6h-old/utilities.php cacti-0.8.6h/utilities.php --- cacti-0.8.6h-old/utilities.php 2006-01-03 21:08:30.000000000 -0600 +++ cacti-0.8.6h/utilities.php 2006-01-05 22:32:11.000000000 -0600 @@ -83,16 +83,19 @@ utilities_clear_logfile(); #utilities_view_logfile(); include_once("./include/bottom_footer.php"); break; default: + + do_hook_function("utilities_action", $_REQUEST["action"]); + include_once("./include/top_header.php"); utilities(); include_once("./include/bottom_footer.php"); break; } @@ -349,12 +352,14 @@

Clear Cacti Log File

This action will reset the Cacti Log File. Please note that if you are using the Syslog/Eventlog only, this action will have no effect.