Ian Berry
4408f18def
update the way templated custom data fields work:
...
- if the field is templated, empty, and a host field; use the host value
- if the field is template, non-empty, and a host field, use the template field value
- if the field is non-templated, use the user-specified value (per-data source)
unify the valid host field check in lib/config_form.php
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1485 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-25 02:38:32 +00:00
Ian Berry
2f29e7bdb9
display a warning when the user tries to create a data query data source from scratch
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1474 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-19 20:01:10 +00:00
Ian Berry
9014054837
updated the copyright to 2004
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1469 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-19 06:05:14 +00:00
Ian Berry
6421578736
add draw_custom_data_row() for custom data
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1454 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-11 05:11:16 +00:00
Ian Berry
17e395853d
eliminate an invalid array error
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1452 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-11 01:55:15 +00:00
Ian Berry
9af0c29af4
each user's menu will be customized based on their realm permissions (bug#106)
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1432 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-01-05 03:13:28 +00:00
Ian Berry
d764093a48
add 'spacer' method
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1414 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-12-16 03:03:59 +00:00
Ian Berry
667e352bd8
only incriment color alternation counter if the form element is visible
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1408 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-12-02 05:40:10 +00:00
Ian Berry
7baa4e67fd
make sure form fields that accept text-based values, pass values through htmlspecialchars() first
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1397 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-26 04:48:39 +00:00
Ian Berry
6e9a536fe0
applying jeff vier's typo patch
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1391 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-19 01:28:56 +00:00
Ian Berry
c49c4a7a21
add 'form_id' parameter so you can have an empty textbox value with a default value
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1347 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-07 01:04:22 +00:00
Ian Berry
3bb062a03c
phased out form_base_text_box(); cleaned up some form functions
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1324 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-11-06 01:50:15 +00:00
Ian Berry
abdce29156
start playing with menu layouts that is more intuitive for users
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1254 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-10-09 07:14:30 +00:00
Ian Berry
9390489adb
move graph items list drawing code to draw_graph_items_list()
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1237 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-24 01:28:25 +00:00
Ian Berry
60271c58db
added inject_form_variables() so all edit form data could be moved out of each file
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1232 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-23 03:17:52 +00:00
Ian Berry
39866609d3
unified all edit form code; updated references to the new 'lib/' directory
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1228 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-22 04:31:58 +00:00
Ian Berry
c62da03d5d
added form id to checkbox for js stuff
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1217 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-09-16 03:12:45 +00:00
Ian Berry
56231a067f
get rid of serialize/unserialize where not needed
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1177 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-24 06:48:23 +00:00
Ian Berry
42f42c84e2
added an action for 'drop_multi_rra' in draw_templated_item() and draw_nontemplated_item()
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1162 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-19 06:40:55 +00:00
Ian Berry
8e663ef651
move draw_menu() to form.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1137 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-16 20:53:35 +00:00
Ian Berry
2249f084f5
abstracted tree permissions code, created draw_navigation_text() function with BIG array
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1130 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-08-15 01:15:50 +00:00
Ian Berry
c48e756c89
added graph,host,and graph template permissions
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1117 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-07-28 22:02:31 +00:00
Ian Berry
e11cef97bb
create -> save button on settings form (bug#48)
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1011 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-31 19:48:02 +00:00
Ian Berry
4d2060bcae
added graph/data source title cache
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@983 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-28 21:22:48 +00:00
Ian Berry
503efbf95f
add htmlspecialchars() to text box output
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@981 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-28 19:13:22 +00:00
Ian Berry
7320f47cd5
added on-the-fly data query variable subsitution
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@972 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-27 06:20:23 +00:00
Ian Berry
711a984c9a
check if the selected graph tree has been deleted before setting it
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@947 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-21 03:02:13 +00:00
Ian Berry
9d1808863a
changes to enable cacti to work under 'open_basedir'
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@914 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-05-13 01:07:01 +00:00
Ian Berry
d759518e34
problem with no host subsitution on drop downs
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@894 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-04-29 00:47:54 +00:00
Ian Berry
68f9f9da49
use create button for a new form
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@888 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-04-25 14:08:26 +00:00
Ian Berry
953b18f870
don't both making host var subsitutions for dropdowns, null them out
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@836 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-04-14 00:40:35 +00:00
Ian Berry
31bb425cc2
removed two extraneous prints
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@772 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-03-24 04:28:07 +00:00
Ian Berry
836329a0d2
don't print the graph tree dropdown table if there <2 trees
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@754 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-03-23 18:57:36 +00:00
Ian Berry
6d63398721
fix an open_short_tag bug
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@644 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-03-08 19:16:59 +00:00
Ian Berry
971d6913cc
added some maximum length checking so lines do not get too long
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@618 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-03-02 23:59:54 +00:00
Ian Berry
34757ffb31
old table reference
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@610 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-03-02 17:20:19 +00:00
Ian Berry
72d34b3b7f
played with checkbox styles/cross browser issues a bit
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@560 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-20 09:18:36 +00:00
Ian Berry
c8003115dc
added a form_post_confirm_buttons() function for use on the data sources delete page, made form_base_password_box() into a more generic form_base_text_box()
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@553 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-18 18:19:39 +00:00
Ian Berry
23c39b6946
added support for the 'check_id' in the array
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@519 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-16 06:59:42 +00:00
Andy Blyler
8b967439a5
Moved create_list from functions.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@485 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-10 03:33:39 +00:00
Ian Berry
85dd291c42
making everything work under E_ALL
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@483 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-09 09:19:28 +00:00
Ian Berry
18769a2456
added session-based error detection stuff
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@478 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-06 06:12:23 +00:00
Ian Berry
99bc08591b
added draw_tree_dropdown() function from the code in top_graph_header.php
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@469 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-02-04 06:50:58 +00:00
Ian Berry
5a536dcbb2
re-added the 'trailing_br' to the form_base_checkbox() and form_base_radio_button() functions
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@454 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-31 06:58:12 +00:00
Ian Berry
15a54df00a
'<?' -> '<?php', updated copyright on top of each file
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@446 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-29 02:40:41 +00:00
Ian Berry
c6dce54b31
added 'drop_array' type to the view templated item function
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@441 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-28 06:42:58 +00:00
Ian Berry
bdc09a42c0
updated references to create_list()
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@415 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-20 06:35:32 +00:00
Ian Berry
6995f17488
missing break; was causing rendering problems for type 'radio'
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@396 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-18 17:53:16 +00:00
Ian Berry
b91a1095f8
def_colors table is now 'colors'
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@354 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-09 08:54:45 +00:00
Ian Berry
b2b316c69d
moved draw_nontemplated_item() function to form.php and implimented
...
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@340 860744bd-22fc-0310-8c96-e9fe5004b5ca
2003-01-06 08:45:43 +00:00