Commit Graph

220 Commits

Author SHA1 Message Date
0351b54fb8 webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
2016-09-14 10:05:49 +01:00
7dec670494 refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339) 2016-09-08 08:12:23 -05:00
b8e9b2d917 Implement an autoloader (#4140)
* Implement an autoloader

When cleaning up classes for psr2, things got a bit unwieldy, so I implemented a class autoloader.
I created a PSR-0 compliant LibreNMS directory and moved all classes there that made sense.
Implemented LibreNMS\ClassLoader which supports adding manual class mappings

This reduces the file includes needed and only loads classes when needed.

* Add teh autoloader to graph.php

* Add a small bit of docs
Fix incomplete class in includes/discovery/functions.inc.php
2016-08-21 14:07:14 +01:00
laf
5f8705bd37 Changed package names 2016-08-20 12:21:13 +01:00
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
f5f31e88ac Use namespaces for classes, take 2
CollectdColor, move into it's own file, change functions to camelCase
Plugins use LibreNMS\Plugins
2016-08-17 20:26:51 -05:00
809969efc9 Revert "Use namespaces for classes" 2016-08-17 21:27:56 +01:00
709de9a166 Use namespaces for classes
CollectdColor, move into it's own file, change functions to camelCase
Plugins use LibreNMS\Plugins
2016-08-15 14:04:39 -05:00
laf
06998420cf Updated unpolled notification to only show unpolled devices 2016-06-21 20:12:32 +01:00
c7d551f6d1 Check that variables are set before using them.
This will hide ugly output for users not using a subdirectory, but may make it harder to diagnose issues for those that are.
2016-05-31 22:28:34 -05:00
731e43bc66 Revert "[WIP] Sanity!" 2016-02-17 13:59:58 +00:00
f0o
21e94b3e3a Sanity! 2016-02-10 15:21:31 +00:00
2b55c06d9e Revert "Variable/Environment sanity" 2016-02-10 14:31:16 +00:00
f0o
37dccb3932 First effort in bringing some sanity 2016-02-10 13:42:55 +00:00
e2d1a8e7d9 Replaced custom utime() function with microtime(true) 2016-01-08 13:33:32 +01:00
laf
a56ccd7a74 Added option to disable lazy loading of images 2015-12-09 15:50:10 +00:00
e8d5756467 Fix missing path info on nginx.
Update nginx documentation to set the PATH_INFO variable.
Avoid hacks in index.php if it PATH_INFO is already set for both nginx and apache.
2015-12-03 13:23:37 -06:00
b1fd1b3137 Only update resolution if session variables don't exist
Tune print-graphrow.inc.php to avoid last graph going to a new line in certain cases
2015-11-26 17:13:29 +00:00
laf
e9deae1315 Centralised the date selector for graphs for re-use 2015-10-20 21:35:08 +00:00
335a68bb98 Update index.php
Hotfix for #2007
2015-10-02 00:49:18 +00:00
e2dfab4ca0 Merge pull request #2007 from QuxLabs/qux-issue-8
Added working memcached support
2015-10-01 17:08:03 +01:00
afdbb2406d Added $nocache parameter
Fixed typo in caching
Excluded caching for MySQL-Authentication & /poll-log/
2015-09-30 15:20:06 +00:00
a86988605d Added Full screen Mobile support 2015-09-29 09:50:34 -03:00
f77c712bfc changes needed to run under web server subdirectory 2015-08-11 14:54:05 -07:00
945ca7f2ea Revert "changes needed to run under web server subdirectory" 2015-08-11 21:25:23 +01:00
cc0f449fc9 changes needed to run under web server subdirectory 2015-08-07 11:10:43 -07:00
laf
f091ba3877 Tidying up from rebase 2015-07-26 11:31:04 +00:00
c893061f51 Rebased 2015-07-26 11:09:46 +00:00
laf
8f282c5174 Tidy up + new tiles 2015-07-22 22:04:33 +01:00
laf
2f9dcc8fbd Initial dashboard, code formatting is bad + lots needs tidying up 2015-07-21 23:01:57 +01:00
laf
b3e14c9ed6 Initial setup of new map system 2015-07-20 15:10:56 +01:00
b5e8998c70 apply lazyload patch 2015-07-16 12:42:58 -04:00
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
laf
19b188e747 Removed additional else check 2015-05-29 11:10:43 +01:00
laf
3f974478e0 When bare=yes is specified, enable more of a full screen look 2015-05-29 01:17:23 +01:00
laf
0062e59f3a Merge branch 'master' of github.com:laf/librenms into twitter-typeahead
Conflicts:
	html/index.php
2015-05-03 13:30:56 +01:00
07205d6a23 Merge pull request #887 from laf/installer
Updated installer
2015-05-03 10:39:36 +00:00
a6244a7d21 Merge pull request #893 from joubertredrat/issue-622
Issue 622
2015-05-02 23:24:00 +01:00
dbbde9f649 Include loading on top page and fix dark and mono logo 2015-05-01 11:02:18 -03:00
laf
05ec4d0145 Updated installer 2015-04-30 11:35:43 +01:00
laf
0ab836b9bb Added text to let users know refresh is disabled 2015-04-29 18:08:16 +01:00
laf
bcb39db66a Updated global search for new typeahead 2015-04-29 15:18:14 +01:00
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
f0o
169353d6ef Added nginx-hack to fix missing $_SERVER[PATH_INFO] 2015-04-17 17:56:38 +00:00
f0o
6ca392a462 CSV Exports 2015-04-16 10:39:49 +00:00
laf
325deafdd8 Stopped logging being output if user not logged in 2015-04-12 16:27:55 +01:00
laf
746dc32a9d Fixed ORIG_PATH_INFO being logged in error_log 2015-04-04 00:27:01 +01:00
laf
689f404d47 Updated footer link to use variable 2015-03-31 17:45:28 +01:00
dc5cfda4ad Merge pull request #683 from laf/font-awesome-2-webui
WebUI update to support dark / light theme - dark is default
2015-03-31 22:25:56 +10:00
laf
65f82ba00e Adding files for final font-awesome PR 2015-03-30 12:22:24 +01:00