summaryrefslogtreecommitdiffstats
path: root/usr/local/www/includes/functions.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* Move main pfSense content to src/Renato Botelho2015-08-251-407/+0
|
* Interfaces widget use more obscure separatorPhil Davis2015-07-221-4/+4
| | | | | when acquiring the interface data. In particular the media information can have commas in it already as reported in Redmine bug #4859
* Display monitor IP on Gateways widgetPhil Davis2015-06-201-2/+35
| | | | | | | | | | | | | | | | | This change adds a setting for the Gateways dashboard widget so the user can choose to display the Gateway IP, Monitor IP or both. If "both" is chosen and the Gateway IP is the Monitor IP, then only the Gateway IP is shown - i.e. the same IP address is not repeated on the widget display. If "both" is chosen and the Monitor IP is different to the Gateway IP then the Monitor IP is shown in () brackets after the Gateway IP. If "Monitor IP" is chosen and there is no special Monitor IP defined, then the Gateway IP is displayed (which is also the Monitor IP). If "Gateway IP" is chosen then the widget behaves as it does now. "Gateway IP" is the default. I find this handy because the Gateways widget reports RTT (latency) and loss figures that are actually for pings to the Monitor IP. So it seems useful to be able to display the Monitor IP in the widget.
* Code style for small things in usr-local-wwwPhil Davis2015-04-141-70/+90
|
* Fix lineup of copyright linesPhil Davis2015-01-011-1/+2
| | | | | and module names and other bits of formatting and typos in header comment sections.
* Welcome 2015Renato Botelho2014-12-311-1/+1
|
* Send IPv4 and IPv6 address in get_interfacestatusPhil Davis2014-12-201-1/+4
| | | | And make them strong (bold), which is how they are displayed originally by interfaces.widget.php This allows the AJAX that manipulates the div's in interfaces.widget.php to get the data, so it can make it update.
* Gateway Status Widget keep IP address boldPhil Davis2014-12-111-2/+2
| | | | | | | Forum: https://forum.pfsense.org/index.php?topic=85187.msg467438#msg467438 The bold is specified literally in gateways.widget.php for the gateway IP box, so we need to send it bold from here also when providing an update. Because this now uses a "/" in the string (to terminate the bold) have to choose another delimiter between the status text and status color - picked "^" because I can't think where it will appear elsewhere in the real data. This whole string of stuff that is returned by getstats.php back to the browser is a long string with a bunch of delimiters inside delimiters already (vertical bar separated fields, inside that comma-separated fields...) and is already subject to stuff going wrong if any of the real text in the fields contains a vertical bar or comma or... Not about to try to re-engineer all that right now!
* Explicitly pass gateway status and colorPhil Davis2014-12-051-1/+1
| | | | | This code was passing a whole load of html to attempt to set various properties of the Gateways Widget Status column so that it would display the new status (Online, Offline...) and in the appropriate color. Now that I am using class=listr, the css fro listr already specifies white. Setting bgcolor in HTML does not override that. Pass both the status text and color as ordinary text, separated by "/". The consumer of this output can do their thing with jQuery to set the color as well as text of the element.
* Change copyright statement to reflect realityJim Thompson2014-11-101-0/+1
|
* Merge pull request #1232 from N0YB/Widget_GatewaysRenato Botelho2014-07-181-1/+1
|\
| * Fix gateway widget size change on first update.N0YB2014-06-081-1/+1
| | | | | | | | | | | | Inner table size changes on the first update because the table in update data does not have the same attributes as the widget. i.e. border, cellpadding, cellspacing, style & summary. Also remove an errant td end tag.
* | Convert almost all /sbin/sysctl calls to php functionsRenato Botelho2014-07-071-26/+17
|/
* Display space usage for all mounted filesystems, not just /. Also display FS ↵jim-p2014-05-221-2/+22
| | | | type and indicate if it's a RAM disk.
* Fix syntax, unbreak dashboardjim-p2013-12-261-1/+1
|
* Correct displaying states status and avoid divison by zero due to wrong data ↵Ermal2013-12-231-1/+3
| | | | collected
* Avoid dashboard divide by zero errorsphildd2013-12-221-3/+12
|
* Merge pull request #787 from phil-davis/masterRenato Botelho2013-08-311-8/+2
|\ | | | | Provide get_uptime_sec in a common include file
| * Call get_uptime_sec from functions.inc.phpPhil Davis2013-08-291-8/+2
| | | | | | to avoid code duplication
* | Show a count of the CPUs if more than one is detected, and show how those ↵jim-p2013-08-301-0/+13
|/ | | | CPUs are supplied by the hardware.
* Some more tweaks to state and mbuf update/output on dashboard widget.jim-p2013-07-161-4/+7
|
* Add a meter for states, toojim-p2013-07-161-2/+6
|
* Fixup mbuf stats functionjim-p2013-07-161-1/+2
|
* Make mbufs update via ajaxjim-p2013-07-161-0/+7
|
* Fix an occasional "blank" cpu freq printing that shouldn't happen.jim-p2013-07-161-1/+1
|
* Use exec directly instead of exec_commandRenato Botelho2013-04-301-2/+2
|
* Fix and improve swap_usage()Renato Botelho2013-04-301-4/+8
| | | | | - Fix a typo on awk syntax - Use php functions to extract desired value from swapinfo output
* Fix indent and whitespacesRenato Botelho2013-04-301-53/+39
|
* Tidy up HTML Colour NamesColin Fleming2013-01-161-7/+7
| | | | | With XHTML 1.0, the extended colour names are invalid, to make pfSense as W3C compliant as possible, need to go back to using the HEX code.
* Some minor enhancements from renaming the Gathering Data to Pending.smos2012-06-041-8/+11
| | | | When it doesn't exist in the array it's really unknown. Make that lightblue. show a ~
* Removed extra line :)Cristian Feldman2012-05-241-1/+0
|
* Added load average information to the System Information widgetCristian Feldman2012-05-241-0/+8
|
* System info widget on dashboard now updates CPU Frequency automaticallyCristian Feldman2012-05-181-0/+16
|
* I did a block comment out the fist time because I wanted to leave that code ↵Joecowboy2012-01-061-6/+6
| | | | in for later use when start adding more OID checks for different hardware drivers. So made comment change per request.
* Fixed the get_time() out put fixed. Tweaked my changes made a tighter code.Joecowboy2012-01-051-13/+7
|
* Changed the output of function get_uptime() to display: 00 Hours 00 Minutes ↵Joecowboy2012-01-051-6/+34
| | | | | 00 Seconds Added code function get_temp() to get the OID values for temperature.
* Fix AJAX update of gateway status when the status is "Gathering Data".jim-p2010-10-071-3/+2
|
* Fix the gateway status widget ajax update when there is loss/day.jim-p2010-09-191-2/+2
|
* Show status as Gathering data rather than unknown since the later seems to ↵Ermal2010-09-161-1/+1
| | | | scary people!
* Ticket #876. Show all gateways even though apinger is not monitoring them, ↵Ermal2010-09-091-7/+15
| | | | for various reasons, this removes user confusion in the status pages.
* Update gateway status properly when fetched via AJAX.jim-p2010-08-161-6/+6
|
* Default to only system information and interfaces widgets. This reduces ↵Scott Ullrich2009-11-211-8/+4
| | | | load time on RSPRO from 9+ seconds to 2.5
* Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to ↵Scott Ullrich2009-09-141-0/+3
| | | | include 2009 on files that I have asserted (C) on
* * Remove non-needed grep (we use fifolog now)Scott Ullrich2009-03-161-1/+1
| | | | * Change "No data" to "Gathering data"
* Move (DHCP)Scott Ullrich2009-03-141-5/+1
|
* close commentBill Marquette2009-03-111-1/+1
|
* fix merge conflictBill Marquette2009-03-111-4/+0
|
* cleaner and more proper cpu graphBill Marquette2009-03-111-18/+23
|
* Correctly set the status field HTML text during ajax process.Scott Ullrich2009-03-111-1/+1
|
* Add ajax mojo to gateway status widgetScott Ullrich2009-03-111-3/+38
|
OpenPOWER on IntegriCloud