More short tag fixes.
Tidy up PHP short tags.
Updates from skel (Daniel Piddock): - Fix undefined variable warnings - Comment out auto-scroll code since it doesn't really work - Fix some minor formatting problems Also various other updates to the main page and comments.
Catch a lot of old URL's and update them. Also remove a couple of old files that aren't used.
Added URL to GPL headers.
i-scream is now licensed under the GPL. I've added the GPL headers to every source file, and put a full copy of the license in the appropriate places. I think I've covered everything. This is going to be a mad commit ;)
Historical reports now have a link to the alerts associated with them.
Now works nicely when a report is accessed without necessarily existing.
Everything including the chart can now be brought from a directory which is not necessarily a subdirectory of the directory in which the script is executed.
The web directory is now specified in the config file
The machine name and report name includes are now found from the directory pointed to in the configuration file.
Date listings can be produced from a directory that is not a subdirectory of the current directory (although it will still need to be web-visible for graphs to be viewed.)
The is_dir function in PHP is broken. It doesn't work for anything that is not a subdirectory of the current directory.
Moved the configuration to an external file.
Now gets the directory listing function from a shared include file.
Moved the historical reports directory, as the root shall now need to accommodate realtime reports.
Thought it was bad HCI to get the date to reset to the first one each time. So when you select a date, the same date is selected when you look at the list again.
Fixed the problem of minFileSize being out of scope in a call to a function. Fixed this by passing it in the function call, rather than making an icky global variable.
Added a preg_match so that only directories that match a short date format of YYYY-MM-DD are added to the dropdown date list.
*** empty log message ***
The forms are now submitted to $thisPage, so the filename of browser.php can be changed (if desired) to anything you want without having to change anything other than the configuration. Page name awareness is not really an issue with newer browsers, but leaving the form's action attribute blank in Netscape 3 seems to have badass effects.
The chart data file name can also be specified within the configuration. The method used to submit the form may als obe configured - at this current moment in time, this should only really be set to either "POST" or "GET". GET sends the form with the parameters specified in the query string (at the end of the URL). POST sends them over HTTP without being displayed in the URL. We shall stay with the GET method for now - although it produces rather ugly, long URLs in the browser, they are on the other hand quite handy because you can then copy it and email the URL to somebody to show them are particular chart and say something like, "ooh, what happened to raptor there?"
Guess what? The filename of each chart (normally a gif image) is now part of the configuration!
The file that is included to obtain the minimum and maximum y-axis scales is in the configuration.
The include files for generating the drop down machine and report lists are part of the configuration.
The HTML footer filename is also part of the configuration.
The title include is now part of the configuration.
Colour of separator lines may now be configured. This works only in newer browsers, however, the colour is not crucial to the operation of the reports and they thus work (and look) fine even in Netscape 3.
A customised scale may now be included by altering the $scaleImage attribute.
Can now change a single setting to move the reports directory.
Only reports from the last week are now shown in the drop down menu box. This is easily configurable by altering one of the configuration settings at the top of the file.
Preparations to make the whole file more configurable.
Reports that contain no data are no longer displayed. This is useful for reports about windows machines as these do not currently send values for load.
Previous selections on the machine_name and report drop down lists are now remembered!
.
The data list now stroes 20 of the most recent dates.
Preparations for the new browsing structure. Each day's directory will contain the list of reports and machines for that day. The user may select which day to browse first.
The 'browse other dates' list is now sorted in reverse order so that the user does not hae to scroll down far to see the latest reports.
Error message is not shown if the user fails to select a report to view. The bung button is now called a somewhat more appropriate "Show".
Left menu is top aligned, other dates appear in a list and the dropdown boxes now have an empty default value.
Now uses the include files for layout out the i-scream design.
Include file for the bottom of the historical reports page.
The chart now has a title of the report being viewed. Changed the background explicitly to white in preparation for i-screamifying the look and feel.
Now uses the 24 hour scale beneath the graph, er I meant Chart.
Now shows the images inline in the same document. Missing images are dealt with appropriately.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.