Commit Graph
191 Commits
Author SHA1 Message Date
cigamit 7ed134070a Resolving Issue #1142
Add Site dropdown to the Graphs and Data Sources pages
2017-12-21 20:00:18 -06:00
cigamit 7226bb59de Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
Update from develop
2017-12-03 09:08:35 -06:00
cigamit 139ec68a70 Be more consistent with feature 1.2 branch.
Note that this does not break functionality in 1.1.x.
2017-12-03 09:07:09 -06:00
cigamit 801d4e0b70 Resolve SQL/permission issues with get_allowed_graph_templates
This occurred due to the optimizations in pull request #1101.  The
$sql_user must, in it's entirety, be enclosed in parenthesis.
Otherwise, expand host functionality breaks.

I've also added the site_id in this commit to reduce the effort in
attempting to maintain both the feature branch and the develop branch.
It's not used, but returned.
2017-12-03 08:59:01 -06:00
cigamit 251a22ecff Merge remote-tracking branch 'refs/remotes/origin/develop' into feature/1.2.x
Updating feature 1.2 branch from Develop
2017-12-03 08:02:58 -06:00
cigamit 708be5b19f Cleanup after pull request #1177
Cleanup includes some misqueues in the pull request as well as some
other miscelaneous changes associated with how we have landed on
formatting.

Chagne include:
* No soft tabs on initial tabbing
* ON clause of JOIN should be capitalized and on separate line
* AND/OR should be capitalized in SQL Queries
* Formatting of db_..() functions calls
* Use of sizeof() instead of isset() for array checks
* i18n of Secpass check return values
* Remove trailing whitespace from lines

- ToDo: Remove more having in place of WHERE clauses
2017-12-02 10:26:34 -06:00
netniV 563e1ae09c Fixes for issues #1084, #1106 and #1116 (#1117)
* Fixes for issues 1106 (Graph filters), 1084 (Tree Branch population), and 1116 (Device Template won't set to none)

* Updated changelog\nfor issues #1084, #1106 and #1116
2017-12-02 10:57:08 -05:00
Patrick 50b358a194 Small rewrite/optimisation for auth query in issue #1091 (#1101) 2017-11-26 08:47:06 -06:00
cigamit 2c00d59b35 Resolving Issue #1097
Template user issues including:
- All template users should be disabled by default
- When a user is copied, enable that user by default
2017-11-23 12:30:56 -06:00
cigamit 99d19d5312 Correct whitespace and formatting issues
Whitespace and formatting in lib
2017-11-19 14:35:17 -06:00
Tony Roman 6d1b0a9a76 Merge branch 'develop' into feature/1.2.x
Conflicts:
	aggregate_graphs.php
	auth_login.php
	automation_templates.php
	cli/add_tree.php
	graph_templates_items.php
	lib/api_automation.php
	lib/api_tree.php
	lib/auth.php
	lib/html_form_template.php
2017-11-18 09:44:33 -05:00
Tony Roman 2eeabc2cc4 Move phpseclib to include/vendor directory 2017-11-18 09:31:27 -05:00
cigamit bea58d8fce Resolving Issue #958
User Group Tree permissions not resolved fully.
2017-11-04 20:19:07 -05:00
cigamit 223780bcec Resolving Issue #1012
Issue where disabled devices do not appear on the tree edit page.
2017-11-04 19:51:57 -05:00
cigamit 9cd66a045d Minor format changes for readablilty only. No functional changes 2017-10-28 15:04:09 -05:00
Tony Roman 6c73dd6105 Merge branch 'develop' into feature/1.2.x
Conflicts:
	cli/add_tree.php
	docs/CHANGELOG
2017-10-16 11:36:51 -04:00
Wolfgang Stöggl 4a1a15d72c Correct spelling of RRDtool (#1038)
- Change RRDTool -> RRDtool with a lowercase t.
- Replace in all files except *.mo, *.po, *.pot
2017-10-16 11:32:05 -04:00
cigamit 4680aa3a7e Correct remaining whitespace issues
Do a little cleanup of SQL queryies to use less horizontal space
2017-09-16 16:26:30 -05:00
Arno Streuli cedc671eaa Feature/1.2.x (#979)
* Update cacti.sql

Added 2 entry for cn_full_name and cn_email

* Update cacti.sql

Change the size to 50

* Create 1_2_0.php

Added the change on table user_domains_ldap, to provide info for full_name and email

* Update global_settings.php

Added the 2 new entry as new section for LDAP settings:
ldap_cn_fullname
ldap_cn_email

* Update auth.php

Added the email address on user_copy function

* Update ldap.php

Added the ldap_search_cn to search 2 specific CN on LDAP server

* Update auth_login.php

Added the Get user CN part for new LDAP users

* Update ldap.php

little error on ldap_search inside Getcn function

* Update user_domains.php

Add option to manage Full name and email taken from LDAP server

* Update auth_login.php

Change for multidomain authentication

* Update global_settings.php

change the name ldap_cn_xxx to just cn_xxx

* Update ldap.php

Correction to the error number and message when the CN is not find

* Update settings.php

Added the visibility of CN fields only for LDAP authentication mode

* Update ldap.php

correct on line 729 missing $ before this->cn

* Update cacti.sql

column definitions consistent with the definitions under install/upgrades/1_2_0.php

* Update auth_login.php

correct tab, as space, and add {} in if else statment

* Update ldap.php

correction on cacti_log with $output['error_text'], correction on all error_num 99 as '99'
and made some correction int tab/space

* Update auth_login.php

add missing {} on else function
2017-09-16 15:51:56 -05:00
cigamit 2c4b143c97 Resolving Issue #122
- Support Site Branch Type
- Note that though the branches currently render, their form and what is
rendered is still not finalized.
2017-09-01 14:19:11 -05:00
cigamit 7c46ee8de9 Resolving Issue #931
Aggregate graphs missing from list view
2017-08-27 08:48:21 -05:00
cigamit e08de31b34 Resolving Issue #904
Allow user to hide Graphs from disabled devices
2017-08-16 20:35:44 -05:00
cigamit 63fd0feb24 Resolving Iissue #880
Device drop down is limited to 20 devices and lacks a scroll bar
2017-07-29 13:30:11 -05:00
Tony Roman e7174c4046 Fix issue#788
- Fixed up invalid function call
 - Added default operator to cacti_version_compare function
2017-06-04 23:24:43 -04:00
Tony Roman ca8c8cd123 Move cacti_version_compare into main functions lib to be used
in non-install code
2017-06-04 21:33:15 -04:00
cigamit 15ea20b7c7 Make default items dropdowns for autocomplete 20 instead of 30 2017-05-27 07:33:10 -05:00
cigamit fbaf6bfa51 Add api to return authorized data sources
This is used for graph creation ajax callbacks
2017-05-21 11:49:18 -05:00
Patrick 9e3ab3bb67 Small Auth optimisations
- Alignment
2017-05-13 10:07:42 +02:00
Patrick bf20822a41 Small Auth optimisations 2017-05-12 21:50:20 +02:00
Patrick 2826a9b547 Small Auth optimisations
- better alignments and fixed some alignments
- removed some unused variables
2017-05-12 21:42:59 +02:00
Patrick 12905971a7 Small Auth optimisations
- better alignments and fixed some alignments
- applied some early returns
- some small optimisations by moving some function calls around
2017-05-12 21:30:49 +02:00
Tony Roman 8a179d7d7f Fix up to move if elseif else blocks to PSR 2017-05-07 19:57:36 -04:00
cigamit 753efac0f6 Correcting small SQL error in lib/auth.php 2017-05-04 19:02:45 -05:00
cigamit a31cc9d8b5 Fix SQL errors in gexport due to auth API errors 2017-05-01 07:14:47 -05:00
patrick f98e6541b5 Reverting changes because $user is required. 2017-04-29 00:31:28 +02:00
Patrick b154c3e89e Optimisations for tree view
lib/auth.php:
- is_device_allowed()
  - removed unused parameter $user
- get_allowed_tree_level()
  - removed unused parameter $user
- get_allowed_tree_content()
  - removed unused paramters $sql_where, $order_by, $limit, $total_rows and $user
  - refactored the code to apply for these unused parameters
- get_allowed_tree_header_graphs()
  - removed unused parameters $order_by, $limit, $total_rows and $user
  - refactored the code to apply for these unused parameters
- get_allowed_trees()
  - removed unused parameters $edit, $sql_where, $limit, $total_rows and $user
  - refactored the code to apply for these unused parameters

lib/functions.php:
- removed get_graph_tree_array() because it's unused after refactor

lib/html_tree.php
- draw_dhtml_tree_level():
  - removed unused parameter $graphing
  - removed unused global $config
- create_dhtml_tree()
  - removed unused global $config
  - refactored get_graph_tree_array() to alias: get_allowed_trees()

auth_profile.php:
  - refactored get_graph_tree_array(true) to alias: get_allowed_trees(true)
2017-04-28 18:16:46 +02:00
Patrick 48f41a5e6c Small optimisations for threeview
auth.php:
- defined tablenames for fields
2017-04-26 21:23:01 +02:00
Patrick e27a1b65da Small optimisations for threeview
- fixed several alignment issues

api_tree.php
- api_tree_rename_node() Removed 3 unused methodcalls
- api_tree_item_save() removed unused query
- api_tree_get_branch_ordering() defined fields in query

auth.php:
- defined tablenames for fields

html_tree.php
- draw_dhtml_tree_level_graphing()
  - removed unused parameter
  - moved get_allowed_graphs() call out of the foreach()

graph_view.php
- simplified the $matched queries
- typo in "update_timepsan" => "update_timespan"
2017-04-26 21:19:26 +02:00
cigamit 8f6fa03d8d Resolving Issue #533
User settings not cleared after saving profile
2017-04-07 17:26:28 -05:00
Patrick 9d1e8a4c6c Merge remote-tracking branch 'origin/develop' into develop 2017-04-04 10:53:48 +02:00
patrick d3012868fe More optimisations:
auth.php:
- get_auth_realms() small refactor
- is_graph_allowed() unused variable $graph and unnecessary if-statement
- auth_check_perms() one count of $objects instead of multiple
- is_device_allowed()unused variable $host and unnecessary if-statement
- is_graph_template_allowed()unused variable $template and unnecessary if-statement
- is_view_allowed() unnecessary if-statement

html_tree.php:
- 2x query refactor for use of index reference instead use of function
- deleted unused select statement

html_utility.php:
- isset_request_var() unnecessary if-statement
2017-04-03 20:57:36 +02:00
cigamit f442f4fea2 More precision in the SQL query 2017-04-01 15:46:15 -05:00
cigamit a930a879d5 Minor changes to correct for duplicate display lines. 2017-04-01 15:17:13 -05:00
cigamit be6f5b9543 Remediating SQL errors in Issue #389 2017-04-01 14:03:17 -05:00
Patrick f611eb2449 Refactor of recursive is_tree_branch_empty()
Applied early return routine
2017-03-24 11:47:55 +01:00
cigamit 01da9b11d6 Resolving Issue #436
Restricted user does not see graphs in tree view.  Also caught some
issues in the Tree Permissions section of both user and User Group's,
and additional Tree permissions when reproducing the users environment.
2017-03-19 13:18:48 -05:00
cigamit 8df49e1172 Resolving Issue #418 and #421 2017-03-14 19:12:40 -05:00
cigamit 2478b34219 Issue: Multiple domains not working as expected 2017-03-12 20:19:13 -05:00
cigamit 1730976b22 No need to check for existance of table 2017-02-05 13:27:32 -06:00
cigamit 72aeb5015d reduce query load on MySQL 2017-02-01 20:59:25 -06:00