===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
cacti-1.2.15+ds1/poller_automation.php-31-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_automation.php:32:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/poller_automation.php:33:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/poller_automation.php:34:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/poller_automation.php:35:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/poller_automation.php:36:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/poller_automation.php:37:require_once($config['base_path'] . '/lib/html_form_template.php');
cacti-1.2.15+ds1/poller_automation.php:38:require_once($config['base_path'] . '/lib/ping.php');
cacti-1.2.15+ds1/poller_automation.php:39:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_automation.php:40:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/poller_automation.php:41:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/poller_automation.php:42:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/poller_automation.php:43:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/poller_automation.php-44-
##############################################
cacti-1.2.15+ds1/poller_automation.php-459-			} else {
cacti-1.2.15+ds1/poller_automation.php:460:				$dnsname = @gethostbyaddr($device['ip_address']);
cacti-1.2.15+ds1/poller_automation.php-461-				$device['hostname'] = $dnsname;
##############################################
cacti-1.2.15+ds1/poller_automation.php-615-							if ($snmp_sysName != '') {
cacti-1.2.15+ds1/poller_automation.php:616:								$hostname = gethostbyaddr($device['ip_address']);
cacti-1.2.15+ds1/poller_automation.php-617-								if ($hostname != $device['ip_address']) {
##############################################
cacti-1.2.15+ds1/snmpagent_mibcache.php-49-	if(strstr(PHP_OS, 'WIN')) {
cacti-1.2.15+ds1/snmpagent_mibcache.php:50:		popen('start "CactiSNMPCacheChild" /I ' . $php . ' ' . $extra_args, 'r');
cacti-1.2.15+ds1/snmpagent_mibcache.php-51-	} else {
cacti-1.2.15+ds1/snmpagent_mibcache.php:52:		exec($php . ' ' . $extra_args . ' > /dev/null &');
cacti-1.2.15+ds1/snmpagent_mibcache.php-53-	}
##############################################
cacti-1.2.15+ds1/graphs_items.php-76-		if (!isempty_request_var('host_id')) {
cacti-1.2.15+ds1/graphs_items.php:77:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'dl.host_id=' . get_filter_request_var('host_id');
cacti-1.2.15+ds1/graphs_items.php-78-		}
##############################################
cacti-1.2.15+ds1/graphs_items.php-80-		if (!isempty_request_var('data_template_id')) {
cacti-1.2.15+ds1/graphs_items.php:81:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'dtd.data_template_id=' . get_filter_request_var('data_template_id');
cacti-1.2.15+ds1/graphs_items.php-82-		}
##############################################
cacti-1.2.15+ds1/graphs_items.php-401-	} elseif (get_request_var('data_template_id') == '0') {
cacti-1.2.15+ds1/graphs_items.php:402:		$sql_where .= ($sql_where != '' ? ' AND ':'') . 'dl.data_template_id=0';
cacti-1.2.15+ds1/graphs_items.php-403-	} elseif (!isempty_request_var('data_template_id')) {
cacti-1.2.15+ds1/graphs_items.php:404:		$sql_where .= ($sql_where != '' ? ' AND ':'') . 'dl.data_template_id=' . get_request_var('data_template_id');
cacti-1.2.15+ds1/graphs_items.php-405-	}
##############################################
cacti-1.2.15+ds1/graphs_items.php-486-			if (!isempty_request_var('id')) {
cacti-1.2.15+ds1/graphs_items.php:487:				$struct_graph_item['task_item_id']['sql'] .= " WHERE ($sql_where) OR (dtr.id=" . $template_item['task_item_id'] . ")";
cacti-1.2.15+ds1/graphs_items.php-488-			} else {
##############################################
cacti-1.2.15+ds1/pollers.php-25-require('./include/auth.php');
cacti-1.2.15+ds1/pollers.php:26:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/pollers.php-27-
##############################################
cacti-1.2.15+ds1/pollers.php-330-	if (is_ipaddress($hostname)) {
cacti-1.2.15+ds1/pollers.php:331:		$address = gethostbyaddr($hostname);
cacti-1.2.15+ds1/pollers.php-332-
##############################################
cacti-1.2.15+ds1/pollers.php-419-				db_execute('DELETE FROM poller WHERE ' . array_to_sql_or($selected_items, 'id'));
cacti-1.2.15+ds1/pollers.php:420:				db_execute('UPDATE host SET poller_id=1 WHERE deleted="" AND ' . array_to_sql_or($selected_items, 'poller_id'));
cacti-1.2.15+ds1/pollers.php-421-				db_execute('UPDATE automation_networks SET poller_id=1 WHERE ' . array_to_sql_or($selected_items, 'poller_id'));
##############################################
cacti-1.2.15+ds1/pollers.php-500-
cacti-1.2.15+ds1/pollers.php:501:			$pollers .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM poller WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/pollers.php-502-			$poller_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/script_server.php-87-if (!empty($polling_interval)) {
cacti-1.2.15+ds1/script_server.php:88:	$num_polling_items = db_fetch_cell_prepared('SELECT count(*) FROM poller_item WHERE rrd_next_step <= 0 AND poller_id = ?', array($config['poller_id']), 'count(*)');
cacti-1.2.15+ds1/script_server.php-89-	define('MAX_POLLER_RUNTIME', $polling_interval);
cacti-1.2.15+ds1/script_server.php-90-} else {
cacti-1.2.15+ds1/script_server.php:91:	$num_polling_items = db_fetch_cell_prepared('SELECT count(*) FROM poller_item WHERE poller_id = ?', array($config['poller_id']), 'count(*)');
cacti-1.2.15+ds1/script_server.php-92-	define('MAX_POLLER_RUNTIME', 300);
##############################################
cacti-1.2.15+ds1/script_server.php-150-				$out = [];
cacti-1.2.15+ds1/script_server.php:151:				exec("TASKLIST /FO LIST /FI \"PID eq $parent_pid\"", $out);
cacti-1.2.15+ds1/script_server.php-152-
##############################################
cacti-1.2.15+ds1/script_server.php-237-					ob_start();
cacti-1.2.15+ds1/script_server.php:238:					include_once($include_file);
cacti-1.2.15+ds1/script_server.php-239-					ob_end_clean();
##############################################
cacti-1.2.15+ds1/poller_realtime.php-26-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_realtime.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_realtime.php:28:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/poller_realtime.php:29:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller_realtime.php-30-
##############################################
cacti-1.2.15+ds1/poller_realtime.php-143-
cacti-1.2.15+ds1/poller_realtime.php:144:shell_exec("$command_string $extra_args");
cacti-1.2.15+ds1/poller_realtime.php-145-
##############################################
cacti-1.2.15+ds1/poller_realtime.php-182-
cacti-1.2.15+ds1/poller_realtime.php:183:	include_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/poller_realtime.php-184-
##############################################
cacti-1.2.15+ds1/poller_realtime.php-221-				/* create the rrdfile */
cacti-1.2.15+ds1/poller_realtime.php:222:				shell_exec($command);
cacti-1.2.15+ds1/poller_realtime.php-223-
##############################################
cacti-1.2.15+ds1/graph_templates_items.php-387-		foreach ($graph_item_inputs as $graph_item_input) {
cacti-1.2.15+ds1/graph_templates_items.php:388:			if (cacti_sizeof(db_fetch_assoc_prepared('SELECT graph_template_input_id FROM graph_template_input_defs WHERE graph_template_input_id = ?', array($graph_item_input['id']))) == 1) {
cacti-1.2.15+ds1/graph_templates_items.php:389:				db_execute_prepared('DELETE FROM graph_template_input WHERE id = ?', array($graph_item_input['id']));
cacti-1.2.15+ds1/graph_templates_items.php-390-			}
##############################################
cacti-1.2.15+ds1/reports_user.php-26-include('./include/auth.php');
cacti-1.2.15+ds1/reports_user.php:27:include_once($config['library_path'] . '/reports.php');
cacti-1.2.15+ds1/reports_user.php:28:include_once($config['library_path'] . '/html_reports.php');
cacti-1.2.15+ds1/reports_user.php:29:include_once($config['library_path'] . '/timespan_settings.php');
cacti-1.2.15+ds1/reports_user.php-30-
##############################################
cacti-1.2.15+ds1/sites.php-316-				db_execute('DELETE FROM sites WHERE ' . array_to_sql_or($selected_items, 'id'));
cacti-1.2.15+ds1/sites.php:317:				db_execute('UPDATE host SET site_id=0 WHERE deleted="" AND ' . array_to_sql_or($selected_items, 'site_id'));
cacti-1.2.15+ds1/sites.php-318-			} elseif (get_nfilter_request_var('drp_action') == '2') { /* Duplicate */
##############################################
cacti-1.2.15+ds1/sites.php-336-
cacti-1.2.15+ds1/sites.php:337:			$site_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM sites WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/sites.php-338-			$site_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/user_admin.php-240-			if ($new_username != '') {
cacti-1.2.15+ds1/user_admin.php:241:				if (cacti_sizeof(db_fetch_assoc_prepared('SELECT username FROM user_auth WHERE username = ? AND realm = ?', array($new_username, $new_realm)))) {
cacti-1.2.15+ds1/user_admin.php-242-					raise_message(19);
##############################################
cacti-1.2.15+ds1/user_admin.php-316-			if (get_nfilter_request_var('drp_action') != '2') {
cacti-1.2.15+ds1/user_admin.php:317:				$user_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT username FROM user_auth WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/user_admin.php-318-			}
##############################################
cacti-1.2.15+ds1/user_admin.php-345-			$user_id = $user_array[0];
cacti-1.2.15+ds1/user_admin.php:346:			$user_realm = db_fetch_cell_prepared('SELECT realm FROM user_auth WHERE id = ?', array($user_id));
cacti-1.2.15+ds1/user_admin.php-347-
##############################################
cacti-1.2.15+ds1/user_admin.php-354-				<td class='textArea'>
cacti-1.2.15+ds1/user_admin.php:355:					<p>" . __('Template Username:') . " <i>" . html_escape(db_fetch_cell_prepared('SELECT username FROM user_auth WHERE id = ?', array($user_id))) . "</i></p>
cacti-1.2.15+ds1/user_admin.php-356-				</td>
##############################################
cacti-1.2.15+ds1/user_admin.php-943-		} elseif (get_request_var('graph_template_id') == '0') {
cacti-1.2.15+ds1/user_admin.php:944:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id=0';
cacti-1.2.15+ds1/user_admin.php-945-		} elseif (!isempty_request_var('graph_template_id')) {
cacti-1.2.15+ds1/user_admin.php:946:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id=' . get_request_var('graph_template_id');
cacti-1.2.15+ds1/user_admin.php-947-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1123-		} else {
cacti-1.2.15+ds1/user_admin.php:1124:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' uagm.user_id=' . get_request_var('id');
cacti-1.2.15+ds1/user_admin.php-1125-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1246-		} elseif (get_request_var('host_template_id') == '0') {
cacti-1.2.15+ds1/user_admin.php:1247:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' host.host_template_id=0';
cacti-1.2.15+ds1/user_admin.php-1248-		} elseif (!isempty_request_var('host_template_id')) {
cacti-1.2.15+ds1/user_admin.php:1249:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' host.host_template_id=' . get_request_var('host_template_id');
cacti-1.2.15+ds1/user_admin.php-1250-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1254-		} else {
cacti-1.2.15+ds1/user_admin.php:1255:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' user_auth_perms.user_id=' . get_request_var('id', 0);
cacti-1.2.15+ds1/user_admin.php-1256-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1410-		} else {
cacti-1.2.15+ds1/user_admin.php:1411:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_perms.type=4 AND user_auth_perms.user_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_admin.php-1412-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1555-		} else {
cacti-1.2.15+ds1/user_admin.php:1556:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_perms.type=2 AND user_auth_perms.user_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_admin.php-1557-		}
##############################################
cacti-1.2.15+ds1/user_admin.php-1886-
cacti-1.2.15+ds1/user_admin.php:1887:					$form_array[$field_name]['items'][$sub_field_name]['value'] =  db_fetch_cell_prepared('SELECT value FROM settings_user WHERE name = ? AND user_id = ?', array($sub_field_name, get_request_var('id')));
cacti-1.2.15+ds1/user_admin.php-1888-				}
##############################################
cacti-1.2.15+ds1/user_admin.php-1893-
cacti-1.2.15+ds1/user_admin.php:1894:				$form_array[$field_name]['value'] = db_fetch_cell_prepared('SELECT value FROM settings_user WHERE name = ? and user_id = ?', array($field_name, get_request_var('id')));
cacti-1.2.15+ds1/user_admin.php-1895-			}
##############################################
cacti-1.2.15+ds1/data_input.php-271-
cacti-1.2.15+ds1/data_input.php:272:			$di_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM data_input WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/data_input.php-273-			$di_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/data_input.php-398-	/* when a field is deleted; we need to re-order the field sequences */
cacti-1.2.15+ds1/data_input.php:399:	if (($field['input_output'] == 'in') && (preg_match_all('/<([_a-zA-Z0-9]+)>/', db_fetch_cell_prepared('SELECT input_string FROM data_input WHERE id = ?', array($field['data_input_id'])), $matches))) {
cacti-1.2.15+ds1/data_input.php-400-		$j = 0;
##############################################
cacti-1.2.15+ds1/data_input.php-403-				$j++;
cacti-1.2.15+ds1/data_input.php:404:				db_execute_prepared("UPDATE data_input_fields SET sequence = ? WHERE data_input_id = ? AND input_output = 'in' AND data_name = ?", array($j, $field['data_input_id'], $matches[1][$i]));
cacti-1.2.15+ds1/data_input.php-405-			}
##############################################
cacti-1.2.15+ds1/data_input.php-441-	/* obtain a list of available fields for this given field type (input/output) */
cacti-1.2.15+ds1/data_input.php:442:	if (($current_field_type == 'in') && (preg_match_all('/<([_a-zA-Z0-9]+)>/', db_fetch_cell_prepared('SELECT input_string FROM data_input WHERE id = ?', array(!isempty_request_var('data_input_id') ? get_request_var('data_input_id') : $field['data_input_id'])), $matches))) {
cacti-1.2.15+ds1/data_input.php-443-		for ($i=0; ($i < cacti_count($matches[1])); $i++) {
##############################################
cacti-1.2.15+ds1/data_input.php-525-		foreach ($data_input_fields as $data_input_field) {
cacti-1.2.15+ds1/data_input.php:526:			db_execute_prepared('DELETE FROM data_input_data WHERE data_input_field_id = ?', array($data_input_field['id']));
cacti-1.2.15+ds1/data_input.php-527-		}
##############################################
cacti-1.2.15+ds1/data_input.php-529-
cacti-1.2.15+ds1/data_input.php:530:	db_execute_prepared('DELETE FROM data_input WHERE id = ?', array($id));
cacti-1.2.15+ds1/data_input.php:531:	db_execute_prepared('DELETE FROM data_input_fields WHERE data_input_id = ?', array($id));
cacti-1.2.15+ds1/data_input.php-532-
##############################################
cacti-1.2.15+ds1/data_input.php-897-
cacti-1.2.15+ds1/data_input.php:898:	$sql_where .= ($sql_where != '' ? ' AND' : 'WHERE') . " (di.hash NOT IN ('3eb92bb845b9660a7445cf9740726522', 'bf566c869ac6443b0c75d1c32b5a350e', '80e9e4c4191a5da189ae26d0e237f015', '332111d8b54ac8ce939af87a7eac0c06'))";
cacti-1.2.15+ds1/data_input.php-899-
cacti-1.2.15+ds1/data_input.php:900:	$sql_where  = api_plugin_hook_function('data_input_sql_where', $sql_where);
cacti-1.2.15+ds1/data_input.php-901-
##############################################
cacti-1.2.15+ds1/poller_recovery.php-29-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_recovery.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_recovery.php:31:require_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/poller_recovery.php:32:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/poller_recovery.php-33-
##############################################
cacti-1.2.15+ds1/poller_recovery.php-79-
cacti-1.2.15+ds1/poller_recovery.php:80:$recovery_pid = db_fetch_cell("SELECT value FROM settings WHERE name='recovery_pid'", true, $local_db_cnn_id);
cacti-1.2.15+ds1/poller_recovery.php-81-$packet_data  = db_fetch_row("SHOW GLOBAL VARIABLES LIKE 'max_allowed_packet'", true, $remote_db_cnn_id);
##############################################
cacti-1.2.15+ds1/poller_recovery.php-171-
cacti-1.2.15+ds1/poller_recovery.php:172:	db_execute("DELETE FROM settings WHERE name='recovery_pid'", true, $local_db_cnn_id);
cacti-1.2.15+ds1/poller_recovery.php-173-
##############################################
cacti-1.2.15+ds1/poller_recovery.php-178-		SET status="5"
cacti-1.2.15+ds1/poller_recovery.php:179:		WHERE id= ?', array($poller_id), true, $remote_db_cnn_id);
cacti-1.2.15+ds1/poller_recovery.php-180-
##############################################
cacti-1.2.15+ds1/poller_recovery.php-244-		SET status="2"
cacti-1.2.15+ds1/poller_recovery.php:245:		WHERE id= ?', array($poller_id), false, $remote_db_cnn_id);
cacti-1.2.15+ds1/poller_recovery.php-246-} else {
##############################################
cacti-1.2.15+ds1/data_sources.php-1076-		/* data input fields list */
cacti-1.2.15+ds1/data_sources.php:1077:		if ((empty($data['data_input_id'])) || (db_fetch_cell_prepared('SELECT type_id FROM data_input WHERE id = ?', array($data['data_input_id'])) > '1')) {
cacti-1.2.15+ds1/data_sources.php-1078-			unset($struct_data_source_item['data_input_field_id']);
cacti-1.2.15+ds1/data_sources.php-1079-		} else {
cacti-1.2.15+ds1/data_sources.php:1080:			$struct_data_source_item['data_input_field_id']['sql'] = "SELECT id,CONCAT(data_name,' - ',name) as name FROM data_input_fields WHERE data_input_id=" . $data['data_input_id'] . " and input_output='out' and update_rra='on' order by data_name,name";
cacti-1.2.15+ds1/data_sources.php-1081-		}
##############################################
cacti-1.2.15+ds1/spikekill.php-25-include('./include/auth.php');
cacti-1.2.15+ds1/spikekill.php:26:include_once($config['base_path'] . '/lib/spikekill.php');
cacti-1.2.15+ds1/spikekill.php-27-
##############################################
cacti-1.2.15+ds1/automation_networks.php-330-
cacti-1.2.15+ds1/automation_networks.php:331:			$networks_info = db_fetch_row_prepared('SELECT name FROM automation_networks WHERE id = ?', array($matches[1]));
cacti-1.2.15+ds1/automation_networks.php-332-			$networks_list .= '<li>' . html_escape($networks_info['name']) . '</li>';
##############################################
cacti-1.2.15+ds1/automation_networks.php-1110-						FROM automation_ips
cacti-1.2.15+ds1/automation_networks.php:1111:						WHERE network_id = ?', array($network['id']));
cacti-1.2.15+ds1/automation_networks.php-1112-
##############################################
cacti-1.2.15+ds1/automation_networks.php-1122-						FROM automation_processes
cacti-1.2.15+ds1/automation_networks.php:1123:						WHERE network_id = ?", array($network['id']));
cacti-1.2.15+ds1/automation_networks.php-1124-
##############################################
cacti-1.2.15+ds1/snmpagent_persist.php-81-	/* windows part missing */
cacti-1.2.15+ds1/snmpagent_persist.php:82:	pclose(popen('start "CactiSNMPCache" /I /B ' . $php . ' ' . $extra_args, 'r'));
cacti-1.2.15+ds1/snmpagent_persist.php-83-} else {
cacti-1.2.15+ds1/snmpagent_persist.php:84:	exec('ps -ef | grep -v grep | grep -v "sh -c" | grep snmpagent_mibcache.php', $output);
cacti-1.2.15+ds1/snmpagent_persist.php-85-	if(!cacti_sizeof($output)) {
cacti-1.2.15+ds1/snmpagent_persist.php:86:		exec($php . ' ' . $extra_args . ' > /dev/null &');
cacti-1.2.15+ds1/snmpagent_persist.php-87-	}
##############################################
cacti-1.2.15+ds1/snmpagent_persist.php-164-			$cache_last_refresh = $cache_refresh_time;
cacti-1.2.15+ds1/snmpagent_persist.php:165:			include( $path_mibcache );
cacti-1.2.15+ds1/snmpagent_persist.php-166-		}
##############################################
cacti-1.2.15+ds1/user_domains.php-90-					SET enabled=""
cacti-1.2.15+ds1/user_domains.php:91:					WHERE id = ?', array($save['user_id']));
cacti-1.2.15+ds1/user_domains.php-92-
##############################################
cacti-1.2.15+ds1/user_domains.php-214-
cacti-1.2.15+ds1/user_domains.php:215:			$d_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT domain_name FROM user_domains WHERE domain_id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/user_domains.php-216-			$d_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/user_domains.php-290-function domain_remove($domain_id) {
cacti-1.2.15+ds1/user_domains.php:291:	db_execute_prepared('DELETE FROM user_domains WHERE domain_id = ?', array($domain_id));
cacti-1.2.15+ds1/user_domains.php:292:	db_execute_prepared('DELETE FROM user_domains_ldap WHERE domain_id = ?', array($domain_id));
cacti-1.2.15+ds1/user_domains.php-293-}
##############################################
cacti-1.2.15+ds1/user_domains.php-295-function domain_disable($domain_id) {
cacti-1.2.15+ds1/user_domains.php:296:	db_execute_prepared('UPDATE user_domains SET enabled = "" WHERE domain_id = ?', array($domain_id));
cacti-1.2.15+ds1/user_domains.php-297-}
##############################################
cacti-1.2.15+ds1/user_domains.php-299-function domain_enable($domain_id) {
cacti-1.2.15+ds1/user_domains.php:300:	db_execute_prepared('UPDATE user_domains SET enabled = "on" WHERE domain_id = ?', array($domain_id));
cacti-1.2.15+ds1/user_domains.php-301-}
##############################################
cacti-1.2.15+ds1/user_domains.php-304-	db_execute('UPDATE user_domains SET defdomain = 0');
cacti-1.2.15+ds1/user_domains.php:305:	db_execute_prepared('UPDATE user_domains SET defdomain = 1 WHERE domain_id = ?', array($domain_id));
cacti-1.2.15+ds1/user_domains.php-306-}
##############################################
cacti-1.2.15+ds1/user_domains.php-762-			form_selectable_cell(($domain['defdomain'] == '0' ? '--': __('Yes') ), $domain['domain_id']);
cacti-1.2.15+ds1/user_domains.php:763:			form_selectable_ecell(($domain['user_id'] == '0' ? __('None Selected') : db_fetch_cell_prepared('SELECT username FROM user_auth WHERE id = ?', array($domain['user_id']))), $domain['domain_id']);
cacti-1.2.15+ds1/user_domains.php:764:			form_selectable_ecell(db_fetch_cell_prepared('SELECT cn_full_name FROM user_domains_ldap WHERE domain_id = ?', array($domain['domain_id'])), $domain['domain_id']);
cacti-1.2.15+ds1/user_domains.php:765:			form_selectable_ecell(db_fetch_cell_prepared('SELECT cn_email FROM user_domains_ldap WHERE domain_id = ?', array($domain['domain_id'])), $domain['domain_id']);
cacti-1.2.15+ds1/user_domains.php-766-			form_selectable_cell($domain['enabled'] == 'on' ? __('Yes'):__('No'), $domain['domain_id']);
##############################################
cacti-1.2.15+ds1/snmpagent_mibcachechild.php-40-/* check mib cache table status */
cacti-1.2.15+ds1/snmpagent_mibcachechild.php:41:$mibcache_changed = db_fetch_cell_prepared("SHOW TABLE STATUS WHERE `Name` LIKE 'snmpagent_cache' AND (UNIX_TIMESTAMP(`Update_time`)) >= ?", array($last_time));
cacti-1.2.15+ds1/snmpagent_mibcachechild.php-42-
##############################################
cacti-1.2.15+ds1/managers.php-552-
cacti-1.2.15+ds1/managers.php:553:	$registered_notifications = db_fetch_assoc_prepared('SELECT notification, mib FROM snmpagent_managers_notifications WHERE manager_id = ?', array($id));
cacti-1.2.15+ds1/managers.php-554-	$notifications = array();
##############################################
cacti-1.2.15+ds1/managers.php-636-	if (isset_request_var('purge')) {
cacti-1.2.15+ds1/managers.php:637:		db_execute_prepared('DELETE FROM snmpagent_notifications_log WHERE manager_id = ?', array($id));
cacti-1.2.15+ds1/managers.php-638-		set_request_var('clear', true);
##############################################
cacti-1.2.15+ds1/managers.php-761-
cacti-1.2.15+ds1/managers.php:762:	$sql_where = " snl.manager_id='" . $id . "'";
cacti-1.2.15+ds1/managers.php-763-
##############################################
cacti-1.2.15+ds1/managers.php-976-					/* ==================================================== */
cacti-1.2.15+ds1/managers.php:977:					$list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT description FROM snmpagent_managers WHERE id = ?', array($id))) . '</li>';
cacti-1.2.15+ds1/managers.php-978-					$selected_items[] = $id;
##############################################
cacti-1.2.15+ds1/poller_reports.php-29-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_reports.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_reports.php:31:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller_reports.php:32:require_once($config['base_path'] . '/lib/reports.php');
cacti-1.2.15+ds1/poller_reports.php-33-
##############################################
cacti-1.2.15+ds1/poller_reports.php-142-if (!$force) {
cacti-1.2.15+ds1/poller_reports.php:143:	$reports = db_fetch_assoc_prepared('SELECT * FROM reports WHERE mailtime < ? AND enabled="on"', array($t));
cacti-1.2.15+ds1/poller_reports.php-144-} else {
##############################################
cacti-1.2.15+ds1/poller_reports.php-152-		reports_log('Reports processing report: ' . $report['name'], true, 'REPORTS', POLLER_VERBOSITY_MEDIUM);
cacti-1.2.15+ds1/poller_reports.php:153:		$current_user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE id = ?', array($report['user_id']));
cacti-1.2.15+ds1/poller_reports.php-154-		if (isset($report['email'])) {
##############################################
cacti-1.2.15+ds1/cmd.php-58-require_once(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/cmd.php:59:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cmd.php:60:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cmd.php:61:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/cmd.php:62:require_once($config['base_path'] . '/lib/ping.php');
cacti-1.2.15+ds1/cmd.php-63-
##############################################
cacti-1.2.15+ds1/color_templates.php-178-	global $aggregate_actions, $config;
cacti-1.2.15+ds1/color_templates.php:179:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/color_templates.php-180-
##############################################
cacti-1.2.15+ds1/color_templates.php-378-
cacti-1.2.15+ds1/color_templates.php:379:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/color_templates.php-380-
##############################################
cacti-1.2.15+ds1/color_templates.php-419-
cacti-1.2.15+ds1/color_templates.php:420:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/color_templates.php-421-
##############################################
cacti-1.2.15+ds1/color_templates.php-475-	global $aggregate_actions, $item_rows, $config;
cacti-1.2.15+ds1/color_templates.php:476:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/color_templates.php-477-
##############################################
cacti-1.2.15+ds1/color_templates.php-588-	if (get_request_var('has_graphs') == 'true') {
cacti-1.2.15+ds1/color_templates.php:589:		$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . ' (templates>0 OR graphs>0)';
cacti-1.2.15+ds1/color_templates.php-590-	}
##############################################
cacti-1.2.15+ds1/reports_admin.php-26-include('./include/auth.php');
cacti-1.2.15+ds1/reports_admin.php:27:include_once($config['library_path'] . '/reports.php');
cacti-1.2.15+ds1/reports_admin.php:28:include_once($config['library_path'] . '/html_reports.php');
cacti-1.2.15+ds1/reports_admin.php:29:include_once($config['library_path'] . '/timespan_settings.php');
cacti-1.2.15+ds1/reports_admin.php-30-
##############################################
cacti-1.2.15+ds1/cli/add_data_query.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_data_query.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_data_query.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/add_data_query.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/add_data_query.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/add_data_query.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/add_data_query.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/add_data_query.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/add_data_query.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/add_data_query.php:35:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/cli/add_data_query.php:36:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/add_data_query.php:37:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/add_data_query.php-38-
##############################################
cacti-1.2.15+ds1/cli/add_data_query.php-166-	 */
cacti-1.2.15+ds1/cli/add_data_query.php:167:	$host_name = db_fetch_cell('SELECT hostname FROM host WHERE id = ' . $host_id);
cacti-1.2.15+ds1/cli/add_data_query.php-168-	if (!isset($host_name)) {
##############################################
cacti-1.2.15+ds1/cli/add_data_query.php-175-	 */
cacti-1.2.15+ds1/cli/add_data_query.php:176:	$data_query_name = db_fetch_cell('SELECT name FROM snmp_query WHERE id = ' . $data_query_id);
cacti-1.2.15+ds1/cli/add_data_query.php-177-	if (!isset($data_query_name)) {
##############################################
cacti-1.2.15+ds1/cli/add_data_query.php-184-	 */
cacti-1.2.15+ds1/cli/add_data_query.php:185:	$exists_already = db_fetch_cell("SELECT host_id FROM host_snmp_query WHERE host_id=$host_id AND snmp_query_id=$data_query_id AND reindex_method=$reindex_method");
cacti-1.2.15+ds1/cli/add_data_query.php-186-	if ((isset($exists_already)) &&
##############################################
cacti-1.2.15+ds1/cli/add_device.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_device.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_device.php:28:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/add_device.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/add_device.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/add_device.php:31:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/cli/add_device.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/add_device.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/add_device.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/add_device.php:35:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/add_device.php:36:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/add_device.php-37-
##############################################
cacti-1.2.15+ds1/cli/add_device.php-321-	if (isset($hosts[$description])) {
cacti-1.2.15+ds1/cli/add_device.php:322:		db_execute("UPDATE host SET hostname='$ip' WHERE deleted = '' AND id=" . $hosts[$description]);
cacti-1.2.15+ds1/cli/add_device.php-323-		print "This host already exists in the database ($description) device-id: (" . $hosts[$description] . ")\n";
##############################################
cacti-1.2.15+ds1/cli/add_device.php-344-		$id    = $addresses[$ip];
cacti-1.2.15+ds1/cli/add_device.php:345:		$phost = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($id));
cacti-1.2.15+ds1/cli/add_device.php-346-		$fail  = false;
##############################################
cacti-1.2.15+ds1/cli/add_device.php-385-		if ($fail) {
cacti-1.2.15+ds1/cli/add_device.php:386:			db_execute("UPDATE host SET description = '$description' WHERE deleted = '' AND id = " . $addresses[$ip]);
cacti-1.2.15+ds1/cli/add_device.php-387-			print "ERROR: This IP already exists in the database ($ip) device-id: (" . $addresses[$ip] . ")\n";
##############################################
cacti-1.2.15+ds1/cli/add_graphs.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_graphs.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_graphs.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/add_graphs.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/add_graphs.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/add_graphs.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/add_graphs.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/cli/add_graphs.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/add_graphs.php:34:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/add_graphs.php:35:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/add_graphs.php:36:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/cli/add_graphs.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/add_graphs.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/add_graphs.php-39-
##############################################
cacti-1.2.15+ds1/cli/add_graphs.php-628-			FROM host_snmp_cache
cacti-1.2.15+ds1/cli/add_graphs.php:629:			WHERE host_id=' . $host_id . '
cacti-1.2.15+ds1/cli/add_graphs.php-630-			AND snmp_query_id=' . $dsGraph['snmpQueryId'];
##############################################
cacti-1.2.15+ds1/cli/add_graphs.php-635-				$req  .= ' AND snmp_index IN (
cacti-1.2.15+ds1/cli/add_graphs.php:636:					SELECT DISTINCT snmp_index FROM host_snmp_cache WHERE host_id=' . $host_id . ' AND field_name = ' . db_qstr($snmpField);
cacti-1.2.15+ds1/cli/add_graphs.php-637-
##############################################
cacti-1.2.15+ds1/cli/add_graph_template.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_graph_template.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_graph_template.php-28-
##############################################
cacti-1.2.15+ds1/cli/add_graph_template.php-124-	 */
cacti-1.2.15+ds1/cli/add_graph_template.php:125:	$host_name = db_fetch_cell("SELECT hostname FROM host WHERE id = " . $host_id);
cacti-1.2.15+ds1/cli/add_graph_template.php-126-	if (!isset($host_name)) {
##############################################
cacti-1.2.15+ds1/cli/add_graph_template.php-133-	 */
cacti-1.2.15+ds1/cli/add_graph_template.php:134:	$graph_template_name = db_fetch_cell("SELECT name FROM graph_templates WHERE id = " . $graph_template_id);
cacti-1.2.15+ds1/cli/add_graph_template.php-135-	if (!isset($graph_template_name)) {
##############################################
cacti-1.2.15+ds1/cli/add_graph_template.php-140-	/* check, if graph template was already associated */
cacti-1.2.15+ds1/cli/add_graph_template.php:141:	$exists_already = db_fetch_cell("SELECT host_id FROM host_graph WHERE graph_template_id=$graph_template_id AND host_id=$host_id");
cacti-1.2.15+ds1/cli/add_graph_template.php-142-	if ((isset($exists_already)) &&
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_perms.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_perms.php-28-
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-153-	if ($displayGraphs) {
cacti-1.2.15+ds1/cli/add_perms.php:154:		if (!isset($hostId) || ($hostId === 0) || (!db_fetch_cell("SELECT id FROM host WHERE id=$hostId"))) {
cacti-1.2.15+ds1/cli/add_perms.php-155-			print "ERROR: You must supply a valid host_id before you can list its graphs\n";
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-175-		/* verify existing user id */
cacti-1.2.15+ds1/cli/add_perms.php:176:		if ( db_fetch_cell("SELECT id FROM user_auth WHERE id=$userId") ) {
cacti-1.2.15+ds1/cli/add_perms.php-177-			array_push($userIds, $userId);
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-201-		case 1: /* graph */
cacti-1.2.15+ds1/cli/add_perms.php:202:			if (!db_fetch_cell("SELECT local_graph_id FROM graph_templates_graph WHERE local_graph_id=$itemId") ) {
cacti-1.2.15+ds1/cli/add_perms.php-203-				print "ERROR: Invalid Graph item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-208-		case 2: /* tree */
cacti-1.2.15+ds1/cli/add_perms.php:209:			if (!db_fetch_cell("SELECT id FROM graph_tree WHERE id=$itemId") ) {
cacti-1.2.15+ds1/cli/add_perms.php-210-				print "ERROR: Invalid Tree item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-215-		case 3: /* host */
cacti-1.2.15+ds1/cli/add_perms.php:216:			if (!db_fetch_cell("SELECT id FROM host WHERE id=$itemId") ) {
cacti-1.2.15+ds1/cli/add_perms.php-217-				print "ERROR: Invalid Host item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/cli/add_perms.php-222-		case 4: /* graph_template */
cacti-1.2.15+ds1/cli/add_perms.php:223:			if (!db_fetch_cell("SELECT id FROM graph_templates WHERE id=$itemId") ) {
cacti-1.2.15+ds1/cli/add_perms.php-224-				print "ERROR: Invalid Graph Template item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/cli/add_tree.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_tree.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/add_tree.php:28:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/cli/add_tree.php-29-
##############################################
cacti-1.2.15+ds1/cli/add_tree.php-212-
cacti-1.2.15+ds1/cli/add_tree.php:213:		$existsAlready = db_fetch_cell("SELECT id FROM graph_tree WHERE name = '$name'");
cacti-1.2.15+ds1/cli/add_tree.php-214-		if ($existsAlready) {
##############################################
cacti-1.2.15+ds1/cli/add_tree.php-245-				FROM graph_tree_items
cacti-1.2.15+ds1/cli/add_tree.php:246:				WHERE graph_tree_id=$treeId
cacti-1.2.15+ds1/cli/add_tree.php-247-				AND id=$parentNode");
##############################################
cacti-1.2.15+ds1/cli/add_tree.php-276-				FROM graph_local
cacti-1.2.15+ds1/cli/add_tree.php:277:				WHERE graph_local.id=' . $graphId);
cacti-1.2.15+ds1/cli/add_tree.php-278-
##############################################
cacti-1.2.15+ds1/cli/copy_user.php-52-/* Check that user exists */
cacti-1.2.15+ds1/cli/copy_user.php:53:$user_auth = db_fetch_row("SELECT * FROM user_auth WHERE username = '" . $template_user . "' AND realm = 0");
cacti-1.2.15+ds1/cli/copy_user.php-54-if (! isset($user_auth)) {
##############################################
cacti-1.2.15+ds1/cli/copy_user.php-63-
cacti-1.2.15+ds1/cli/copy_user.php:64:$user_auth = db_fetch_row("SELECT * FROM user_auth WHERE username = '" . $new_user . "' AND realm = 0");
cacti-1.2.15+ds1/cli/copy_user.php-65-if (! isset($user_auth)) {
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/host_update_template.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/host_update_template.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/host_update_template.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/host_update_template.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/host_update_template.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/host_update_template.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/host_update_template.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/host_update_template.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/host_update_template.php:35:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/cli/host_update_template.php:36:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/host_update_template.php:37:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/host_update_template.php-38-
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-101-}else if (is_numeric($host_id)) {
cacti-1.2.15+ds1/cli/host_update_template.php:102:	$sql_where = ' WHERE id=' . $host_id;
cacti-1.2.15+ds1/cli/host_update_template.php-103-} else {
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-110-if (is_numeric($template)) {
cacti-1.2.15+ds1/cli/host_update_template.php:111:	$sql_where .= ($sql_where != '' ? " AND host_template_id=$template": "WHERE host_template_id=$template");
cacti-1.2.15+ds1/cli/host_update_template.php-112-} else {
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-118-/* verify that the host template is accurate */
cacti-1.2.15+ds1/cli/host_update_template.php:119:if (db_fetch_cell("SELECT id FROM host_template WHERE id=$template") > 0) {
cacti-1.2.15+ds1/cli/host_update_template.php-120-	$hosts = db_fetch_assoc("SELECT * FROM host $sql_where");
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-126-			FROM host_template_snmp_query
cacti-1.2.15+ds1/cli/host_update_template.php:127:			WHERE host_template_id=' . $host['host_template_id']);
cacti-1.2.15+ds1/cli/host_update_template.php-128-
##############################################
cacti-1.2.15+ds1/cli/host_update_template.php-140-
cacti-1.2.15+ds1/cli/host_update_template.php:141:		$graph_templates = db_fetch_assoc('SELECT graph_template_id FROM host_template_graph WHERE host_template_id=' . $host['host_template_id']);
cacti-1.2.15+ds1/cli/host_update_template.php-142-
##############################################
cacti-1.2.15+ds1/cli/import_template.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/import_template.php:27:require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/cli/import_template.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/import_template.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/import_template.php-30-
##############################################
cacti-1.2.15+ds1/cli/import_template.php-92-		} else {
cacti-1.2.15+ds1/cli/import_template.php:93:			$id = db_fetch_cell_prepared('SELECT id FROM data_source_profiles WHERE id = ?', array($profile_id));
cacti-1.2.15+ds1/cli/import_template.php-94-
##############################################
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:27:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-30-
##############################################
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-90-if ($filter != '') {
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:91:	$sql_where = "AND (data_template_data.name_cache like '%" . $filter . "%'" .
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-92-	" OR data_template_data.local_data_id like '%" . $filter . "%'" .
##############################################
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-110-
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:111:	$sql_where .= " AND data_local.host_id IN ($host_str)";
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-112-} elseif ($host_id == '0') {
##############################################
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-114-} elseif (!empty($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php:115:	$sql_where .= ' AND data_local.host_id=' . $host_id;
cacti-1.2.15+ds1/cli/poller_data_sources_reapply_names.php-116-} else {
##############################################
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php:27:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-28-
##############################################
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-84-if ($filter != '') {
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php:85:	$sql_where = "AND (graph_templates_graph.title_cache LIKE '%" . $filter . "%'" .
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-86-		" OR graph_templates.name LIKE '%" . $filter . "%')";
##############################################
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-102-
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php:103:	$sql_where .= " AND graph_local.host_id IN ($host_str)";
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-104-} elseif ($host_id == '0') {
##############################################
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-106-} elseif (!empty($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php:107:	$sql_where .= ' AND graph_local.host_id=' . $host_id;
cacti-1.2.15+ds1/cli/poller_graphs_reapply_names.php-108-} else {
##############################################
cacti-1.2.15+ds1/cli/poller_output_empty.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:28:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:29:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:30:require_once($config['base_path'] . '/lib/dsdebug.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:31:require_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php:32:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/cli/poller_output_empty.php-33-
##############################################
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:34:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:35:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:36:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-39-
##############################################
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-106-}else if (is_numeric($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:107:	$sql_where = 'WHERE host_id = ' . $host_id;
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-108-} else {
##############################################
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-117-}else if (is_numeric($query_id) && $query_id > 0) {
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:118:	$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . ' snmp_query_id=' . $query_id;
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-119-} else {
##############################################
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-126-if ($host_descr != '') {
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php:127:	$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . " host.description LIKE '%" . $host_descr . "%' AND host.id=host_snmp_query.host_id";
cacti-1.2.15+ds1/cli/poller_reindex_hosts.php-128-
##############################################
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php:28:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php-29-
##############################################
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php-85-if ($host_id > 0) {
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php:86:	$poller_data  = db_fetch_assoc('SELECT * FROM data_local WHERE host_id=' . $host_id);
cacti-1.2.15+ds1/cli/rebuild_poller_cache.php-87-} else {
##############################################
cacti-1.2.15+ds1/cli/repair_templates.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/repair_templates.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/repair_templates.php:28:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/repair_templates.php:29:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/repair_templates.php-30-
##############################################
cacti-1.2.15+ds1/cli/repair_templates.php-83-	foreach($damaged_template_ids as $id) {
cacti-1.2.15+ds1/cli/repair_templates.php:84:		$template_name = db_fetch_cell('SELECT name FROM data_template WHERE id=' . $id['data_template_id']);
cacti-1.2.15+ds1/cli/repair_templates.php-85-		print "NOTE: Data Template '$template_name' is Damaged and can be repaired\n";
##############################################
cacti-1.2.15+ds1/cli/repair_templates.php-93-				$hash = get_hash_data_template($template['local_data_template_rrd_id'], 'data_template_item');
cacti-1.2.15+ds1/cli/repair_templates.php:94:				db_execute("UPDATE data_template_rrd SET hash='$hash' WHERE id=" . $template['id']);
cacti-1.2.15+ds1/cli/repair_templates.php-95-			}
##############################################
cacti-1.2.15+ds1/cli/repair_templates.php-114-	foreach($damaged_template_ids as $id) {
cacti-1.2.15+ds1/cli/repair_templates.php:115:		$template_name = db_fetch_cell('SELECT name FROM graph_templates WHERE id=' . $id['graph_template_id']);
cacti-1.2.15+ds1/cli/repair_templates.php-116-		print "NOTE: Graph Template '$template_name' is Damaged and can be repaired\n";
##############################################
cacti-1.2.15+ds1/cli/repair_templates.php-124-				$hash = get_hash_graph_template(0, 'graph_template_input');
cacti-1.2.15+ds1/cli/repair_templates.php:125:				db_execute("UPDATE graph_template_input SET hash='$hash' WHERE id=" . $template['id']);
cacti-1.2.15+ds1/cli/repair_templates.php-126-			}
##############################################
cacti-1.2.15+ds1/cli/structure_rra_paths.php-197-		SET rrd_path = '" . $info['new_rrd_path'] . "'
cacti-1.2.15+ds1/cli/structure_rra_paths.php:198:		WHERE local_data_id=" . $info['local_data_id']);
cacti-1.2.15+ds1/cli/structure_rra_paths.php-199-
##############################################
cacti-1.2.15+ds1/cli/structure_rra_paths.php-202-		SET data_source_path='" . $info['new_data_source_path'] . "'
cacti-1.2.15+ds1/cli/structure_rra_paths.php:203:		WHERE local_data_id=" . $info['local_data_id']);
cacti-1.2.15+ds1/cli/structure_rra_paths.php-204-
##############################################
cacti-1.2.15+ds1/cli/upgrade_database.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/upgrade_database.php:27:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/upgrade_database.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/upgrade_database.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/upgrade_database.php:30:require_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/cli/upgrade_database.php-31-
##############################################
cacti-1.2.15+ds1/cli/upgrade_database.php-123-		print 'Upgrading from v' . $prev_cacti_version .' (DB ' . $orig_cacti_version . ') to v' . $cacti_upgrade_version . PHP_EOL;
cacti-1.2.15+ds1/cli/upgrade_database.php:124:		include($upgrade_file);
cacti-1.2.15+ds1/cli/upgrade_database.php-125-		if (function_exists($upgrade_function)) {
##############################################
cacti-1.2.15+ds1/cli/analyze_database.php-71-
cacti-1.2.15+ds1/cli/analyze_database.php:72:$tables = db_fetch_assoc('SHOW TABLES FROM `' . $database_default . '`');
cacti-1.2.15+ds1/cli/analyze_database.php-73-
##############################################
cacti-1.2.15+ds1/cli/reorder_data_query.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/reorder_data_query.php:27:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/reorder_data_query.php:28:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/reorder_data_query.php-29-
##############################################
cacti-1.2.15+ds1/cli/reorder_data_query.php-91-}else if (is_numeric($host_id)) {
cacti-1.2.15+ds1/cli/reorder_data_query.php:92:	$sql_where .= ($sql_where != '' ? ' AND ' : ' WHERE ' ) . 'data_local.host_id = ' . $host_id;
cacti-1.2.15+ds1/cli/reorder_data_query.php-93-} else {
##############################################
cacti-1.2.15+ds1/cli/reorder_data_query.php-100-if (is_numeric($query_id)) {
cacti-1.2.15+ds1/cli/reorder_data_query.php:101:	$sql_where .= ($sql_where != '' ? ' AND ' : ' WHERE ' ) . 'data_local.snmp_query_id= ' . $query_id;
cacti-1.2.15+ds1/cli/reorder_data_query.php-102-} else {
##############################################
cacti-1.2.15+ds1/cli/removespikes.php-30-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/removespikes.php:31:include_once($config['base_path'] . '/lib/spikekill.php');
cacti-1.2.15+ds1/cli/removespikes.php-32-
##############################################
cacti-1.2.15+ds1/cli/sqltable_to_php.php-81-
cacti-1.2.15+ds1/cli/sqltable_to_php.php:82:	include_once($config['library_path'] . '/database.php');
cacti-1.2.15+ds1/cli/sqltable_to_php.php-83-
cacti-1.2.15+ds1/cli/sqltable_to_php.php:84:	$result = db_fetch_assoc('SHOW tables FROM `' . $database_default . '`');
cacti-1.2.15+ds1/cli/sqltable_to_php.php-85-
##############################################
cacti-1.2.15+ds1/cli/import_package.php-28-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/import_package.php:29:require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/cli/import_package.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/import_package.php:31:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/import_package.php:32:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/import_package.php-33-
##############################################
cacti-1.2.15+ds1/cli/audit_database.php-345-function make_column_alter($table, $dbc) {
cacti-1.2.15+ds1/cli/audit_database.php:346:	$alter_cmd = 'ALTER TABLE `' . $table . '` MODIFY COLUMN `' . $dbc['table_field'] . '` ' . $dbc['table_type'] . ($dbc['table_null'] == 'NO' ? ' NOT NULL':'');
cacti-1.2.15+ds1/cli/audit_database.php-347-
##############################################
cacti-1.2.15+ds1/cli/audit_database.php-369-	if (db_index_exists($table, $key)) {
cacti-1.2.15+ds1/cli/audit_database.php:370:		$alter_cmds[] = 'ALTER TABLE `' . $table . '` DROP KEY `' . $key . '`';
cacti-1.2.15+ds1/cli/audit_database.php-371-	}
##############################################
cacti-1.2.15+ds1/cli/audit_database.php-383-			if ($i == 0 && $p['idx_key_name'] == 'PRIMARY') {
cacti-1.2.15+ds1/cli/audit_database.php:384:				$alter_cmd = 'ALTER TABLE `' . $table . '` ADD PRIMARY KEY ' . $p['idx_index_type'] . ' (';
cacti-1.2.15+ds1/cli/audit_database.php-385-			} elseif ($i == 0) {
cacti-1.2.15+ds1/cli/audit_database.php-386-				if ($p['idx_non_unique'] == 1) {
cacti-1.2.15+ds1/cli/audit_database.php:387:					$alter_cmd = 'ALTER TABLE `' . $table . '` ADD INDEX `' . $key . '` (';
cacti-1.2.15+ds1/cli/audit_database.php-388-				} else {
cacti-1.2.15+ds1/cli/audit_database.php:389:					$alter_cmd = 'ALTER TABLE `' . $table . '` ADD UNIQUE INDEX `' . $key . '` (';
cacti-1.2.15+ds1/cli/audit_database.php-390-				}
##############################################
cacti-1.2.15+ds1/cli/audit_database.php-392-
cacti-1.2.15+ds1/cli/audit_database.php:393:			$alter_cmd .= ($i > 0 ? ',':'') . '`' . $p['idx_column_name'] . '`';
cacti-1.2.15+ds1/cli/audit_database.php-394-
##############################################
cacti-1.2.15+ds1/cli/audit_database.php-554-
cacti-1.2.15+ds1/cli/audit_database.php:555:		exec('mysqldump -u' . $database_username . ' -p' . $database_password . ' ' . $database_default . ' table_columns table_indexes --extended-insert=FALSE > ' . $config['base_path'] . '/docs/audit_schema.sql');
cacti-1.2.15+ds1/cli/audit_database.php-556-
##############################################
cacti-1.2.15+ds1/cli/remove_device.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/remove_device.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/remove_device.php:28:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/remove_device.php:29:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/remove_device.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/remove_device.php:31:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/remove_device.php:32:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cli/remove_device.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/remove_device.php:34:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/remove_device.php-35-
##############################################
cacti-1.2.15+ds1/cli/add_datasource.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/add_datasource.php:27:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/add_datasource.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/add_datasource.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/add_datasource.php:30:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/add_datasource.php-31-
##############################################
cacti-1.2.15+ds1/cli/convert_tables.php-193-
cacti-1.2.15+ds1/cli/convert_tables.php:194:				$status = db_execute('ALTER TABLE `' . $table['Name'] . '`' . ($dynamic ? ' ROW_FORMAT=Dynamic, ':'') . $sql);
cacti-1.2.15+ds1/cli/convert_tables.php-195-
##############################################
cacti-1.2.15+ds1/cli/convert_tables.php-198-
cacti-1.2.15+ds1/cli/convert_tables.php:199:					cacti_log("FATAL: Conversion of Table '" . $table['Name'] . "' Failed.  Command: 'ALTER TABLE `" . $table['Name'] . "` $sql'", false, 'CONVERT');
cacti-1.2.15+ds1/cli/convert_tables.php-200-				} else {
##############################################
cacti-1.2.15+ds1/cli/input_whitelist.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/input_whitelist.php:27:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/input_whitelist.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/input_whitelist.php:29:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/input_whitelist.php-30-
##############################################
cacti-1.2.15+ds1/cli/install_cacti.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/install_cacti.php:27:include_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/cli/install_cacti.php-28-
##############################################
cacti-1.2.15+ds1/cli/install_cacti.php-162-
cacti-1.2.15+ds1/cli/install_cacti.php:163:include_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/install_cacti.php:164:include_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/install_cacti.php:165:include_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/install_cacti.php:166:include_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/install_cacti.php:167:include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/install_cacti.php:168:include_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/cli/install_cacti.php:169:include_once($config['base_path'] . '/lib/installer.php');
cacti-1.2.15+ds1/cli/install_cacti.php:170:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/install_cacti.php:171:include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/install_cacti.php-172-
##############################################
cacti-1.2.15+ds1/cli/remove_graphs.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:28:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:29:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:30:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:31:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/remove_graphs.php:32:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/remove_graphs.php-33-
##############################################
cacti-1.2.15+ds1/cli/remove_graphs.php-221-	if (cacti_sizeof($host_ids) && $all === false) {
cacti-1.2.15+ds1/cli/remove_graphs.php:222:		$sql_where .= ' AND gl.host_id IN (' . implode(',', $host_ids). ')';
cacti-1.2.15+ds1/cli/remove_graphs.php-223-		$all_option = false;
##############################################
cacti-1.2.15+ds1/cli/remove_graphs.php-226-	if (cacti_sizeof($host_template_ids) && $all === false) {
cacti-1.2.15+ds1/cli/remove_graphs.php:227:		$sql_where .= ' AND h.host_template_id IN (' . implode(',', $host_template_ids). ')';
cacti-1.2.15+ds1/cli/remove_graphs.php-228-		$all_option = false;
##############################################
cacti-1.2.15+ds1/cli/remove_graphs.php-231-	if (cacti_sizeof($graph_template_ids) && $all === false) {
cacti-1.2.15+ds1/cli/remove_graphs.php:232:		$sql_where .= ' AND gl.graph_template_id IN (' . implode(',', $graph_template_ids). ')';
cacti-1.2.15+ds1/cli/remove_graphs.php-233-		$all_option = false;
##############################################
cacti-1.2.15+ds1/cli/remove_graphs.php-240-		foreach($regex as $r) {
cacti-1.2.15+ds1/cli/remove_graphs.php:241:			$sql_cwhere .= ($sql_cwhere == '' ? '':' OR ') . 'title_cache RLIKE "' . $r . '"';
cacti-1.2.15+ds1/cli/remove_graphs.php-242-		}
cacti-1.2.15+ds1/cli/remove_graphs.php-243-
cacti-1.2.15+ds1/cli/remove_graphs.php:244:		$sql_where .= $sql_cwhere . ')';
cacti-1.2.15+ds1/cli/remove_graphs.php-245-		$all_option = false;
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-28-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/repair_graphs.php:29:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/repair_graphs.php:30:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/repair_graphs.php:31:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/repair_graphs.php-32-
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-112-// Get all graphs for supplied graph template
cacti-1.2.15+ds1/cli/repair_graphs.php:113:$graph = db_fetch_assoc("SELECT * FROM graph_local where " . (!isset($host_id) ? '' : "host_id=".$host_id." and ") . " graph_template_id=" . $graph_template_id . "");
cacti-1.2.15+ds1/cli/repair_graphs.php-114-
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-121-		// Get datasource for supplied data template for current host
cacti-1.2.15+ds1/cli/repair_graphs.php:122:		$ds = db_fetch_assoc("SELECT * FROM data_local where host_id=" . $g["host_id"] . " and data_template_id=" . $data_template_id);
cacti-1.2.15+ds1/cli/repair_graphs.php-123-		if (!cacti_sizeof($ds)) {
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-128-		// Get rrd for found datasource
cacti-1.2.15+ds1/cli/repair_graphs.php:129:		$rrd_data = db_fetch_assoc("SELECT * FROM data_template_rrd where local_data_id=" . $ds["id"]);
cacti-1.2.15+ds1/cli/repair_graphs.php-130-		if (!cacti_sizeof($rrd_data)) {
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-141-		// Get graph associations which corresponds to supplied data template
cacti-1.2.15+ds1/cli/repair_graphs.php:142:		select id from graph_templates_item where local_graph_id=$g["id"] and local_graph_template_item_id in
cacti-1.2.15+ds1/cli/repair_graphs.php-143-		// But I'm too lazy to write such a lot of code, so let's better make one long query below
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-145-
cacti-1.2.15+ds1/cli/repair_graphs.php:146:		$graph_templates_items_wrong = db_fetch_assoc("select id, task_item_id from graph_templates_item WHERE task_item_id!=" . $rrd_data[0]["id"] . " and graph_template_id=" . $graph_template_id . " and local_graph_id=" . $g["id"] . " and local_graph_template_item_id in (select id from graph_templates_item where local_graph_template_item_id=0 and local_graph_id=0 and task_item_id=(select id from data_template_rrd where local_data_template_rrd_id=0 and local_data_id=0 and data_template_id=" . $data_template_id . "))");
cacti-1.2.15+ds1/cli/repair_graphs.php-147-		if (!cacti_sizeof($graph_templates_items_wrong)) {
##############################################
cacti-1.2.15+ds1/cli/repair_graphs.php-159-
cacti-1.2.15+ds1/cli/repair_graphs.php:160:		$query = "UPDATE graph_templates_item SET task_item_id=" . $rrd_data[0]["id"] . " WHERE task_item_id!=" . $rrd_data[0]["id"] . " and graph_template_id=" . $graph_template_id . " and local_graph_id=" . $g["id"] . " and id in (" . implode(",",$graph_templates_item) . ")";
cacti-1.2.15+ds1/cli/repair_graphs.php-161-
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:34:require_once($config['base_path'] . '/lib/functions.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:35:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:36:require_once($config['base_path'] . '/lib/reports.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/cli/apply_automation_rules.php-39-
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-110-
cacti-1.2.15+ds1/cli/apply_automation_rules.php:111:	$sql_where = 'WHERE h.id IN (' . implode(',', $ids) . ')';
cacti-1.2.15+ds1/cli/apply_automation_rules.php-112-}
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-115-if ($hostname != '') {
cacti-1.2.15+ds1/cli/apply_automation_rules.php:116:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(';
cacti-1.2.15+ds1/cli/apply_automation_rules.php-117-	$regex = false;
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-120-		$regex = true;
cacti-1.2.15+ds1/cli/apply_automation_rules.php:121:		$sql_where .= 'h.hostname RLIKE ' . db_qstr($hostname);
cacti-1.2.15+ds1/cli/apply_automation_rules.php-122-	}
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-124-	$hostname = '%' . $hostname . '%';
cacti-1.2.15+ds1/cli/apply_automation_rules.php:125:	$sql_where .= ($regex == true ? ' OR ':'') . 'h.hostname LIKE ' . db_qstr($hostname) . ')';
cacti-1.2.15+ds1/cli/apply_automation_rules.php-126-}
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-129-if ($description != '') {
cacti-1.2.15+ds1/cli/apply_automation_rules.php:130:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(';
cacti-1.2.15+ds1/cli/apply_automation_rules.php-131-	$regex = false;
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-134-		$regex = true;
cacti-1.2.15+ds1/cli/apply_automation_rules.php:135:		$sql_where .= 'h.description RLIKE ' . db_qstr($description);
cacti-1.2.15+ds1/cli/apply_automation_rules.php-136-	}
##############################################
cacti-1.2.15+ds1/cli/apply_automation_rules.php-138-	$description = '%' . $description . '%';
cacti-1.2.15+ds1/cli/apply_automation_rules.php:139:	$sql_where .= ($regex == true ? ' OR ':'') . 'h.description LIKE ' . db_qstr($description) . ')';
cacti-1.2.15+ds1/cli/apply_automation_rules.php-140-}
##############################################
cacti-1.2.15+ds1/cli/poller_replicate.php-26-require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/cli/poller_replicate.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cli/poller_replicate.php-28-
##############################################
cacti-1.2.15+ds1/cli/splice_rrd.php-238-
cacti-1.2.15+ds1/cli/splice_rrd.php:239:$response = shell_exec($rrdtool);
cacti-1.2.15+ds1/cli/splice_rrd.php-240-
##############################################
cacti-1.2.15+ds1/cli/splice_rrd.php-268-debug("Creating XML file '$oldxmlfile' from '$oldrrd'");
cacti-1.2.15+ds1/cli/splice_rrd.php:269:shell_exec("$rrdtool dump $oldrrd > $oldxmlfile");
cacti-1.2.15+ds1/cli/splice_rrd.php-270-
cacti-1.2.15+ds1/cli/splice_rrd.php-271-debug("Creating XML file '$newxmlfile' from '$newrrd'");
cacti-1.2.15+ds1/cli/splice_rrd.php:272:shell_exec("$rrdtool dump $newrrd > $newxmlfile");
cacti-1.2.15+ds1/cli/splice_rrd.php-273-
##############################################
cacti-1.2.15+ds1/cli/splice_rrd.php-414-			FROM dsData
cacti-1.2.15+ds1/cli/splice_rrd.php:415:			WHERE dsid = $dsnum
cacti-1.2.15+ds1/cli/splice_rrd.php-416-			AND cf = '$cf'
##############################################
cacti-1.2.15+ds1/cli/splice_rrd.php-820-	print 'NOTE: Re-Importing \'' . $xmlfile . '\' to \'' . $rrdfile . '\'' . PHP_EOL;
cacti-1.2.15+ds1/cli/splice_rrd.php:821:	$response = shell_exec("$rrdtool restore -f -r $xmlfile $rrdfile");
cacti-1.2.15+ds1/cli/splice_rrd.php-822-	if (strlen($response)) print $response . PHP_EOL;
##############################################
cacti-1.2.15+ds1/cdef.php-184-
cacti-1.2.15+ds1/cdef.php:185:	$cdef       = db_fetch_row_prepared('SELECT * FROM cdef WHERE id = ?', array($_cdef_id));
cacti-1.2.15+ds1/cdef.php:186:	$cdef_items = db_fetch_assoc_prepared('SELECT * FROM cdef_items WHERE cdef_id = ?', array($_cdef_id));
cacti-1.2.15+ds1/cdef.php-187-
##############################################
cacti-1.2.15+ds1/cdef.php-259-
cacti-1.2.15+ds1/cdef.php:260:			$cdef_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM cdef WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/cdef.php-261-			$cdef_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/graph.php-296-			ON dsp.id=dspr.data_source_profile_id
cacti-1.2.15+ds1/graph.php:297:			WHERE dspr.id = ?', array($rras[0]['id']));
cacti-1.2.15+ds1/graph.php-298-
##############################################
cacti-1.2.15+ds1/locales/update-pot.sh-3-# get script name
cacti-1.2.15+ds1/locales/update-pot.sh:4:SCRIPT_NAME=`basename ${0}`
cacti-1.2.15+ds1/locales/update-pot.sh-5-
##############################################
cacti-1.2.15+ds1/locales/update-pot.sh-16-fi
cacti-1.2.15+ds1/locales/update-pot.sh:17:BASE_PATH=`${REALPATH_BIN} ${0} | sed s#/locales/${SCRIPT_NAME}##`
cacti-1.2.15+ds1/locales/update-pot.sh-18-
##############################################
cacti-1.2.15+ds1/poller_boost.php-29-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_boost.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_boost.php:31:require_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/poller_boost.php:32:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/poller_boost.php:33:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller_boost.php-34-
##############################################
cacti-1.2.15+ds1/poller_boost.php-416-
cacti-1.2.15+ds1/poller_boost.php:417:	include_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/poller_boost.php-418-
##############################################
cacti-1.2.15+ds1/poller_boost.php-456-		FROM $archive_table
cacti-1.2.15+ds1/poller_boost.php:457:		WHERE local_data_id <= $last_id
cacti-1.2.15+ds1/poller_boost.php-458-		ORDER BY local_data_id ASC, time ASC, rrd_name ASC";
##############################################
cacti-1.2.15+ds1/poller_boost.php-661-		db_execute("DELETE FROM $archive_table
cacti-1.2.15+ds1/poller_boost.php:662:			WHERE local_data_id <= $last_id");
cacti-1.2.15+ds1/poller_boost.php-663-		boost_timer('delete', BOOST_TIMER_END);
##############################################
cacti-1.2.15+ds1/auth_changepassword.php-195-			VALUES (?, 3, NOW(), ?)',
cacti-1.2.15+ds1/auth_changepassword.php:196:			array($user['username'], get_client_addr()));
cacti-1.2.15+ds1/auth_changepassword.php-197-
##############################################
cacti-1.2.15+ds1/auth_changepassword.php-220-		if ($token != '') {
cacti-1.2.15+ds1/auth_changepassword.php:221:			$sql_where = 'AND token != ' . db_qstr(hash('sha512', $token, false));
cacti-1.2.15+ds1/auth_changepassword.php-222-		} else {
##############################################
cacti-1.2.15+ds1/poller_maintenance.php-26-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_maintenance.php:27:require_once($config['library_path'] . '/api_data_source.php');
cacti-1.2.15+ds1/poller_maintenance.php:28:require_once($config['library_path'] . '/api_device.php');
cacti-1.2.15+ds1/poller_maintenance.php:29:require_once($config['library_path'] . '/api_graph.php');
cacti-1.2.15+ds1/poller_maintenance.php:30:include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/poller_maintenance.php:31:require_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/poller_maintenance.php:32:require_once($config['library_path'] . '/utility.php');
cacti-1.2.15+ds1/poller_maintenance.php-33-
##############################################
cacti-1.2.15+ds1/auth_login.php-343-
cacti-1.2.15+ds1/auth_login.php:344:		$client_addr = get_client_addr('');
cacti-1.2.15+ds1/auth_login.php-345-
##############################################
cacti-1.2.15+ds1/auth_login.php-419-			VALUES (?, ?, 0, ?, NOW())',
cacti-1.2.15+ds1/auth_login.php:420:			array($username, !empty($id) ? $id:0, get_client_addr('')));
cacti-1.2.15+ds1/auth_login.php-421-
cacti-1.2.15+ds1/auth_login.php:422:		cacti_log('LOGIN: ' . ($realm == 0 ? 'Local':'LDAP') . " Login Failed for user '" . $username . "' from IP Address '" . get_client_addr('') . "'.", false, 'AUTH');
cacti-1.2.15+ds1/auth_login.php-423-	}
##############################################
cacti-1.2.15+ds1/boost_rrdupdate.php-28-/* include important functions */
cacti-1.2.15+ds1/boost_rrdupdate.php:29:include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/boost_rrdupdate.php:30:include_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/boost_rrdupdate.php-31-
##############################################
cacti-1.2.15+ds1/boost_rrdupdate.php-47-if ($config['cacti_server_os'] == 'win32') {
cacti-1.2.15+ds1/boost_rrdupdate.php:48:	$handle = popen($command, 'rb');
cacti-1.2.15+ds1/boost_rrdupdate.php-49-} else {
cacti-1.2.15+ds1/boost_rrdupdate.php:50:	$handle = popen($command, 'r');
cacti-1.2.15+ds1/boost_rrdupdate.php-51-}
##############################################
cacti-1.2.15+ds1/cmd_realtime.php-25-require_once(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/cmd_realtime.php:26:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/cmd_realtime.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/cmd_realtime.php:28:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/cmd_realtime.php:29:require_once($config['base_path'] . '/lib/ping.php');
cacti-1.2.15+ds1/cmd_realtime.php-30-
##############################################
cacti-1.2.15+ds1/cmd_realtime.php-130-			FROM host
cacti-1.2.15+ds1/cmd_realtime.php:131:			WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/cmd_realtime.php-132-
##############################################
cacti-1.2.15+ds1/graph_templates_inputs.php-73-				/* list all graph items from the db so we can compare them with the current form */
cacti-1.2.15+ds1/graph_templates_inputs.php:74:				$db_selected_graph_item = array_rekey(db_fetch_assoc_prepared('SELECT graph_template_item_id FROM graph_template_input_defs WHERE graph_template_input_id = ?', array($graph_template_input_id)), 'graph_template_item_id', 'graph_template_item_id');
cacti-1.2.15+ds1/graph_templates_inputs.php-75-
##############################################
cacti-1.2.15+ds1/graph_templates_inputs.php-100-
cacti-1.2.15+ds1/graph_templates_inputs.php:101:				db_execute_prepared('DELETE FROM graph_template_input_defs WHERE graph_template_input_id = ?', array($graph_template_input_id));
cacti-1.2.15+ds1/graph_templates_inputs.php-102-
##############################################
cacti-1.2.15+ds1/automation_snmp.php-203-			/* ==================================================== */
cacti-1.2.15+ds1/automation_snmp.php:204:			$snmp_groups .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM automation_snmp WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/automation_snmp.php-205-			$automation_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/automation_snmp.php-272-		FROM automation_snmp
cacti-1.2.15+ds1/automation_snmp.php:273:		WHERE id = ?', array($id));
cacti-1.2.15+ds1/automation_snmp.php-274-
##############################################
cacti-1.2.15+ds1/automation_snmp.php-408-
cacti-1.2.15+ds1/automation_snmp.php:409:	#include_once($config['base_path'].'/plugins/mactrack/lib/automation_functions.php');
cacti-1.2.15+ds1/automation_snmp.php-410-
##############################################
cacti-1.2.15+ds1/install/functions.php-184-
cacti-1.2.15+ds1/install/functions.php:185:	$sql = 'ALTER TABLE `' . $table . '` ADD `' . $column['name'] . '`';
cacti-1.2.15+ds1/install/functions.php-186-
##############################################
cacti-1.2.15+ds1/install/functions.php-208-	if ($type == 'KEY' && $key == 'PRIMARY') {
cacti-1.2.15+ds1/install/functions.php:209:		$sql = 'ALTER TABLE `' . $table . '` ADD ' . $key . ' ' . $type . '(' . implode(',', $columns) . ')';
cacti-1.2.15+ds1/install/functions.php-210-	} else {
cacti-1.2.15+ds1/install/functions.php:211:		$sql = 'ALTER TABLE `' . $table . '` ADD ' . $type . ' ' . $key . '(' . implode(',', $columns) . ')';
cacti-1.2.15+ds1/install/functions.php-212-	}
##############################################
cacti-1.2.15+ds1/install/functions.php-250-function db_install_drop_table($table) {
cacti-1.2.15+ds1/install/functions.php:251:	$sql = 'DROP TABLE `' . $table . '`';
cacti-1.2.15+ds1/install/functions.php-252-
##############################################
cacti-1.2.15+ds1/install/functions.php-262-function db_install_rename_table($table, $newname) {
cacti-1.2.15+ds1/install/functions.php:263:	$sql = 'RENAME TABLE `' . $table . '` TO `' . $newname . '`';
cacti-1.2.15+ds1/install/functions.php-264-
##############################################
cacti-1.2.15+ds1/install/functions.php-274-function db_install_drop_column($table, $column) {
cacti-1.2.15+ds1/install/functions.php:275:	$sql = 'ALTER TABLE `' . $table . '` DROP `' . $column . '`';
cacti-1.2.15+ds1/install/functions.php-276-
##############################################
cacti-1.2.15+ds1/install/functions.php-413-function db_install_swap_setting($old_setting, $new_setting) {
cacti-1.2.15+ds1/install/functions.php:414:	$exists = db_install_fetch_cell('SELECT COUNT(*) FROM settings WHERE name = ?', array($new_setting));
cacti-1.2.15+ds1/install/functions.php-415-	if (empty($exists['data'])) {
cacti-1.2.15+ds1/install/functions.php:416:		db_install_execute('UPDATE `settings` SET name = ? WHERE name = ?', array($new_setting, $old_setting));
cacti-1.2.15+ds1/install/functions.php-417-	} else {
cacti-1.2.15+ds1/install/functions.php:418:		$old_value = db_install_fetch_cell('SELECT value FROM settings WHERE NAME = ?', array($old_setting));
cacti-1.2.15+ds1/install/functions.php:419:		db_install_execute('UPDATE `settings` SET value = ? WHERE name = ?', array($old_value['data'], $new_setting));
cacti-1.2.15+ds1/install/functions.php:420:		db_install_execute('DELETE FROM `settings` WHERE name = ?', array($old_setting));
cacti-1.2.15+ds1/install/functions.php-421-	}
##############################################
cacti-1.2.15+ds1/install/functions.php-487-			// Loading Template Information from package
cacti-1.2.15+ds1/install/functions.php:488:			$myinfo = @json_decode(shell_exec(cacti_escapeshellcmd(read_config_option('path_php_binary')) . ' -q ' . cacti_escapeshellarg($config['base_path'] . '/cli/import_package.php') . ' --filename=' . cacti_escapeshellarg("/$path/$xmlfile") . ' --info-only'), true);
cacti-1.2.15+ds1/install/functions.php-489-			$myinfo['filename'] = $xmlfile;
##############################################
cacti-1.2.15+ds1/install/functions.php-818-
cacti-1.2.15+ds1/install/functions.php:819:			$id = db_fetch_cell("SELECT hex FROM colors WHERE hex='$hex'");
cacti-1.2.15+ds1/install/functions.php-820-			if (!empty($id)) {
cacti-1.2.15+ds1/install/functions.php:821:				db_execute("UPDATE colors SET name='$name', read_only='on' WHERE hex='$hex'");
cacti-1.2.15+ds1/install/functions.php-822-			} else {
##############################################
cacti-1.2.15+ds1/install/functions.php-1017-
cacti-1.2.15+ds1/install/functions.php:1018:	include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/install/functions.php-1019-
##############################################
cacti-1.2.15+ds1/install/upgrades/1_2_0.php-121-		$debug_id += 100;
cacti-1.2.15+ds1/install/upgrades/1_2_0.php:122:		db_execute_prepared('DELETE FROM user_auth_realm WHERE realm_id = ?', array($debug_id));
cacti-1.2.15+ds1/install/upgrades/1_2_0.php:123:		db_execute_prepared('DELETE FROM user_auth_group_realm WHERE realm_id = ?', array($debug_id));
cacti-1.2.15+ds1/install/upgrades/1_2_0.php-124-	}
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_3.php-24-
cacti-1.2.15+ds1/install/upgrades/0_8_3.php:25:include_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/install/upgrades/0_8_3.php:26:include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/install/upgrades/0_8_3.php-27-
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-75-		foreach ($users as $user) {
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:76:			$realms_results = db_isntall_fetch_assoc("SELECT realm_id FROM user_auth_realm WHERE user_id=?", array($user["id"]), false);
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-77-			if ($realms !== false && cacti_sizeof($realms) == 13) {
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-752-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:753:			$item2_results = db_install_fetch_assoc("SELECT id FROM cdef_items WHERE cdef_id=?", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-754-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-782-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:783:			$item2_results = db_install_fetch_assoc("SELECT id FROM data_input_fields WHERE data_input_id=?", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-784-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-802-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:803:			$item2_results = db_install_fetch_assoc("SELECT id FROM data_template_rrd WHERE data_template_id=? and local_data_id=0", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-804-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-822-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:823:			$item2_results = db_install_fetch_assoc("SELECT id FROM graph_templates_item WHERE graph_template_id=? and local_graph_id=0", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-824-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-832-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:833:			$item2_results = db_install_fetch_assoc("SELECT id FROM graph_template_input WHERE graph_template_id=?", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-834-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-852-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:853:			$item2_results = db_install_fetch_assoc("SELECT id FROM snmp_query_graph WHERE snmp_query_id=?", array($item[$i]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-854-			$item2         = $item2_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-860-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:861:					$item3_results = db_install_fetch_assoc("SELECT id FROM snmp_query_graph_rrd_sv WHERE snmp_query_graph_id=?", array($item2[$j]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-862-					$item3         = $item3_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-870-
cacti-1.2.15+ds1/install/upgrades/0_8_4.php:871:					$item3_results = db_install_fetch_assoc("SELECT id FROM snmp_query_graph_sv WHERE snmp_query_graph_id=?", array($item2[$j]["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_4.php-872-					$item3         = $item3_results['data'];
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_6.php-25-global $config;
cacti-1.2.15+ds1/install/upgrades/0_8_6.php:26:include_once($config['base_path'] . "/lib/data_query.php");
cacti-1.2.15+ds1/install/upgrades/0_8_6.php:27:include_once($config["base_path"] . "/lib/import.php");
cacti-1.2.15+ds1/install/upgrades/0_8_6.php:28:include_once($config["base_path"] . "/lib/poller.php");
cacti-1.2.15+ds1/install/upgrades/0_8_6.php-29-
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_6.php-201-
cacti-1.2.15+ds1/install/upgrades/0_8_6.php:202:					db_install_execute("update graph_tree_items set order_key=? where id=?", array($key, $tree_item["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_6.php-203-
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_7.php-154-
cacti-1.2.15+ds1/install/upgrades/0_8_7.php:155:				db_install_execute("UPDATE host SET " . $sqlFields . " WHERE id=?", $params);
cacti-1.2.15+ds1/install/upgrades/0_8_7.php-156-			}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-453-				/* reset the position variable in case we run more than once */
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:454:				db_install_execute("UPDATE graph_tree_items SET position=0 WHERE graph_tree_id=?", array($t['id']), false);
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-455-
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1281-
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1282:					db_install_execute('DELETE FROM colors WHERE id = ?', array($hex['id']));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1283-				}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1479-						(`data_source_profile_id`, `name`, `steps`, `rows`)
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1480:						SELECT '$id' AS `data_source_profile_id`, `name`, `steps`, `rows` FROM `rra` WHERE `id`=" . $r);
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1481-
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1483-						(data_source_profile_id, consolidation_function_id)
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1484:						SELECT '$id' AS data_source_profile_id, consolidation_function_id FROM rra_cf WHERE rra_id=" . $r);
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1485-				}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1731-			foreach($trees as $sequence => $tree) {
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1732:				db_install_execute('UPDATE graph_tree SET sequence = ? WHERE id = ?', array($sequence+1, $tree['id']));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1733-			}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1891-
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1892:				db_execute_prepared('DELETE FROM user_auth_realm WHERE realm_id = ?', array($old_realm));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1893-			}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-1995-		/* remove plugin */
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1996:		db_install_execute("DELETE FROM plugin_config WHERE directory=?", array($p));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1997:		db_install_execute("DELETE FROM plugin_realms WHERE plugin=?", array($p));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1998:		db_install_execute("DELETE FROM plugin_db_changes WHERE plugin=?", array($p));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php:1999:		db_install_execute("DELETE FROM plugin_hooks WHERE name=?", array($p));
cacti-1.2.15+ds1/install/upgrades/1_0_0.php-2000-	}
##############################################
cacti-1.2.15+ds1/install/upgrades/1_0_5.php-53-		foreach($links as $link) {
cacti-1.2.15+ds1/install/upgrades/1_0_5.php:54:			db_install_execute('UPDATE external_links SET sortorder = ? WHERE id = ?', array($order, $link['id']));
cacti-1.2.15+ds1/install/upgrades/1_0_5.php-55-			$order++;
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_7h.php-27-
cacti-1.2.15+ds1/install/upgrades/0_8_7h.php:28:	require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/install/upgrades/0_8_7h.php-29-
##############################################
cacti-1.2.15+ds1/install/upgrades/0_8_5.php-42-		foreach ($data_templates as $item) {
cacti-1.2.15+ds1/install/upgrades/0_8_5.php:43:			db_install_execute("UPDATE data_input_data set value='ifDescr' where value='ifDesc' and data_template_data_id=?",array($item["id"]));
cacti-1.2.15+ds1/install/upgrades/0_8_5.php-44-		}
##############################################
cacti-1.2.15+ds1/install/install.php-28-include_once('../include/auth.php');
cacti-1.2.15+ds1/install/install.php:29:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/install/install.php:30:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/install/install.php:31:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/install/install.php:32:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/install/install.php:33:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/install/install.php:34:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/install/install.php:35:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/install/install.php:36:require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/install/install.php:37:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/install/install.php:38:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/install/install.php:39:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/install/install.php:40:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/install/install.php:41:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/install/install.php-42-include_once('./functions.php');
##############################################
cacti-1.2.15+ds1/install/background.php-28-include_once(dirname(__FILE__) . '/../include/cli_check.php');
cacti-1.2.15+ds1/install/background.php:29:include_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/install/background.php:30:include_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/install/background.php:31:include_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/install/background.php:32:include_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/install/background.php:33:include_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/install/background.php:34:include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/install/background.php:35:include_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/install/background.php:36:include_once($config['base_path'] . '/lib/installer.php');
cacti-1.2.15+ds1/install/background.php:37:include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/install/background.php:38:include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/install/background.php-39-
##############################################
cacti-1.2.15+ds1/link.php-81-			if (file_exists($file)) {
cacti-1.2.15+ds1/link.php:82:				include_once($file);
cacti-1.2.15+ds1/link.php-83-			} else {
##############################################
cacti-1.2.15+ds1/color.php-167-
cacti-1.2.15+ds1/color.php:168:			$color = db_fetch_row_prepared('SELECT name, hex FROM colors WHERE id = ?', array($matches[1]));
cacti-1.2.15+ds1/color.php-169-
##############################################
cacti-1.2.15+ds1/color.php-297-					if ($j == $hexcol) {
cacti-1.2.15+ds1/color.php:298:						$sql_where = "WHERE hex='$line_item'";
cacti-1.2.15+ds1/color.php-299-					}
##############################################
cacti-1.2.15+ds1/color.php-639-	if (get_request_var('named') == 'true') {
cacti-1.2.15+ds1/color.php:640:		$sql_where .= ($sql_where != '' ? ' AND' : 'WHERE') . " read_only='on'";
cacti-1.2.15+ds1/color.php-641-	}
##############################################
cacti-1.2.15+ds1/color.php-761-	if (get_request_var('named') == 'true') {
cacti-1.2.15+ds1/color.php:762:		$sql_where .= ($sql_where != '' ? ' AND' : 'WHERE') . " read_only='on'";
cacti-1.2.15+ds1/color.php-763-	}
##############################################
cacti-1.2.15+ds1/tree.php-631-
cacti-1.2.15+ds1/tree.php:632:			$tree_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM graph_tree WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/tree.php-633-			$tree_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/tree.php-1762-	if (get_filter_request_var('site_id') > 0) {
cacti-1.2.15+ds1/tree.php:1763:		$sql_where .= ($sql_where != '' ? ' AND ':'') . 'h.site_id = ' . get_filter_request_var('site_id');
cacti-1.2.15+ds1/tree.php-1764-	}
##############################################
cacti-1.2.15+ds1/tree.php-1787-	if (get_filter_request_var('site_id') != '') {
cacti-1.2.15+ds1/tree.php:1788:		$sql_where .= ($sql_where != '' ? ' AND ': 'WHERE ') . 'h.site_id = ' . get_request_var('site_id');
cacti-1.2.15+ds1/tree.php-1789-	}
##############################################
cacti-1.2.15+ds1/tree.php-1791-	if (get_request_var('host_id') != '') {
cacti-1.2.15+ds1/tree.php:1792:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'gl.host_id = ' . get_request_var('host_id');
cacti-1.2.15+ds1/tree.php-1793-	}
##############################################
cacti-1.2.15+ds1/lib/database.php-554-
cacti-1.2.15+ds1/lib/database.php:555:	$result = db_fetch_assoc('SHOW columns FROM `' . $table . '`', $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-556-	if ($result === false) {
##############################################
cacti-1.2.15+ds1/lib/database.php-565-	if (isset($column['name']) && !in_array($column['name'], $columns)) {
cacti-1.2.15+ds1/lib/database.php:566:		$sql = 'ALTER TABLE `' . $table . '` ADD `' . $column['name'] . '`';
cacti-1.2.15+ds1/lib/database.php-567-		if (isset($column['type'])) {
##############################################
cacti-1.2.15+ds1/lib/database.php-629-
cacti-1.2.15+ds1/lib/database.php:630:	$result = db_fetch_assoc('SHOW columns FROM `' . $table . '`', $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-631-	$columns = array();
##############################################
cacti-1.2.15+ds1/lib/database.php-636-	if (isset($column) && in_array($column, $columns)) {
cacti-1.2.15+ds1/lib/database.php:637:		$sql = 'ALTER TABLE `' . $table . '` DROP `' . $column . '`';
cacti-1.2.15+ds1/lib/database.php-638-		return db_execute($sql, $log, $db_conn);
##############################################
cacti-1.2.15+ds1/lib/database.php-654-
cacti-1.2.15+ds1/lib/database.php:655:	$sql = 'ALTER TABLE `' . $table . '` ADD ' . $type . ' `' . $key . '`(`' . implode('`,`', $columns) . '`)';
cacti-1.2.15+ds1/lib/database.php-656-
##############################################
cacti-1.2.15+ds1/lib/database.php-681-
cacti-1.2.15+ds1/lib/database.php:682:	$_data = db_fetch_assoc("SHOW KEYS FROM `$table`", $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-683-	$_keys = array_rekey($_data, "Key_name", "Key_name");
##############################################
cacti-1.2.15+ds1/lib/database.php-714-
cacti-1.2.15+ds1/lib/database.php:715:	$_data = db_fetch_assoc("SHOW KEYS FROM `$table`", $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-716-	$_cols = array();
##############################################
cacti-1.2.15+ds1/lib/database.php-826-
cacti-1.2.15+ds1/lib/database.php:827:	$results[$table][$column] = (db_fetch_cell("SHOW columns FROM `$table` LIKE '$column'", '', $log, $db_conn) ? true : false);
cacti-1.2.15+ds1/lib/database.php-828-
##############################################
cacti-1.2.15+ds1/lib/database.php-883-			// FIXME: Need to still check default value
cacti-1.2.15+ds1/lib/database.php:884:			$arr = db_fetch_row("SHOW columns FROM `$table` LIKE '" . $column['name'] . "'", $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-885-			if ($column['type'] != $arr['Type'] || (isset($column['NULL']) && ($column['NULL'] ? 'YES' : 'NO') != $arr['Null'])
cacti-1.2.15+ds1/lib/database.php-886-			    || (isset($column['auto_increment']) && ($column['auto_increment'] ? 'auto_increment' : '') != $arr['Extra'])) {
cacti-1.2.15+ds1/lib/database.php:887:				$sql = 'ALTER TABLE `' . $table . '` CHANGE `' . $column['name'] . '` `' . $column['name'] . '`';
cacti-1.2.15+ds1/lib/database.php-888-				if (isset($column['type'])) {
##############################################
cacti-1.2.15+ds1/lib/database.php-931-	if ($removecolumns) {
cacti-1.2.15+ds1/lib/database.php:932:		$result = db_fetch_assoc('SHOW columns FROM `' . $table . '`', $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-933-		foreach($result as $arr) {
##############################################
cacti-1.2.15+ds1/lib/database.php-947-	if (isset($info['TABLE_COMMENT']) && isset($data['comment']) && str_replace("'", '', $info['TABLE_COMMENT']) != str_replace("'", '', $data['comment'])) {
cacti-1.2.15+ds1/lib/database.php:948:		if (!db_execute("ALTER TABLE `$table` COMMENT '" . str_replace("'", '', $data['comment']) . "'", $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-949-			return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-953-	if (isset($info['ENGINE']) && isset($data['type']) && strtolower($info['ENGINE']) != strtolower($data['type'])) {
cacti-1.2.15+ds1/lib/database.php:954:		if (!db_execute("ALTER TABLE `$table` ENGINE = " . $data['type'], $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-955-			return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-959-	// Correct any indexes
cacti-1.2.15+ds1/lib/database.php:960:	$indexes = db_fetch_assoc("SHOW INDEX FROM `$table`", $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-961-	$allindexes = array();
##############################################
cacti-1.2.15+ds1/lib/database.php-975-					if (!empty($add) || !empty($del)) {
cacti-1.2.15+ds1/lib/database.php:976:						if (!db_execute("ALTER TABLE `$table` DROP INDEX `$n`", $log, $db_conn) ||
cacti-1.2.15+ds1/lib/database.php:977:						    !db_execute("ALTER TABLE `$table` ADD INDEX `$n` (" . $k['name'] . '` (' . db_format_index_create($k['columns']) . ')', $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-978-							return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-985-			if ($removeindex) {
cacti-1.2.15+ds1/lib/database.php:986:				if (!db_execute("ALTER TABLE `$table` DROP INDEX `$n`", $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-987-					return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-996-			if (!isset($allindexes[$k['name']])) {
cacti-1.2.15+ds1/lib/database.php:997:				if (!db_execute("ALTER TABLE `$table` ADD INDEX `" . $k['name'] . '` (' . db_format_index_create($k['columns']) . ')', $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-998-					return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-1007-	if (!isset($data['primary']) && isset($allindexes['PRIMARY'])) {
cacti-1.2.15+ds1/lib/database.php:1008:		if (!db_execute("ALTER TABLE `$table` DROP PRIMARY KEY", $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-1009-			return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-1016-			// No current primary key, so add it
cacti-1.2.15+ds1/lib/database.php:1017:			if (!db_execute("ALTER TABLE `$table` ADD PRIMARY KEY(" . db_format_index_create($data['primary']) . ')', $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-1018-				return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-1023-			if (!empty($add) || !empty($del)) {
cacti-1.2.15+ds1/lib/database.php:1024:				if (!db_execute("ALTER TABLE `$table` DROP PRIMARY KEY", $log, $db_conn) ||
cacti-1.2.15+ds1/lib/database.php:1025:				    !db_execute("ALTER TABLE `$table` ADD PRIMARY KEY(" . db_format_index_create($data['primary']) . ')', $log, $db_conn)) {
cacti-1.2.15+ds1/lib/database.php-1026-					return false;
##############################################
cacti-1.2.15+ds1/lib/database.php-1032-	if (isset($data['row_format']) && db_get_global_variable('innodb_file_format', $db_conn) == 'Barracuda') {
cacti-1.2.15+ds1/lib/database.php:1033:		db_execute("ALTER TABLE `$table` ROW_FORMAT=" . $data['row_format'], $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-1034-	}
##############################################
cacti-1.2.15+ds1/lib/database.php-1041-	if ($charset != '') {
cacti-1.2.15+ds1/lib/database.php:1042:		db_execute("ALTER TABLE `$table` " . $charset, $log, $db_conn);
cacti-1.2.15+ds1/lib/database.php-1043-	}
##############################################
cacti-1.2.15+ds1/lib/database.php-1055-			} else {
cacti-1.2.15+ds1/lib/database.php:1056:				$outindex .= ($outindex != '' ? ',':'') . '`' . $index . '`';
cacti-1.2.15+ds1/lib/database.php-1057-			}
##############################################
cacti-1.2.15+ds1/lib/database.php-1065-		} else {
cacti-1.2.15+ds1/lib/database.php:1066:			return '`' . trim($indexes, ' `') . '`';
cacti-1.2.15+ds1/lib/database.php-1067-		}
##############################################
cacti-1.2.15+ds1/lib/database.php-1089-		$c = 0;
cacti-1.2.15+ds1/lib/database.php:1090:		$sql = 'CREATE TABLE `' . $table . "` (\n";
cacti-1.2.15+ds1/lib/database.php-1091-		foreach ($data['columns'] as $column) {
##############################################
cacti-1.2.15+ds1/lib/database.php-1096-
cacti-1.2.15+ds1/lib/database.php:1097:				$sql .= '`' . $column['name'] . '`';
cacti-1.2.15+ds1/lib/database.php-1098-
##############################################
cacti-1.2.15+ds1/lib/database.php-1140-			if (is_array($data['primary'])) {
cacti-1.2.15+ds1/lib/database.php:1141:				$sql .= ",\n PRIMARY KEY (`" . implode('`,`'. $data['primary']) . '`)';
cacti-1.2.15+ds1/lib/database.php-1142-			} else {
cacti-1.2.15+ds1/lib/database.php:1143:				$sql .= ",\n PRIMARY KEY (`" . $data['primary'] . '`)';
cacti-1.2.15+ds1/lib/database.php-1144-			}
##############################################
cacti-1.2.15+ds1/lib/database.php-1150-					if (is_array($key['columns'])) {
cacti-1.2.15+ds1/lib/database.php:1151:						$sql .= ",\n KEY `" . $key['name'] . '` (`' . implode('`,`', $key['columns']) . '`)';
cacti-1.2.15+ds1/lib/database.php-1152-					} else {
cacti-1.2.15+ds1/lib/database.php:1153:						$sql .= ",\n KEY `" . $key['name'] . '` (`' . $key['columns'] . '`)';
cacti-1.2.15+ds1/lib/database.php-1154-					}
##############################################
cacti-1.2.15+ds1/lib/database.php-1350-		}
cacti-1.2.15+ds1/lib/database.php:1351:		$sql   .= "`$k`";
cacti-1.2.15+ds1/lib/database.php-1352-		$sql2  .= $v;
##############################################
cacti-1.2.15+ds1/lib/database.php-1360-
cacti-1.2.15+ds1/lib/database.php:1361:		$sql3 .= "`$k`=VALUES(`$k`)";
cacti-1.2.15+ds1/lib/database.php-1362-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-220-	} elseif (get_request_var('host_status') == '-2') {
cacti-1.2.15+ds1/lib/api_automation.php:221:		$sql_where .= ($sql_where != '' ? " AND h.disabled='on'" : "WHERE h.disabled='on'");
cacti-1.2.15+ds1/lib/api_automation.php-222-	} elseif (get_request_var('host_status') == '-3') {
cacti-1.2.15+ds1/lib/api_automation.php:223:		$sql_where .= ($sql_where != '' ? " AND h.disabled=''" : "WHERE h.disabled=''");
cacti-1.2.15+ds1/lib/api_automation.php-224-	} elseif (get_request_var('host_status') == '-4') {
cacti-1.2.15+ds1/lib/api_automation.php:225:		$sql_where .= ($sql_where != '' ? " AND (h.status!='3' or h.disabled='on')" : "WHERE (h.status!='3' or h.disabled='on')");
cacti-1.2.15+ds1/lib/api_automation.php-226-	}else {
cacti-1.2.15+ds1/lib/api_automation.php:227:		$sql_where .= ($sql_where != '' ? ' AND (h.status=' . get_request_var('host_status') . " AND h.disabled = '')" : "WHERE (h.status=" . get_request_var('host_status') . " AND h.disabled = '')");
cacti-1.2.15+ds1/lib/api_automation.php-228-	}
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-232-	} elseif (get_request_var('host_template_id') == '0') {
cacti-1.2.15+ds1/lib/api_automation.php:233:		$sql_where .= ($sql_where != '' ? ' AND h.host_template_id=0' : 'WHERE h.host_template_id=0');
cacti-1.2.15+ds1/lib/api_automation.php-234-	} elseif (!isempty_request_var('host_template_id')) {
cacti-1.2.15+ds1/lib/api_automation.php:235:		$sql_where .= ($sql_where != '' ? ' AND h.host_template_id=' . get_request_var('host_template_id') : 'WHERE h.host_template_id=' . get_request_var('host_template_id'));
cacti-1.2.15+ds1/lib/api_automation.php-236-	}
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-515-	} elseif (get_request_var('host_id') == '0') {
cacti-1.2.15+ds1/lib/api_automation.php:516:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.host_id=0';
cacti-1.2.15+ds1/lib/api_automation.php-517-	} elseif (!isempty_request_var('host_id')) {
cacti-1.2.15+ds1/lib/api_automation.php:518:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.host_id=' . get_request_var('host_id');
cacti-1.2.15+ds1/lib/api_automation.php-519-	}
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-523-	} elseif (get_request_var('template_id') == '0') {
cacti-1.2.15+ds1/lib/api_automation.php:524:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id=0';
cacti-1.2.15+ds1/lib/api_automation.php-525-	} elseif (!isempty_request_var('template_id')) {
cacti-1.2.15+ds1/lib/api_automation.php:526:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') .' gtg.graph_template_id=' . get_request_var('template_id');
cacti-1.2.15+ds1/lib/api_automation.php-527-	}
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-529-	/* get the WHERE clause for matching graphs */
cacti-1.2.15+ds1/lib/api_automation.php:530:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . build_matching_objects_filter($rule['id'], $rule_type);
cacti-1.2.15+ds1/lib/api_automation.php-531-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1134-	/* build magic query, for matching hosts JOIN tables host and host_template */
cacti-1.2.15+ds1/lib/api_automation.php:1135:	$leaf_type = db_fetch_cell('SELECT leaf_type FROM automation_tree_rules WHERE id=' . $rule_id);
cacti-1.2.15+ds1/lib/api_automation.php-1136-	if ($leaf_type == TREE_ITEM_TYPE_HOST) {
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1343-
cacti-1.2.15+ds1/lib/api_automation.php:1344:	$items = db_fetch_assoc_prepared('SELECT * FROM automation_graph_rule_items WHERE rule_id = ? ORDER BY sequence', array($rule_id));
cacti-1.2.15+ds1/lib/api_automation.php-1345-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1473-
cacti-1.2.15+ds1/lib/api_automation.php:1474:	$rule        = db_fetch_row_prepared('SELECT * FROM automation_graph_rules WHERE id = ?', array($_id));
cacti-1.2.15+ds1/lib/api_automation.php:1475:	$match_items = db_fetch_assoc_prepared('SELECT * FROM automation_match_rule_items WHERE rule_id = ? AND rule_type = ?', array($_id, AUTOMATION_RULE_TYPE_GRAPH_MATCH));
cacti-1.2.15+ds1/lib/api_automation.php:1476:	$rule_items  = db_fetch_assoc_prepared('SELECT * FROM automation_graph_rule_items WHERE rule_id = ?', array($_id));
cacti-1.2.15+ds1/lib/api_automation.php-1477-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1516-
cacti-1.2.15+ds1/lib/api_automation.php:1517:	$rule        = db_fetch_row_prepared('SELECT * FROM automation_tree_rules WHERE id = ?', array($_id));
cacti-1.2.15+ds1/lib/api_automation.php:1518:	$match_items = db_fetch_assoc_prepared('SELECT * FROM automation_match_rule_items WHERE rule_id = ? AND rule_type = ?', array($_id, AUTOMATION_RULE_TYPE_TREE_MATCH));
cacti-1.2.15+ds1/lib/api_automation.php:1519:	$rule_items  = db_fetch_assoc_prepared('SELECT * FROM automation_tree_rule_items WHERE rule_id = ?', array($_id));
cacti-1.2.15+ds1/lib/api_automation.php-1520-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1568-			foreach($field_names as $column) {
cacti-1.2.15+ds1/lib/api_automation.php:1569:				$sql_having .= ($i == 0 ? '':' OR ') . '`' . implode('`.`', explode('.', $column['field_name'])) . '`' . ' LIKE "%' . $filter . '%"';
cacti-1.2.15+ds1/lib/api_automation.php-1570-				$i++;
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1596-	/* take matching hosts into account */
cacti-1.2.15+ds1/lib/api_automation.php:1597:	$sql_where = build_matching_objects_filter($rule['id'], AUTOMATION_RULE_TYPE_GRAPH_MATCH);
cacti-1.2.15+ds1/lib/api_automation.php-1598-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1604-		ON (h.host_template_id=ht.id)
cacti-1.2.15+ds1/lib/api_automation.php:1605:		WHERE snmp_query_id=' . $rule['snmp_query_id'] . "
cacti-1.2.15+ds1/lib/api_automation.php-1606-		AND ($sql_where)
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1672-			if ($automation_rule_item['field'] != '') {
cacti-1.2.15+ds1/lib/api_automation.php:1673:				$sql_filter .= (' ' . $prefix . '`' . implode('`.`', explode('.', $automation_rule_item['field'])) . '`');
cacti-1.2.15+ds1/lib/api_automation.php-1674-				#
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1740-	/* get the WHERE clause for matching hosts */
cacti-1.2.15+ds1/lib/api_automation.php:1741:	$sql_filter = ' WHERE h.deleted = "" AND (' . build_matching_objects_filter($rule['id'], $rule_type) .')';
cacti-1.2.15+ds1/lib/api_automation.php-1742-	if ($sql_where != '') {
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1777-	/* get the WHERE clause for matching graphs */
cacti-1.2.15+ds1/lib/api_automation.php:1778:	$sql_filter = 'WHERE gl.id=gtg.local_graph_id AND ' . build_matching_objects_filter($rule['id'], $rule_type);
cacti-1.2.15+ds1/lib/api_automation.php-1779-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1802-		FROM snmp_query_graph AS sqg
cacti-1.2.15+ds1/lib/api_automation.php:1803:		WHERE sqg.snmp_query_id=' . $rule['snmp_query_id'] . '
cacti-1.2.15+ds1/lib/api_automation.php-1804-		AND sqg.id=' . $rule['graph_type_id'];
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1808-	/* take matching hosts into account */
cacti-1.2.15+ds1/lib/api_automation.php:1809:	$sql_where = build_matching_objects_filter($rule['id'], AUTOMATION_RULE_TYPE_GRAPH_MATCH);
cacti-1.2.15+ds1/lib/api_automation.php-1810-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1903-	/* get the unique field values from the database */
cacti-1.2.15+ds1/lib/api_automation.php:1904:	$sql = 'SELECT DISTINCT field_name FROM host_snmp_cache WHERE snmp_query_id=' . $snmp_query_id;
cacti-1.2.15+ds1/lib/api_automation.php-1905-	$fields = db_fetch_assoc($sql);
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-1968-		$tables = array ('host', 'host_templates');
cacti-1.2.15+ds1/lib/api_automation.php:1969:		$automation_rule = db_fetch_row_prepared('SELECT * FROM automation_graph_rules WHERE id = ?', array($rule_id));
cacti-1.2.15+ds1/lib/api_automation.php-1970-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2008-		$sql_and = ' AND rule_type=' . $rule_type;
cacti-1.2.15+ds1/lib/api_automation.php:2009:		$automation_rule = db_fetch_row_prepared('SELECT * FROM automation_tree_rules WHERE id = ?', array($rule_id));
cacti-1.2.15+ds1/lib/api_automation.php-2010-		$_fields_rule_item_edit = $fields_automation_match_rule_item_edit;
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2033-		$sql_and = '';
cacti-1.2.15+ds1/lib/api_automation.php:2034:		$automation_rule = db_fetch_row_prepared('SELECT * FROM automation_tree_rules WHERE id = ?', array($rule_id));
cacti-1.2.15+ds1/lib/api_automation.php-2035-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2064-			FROM $item_table
cacti-1.2.15+ds1/lib/api_automation.php:2065:			WHERE id=$rule_item_id
cacti-1.2.15+ds1/lib/api_automation.php-2066-			$sql_and");
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2189-			/* now we build up a new query for counting the rows */
cacti-1.2.15+ds1/lib/api_automation.php:2190:			$rows_query = $sql_query . ' WHERE (' . $sql_filter . ') AND h.id=' . $host_id . ' AND h.deleted = ""';
cacti-1.2.15+ds1/lib/api_automation.php-2191-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2211-
cacti-1.2.15+ds1/lib/api_automation.php:2212:	include_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/lib/api_automation.php:2213:	include_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/lib/api_automation.php:2214:	include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/lib/api_automation.php-2215-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2464-	$sql_query .= ' FROM host_snmp_cache AS hsc
cacti-1.2.15+ds1/lib/api_automation.php:2465:		WHERE snmp_query_id=' . $snmp_query_id . '
cacti-1.2.15+ds1/lib/api_automation.php-2466-		AND host_id=' . $host_id . '
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2580-
cacti-1.2.15+ds1/lib/api_automation.php:2581:			$sql_where = 'WHERE h.id='. $item_id . ' AND h.deleted = "" ';
cacti-1.2.15+ds1/lib/api_automation.php-2582-		} elseif ($rule['leaf_type'] == TREE_ITEM_TYPE_GRAPH) {
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2593-
cacti-1.2.15+ds1/lib/api_automation.php:2594:			$sql_where = 'WHERE gl.id=' . $item_id . ' AND h.deleted = "" ';
cacti-1.2.15+ds1/lib/api_automation.php-2595-		}
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2878-			if (file_exists($config['base_path'] . '/plugins/thold/thold-functions.php')) {
cacti-1.2.15+ds1/lib/api_automation.php:2879:				include_once($config['base_path'] . '/plugins/thold/thold-functions.php');
cacti-1.2.15+ds1/lib/api_automation.php-2880-				autocreate($host_id);
cacti-1.2.15+ds1/lib/api_automation.php-2881-			} else if (file_exists($config['base_path'] . '/plugins/thold/thold_functions.php')) {
cacti-1.2.15+ds1/lib/api_automation.php:2882:				include_once($config['base_path'] . '/plugins/thold/thold_functions.php');
cacti-1.2.15+ds1/lib/api_automation.php-2883-				autocreate($host_id);
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2886-
cacti-1.2.15+ds1/lib/api_automation.php:2887:		db_execute_prepared('DELETE FROM automation_devices WHERE ip = ? LIMIT 1', array($ip));
cacti-1.2.15+ds1/lib/api_automation.php-2888-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2900-	} else {
cacti-1.2.15+ds1/lib/api_automation.php:2901:		$tree_item = db_fetch_row_prepared('SELECT * FROM graph_tree_items WHERE id = ?', array($tree));
cacti-1.2.15+ds1/lib/api_automation.php-2902-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-2913-	$sql_where  = '';
cacti-1.2.15+ds1/lib/api_automation.php:2914:	$sql_where .= trim($sysDescr)  != '' ? 'WHERE (' . db_qstr($sysDescr) . ' RLIKE sysDescr OR ' . db_qstr($sysDescr) . ' LIKE CONCAT("%", sysDescr, "%"))':'';
cacti-1.2.15+ds1/lib/api_automation.php:2915:	$sql_where .= trim($sysObject) != '' ? ($sql_where != '' ? ' AND':'WHERE') . ' (' . db_qstr($sysObject) . ' RLIKE sysOid OR ' . db_qstr($sysObject) . ' LIKE CONCAT("%", sysOid, "%"))':'';
cacti-1.2.15+ds1/lib/api_automation.php:2916:	$sql_where .= trim($sysName)   != '' ? ($sql_where != '' ? ' AND':'WHERE') . ' (' . db_qstr($sysName) . ' RLIKE sysName OR ' . db_qstr($sysName) . ' LIKE CONCAT("%", sysName, "%"))':'';
cacti-1.2.15+ds1/lib/api_automation.php-2917-
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-3786-		ON gt.id=hg.graph_template_id
cacti-1.2.15+ds1/lib/api_automation.php:3787:		WHERE hg.host_id=' . $host_id . '
cacti-1.2.15+ds1/lib/api_automation.php-3788-		AND gt.id NOT IN (
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-3790-			FROM graph_local AS gl
cacti-1.2.15+ds1/lib/api_automation.php:3791:			WHERE host_id=' . $host_id . '
cacti-1.2.15+ds1/lib/api_automation.php-3792-		)';
##############################################
cacti-1.2.15+ds1/lib/api_automation.php-3812-		ON sq.id=hsq.snmp_query_id
cacti-1.2.15+ds1/lib/api_automation.php:3813:		WHERE hsq.host_id = ?', array($host_id));
cacti-1.2.15+ds1/lib/api_automation.php-3814-
##############################################
cacti-1.2.15+ds1/lib/functions.php-368-	if (!isset($config_values[$config_name])) {
cacti-1.2.15+ds1/lib/functions.php:369:		$value = db_fetch_cell_prepared('SELECT COUNT(*) FROM settings WHERE name = ?', array($config_name));
cacti-1.2.15+ds1/lib/functions.php-370-
##############################################
cacti-1.2.15+ds1/lib/functions.php-454-			// Get the database setting
cacti-1.2.15+ds1/lib/functions.php:455:			$db_setting = db_fetch_row_prepared('SELECT value FROM settings WHERE name = ?', array($config_name), false);
cacti-1.2.15+ds1/lib/functions.php-456-
##############################################
cacti-1.2.15+ds1/lib/functions.php-1656-
cacti-1.2.15+ds1/lib/functions.php:1657:	$data_source = db_fetch_row_prepared('SELECT ' . SQL_NO_CACHE . ' name, data_source_path FROM data_template_data WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/functions.php-1658-
##############################################
cacti-1.2.15+ds1/lib/functions.php-1775-function get_device_name($host_id) {
cacti-1.2.15+ds1/lib/functions.php:1776:	return db_fetch_cell_prepared('SELECT description FROM host WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/lib/functions.php-1777-}
##############################################
cacti-1.2.15+ds1/lib/functions.php-1782-function get_color($color_id) {
cacti-1.2.15+ds1/lib/functions.php:1783:	return db_fetch_cell_prepared('SELECT hex FROM colors WHERE id = ?', array($color_id));
cacti-1.2.15+ds1/lib/functions.php-1784-}
##############################################
cacti-1.2.15+ds1/lib/functions.php-1813-function get_username($user_id) {
cacti-1.2.15+ds1/lib/functions.php:1814:	return db_fetch_cell_prepared('SELECT username FROM user_auth WHERE id = ?', array($user_id));
cacti-1.2.15+ds1/lib/functions.php-1815-}
##############################################
cacti-1.2.15+ds1/lib/functions.php-1872-	/* update our changes to the db */
cacti-1.2.15+ds1/lib/functions.php:1873:	db_execute_prepared('UPDATE data_template_data SET data_source_path = ? WHERE local_data_id = ?', array($new_path, $local_data_id));
cacti-1.2.15+ds1/lib/functions.php-1874-
##############################################
cacti-1.2.15+ds1/lib/functions.php-2034-	if (empty($graph_item['local_graph_id'])) {
cacti-1.2.15+ds1/lib/functions.php:2035:		$sql_where = 'graph_template_id = ' . $graph_item['graph_template_id'] . ' AND local_graph_id = 0';
cacti-1.2.15+ds1/lib/functions.php-2036-	} else {
cacti-1.2.15+ds1/lib/functions.php:2037:		$sql_where = 'local_graph_id = ' . $graph_item['local_graph_id'];
cacti-1.2.15+ds1/lib/functions.php-2038-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-2134-	if (empty($graph_item['local_graph_id'])) {
cacti-1.2.15+ds1/lib/functions.php:2135:		$sql_where = 'graph_template_id = ' . $graph_item['graph_template_id'] . ' AND local_graph_id = 0';
cacti-1.2.15+ds1/lib/functions.php-2136-	} else {
cacti-1.2.15+ds1/lib/functions.php:2137:		$sql_where = 'local_graph_id = ' . $graph_item['local_graph_id'];
cacti-1.2.15+ds1/lib/functions.php-2138-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-2198-	if (empty($graph_item['local_graph_id'])) {
cacti-1.2.15+ds1/lib/functions.php:2199:		$sql_where = 'graph_template_id = ' . $graph_item['graph_template_id'] . ' AND local_graph_id = 0';
cacti-1.2.15+ds1/lib/functions.php-2200-	} else {
cacti-1.2.15+ds1/lib/functions.php:2201:		$sql_where = 'local_graph_id = ' . $graph_item['local_graph_id'];
cacti-1.2.15+ds1/lib/functions.php-2202-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-2249-		FROM $tblname
cacti-1.2.15+ds1/lib/functions.php:2250:		WHERE $field $sql_operator $current_sequence " . ($lmt_query != '' ? " AND $lmt_query":"") . "
cacti-1.2.15+ds1/lib/functions.php-2251-		ORDER BY $field $sql_order
##############################################
cacti-1.2.15+ds1/lib/functions.php-2350-	$err = 0;
cacti-1.2.15+ds1/lib/functions.php:2351:	exec($command_line,$out,$err);
cacti-1.2.15+ds1/lib/functions.php-2352-
##############################################
cacti-1.2.15+ds1/lib/functions.php-2402-	} elseif (isset($_SESSION['sess_user_id']) && $using_guest_account == false) {
cacti-1.2.15+ds1/lib/functions.php:2403:		$user = db_fetch_row_prepared('SELECT username, password_change, realm FROM user_auth WHERE id = ?', array($_SESSION['sess_user_id']));
cacti-1.2.15+ds1/lib/functions.php-2404-		api_plugin_hook('nav_login_before');
##############################################
cacti-1.2.15+ds1/lib/functions.php-2610-	} elseif (preg_match('#link.php\?id=(\d+)#', $_SERVER['REQUEST_URI'], $matches)) {
cacti-1.2.15+ds1/lib/functions.php:2611:		$externalLinks = db_fetch_row_prepared('SELECT title, style FROM external_links WHERE id = ?', array($matches[1]));
cacti-1.2.15+ds1/lib/functions.php-2612-		$title = $externalLinks['title'];
##############################################
cacti-1.2.15+ds1/lib/functions.php-2768-		case 'graph_template':
cacti-1.2.15+ds1/lib/functions.php:2769:			$hash = db_fetch_cell_prepared('SELECT hash FROM graph_templates WHERE id = ?', array($graph_template_id));
cacti-1.2.15+ds1/lib/functions.php-2770-			break;
cacti-1.2.15+ds1/lib/functions.php-2771-		case 'graph_template_item':
cacti-1.2.15+ds1/lib/functions.php:2772:			$hash = db_fetch_cell_prepared('SELECT hash FROM graph_templates_item WHERE id = ?', array($graph_template_id));
cacti-1.2.15+ds1/lib/functions.php-2773-			break;
cacti-1.2.15+ds1/lib/functions.php-2774-		case 'graph_template_input':
cacti-1.2.15+ds1/lib/functions.php:2775:			$hash = db_fetch_cell_prepared('SELECT hash FROM graph_template_input WHERE id = ?', array($graph_template_id));
cacti-1.2.15+ds1/lib/functions.php-2776-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-2795-		case 'data_template':
cacti-1.2.15+ds1/lib/functions.php:2796:			$hash = db_fetch_cell_prepared('SELECT hash FROM data_template WHERE id = ?', array($data_template_id));
cacti-1.2.15+ds1/lib/functions.php-2797-			break;
cacti-1.2.15+ds1/lib/functions.php-2798-		case 'data_template_item':
cacti-1.2.15+ds1/lib/functions.php:2799:			$hash = db_fetch_cell_prepared('SELECT hash FROM data_template_rrd WHERE id = ?', array($data_template_id));
cacti-1.2.15+ds1/lib/functions.php-2800-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-2819-		case 'data_input_method':
cacti-1.2.15+ds1/lib/functions.php:2820:			$hash = db_fetch_cell_prepared('SELECT hash FROM data_input WHERE id = ?', array($data_input_id));
cacti-1.2.15+ds1/lib/functions.php-2821-			break;
cacti-1.2.15+ds1/lib/functions.php-2822-		case 'data_input_field':
cacti-1.2.15+ds1/lib/functions.php:2823:			$hash = db_fetch_cell_prepared('SELECT hash FROM data_input_fields WHERE id = ?', array($data_input_id));
cacti-1.2.15+ds1/lib/functions.php-2824-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-2847-		case 'cdef':
cacti-1.2.15+ds1/lib/functions.php:2848:			$hash = db_fetch_cell_prepared('SELECT hash FROM cdef WHERE id = ?', array($cdef_id));
cacti-1.2.15+ds1/lib/functions.php-2849-			break;
cacti-1.2.15+ds1/lib/functions.php-2850-		case 'cdef_item':
cacti-1.2.15+ds1/lib/functions.php:2851:			$hash = db_fetch_cell_prepared('SELECT hash FROM cdef_items WHERE id = ?', array($cdef_id));
cacti-1.2.15+ds1/lib/functions.php-2852-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-2868-function get_hash_gprint($gprint_id) {
cacti-1.2.15+ds1/lib/functions.php:2869:	$hash = db_fetch_cell_prepared('SELECT hash FROM graph_templates_gprint WHERE id = ?', array($gprint_id));
cacti-1.2.15+ds1/lib/functions.php-2870-
##############################################
cacti-1.2.15+ds1/lib/functions.php-2885-		case 'vdef':
cacti-1.2.15+ds1/lib/functions.php:2886:			$hash = db_fetch_cell_prepared('SELECT hash FROM vdef WHERE id = ?', array($vdef_id));
cacti-1.2.15+ds1/lib/functions.php-2887-			break;
cacti-1.2.15+ds1/lib/functions.php-2888-		case 'vdef_item':
cacti-1.2.15+ds1/lib/functions.php:2889:			$hash = db_fetch_cell_prepared('SELECT hash FROM vdef_items WHERE id = ?', array($vdef_id));
cacti-1.2.15+ds1/lib/functions.php-2890-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-2907-function get_hash_data_source_profile($data_source_profile_id) {
cacti-1.2.15+ds1/lib/functions.php:2908:	$hash = db_fetch_cell_prepared('SELECT hash FROM data_source_profiles WHERE id = ?', array($data_source_profile_id));
cacti-1.2.15+ds1/lib/functions.php-2909-
##############################################
cacti-1.2.15+ds1/lib/functions.php-2920-function get_hash_host_template($host_template_id) {
cacti-1.2.15+ds1/lib/functions.php:2921:	$hash = db_fetch_cell_prepared('SELECT hash FROM host_template WHERE id = ?', array($host_template_id));
cacti-1.2.15+ds1/lib/functions.php-2922-
##############################################
cacti-1.2.15+ds1/lib/functions.php-2936-		case 'data_query':
cacti-1.2.15+ds1/lib/functions.php:2937:			$hash = db_fetch_cell_prepared('SELECT hash FROM snmp_query WHERE id = ?', array($data_query_id));
cacti-1.2.15+ds1/lib/functions.php-2938-			break;
cacti-1.2.15+ds1/lib/functions.php-2939-		case 'data_query_graph':
cacti-1.2.15+ds1/lib/functions.php:2940:			$hash = db_fetch_cell_prepared('SELECT hash FROM snmp_query_graph WHERE id = ?', array($data_query_id));
cacti-1.2.15+ds1/lib/functions.php-2941-			break;
cacti-1.2.15+ds1/lib/functions.php-2942-		case 'data_query_sv_data_source':
cacti-1.2.15+ds1/lib/functions.php:2943:			$hash = db_fetch_cell_prepared('SELECT hash FROM snmp_query_graph_rrd_sv WHERE id = ?', array($data_query_id));
cacti-1.2.15+ds1/lib/functions.php-2944-			break;
cacti-1.2.15+ds1/lib/functions.php-2945-		case 'data_query_sv_graph':
cacti-1.2.15+ds1/lib/functions.php:2946:			$hash = db_fetch_cell_prepared('SELECT hash FROM snmp_query_graph_sv WHERE id = ?', array($data_query_id));
cacti-1.2.15+ds1/lib/functions.php-2947-			break;
##############################################
cacti-1.2.15+ds1/lib/functions.php-3261-
cacti-1.2.15+ds1/lib/functions.php:3262:	include_once($config['base_path'] . '/include/global_session.php');
cacti-1.2.15+ds1/lib/functions.php-3263-
cacti-1.2.15+ds1/lib/functions.php-3264-	if (!isset_request_var('header') || get_nfilter_request_var('header') == 'true') {
cacti-1.2.15+ds1/lib/functions.php:3265:		include_once($config['base_path'] . '/include/bottom_footer.php');
cacti-1.2.15+ds1/lib/functions.php-3266-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-3289-	if (!isset_request_var('header') || get_nfilter_request_var('header') == 'true') {
cacti-1.2.15+ds1/lib/functions.php:3290:		include_once($config['base_path'] . '/include/top_header.php');
cacti-1.2.15+ds1/lib/functions.php-3291-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-3296-	if (!isset_request_var('header') || get_nfilter_request_var('header') == 'true') {
cacti-1.2.15+ds1/lib/functions.php:3297:		include_once($config['base_path'] . '/include/top_graph_header.php');
cacti-1.2.15+ds1/lib/functions.php-3298-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-3303-	if (!isset_request_var('header') || get_nfilter_request_var('header') == 'true') {
cacti-1.2.15+ds1/lib/functions.php:3304:		include_once($config['base_path'] . '/include/top_general_header.php');
cacti-1.2.15+ds1/lib/functions.php-3305-	}
##############################################
cacti-1.2.15+ds1/lib/functions.php-3421-
cacti-1.2.15+ds1/lib/functions.php:3422:	require_once($config['include_path'] . '/vendor/phpmailer/src/Exception.php');
cacti-1.2.15+ds1/lib/functions.php:3423:	require_once($config['include_path'] . '/vendor/phpmailer/src/PHPMailer.php');
cacti-1.2.15+ds1/lib/functions.php:3424:	require_once($config['include_path'] . '/vendor/phpmailer/src/SMTP.php');
cacti-1.2.15+ds1/lib/functions.php-3425-
##############################################
cacti-1.2.15+ds1/lib/functions.php-3861-
cacti-1.2.15+ds1/lib/functions.php:3862:    require_once($config['include_path'] . '/vendor/phpmailer/src/Exception.php');
cacti-1.2.15+ds1/lib/functions.php:3863:    require_once($config['include_path'] . '/vendor/phpmailer/src/PHPMailer.php');
cacti-1.2.15+ds1/lib/functions.php:3864:    require_once($config['include_path'] . '/vendor/phpmailer/src/SMTP.php');
cacti-1.2.15+ds1/lib/functions.php-3865-
##############################################
cacti-1.2.15+ds1/lib/functions.php-4161-
cacti-1.2.15+ds1/lib/functions.php:4162:	$h = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/lib/functions.php-4163-
##############################################
cacti-1.2.15+ds1/lib/functions.php-4818-	foreach($good_field_hashes as $hash => $field_hashes) {
cacti-1.2.15+ds1/lib/functions.php:4819:		$data_input_id = db_fetch_cell_prepared('SELECT id FROM data_input WHERE hash = ?', array($hash));
cacti-1.2.15+ds1/lib/functions.php-4820-
##############################################
cacti-1.2.15+ds1/lib/functions.php-4919-
cacti-1.2.15+ds1/lib/functions.php:4920:						db_execute_prepared('DELETE FROM data_input_fields WHERE hash = ?', array($bhash['hash']));
cacti-1.2.15+ds1/lib/functions.php-4921-					} else {
##############################################
cacti-1.2.15+ds1/lib/functions.php-4934-		$wmi   = new COM("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");
cacti-1.2.15+ds1/lib/functions.php:4935:		$procs = $wmi->ExecQuery("SELECT ProcessId FROM Win32_Process WHERE ProcessId='" . $pid . "'");
cacti-1.2.15+ds1/lib/functions.php-4936-
##############################################
cacti-1.2.15+ds1/lib/functions.php-5329-		if (empty($tmp_user)) {
cacti-1.2.15+ds1/lib/functions.php:5330:			exec('id -nu', $o, $r);
cacti-1.2.15+ds1/lib/functions.php-5331-			if ($r == 0) {
##############################################
cacti-1.2.15+ds1/lib/functions.php-5339-		{
cacti-1.2.15+ds1/lib/functions.php:5340:			exec(sprintf('grep :%s: /etc/passwd | cut -d: -f1', (int) $uid), $o, $r);
cacti-1.2.15+ds1/lib/functions.php-5341-			if ($r == 0) {
##############################################
cacti-1.2.15+ds1/lib/functions.php-5380-
cacti-1.2.15+ds1/lib/functions.php:5381:function get_client_addr($client_addr = false) {
cacti-1.2.15+ds1/lib/functions.php-5382-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-69-			FROM data_template_data
cacti-1.2.15+ds1/lib/api_data_source.php:70:			WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-71-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-82-		FROM data_template_data
cacti-1.2.15+ds1/lib/api_data_source.php:83:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-84-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-107-	db_execute_prepared('DELETE FROM data_template_data
cacti-1.2.15+ds1/lib/api_data_source.php:108:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-109-
cacti-1.2.15+ds1/lib/api_data_source.php-110-	db_execute_prepared('DELETE FROM data_template_rrd
cacti-1.2.15+ds1/lib/api_data_source.php:111:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-112-
cacti-1.2.15+ds1/lib/api_data_source.php-113-	db_execute_prepared('DELETE FROM poller_item
cacti-1.2.15+ds1/lib/api_data_source.php:114:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-115-
cacti-1.2.15+ds1/lib/api_data_source.php-116-	db_execute_prepared('DELETE FROM data_local
cacti-1.2.15+ds1/lib/api_data_source.php:117:		WHERE id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-118-
cacti-1.2.15+ds1/lib/api_data_source.php-119-	db_execute_prepared('DELETE FROM data_debug
cacti-1.2.15+ds1/lib/api_data_source.php:120:		WHERE datasource = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-121-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-123-	db_execute_prepared('DELETE FROM data_source_stats_daily
cacti-1.2.15+ds1/lib/api_data_source.php:124:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-125-
cacti-1.2.15+ds1/lib/api_data_source.php-126-	db_execute_prepared('DELETE FROM data_source_stats_hourly
cacti-1.2.15+ds1/lib/api_data_source.php:127:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-128-
cacti-1.2.15+ds1/lib/api_data_source.php-129-	db_execute_prepared('DELETE FROM data_source_stats_hourly_cache
cacti-1.2.15+ds1/lib/api_data_source.php:130:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-131-
cacti-1.2.15+ds1/lib/api_data_source.php-132-	db_execute_prepared('DELETE FROM data_source_stats_hourly_last
cacti-1.2.15+ds1/lib/api_data_source.php:133:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-134-
cacti-1.2.15+ds1/lib/api_data_source.php-135-	db_execute_prepared('DELETE FROM data_source_stats_monthly
cacti-1.2.15+ds1/lib/api_data_source.php:136:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-137-
cacti-1.2.15+ds1/lib/api_data_source.php-138-	db_execute_prepared('DELETE FROM data_source_stats_weekly
cacti-1.2.15+ds1/lib/api_data_source.php:139:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-140-
cacti-1.2.15+ds1/lib/api_data_source.php-141-	db_execute_prepared('DELETE FROM data_source_stats_yearly
cacti-1.2.15+ds1/lib/api_data_source.php:142:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-143-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-145-	db_execute_prepared('DELETE FROM poller_output
cacti-1.2.15+ds1/lib/api_data_source.php:146:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-147-
cacti-1.2.15+ds1/lib/api_data_source.php-148-	db_execute_prepared('DELETE FROM poller_output_boost
cacti-1.2.15+ds1/lib/api_data_source.php:149:		WHERE local_data_id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/api_data_source.php-150-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-153-		db_execute_prepared('DELETE FROM data_template_data
cacti-1.2.15+ds1/lib/api_data_source.php:154:			WHERE local_data_id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-155-
cacti-1.2.15+ds1/lib/api_data_source.php-156-		db_execute_prepared('DELETE FROM data_template_rrd
cacti-1.2.15+ds1/lib/api_data_source.php:157:			WHERE local_data_id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-158-
cacti-1.2.15+ds1/lib/api_data_source.php-159-		db_execute_prepared('DELETE FROM poller_item
cacti-1.2.15+ds1/lib/api_data_source.php:160:			WHERE local_data_id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-161-
cacti-1.2.15+ds1/lib/api_data_source.php-162-		db_execute_prepared('DELETE FROM data_local
cacti-1.2.15+ds1/lib/api_data_source.php:163:			WHERE id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-164-
##############################################
cacti-1.2.15+ds1/lib/api_data_source.php-166-		db_execute_prepared('DELETE FROM poller_output
cacti-1.2.15+ds1/lib/api_data_source.php:167:			WHERE local_data_id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-168-
cacti-1.2.15+ds1/lib/api_data_source.php-169-		db_execute_prepared('DELETE FROM poller_output_boost
cacti-1.2.15+ds1/lib/api_data_source.php:170:			WHERE local_data_id = ?', array($local_data_id), true, $rcnn_id);
cacti-1.2.15+ds1/lib/api_data_source.php-171-	}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-264-
cacti-1.2.15+ds1/lib/html_reports.php:265:			$reports_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM reports WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/lib/html_reports.php-266-
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-495-		} elseif ($report_item['host_template_id'] > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:496:			$sql_where = 'h.host_template_id=' . $report_item['host_template_id'];
cacti-1.2.15+ds1/lib/html_reports.php-497-		}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-500-			if (get_filter_request_var('host_id') > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:501:				$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.host_id=' . get_request_var('host_id');
cacti-1.2.15+ds1/lib/html_reports.php-502-			}
cacti-1.2.15+ds1/lib/html_reports.php-503-		} elseif ($report_item['host_id'] > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:504:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.host_id=' . $report_item['host_id'];
cacti-1.2.15+ds1/lib/html_reports.php-505-		}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-508-			if (get_filter_request_var('graph_template_id') > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:509:				$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.graph_template_id=' . get_request_var('graph_template_id');
cacti-1.2.15+ds1/lib/html_reports.php-510-			}
cacti-1.2.15+ds1/lib/html_reports.php-511-		} elseif ($report_item['graph_template_id'] > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:512:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.graph_template_id=' . $report_item['graph_template_id'];
cacti-1.2.15+ds1/lib/html_reports.php-513-		}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-563-			if (get_filter_request_var('tree_id') > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:564:				$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gt.id=' . get_request_var('tree_id');
cacti-1.2.15+ds1/lib/html_reports.php-565-			}
cacti-1.2.15+ds1/lib/html_reports.php-566-		} elseif ($report_item['tree_id'] > 0) {
cacti-1.2.15+ds1/lib/html_reports.php:567:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gt.id=' . $report_item['tree_id'];
cacti-1.2.15+ds1/lib/html_reports.php-568-		}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-1319-
cacti-1.2.15+ds1/lib/html_reports.php:1320:	$css = db_fetch_cell_prepared('SELECT cformat FROM reports WHERE id = ?', array($report_id));
cacti-1.2.15+ds1/lib/html_reports.php-1321-
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-1554-	} elseif (get_request_var('status') == '-2') {
cacti-1.2.15+ds1/lib/html_reports.php:1555:		$sql_where .= ($sql_where != '' ? " AND reports.enabled='on'" : " WHERE reports.enabled='on'");
cacti-1.2.15+ds1/lib/html_reports.php-1556-	} elseif (get_request_var('status') == '-3') {
cacti-1.2.15+ds1/lib/html_reports.php:1557:		$sql_where .= ($sql_where != '' ? " AND reports.enabled=''" : " WHERE reports.enabled=''");
cacti-1.2.15+ds1/lib/html_reports.php-1558-	}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-1563-	} else {
cacti-1.2.15+ds1/lib/html_reports.php:1564:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' user_auth.id=' . $_SESSION['sess_user_id'];
cacti-1.2.15+ds1/lib/html_reports.php-1565-		$sql_join = 'INNER JOIN user_auth ON user_auth.id=reports.user_id';
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-1703-function reports_html_account_exists($user_id) {
cacti-1.2.15+ds1/lib/html_reports.php:1704:	return db_fetch_cell_prepared('SELECT id FROM user_auth WHERE id = ?', array($user_id));
cacti-1.2.15+ds1/lib/html_reports.php-1705-}
##############################################
cacti-1.2.15+ds1/lib/html_reports.php-1707-function reports_html_report_disable($report_id) {
cacti-1.2.15+ds1/lib/html_reports.php:1708:	db_execute_prepared('UPDATE reports SET enabled="" WHERE id = ?', array($report_id));
cacti-1.2.15+ds1/lib/html_reports.php-1709-}
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-68-		$save['template_propogation']  = 'on';
cacti-1.2.15+ds1/lib/aggregate.php:69:		$save['title_format']          = db_fetch_cell_prepared('SELECT title_cache FROM graph_templates_graph WHERE local_graph_id = ?', array($graph));
cacti-1.2.15+ds1/lib/aggregate.php-70-		$save['graph_template_id']     = $aggregate_template['graph_template_id'];
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-564-
cacti-1.2.15+ds1/lib/aggregate.php:565:	include_once($config['base_path'] . '/lib/cdef.php');
cacti-1.2.15+ds1/lib/aggregate.php-566-
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-619-
cacti-1.2.15+ds1/lib/aggregate.php:620:	include_once($config['base_path'] . '/lib/cdef.php');
cacti-1.2.15+ds1/lib/aggregate.php-621-
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-627-			FROM graph_templates_item
cacti-1.2.15+ds1/lib/aggregate.php:628:			WHERE local_graph_id=$_new_graph_id
cacti-1.2.15+ds1/lib/aggregate.php-629-			AND sequence>=$_graph_item_sequence
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-741-				SET cdef_id=$new_cdef_id
cacti-1.2.15+ds1/lib/aggregate.php:742:				WHERE id=" . $graph_template_item["id"];
cacti-1.2.15+ds1/lib/aggregate.php-743-
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-811-
cacti-1.2.15+ds1/lib/aggregate.php:812:	include_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/lib/aggregate.php-813-
##############################################
cacti-1.2.15+ds1/lib/aggregate.php-844-	if ($local_graph_id > 0) {
cacti-1.2.15+ds1/lib/aggregate.php:845:		$sql_where = "AND pagi.local_graph_id=$local_graph_id";
cacti-1.2.15+ds1/lib/aggregate.php-846-	}
##############################################
cacti-1.2.15+ds1/lib/mib_cache.php-46-		} else {
cacti-1.2.15+ds1/lib/mib_cache.php:47:			db_execute_prepared('DELETE FROM snmpagent_cache WHERE `mib` = ?', array($this->active_mib));
cacti-1.2.15+ds1/lib/mib_cache.php:48:			db_execute_prepared('DELETE FROM snmpagent_cache_notifications WHERE `mib` = ?', array($this->active_mib));
cacti-1.2.15+ds1/lib/mib_cache.php:49:			db_execute_prepared('DELETE FROM snmpagent_cache_textual_conventions WHERE `mib` = ?', array($this->active_mib));
cacti-1.2.15+ds1/lib/mib_cache.php:50:			db_execute_prepared('DELETE FROM snmpagent_mibs WHERE `name` = ?', array($this->active_mib));
cacti-1.2.15+ds1/lib/mib_cache.php-51-		}
##############################################
cacti-1.2.15+ds1/lib/mib_cache.php-56-
cacti-1.2.15+ds1/lib/mib_cache.php:57:		include_once($config['include_path'] . '/vendor/phpsnmp/mib_parser.php');
cacti-1.2.15+ds1/lib/mib_cache.php-58-
##############################################
cacti-1.2.15+ds1/lib/mib_cache.php-64-			/* check if this mib has already been installed */
cacti-1.2.15+ds1/lib/mib_cache.php:65:			$existing = db_fetch_cell_prepared('SELECT 1 FROM snmpagent_mibs WHERE `name` = ?', array($mp->mib));
cacti-1.2.15+ds1/lib/mib_cache.php-66-			if ($existing) {
##############################################
cacti-1.2.15+ds1/lib/mib_cache.php-346-					$column_params['oid'] .= '.' . $this->active_table_entry;
cacti-1.2.15+ds1/lib/mib_cache.php:347:					db_execute_prepared('DELETE FROM `snmpagent_cache` WHERE `oid` = ?', array($column_params['oid']));
cacti-1.2.15+ds1/lib/mib_cache.php-348-				}
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-104-	/* add device to cactiApplDeviceTable and cactiStatsDeviceTable*/
cacti-1.2.15+ds1/lib/snmpagent.php:105:	$device_data = db_fetch_row_prepared('SELECT * FROM `host` WHERE id = ?', array($device['id']));
cacti-1.2.15+ds1/lib/snmpagent.php-106-
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-230-				foreach($selected_items as $device_id) {
cacti-1.2.15+ds1/lib/snmpagent.php:231:					$device_status = db_fetch_cell_prepared('SELECT status FROM host WHERE id = ?', array($device_id));
cacti-1.2.15+ds1/lib/snmpagent.php-232-					try
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-245-				foreach($selected_items as $device_id) {
cacti-1.2.15+ds1/lib/snmpagent.php:246:					$device_status = db_fetch_cell_prepared('SELECT status FROM host WHERE id = ?', array($device_id));
cacti-1.2.15+ds1/lib/snmpagent.php-247-					try
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-329-	if (api_plugin_is_enabled('maint')) {
cacti-1.2.15+ds1/lib/snmpagent.php:330:		include_once($config['base_path'] . '/plugins/maint/functions.php');
cacti-1.2.15+ds1/lib/snmpagent.php-331-	}
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-652-		foreach($pollers as $poller){
cacti-1.2.15+ds1/lib/snmpagent.php:653:			$poller_data = db_fetch_row_prepared('SELECT * FROM poller WHERE id = ?', array($poller['id']));
cacti-1.2.15+ds1/lib/snmpagent.php-654-		}
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-698-		foreach($devices as $device) {
cacti-1.2.15+ds1/lib/snmpagent.php:699:			$device = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($device['id']));
cacti-1.2.15+ds1/lib/snmpagent.php-700-
##############################################
cacti-1.2.15+ds1/lib/snmpagent.php-879-		if (cacti_sizeof($notification_managers)) {
cacti-1.2.15+ds1/lib/snmpagent.php:880:			include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/snmpagent.php-881-
##############################################
cacti-1.2.15+ds1/lib/dsdebug.php-124-							$c['info'] = serialize($c['info']);
cacti-1.2.15+ds1/lib/dsdebug.php:125:							db_execute_prepared('UPDATE data_debug SET `info` = ? WHERE `id` = ?', array($c['info'], $c['id']));
cacti-1.2.15+ds1/lib/dsdebug.php-126-						}
##############################################
cacti-1.2.15+ds1/lib/graph_variables.php-64-
cacti-1.2.15+ds1/lib/graph_variables.php:65:	include_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/lib/graph_variables.php-66-
##############################################
cacti-1.2.15+ds1/lib/reports.php-292-
cacti-1.2.15+ds1/lib/reports.php:293:	include_once($config['base_path'] . '/lib/time.php');
cacti-1.2.15+ds1/lib/reports.php:294:	include_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/lib/reports.php:295:	include_once($config['base_path'] . '/lib/html_reports.php');
cacti-1.2.15+ds1/lib/reports.php-296-
##############################################
cacti-1.2.15+ds1/lib/reports.php-562-
cacti-1.2.15+ds1/lib/reports.php:563:	include_once($config['library_path'] . '/html_tree.php');
cacti-1.2.15+ds1/lib/reports.php-564-
##############################################
cacti-1.2.15+ds1/lib/reports.php-570-	if ($search_key != '') {
cacti-1.2.15+ds1/lib/reports.php:571:		$sql_swhere = " AND gtg.title_cache REGEXP '" . $search_key . "'";
cacti-1.2.15+ds1/lib/reports.php-572-	}
##############################################
cacti-1.2.15+ds1/lib/reports.php-584-			ON gtg.local_graph_id=gl.id
cacti-1.2.15+ds1/lib/reports.php:585:			WHERE gl.host_id = $device_id
cacti-1.2.15+ds1/lib/reports.php-586-			$sql_swhere"), 'id', 'id');
##############################################
cacti-1.2.15+ds1/lib/reports.php-588-		if ($branch_id > 0) {
cacti-1.2.15+ds1/lib/reports.php:589:			$sql_where .= ' AND gti.parent=' . $branch_id;
cacti-1.2.15+ds1/lib/reports.php-590-		} else {
##############################################
cacti-1.2.15+ds1/lib/reports.php-611-			ON gtg.local_graph_id=gl.id
cacti-1.2.15+ds1/lib/reports.php:612:			WHERE gti.graph_tree_id=$tree_id
cacti-1.2.15+ds1/lib/reports.php-613-			AND gti.host_id>0
##############################################
cacti-1.2.15+ds1/lib/reports.php-639-
cacti-1.2.15+ds1/lib/reports.php:640:	include_once($config['base_path'] . '/lib/time.php');
cacti-1.2.15+ds1/lib/reports.php-641-
##############################################
cacti-1.2.15+ds1/lib/reports.php-886-
cacti-1.2.15+ds1/lib/reports.php:887:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/reports.php:888:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/reports.php:889:	include_once($config['library_path'] . '/html_tree.php');
cacti-1.2.15+ds1/lib/reports.php:890:	include_once($config['library_path'] . '/html_utility.php');
cacti-1.2.15+ds1/lib/reports.php-891-
##############################################
cacti-1.2.15+ds1/lib/reports.php-1010-			if ($item['graph_name_regexp'] != '') {
cacti-1.2.15+ds1/lib/reports.php:1011:				$sql_where .= " AND title_cache REGEXP '" . $item['graph_name_regexp'] . "'";
cacti-1.2.15+ds1/lib/reports.php-1012-			}
##############################################
cacti-1.2.15+ds1/lib/reports.php-1023-					ON gtg.local_graph_id=gl.id
cacti-1.2.15+ds1/lib/reports.php:1024:					WHERE gti.graph_tree_id=$tree_id
cacti-1.2.15+ds1/lib/reports.php-1025-					AND gti.parent=$parent
##############################################
cacti-1.2.15+ds1/lib/reports.php-1054-				if ($item['graph_name_regexp'] != '') {
cacti-1.2.15+ds1/lib/reports.php:1055:					$gr_where .= " AND title_cache REGEXP '" . $item['graph_name_regexp'] . "'";
cacti-1.2.15+ds1/lib/reports.php-1056-				}
##############################################
cacti-1.2.15+ds1/lib/reports.php-1059-					FROM graph_templates_graph
cacti-1.2.15+ds1/lib/reports.php:1060:					WHERE local_graph_id=" . $leaf['local_graph_id'] . $gr_where);
cacti-1.2.15+ds1/lib/reports.php-1061-
##############################################
cacti-1.2.15+ds1/lib/reports.php-1121-									ON gtg.local_graph_id=gl.id
cacti-1.2.15+ds1/lib/reports.php:1122:									WHERE gl.graph_template_id=' . $id . '
cacti-1.2.15+ds1/lib/reports.php-1123-									AND gl.host_id=' . $leaf['host_id'] . "
##############################################
cacti-1.2.15+ds1/lib/reports.php-1191-									ON gl.id=gtg.local_graph_id
cacti-1.2.15+ds1/lib/reports.php:1192:									WHERE gl.snmp_query_id=' . $data_query['id'] . '
cacti-1.2.15+ds1/lib/reports.php-1193-									AND gl.host_id=' . $leaf['host_id'] . "
##############################################
cacti-1.2.15+ds1/lib/reports.php-1265-						ON gtg.local_graph_id=gl.id
cacti-1.2.15+ds1/lib/reports.php:1266:						WHERE gl.host_id=' . $leaf['host_id'] . "
cacti-1.2.15+ds1/lib/reports.php-1267-						$sql_where
##############################################
cacti-1.2.15+ds1/lib/reports.php-1502-	global $config;
cacti-1.2.15+ds1/lib/reports.php:1503:	include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/lib/reports.php-1504-
##############################################
cacti-1.2.15+ds1/lib/html_form.php-1075-	} elseif ($sql_previous_values == '') {
cacti-1.2.15+ds1/lib/html_form.php:1076:		$values = db_fetch_cell_prepared('SELECT value FROM settings WHERE name = ?', array($form_name));
cacti-1.2.15+ds1/lib/html_form.php-1077-		if ($values != '') {
##############################################
cacti-1.2.15+ds1/lib/spikekill.php-388-
cacti-1.2.15+ds1/lib/spikekill.php:389:		shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' dump ' . cacti_escapeshellarg($this->rrdfile) . ' > ' . cacti_escapeshellarg($xmlfile));
cacti-1.2.15+ds1/lib/spikekill.php-390-
##############################################
cacti-1.2.15+ds1/lib/spikekill.php-695-
cacti-1.2.15+ds1/lib/spikekill.php:696:		$response = shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' restore -f -r ' . cacti_escapeshellarg($xmlfile) . ' ' . cacti_escapeshellarg($rrdfile));
cacti-1.2.15+ds1/lib/spikekill.php-697-
##############################################
cacti-1.2.15+ds1/lib/snmp.php-48-if ($config['php_snmp_support']) {
cacti-1.2.15+ds1/lib/snmp.php:49:	include_once($config['include_path'] . '/vendor/phpsnmp/extension.php');
cacti-1.2.15+ds1/lib/snmp.php-50-} else {
cacti-1.2.15+ds1/lib/snmp.php:51:	include_once($config['include_path'] . '/vendor/phpsnmp/classSNMP.php');
cacti-1.2.15+ds1/lib/snmp.php-52-}
##############################################
cacti-1.2.15+ds1/lib/auth.php-63-
cacti-1.2.15+ds1/lib/auth.php:64:		$nssecret = md5($_SERVER['REQUEST_TIME'] .  mt_rand(10000,10000000)) . md5(get_client_addr(''));
cacti-1.2.15+ds1/lib/auth.php-65-
##############################################
cacti-1.2.15+ds1/lib/auth.php-71-			(?, ?, NOW(), ?);',
cacti-1.2.15+ds1/lib/auth.php:72:			array($user['id'], get_client_addr(''), $secret));
cacti-1.2.15+ds1/lib/auth.php-73-
##############################################
cacti-1.2.15+ds1/lib/auth.php-116-							(?, ?, 2, ?, NOW())',
cacti-1.2.15+ds1/lib/auth.php:117:							array($user, $user_info['id'], get_client_addr(''))
cacti-1.2.15+ds1/lib/auth.php-118-						);
##############################################
cacti-1.2.15+ds1/lib/auth.php-204-	if (cacti_sizeof($user_exist) && $overwrite) {
cacti-1.2.15+ds1/lib/auth.php:205:		db_execute_prepared('DELETE FROM user_auth_perms WHERE user_id = ?', array($user_exist['id']));
cacti-1.2.15+ds1/lib/auth.php:206:		db_execute_prepared('DELETE FROM user_auth_realm WHERE user_id = ?', array($user_exist['id']));
cacti-1.2.15+ds1/lib/auth.php:207:		db_execute_prepared('DELETE FROM settings_user WHERE user_id = ?', array($user_exist['id']));
cacti-1.2.15+ds1/lib/auth.php:208:		db_execute_prepared('DELETE FROM settings_tree WHERE user_id = ?', array($user_exist['id']));
cacti-1.2.15+ds1/lib/auth.php-209-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-304-
cacti-1.2.15+ds1/lib/auth.php:305:	db_execute_prepared('DELETE FROM user_auth WHERE id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php:306:	db_execute_prepared('DELETE FROM user_auth_realm WHERE user_id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php:307:	db_execute_prepared('DELETE FROM user_auth_perms WHERE user_id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php:308:	db_execute_prepared('DELETE FROM user_auth_group_members WHERE user_id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php:309:	db_execute_prepared('DELETE FROM settings_user WHERE user_id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php:310:	db_execute_prepared('DELETE FROM settings_tree WHERE user_id = ?', array($user_id));
cacti-1.2.15+ds1/lib/auth.php-311-
##############################################
cacti-1.2.15+ds1/lib/auth.php-321-
cacti-1.2.15+ds1/lib/auth.php:322:	db_execute_prepared("UPDATE user_auth SET enabled = '' WHERE id = ?", array($user_id));
cacti-1.2.15+ds1/lib/auth.php-323-
##############################################
cacti-1.2.15+ds1/lib/auth.php-333-
cacti-1.2.15+ds1/lib/auth.php:334:	db_execute_prepared("UPDATE user_auth SET enabled = 'on' WHERE id = ?", array($user_id));
cacti-1.2.15+ds1/lib/auth.php-335-
##############################################
cacti-1.2.15+ds1/lib/auth.php-822-
cacti-1.2.15+ds1/lib/auth.php:823:function get_allowed_tree_content($tree_id, $parent = 0, $sql_where = '', $order_by = '', $limit = '', &$total_rows = 0, $user = 0) {
cacti-1.2.15+ds1/lib/auth.php-824-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-857-		if (cacti_sizeof($trees)) {
cacti-1.2.15+ds1/lib/auth.php:858:			$sql_where .= ' AND gt.id IN (' . implode(', ', array_keys($trees)) . ')';
cacti-1.2.15+ds1/lib/auth.php-859-		}
##############################################
cacti-1.2.15+ds1/lib/auth.php-908-
cacti-1.2.15+ds1/lib/auth.php:909:function get_allowed_tree_header_graphs($tree_id, $leaf_id = 0, $sql_where = '', $order_by = 'gti.position', $limit = '', &$total_rows = 0, $user = 0) {
cacti-1.2.15+ds1/lib/auth.php-910-	if (!is_numeric($tree_id)) {
##############################################
cacti-1.2.15+ds1/lib/auth.php-926-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:927:		$sql_where = " AND ($sql_where)";
cacti-1.2.15+ds1/lib/auth.php-928-	}
cacti-1.2.15+ds1/lib/auth.php-929-
cacti-1.2.15+ds1/lib/auth.php:930:	$sql_where = "WHERE (gti.graph_tree_id=$tree_id AND gti.parent=$leaf_id)" . $sql_where;
cacti-1.2.15+ds1/lib/auth.php-931-
##############################################
cacti-1.2.15+ds1/lib/auth.php-1075-
cacti-1.2.15+ds1/lib/auth.php:1076:function get_allowed_graphs($sql_where = '', $order_by = 'gtg.title_cache', $limit = '', &$total_rows = 0, $user = 0, $graph_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-1077-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1085-	if ($graph_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:1086:		$sql_where .= ($sql_where != '' ? ' AND ' : ' ') . " gl.id = $graph_id";
cacti-1.2.15+ds1/lib/auth.php-1087-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1089-	if (read_user_setting('hide_disabled') == 'on') {
cacti-1.2.15+ds1/lib/auth.php:1090:		$sql_where .= ($sql_where != '' ? ' AND ':'') . '(IFNULL(h.disabled,"")="")';
cacti-1.2.15+ds1/lib/auth.php-1091-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1093-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1094:		$sql_where = "WHERE IFNULL(h.deleted,'') = '' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-1095-	} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1226-
cacti-1.2.15+ds1/lib/auth.php:1227:function get_allowed_aggregate_graphs($sql_where = '', $order_by = 'gtg.title_cache', $limit = '', &$total_rows = 0, $user = 0, $graph_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-1228-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1236-	if ($graph_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:1237:		$sql_where .= ($sql_where != '' ? ' AND ' : ' ') . " gl.id = $graph_id";
cacti-1.2.15+ds1/lib/auth.php-1238-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1240-	if (read_user_setting('hide_disabled') == 'on') {
cacti-1.2.15+ds1/lib/auth.php:1241:		$sql_where .= ($sql_where != '' ? ' AND ':'') . '(IFNULL(h.disabled,"")="")';
cacti-1.2.15+ds1/lib/auth.php-1242-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1244-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1245:		$sql_where = "WHERE IFNULL(h.deleted,'') = '' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-1246-	} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1464-
cacti-1.2.15+ds1/lib/auth.php:1465:function get_allowed_graph_templates($sql_where = '', $order_by = 'gt.name', $limit = '', &$total_rows = 0, $user = 0, $graph_template_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-1466-	$hash      = get_allowed_type_hash('graph_templates', $sql_where, $order_by, $limit, $graph_template_id, $user);
##############################################
cacti-1.2.15+ds1/lib/auth.php-1489-	if ($graph_template_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:1490:		$sql_where .= ($sql_where != '' ? ' AND ' : ' ') . "(gl.graph_template_id = $graph_template_id)";
cacti-1.2.15+ds1/lib/auth.php-1491-	}
cacti-1.2.15+ds1/lib/auth.php-1492-
cacti-1.2.15+ds1/lib/auth.php:1493:	$sql_where = 'WHERE ' . ($sql_where != '' ? $sql_where . ' AND ':' ') . '(gt.id IS NOT NULL) ';
cacti-1.2.15+ds1/lib/auth.php-1494-
##############################################
cacti-1.2.15+ds1/lib/auth.php-1565-		if ($sql_user != '') {
cacti-1.2.15+ds1/lib/auth.php:1566:			$sql_where .= ' AND (' . $sql_user . ')';
cacti-1.2.15+ds1/lib/auth.php-1567-		}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1624-
cacti-1.2.15+ds1/lib/auth.php:1625:function get_allowed_trees($edit = false, $return_sql = false, $sql_where = '', $order_by = 'name', $limit = '', &$total_rows = 0, $user = 0) {
cacti-1.2.15+ds1/lib/auth.php-1626-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1656-
cacti-1.2.15+ds1/lib/auth.php:1657:		$policies[] = db_fetch_row_prepared("SELECT id, 'user' as type, policy_trees FROM user_auth WHERE id = ?", array($user));
cacti-1.2.15+ds1/lib/auth.php-1658-
##############################################
cacti-1.2.15+ds1/lib/auth.php-1676-		if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1677:			$sql_where = 'WHERE ' . ($edit == false ? '(gt.enabled="on") AND ':'') . '(' . $sql_where . ') AND (' . $sql_where1 . ')';
cacti-1.2.15+ds1/lib/auth.php-1678-		} else {
cacti-1.2.15+ds1/lib/auth.php:1679:			$sql_where = 'WHERE ' . ($edit == false ? '(gt.enabled="on") AND ':'') . '(gt.enabled="on") AND (' . $sql_where1 . ')';
cacti-1.2.15+ds1/lib/auth.php-1680-		}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1700-		if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1701:			$sql_where = "WHERE enabled='on' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-1702-		} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1716-
cacti-1.2.15+ds1/lib/auth.php:1717:function get_allowed_branches($sql_where = '', $order_by = 'name', $limit = '', &$total_rows = 0, $user = 0) {
cacti-1.2.15+ds1/lib/auth.php-1718-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1737-	if (cacti_sizeof($hosts) > 0) {
cacti-1.2.15+ds1/lib/auth.php:1738:		$sql_hosts_where =  'AND h.id IN (' . implode(',', array_keys(array_rekey($hosts, 'id', 'description'))) . ')';
cacti-1.2.15+ds1/lib/auth.php-1739-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1781-		if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1782:			$sql_where = 'WHERE gt.enabled="on" AND (' . $sql_where . ') AND (' . $sql_where1 . ')';
cacti-1.2.15+ds1/lib/auth.php-1783-		} else {
cacti-1.2.15+ds1/lib/auth.php:1784:			$sql_where = 'WHERE gt.enabled="on" AND (' . $sql_where1 . ')';
cacti-1.2.15+ds1/lib/auth.php-1785-		}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1812-		if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1813:			$sql_where = "WHERE gt.enabled='on' AND h.disabled=''  AND h.deleted = '' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-1814-		} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1845-
cacti-1.2.15+ds1/lib/auth.php:1846:function get_allowed_devices($sql_where = '', $order_by = 'description', $limit = '', &$total_rows = 0, $user = 0, $host_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-1847-	$hash      = get_allowed_type_hash('devices', '', '', '', 0, $user);
##############################################
cacti-1.2.15+ds1/lib/auth.php-1871-	if (read_user_setting('hide_disabled') == 'on') {
cacti-1.2.15+ds1/lib/auth.php:1872:		$sql_where .= ($sql_where != '' ? ' AND ':'') . '(IFNULL(h.disabled,"")="")';
cacti-1.2.15+ds1/lib/auth.php-1873-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-1875-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:1876:		$sql_where = "WHERE IFNULL(h.deleted,'') = '' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-1877-	} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1881-	if ($host_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:1882:		$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . " h.id=$host_id";
cacti-1.2.15+ds1/lib/auth.php-1883-	} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-1887-				$sql_where" .
cacti-1.2.15+ds1/lib/auth.php:1888:				($sql_where != '' ? ' AND ':' WHERE ') . ' id IN (' . implode(', ', $cached) . ")
cacti-1.2.15+ds1/lib/auth.php-1889-				$order_by
##############################################
cacti-1.2.15+ds1/lib/auth.php-2049-
cacti-1.2.15+ds1/lib/auth.php:2050:function get_allowed_sites($sql_where = '', $order_by = 'name', $limit = '', &$total_rows = 0, $user = 0, $site_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-2051-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-2059-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:2060:		$sql_where = "WHERE $sql_where";
cacti-1.2.15+ds1/lib/auth.php-2061-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2063-	if ($site_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:2064:		$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . " s.id=$site_id";
cacti-1.2.15+ds1/lib/auth.php-2065-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2097-
cacti-1.2.15+ds1/lib/auth.php:2098:function get_allowed_site_devices($site_id, $sql_where = '', $order_by = 'description', $limit = '', &$total_rows = 0, $user = 0) {
cacti-1.2.15+ds1/lib/auth.php-2099-	if ($limit != '') {
##############################################
cacti-1.2.15+ds1/lib/auth.php-2107-	if (read_user_setting('hide_disabled') == 'on') {
cacti-1.2.15+ds1/lib/auth.php:2108:		$sql_where .= ($sql_where != '' ? ' AND ':'') . '(IFNULL(h.disabled,"")="")';
cacti-1.2.15+ds1/lib/auth.php-2109-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2111-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:2112:		$sql_where = "WHERE IFNULL(h.deleted,'') = '' AND $sql_where";
cacti-1.2.15+ds1/lib/auth.php-2113-	} else {
##############################################
cacti-1.2.15+ds1/lib/auth.php-2117-	if ($site_id > 0) {
cacti-1.2.15+ds1/lib/auth.php:2118:		$sql_where .= ($sql_where != '' ? ' AND ' : 'WHERE ') . " h.site_id=$site_id";
cacti-1.2.15+ds1/lib/auth.php-2119-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2280-
cacti-1.2.15+ds1/lib/auth.php:2281:function get_allowed_graph_templates_normalized($sql_where = '', $order_by = 'name', $limit = '', &$total_rows = 0, $user = 0, $graph_template_id = 0) {
cacti-1.2.15+ds1/lib/auth.php-2282-	$templates = array_rekey(get_allowed_graph_templates($sql_where, $order_by, $limit, $total_rows, $user, $graph_template_id), 'id', 'name');
##############################################
cacti-1.2.15+ds1/lib/auth.php-2288-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:2289:		$sql_where = ' WHERE (' . $sql_where . ') AND gl.graph_template_id IN(' . implode(', ', array_keys($templates)) . ') AND (gl.snmp_query_graph_id=0 OR sqg.name IS NOT NULL) AND (gt.name IS NOT NULL)';
cacti-1.2.15+ds1/lib/auth.php-2290-	} else {
cacti-1.2.15+ds1/lib/auth.php:2291:		$sql_where = ' WHERE gl.graph_template_id IN(' . implode(', ', array_keys($templates)) . ') AND (gl.snmp_query_graph_id=0 OR sqg.name IS NOT NULL) AND (gt.name IS NOT NULL)';
cacti-1.2.15+ds1/lib/auth.php-2292-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2336-	if ($term != '') {
cacti-1.2.15+ds1/lib/auth.php:2337:		$sql_where .= ($sql_where != '' ? ' AND ' : '') . "hostname LIKE '%$term%' OR description LIKE '%$term%' OR notes LIKE '%$term%'";
cacti-1.2.15+ds1/lib/auth.php-2338-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2365-	if ($term != '') {
cacti-1.2.15+ds1/lib/auth.php:2366:		$sql_where .= ($sql_where != '' ? ' AND ' : '') . "name_cache LIKE '%$term%' OR data_source_name LIKE '%$term%'";
cacti-1.2.15+ds1/lib/auth.php-2367-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2392-	if ($sql_where != '') {
cacti-1.2.15+ds1/lib/auth.php:2393:		$sql_where = 'WHERE ' . $sql_where;
cacti-1.2.15+ds1/lib/auth.php-2394-	}
##############################################
cacti-1.2.15+ds1/lib/auth.php-2487-						VALUES (?, ?, 0, ?, NOW())',
cacti-1.2.15+ds1/lib/auth.php:2488:						array($username, isset($user['id']) ? $user['id']:0, get_client_addr('')));
cacti-1.2.15+ds1/lib/auth.php-2489-
cacti-1.2.15+ds1/lib/auth.php:2490:					cacti_log("LOGIN: Local Login Failed for user '" . $username . "' from IP Address '" . get_client_addr('') . "'.", false, 'AUTH');
cacti-1.2.15+ds1/lib/auth.php-2491-
##############################################
cacti-1.2.15+ds1/lib/variables.php-266-			ON h.site_id = s.id
cacti-1.2.15+ds1/lib/variables.php:267:			WHERE h.id = ?', array($host_id));
cacti-1.2.15+ds1/lib/variables.php-268-
##############################################
cacti-1.2.15+ds1/lib/variables.php-417-				ON data_template_rrd.id = graph_templates_item.task_item_id
cacti-1.2.15+ds1/lib/variables.php:418:				WHERE local_graph_id = ?', array($graph['local_graph_id'])), 'local_data_id', 'local_data_id');
cacti-1.2.15+ds1/lib/variables.php-419-
##############################################
cacti-1.2.15+ds1/lib/api_graph.php-106-
cacti-1.2.15+ds1/lib/api_graph.php:107:	db_execute_prepared('DELETE FROM graph_templates_graph WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/api_graph.php:108:	db_execute_prepared('DELETE FROM graph_templates_item WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/api_graph.php:109:	db_execute_prepared('DELETE FROM graph_tree_items WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/api_graph.php:110:	db_execute_prepared('DELETE FROM reports_items WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/api_graph.php:111:	db_execute_prepared('DELETE FROM graph_local WHERE id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/api_graph.php-112-}
##############################################
cacti-1.2.15+ds1/lib/cdef.php-30-
cacti-1.2.15+ds1/lib/cdef.php:31:	$cdef_item = db_fetch_row_prepared('SELECT type, value FROM cdef_items WHERE id = ?', array($cdef_item_id));
cacti-1.2.15+ds1/lib/cdef.php-32-	$current_cdef_value = $cdef_item['value'];
##############################################
cacti-1.2.15+ds1/lib/cdef.php-37-		case '4': return $current_cdef_value; break;
cacti-1.2.15+ds1/lib/cdef.php:38:		case '5': return db_fetch_cell_prepared('SELECT name FROM cdef WHERE id = ?', array($current_cdef_value)); break;
cacti-1.2.15+ds1/lib/cdef.php-39-		case '6': return $current_cdef_value; break;
##############################################
cacti-1.2.15+ds1/lib/cdef.php-47-function get_cdef($cdef_id) {
cacti-1.2.15+ds1/lib/cdef.php:48:	$cdef_items = db_fetch_assoc_prepared('SELECT id, type, value FROM cdef_items WHERE cdef_id = ? ORDER BY sequence', array($cdef_id));
cacti-1.2.15+ds1/lib/cdef.php-49-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-99-
cacti-1.2.15+ds1/lib/rrd.php:100:	return popen($command, 'w');
cacti-1.2.15+ds1/lib/rrd.php-101-}
##############################################
cacti-1.2.15+ds1/lib/rrd.php-578-
cacti-1.2.15+ds1/lib/rrd.php:579:	include ($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/rrd.php-580-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-797-
cacti-1.2.15+ds1/lib/rrd.php:798:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/rrd.php-799-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-827-			if (is_file(read_config_option('path_rrdtool')) && is_executable(read_config_option('path_rrdtool'))) {
cacti-1.2.15+ds1/lib/rrd.php:828:				$fp = popen(read_config_option('path_rrdtool') . " tune $data_source_path $rrd_tune", 'r');
cacti-1.2.15+ds1/lib/rrd.php-829-				pclose($fp);
##############################################
cacti-1.2.15+ds1/lib/rrd.php-870-
cacti-1.2.15+ds1/lib/rrd.php:871:	include_once($config['library_path'] . '/boost.php');
cacti-1.2.15+ds1/lib/rrd.php-872-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-951-
cacti-1.2.15+ds1/lib/rrd.php:952:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/rrd.php-953-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1137-			if (!empty($value)) {
cacti-1.2.15+ds1/lib/rrd.php:1138:				$format = db_fetch_cell_prepared('SELECT gprint_text from graph_templates_gprint WHERE id = ?', array($value));
cacti-1.2.15+ds1/lib/rrd.php-1139-				$graph_opts .= '--right-axis-format ' . cacti_escapeshellarg($format) . RRD_NL;
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1224-
cacti-1.2.15+ds1/lib/rrd.php:1225:	include_once($config['library_path'] . '/cdef.php');
cacti-1.2.15+ds1/lib/rrd.php:1226:	include_once($config['library_path'] . '/vdef.php');
cacti-1.2.15+ds1/lib/rrd.php:1227:	include_once($config['library_path'] . '/graph_variables.php');
cacti-1.2.15+ds1/lib/rrd.php:1228:	include_once($config['library_path'] . '/boost.php');
cacti-1.2.15+ds1/lib/rrd.php:1229:	include_once($config['library_path'] . '/xml.php');
cacti-1.2.15+ds1/lib/rrd.php:1230:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/rrd.php-1231-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1841-				if (isset($graph_item['local_data_id'])) {
cacti-1.2.15+ds1/lib/rrd.php:1842:					$cdef_string = str_replace('CURRENT_DATA_SOURCE_PI', db_fetch_cell_prepared('SELECT rrd_step FROM data_template_data WHERE local_data_id = ?', array($graph_item['local_data_id'])), $cdef_string);
cacti-1.2.15+ds1/lib/rrd.php-1843-				} else {
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1850-				if (isset($graph_item['local_data_id'])) {
cacti-1.2.15+ds1/lib/rrd.php:1851:					$cdef_string = str_replace('ALL_DATA_SOURCES_DUPS_PI', db_fetch_cell_prepared('SELECT rrd_step FROM data_template_data WHERE local_data_id = ?', array($graph_item['local_data_id'])), $cdef_string);
cacti-1.2.15+ds1/lib/rrd.php-1852-				} else {
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1862-				if (isset($graph_item['local_data_id'])) {
cacti-1.2.15+ds1/lib/rrd.php:1863:					$cdef_string = str_replace('ALL_DATA_SOURCES_NODUPS_PI', db_fetch_cell_prepared('SELECT rrd_step FROM data_template_data WHERE local_data_id = ?', array($graph_item['local_data_id'])), $cdef_string);
cacti-1.2.15+ds1/lib/rrd.php-1864-				} else {
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1873-				if (isset($graph_item['local_data_id'])) {
cacti-1.2.15+ds1/lib/rrd.php:1874:					$cdef_string = str_replace('SIMILAR_DATA_SOURCES_DUPS_PI', db_fetch_cell_prepared('SELECT rrd_step FROM data_template_data WHERE local_data_id = ?', array($graph_item['local_data_id'])), $cdef_string);
cacti-1.2.15+ds1/lib/rrd.php-1875-				} else {
##############################################
cacti-1.2.15+ds1/lib/rrd.php-1883-				if (isset($graph_item['local_data_id'])) {
cacti-1.2.15+ds1/lib/rrd.php:1884:					$cdef_string = str_replace('SIMILAR_DATA_SOURCES_NODUPS_PI', db_fetch_cell_prepared('SELECT rrd_step FROM data_template_data WHERE local_data_id = ?', array($graph_item['local_data_id'])), $cdef_string);
cacti-1.2.15+ds1/lib/rrd.php-1885-				} else {
##############################################
cacti-1.2.15+ds1/lib/rrd.php-2390-		$rrdversion = get_rrdtool_version();
cacti-1.2.15+ds1/lib/rrd.php:2391:		include($rrdtheme);
cacti-1.2.15+ds1/lib/rrd.php-2392-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-2853-
cacti-1.2.15+ds1/lib/rrd.php:2854:	include_once($config['library_path'] . '/time.php');
cacti-1.2.15+ds1/lib/rrd.php-2855-
##############################################
cacti-1.2.15+ds1/lib/rrd.php-3557-	if (file_exists($themefile) && is_readable($themefile)) {
cacti-1.2.15+ds1/lib/rrd.php:3558:		include($themefile);
cacti-1.2.15+ds1/lib/rrd.php-3559-
##############################################
cacti-1.2.15+ds1/lib/dsstats.php-741-	if (read_config_option('dsstats_enable') == 'on') {
cacti-1.2.15+ds1/lib/dsstats.php:742:		include_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/lib/dsstats.php-743-
##############################################
cacti-1.2.15+ds1/lib/dsstats.php-767-	if (read_config_option('dsstats_enable') == 'on') {
cacti-1.2.15+ds1/lib/dsstats.php:768:		include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/dsstats.php-769-
##############################################
cacti-1.2.15+ds1/lib/installer.php-825-			if (!empty($param_profile)) {
cacti-1.2.15+ds1/lib/installer.php:826:				$valid = db_fetch_cell_prepared('SELECT id FROM data_source_profiles WHERE id = ?', array($param_profile));
cacti-1.2.15+ds1/lib/installer.php-827-				if ($valid === false || $valid != $param_profile) {
##############################################
cacti-1.2.15+ds1/lib/installer.php-3134-
cacti-1.2.15+ds1/lib/installer.php:3135:		$host_template_id = db_fetch_cell_prepared('SELECT id FROM host_template WHERE hash = ?', array($hash));
cacti-1.2.15+ds1/lib/installer.php-3136-
##############################################
cacti-1.2.15+ds1/lib/installer.php-3282-
cacti-1.2.15+ds1/lib/installer.php:3283:				include_once($upgrade_file);
cacti-1.2.15+ds1/lib/installer.php-3284-				if (function_exists($upgrade_function)) {
##############################################
cacti-1.2.15+ds1/lib/installer.php-3446-			foreach($poller_ids as $id) {
cacti-1.2.15+ds1/lib/installer.php:3447:				$poller = db_fetch_cell_prepared('SELECT name FROM poller WHERE id = ?', array($id));
cacti-1.2.15+ds1/lib/installer.php-3448-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-84-
cacti-1.2.15+ds1/lib/data_query.php:85:	include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/data_query.php:86:	include_once($config['library_path'] . '/api_data_source.php');
cacti-1.2.15+ds1/lib/data_query.php:87:	include_once($config['library_path'] . '/utility.php');
cacti-1.2.15+ds1/lib/data_query.php-88-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-560-
cacti-1.2.15+ds1/lib/data_query.php:561:	include_once($config['library_path'] . '/xml.php');
cacti-1.2.15+ds1/lib/data_query.php-562-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-564-	if (!isset($data_query_xml_arrays[$snmp_query_id])) {
cacti-1.2.15+ds1/lib/data_query.php:565:		$xml_file_path = db_fetch_cell_prepared('SELECT xml_path FROM snmp_query WHERE id = ?', array($snmp_query_id));
cacti-1.2.15+ds1/lib/data_query.php-566-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-755-
cacti-1.2.15+ds1/lib/data_query.php:756:	include_once($config['library_path'] . '/snmp.php');
cacti-1.2.15+ds1/lib/data_query.php-757-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-1716-
cacti-1.2.15+ds1/lib/data_query.php:1717:	include_once($config['library_path'] . '/sort.php');
cacti-1.2.15+ds1/lib/data_query.php-1718-
##############################################
cacti-1.2.15+ds1/lib/data_query.php-2125-
cacti-1.2.15+ds1/lib/data_query.php:2126:	include_once($config['library_path'] . '/variables.php');
cacti-1.2.15+ds1/lib/data_query.php-2127-
##############################################
cacti-1.2.15+ds1/lib/utility.php-145-
cacti-1.2.15+ds1/lib/utility.php:146:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/utility.php:147:	include_once($config['library_path'] . '/api_poller.php');
cacti-1.2.15+ds1/lib/utility.php-148-
##############################################
cacti-1.2.15+ds1/lib/utility.php-642-
cacti-1.2.15+ds1/lib/utility.php:643:		$sql_where .= ' AND dl.host_id=' . $host_id;
cacti-1.2.15+ds1/lib/utility.php-644-	}
##############################################
cacti-1.2.15+ds1/lib/utility.php-647-	if ($local_data_id != 0) {
cacti-1.2.15+ds1/lib/utility.php:648:		$sql_where .= ' AND dl.id=' . $local_data_id;
cacti-1.2.15+ds1/lib/utility.php-649-	}
##############################################
cacti-1.2.15+ds1/lib/utility.php-652-	if ($data_template_id != 0) {
cacti-1.2.15+ds1/lib/utility.php:653:		$sql_where .= ' AND dtd.data_template_id=' . $data_template_id;
cacti-1.2.15+ds1/lib/utility.php-654-	}
##############################################
cacti-1.2.15+ds1/lib/utility.php-1300-	if ($config['cacti_server_os'] == 'win32') {
cacti-1.2.15+ds1/lib/utility.php:1301:		exec('wmic os get FreePhysicalMemory', $memInfo['FreePhysicalMemory']);
cacti-1.2.15+ds1/lib/utility.php:1302:		exec('wmic os get FreeSpaceInPagingFiles', $memInfo['FreeSpaceInPagingFiles']);
cacti-1.2.15+ds1/lib/utility.php:1303:		exec('wmic os get FreeVirtualMemory', $memInfo['FreeVirtualMemory']);
cacti-1.2.15+ds1/lib/utility.php:1304:		exec('wmic os get SizeStoredInPagingFiles', $memInfo['SizeStoredInPagingFiles']);
cacti-1.2.15+ds1/lib/utility.php:1305:		exec('wmic os get TotalVirtualMemorySize', $memInfo['TotalVirtualMemorySize']);
cacti-1.2.15+ds1/lib/utility.php:1306:		exec('wmic os get TotalVisibleMemorySize', $memInfo['TotalVisibleMemorySize']);
cacti-1.2.15+ds1/lib/utility.php-1307-		if (cacti_sizeof($memInfo)) {
##############################################
cacti-1.2.15+ds1/lib/utility.php-1337-
cacti-1.2.15+ds1/lib/utility.php:1338:			exec('/usr/bin/free', $output, $exit_code);
cacti-1.2.15+ds1/lib/utility.php-1339-			if ($exit_code == 0) {
##############################################
cacti-1.2.15+ds1/lib/utility.php-1379-	$php_file = cacti_escapeshellarg($config['base_path'] . '/install/cli_check.php') . ' extensions';
cacti-1.2.15+ds1/lib/utility.php:1380:	$json = shell_exec($php . ' -q ' . $php_file);
cacti-1.2.15+ds1/lib/utility.php-1381-	$ext = @json_decode($json, true);
##############################################
cacti-1.2.15+ds1/lib/utility.php-1436-	$php_file = cacti_escapeshellarg($config['base_path'] . '/install/cli_check.php') . ' recommends';
cacti-1.2.15+ds1/lib/utility.php:1437:	$json = shell_exec($php . ' -q ' . $php_file);
cacti-1.2.15+ds1/lib/utility.php-1438-	$ext = array('web' => '', 'cli' => '');
##############################################
cacti-1.2.15+ds1/lib/utility.php-1549-	$php_file = cacti_escapeshellarg($config['base_path'] . '/install/cli_check.php') . ' optionals';
cacti-1.2.15+ds1/lib/utility.php:1550:	$json = shell_exec($php . ' -q ' . $php_file);
cacti-1.2.15+ds1/lib/utility.php-1551-	$opt = @json_decode($json, true);
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-92-
cacti-1.2.15+ds1/lib/html_tree.php:93:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/html_tree.php-94-
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-474-function get_device_leaf_class($host_id) {
cacti-1.2.15+ds1/lib/html_tree.php:475:	$status = db_fetch_cell_prepared('SELECT status FROM host WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/lib/html_tree.php-476-	switch($status) {
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-526-
cacti-1.2.15+ds1/lib/html_tree.php:527:	include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/lib/html_tree.php-528-
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-870-
cacti-1.2.15+ds1/lib/html_tree.php:871:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/html_tree.php:872:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/html_tree.php:873:	include_once($config['library_path'] . '/html_utility.php');
cacti-1.2.15+ds1/lib/html_tree.php-874-
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1338-		if (isset_request_var('graph_template_id') && get_request_var('graph_template_id') >= 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1339:			$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/lib/html_tree.php-1340-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1352-		if (isset_request_var('site_id') && get_filter_request_var('site_id') > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1353:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'h.site_id = ' . get_request_var('site_id');
cacti-1.2.15+ds1/lib/html_tree.php-1354-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1356-		if (isset_request_var('host_template_id') && get_filter_request_var('host_template_id') > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1357:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'h.host_template_id = ' . get_request_var('host_template_id');
cacti-1.2.15+ds1/lib/html_tree.php-1358-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1360-		if (isset_request_var('host_id') && get_filter_request_var('host_id') > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1361:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.host_id = ' . get_request_var('host_id');
cacti-1.2.15+ds1/lib/html_tree.php-1362-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1368-					input_validate_input_number($parts[1]);
cacti-1.2.15+ds1/lib/html_tree.php:1369:					$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.graph_template_id = ' . $parts[1];
cacti-1.2.15+ds1/lib/html_tree.php-1370-					break;
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1372-					input_validate_input_number($parts[1]);
cacti-1.2.15+ds1/lib/html_tree.php:1373:					$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.snmp_query_id = ' . $parts[1];
cacti-1.2.15+ds1/lib/html_tree.php-1374-					break;
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1377-					$dqi = db_qstr($parts[2]);
cacti-1.2.15+ds1/lib/html_tree.php:1378:					$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.snmp_query_id = ' . $parts[1] . ' AND snmp_index = ' . $dqi;
cacti-1.2.15+ds1/lib/html_tree.php-1379-					break;
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1385-		if (get_request_var('rfilter') != '') {
cacti-1.2.15+ds1/lib/html_tree.php:1386:			$sql_where .= ($sql_where != '' ? ' AND ':'') . "(gtg.title_cache RLIKE '" . get_request_var('rfilter') . "')";
cacti-1.2.15+ds1/lib/html_tree.php-1387-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1389-		if (isset_request_var('graph_template_id') && get_request_var('graph_template_id') >= 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1390:			$sql_where .= ($sql_where != '' ? ' AND ':'') . '(gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/lib/html_tree.php-1391-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1458-		if ($host_id > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1459:			$sql_where = 'gl.host_id=' . $host_id;
cacti-1.2.15+ds1/lib/html_tree.php-1460-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1462-		if ($graph_template_id != '' && $graph_template_id != '-1' && $graph_template_id != '0') {
cacti-1.2.15+ds1/lib/html_tree.php:1463:			$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . $graph_template_id . '))';
cacti-1.2.15+ds1/lib/html_tree.php-1464-		} elseif ($graph_template_id == 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1465:			$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . $graph_template_id . '))';
cacti-1.2.15+ds1/lib/html_tree.php-1466-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1505-			if ($host_id > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1506:				$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.host_id=' . $host_id;
cacti-1.2.15+ds1/lib/html_tree.php-1507-			}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1514-
cacti-1.2.15+ds1/lib/html_tree.php:1515:			$sql_where .= ($sql_where != '' ? ' AND ':'') . 'gl.graph_template_id IN (' . implode(', ', $graph_template_ids) . ')';
cacti-1.2.15+ds1/lib/html_tree.php-1516-			$graphs = get_allowed_graphs($sql_where);
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1538-		if ($host_id > 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1539:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'gl.host_id=' . $host_id;
cacti-1.2.15+ds1/lib/html_tree.php-1540-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1542-		if ($data_query_id >= 0) {
cacti-1.2.15+ds1/lib/html_tree.php:1543:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'sq.id=' . $data_query_id;
cacti-1.2.15+ds1/lib/html_tree.php-1544-		}
##############################################
cacti-1.2.15+ds1/lib/html_tree.php-1575-				/* grab a list of all graphs for this host/data query combination */
cacti-1.2.15+ds1/lib/html_tree.php:1576:				$sql_where .= ($sql_where != '' ? ' AND ':'') .
cacti-1.2.15+ds1/lib/html_tree.php-1577-					'gl.snmp_query_id=' . $data_query['id'] . ($host_id > 0 ? ' AND gl.host_id=' . $host_id:'') .
##############################################
cacti-1.2.15+ds1/lib/export.php-101-						case 'color_id':
cacti-1.2.15+ds1/lib/export.php:102:							$xml_text .= "\t\t\t<$field_name>" . db_fetch_cell_prepared('SELECT hex FROM colors WHERE id = ?', array($item[$field_name])) . "</$field_name>\n";
cacti-1.2.15+ds1/lib/export.php-103-							break;
##############################################
cacti-1.2.15+ds1/lib/export.php-454-
cacti-1.2.15+ds1/lib/export.php:455:	include_once($config['library_path'] . '/vdef.php');
cacti-1.2.15+ds1/lib/export.php-456-
##############################################
cacti-1.2.15+ds1/lib/ping.php-162-			if (substr_count(strtolower(PHP_OS), 'sun')) {
cacti-1.2.15+ds1/lib/ping.php:163:				$result = shell_exec('ping ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-164-			} elseif (substr_count(strtolower(PHP_OS), 'hpux')) {
cacti-1.2.15+ds1/lib/ping.php:165:				$result = shell_exec('ping -m ' . ceil($this->timeout/1000) . ' -n ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-166-			} elseif (substr_count(strtolower(PHP_OS), 'mac')) {
cacti-1.2.15+ds1/lib/ping.php:167:				$result = shell_exec('ping -t ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-168-			} elseif (substr_count(strtolower(PHP_OS), 'freebsd')) {
cacti-1.2.15+ds1/lib/ping.php:169:				$result = shell_exec('ping -t ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-170-			} elseif (substr_count(strtolower(PHP_OS), 'darwin')) {
cacti-1.2.15+ds1/lib/ping.php:171:				$result = shell_exec('ping -t ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-172-			} elseif (substr_count(strtolower(PHP_OS), 'bsd')) {
cacti-1.2.15+ds1/lib/ping.php:173:				$result = shell_exec('ping -w ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-174-			} elseif (substr_count(strtolower(PHP_OS), 'aix')) {
cacti-1.2.15+ds1/lib/ping.php:175:				$result = shell_exec('ping -i ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-176-			} elseif (substr_count(strtolower(PHP_OS), 'winnt')) {
cacti-1.2.15+ds1/lib/ping.php:177:				$result = shell_exec('chcp 437 && ping -w ' . $this->timeout . ' -n ' . $this->retries . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-178-			} else {
##############################################
cacti-1.2.15+ds1/lib/ping.php-183-				if (strpos($this->host['hostname'], ':') !== false) {
cacti-1.2.15+ds1/lib/ping.php:184:					$result = shell_exec('ping6 -W ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' -p ' . $pattern . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-185-				} else {
cacti-1.2.15+ds1/lib/ping.php:186:					$result = shell_exec('ping -W ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' -p ' . $pattern . ' ' . $this->host['hostname'] . ' 2>&1');
cacti-1.2.15+ds1/lib/ping.php-187-					if ((strpos($result, 'unknown host') !== false || strpos($result, 'Address family') !== false) && file_exists('/bin/ping6')) {
cacti-1.2.15+ds1/lib/ping.php:188:						$result = shell_exec('ping6 -W ' . ceil($this->timeout/1000) . ' -c ' . $this->retries . ' -p ' . $pattern . ' ' . $this->host['hostname']);
cacti-1.2.15+ds1/lib/ping.php-189-					}
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-199-
cacti-1.2.15+ds1/lib/api_aggregate.php:200:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/lib/api_aggregate.php-201-
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-355-						FROM color_template_items
cacti-1.2.15+ds1/lib/api_aggregate.php:356:						WHERE color_template_id=' . $_color_templates[$i] . '
cacti-1.2.15+ds1/lib/api_aggregate.php-357-						ORDER BY sequence
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-530-	if (isset( $items[0][$id_field])) {
cacti-1.2.15+ds1/lib/api_aggregate.php:531:		db_execute("DELETE FROM $table WHERE " . $id_field . '=' . $items[0][$id_field]);
cacti-1.2.15+ds1/lib/api_aggregate.php-532-	}
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-667-
cacti-1.2.15+ds1/lib/api_aggregate.php:668:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/lib/api_aggregate.php-669-
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-718-		 */
cacti-1.2.15+ds1/lib/api_aggregate.php:719:		$sql_where     = "WHERE gti.local_graph_id = $base" . ($base == 0 ? " AND gti.graph_template_id = $graph_template_id":'');
cacti-1.2.15+ds1/lib/api_aggregate.php-720-		$sql_id_column = ($base == 0 ? 'id': 'local_data_template_rrd_id');
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-738-				ON gti.task_item_id = dtr.id
cacti-1.2.15+ds1/lib/api_aggregate.php:739:				WHERE gti.local_graph_id = $aggregate
cacti-1.2.15+ds1/lib/api_aggregate.php-740-				AND dtr.local_data_template_rrd_id = " . $ds_id['local_data_template_rrd_id'] . "
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-748-				# accumulate the updates to avoid interfering the next loops
cacti-1.2.15+ds1/lib/api_aggregate.php:749:				$updates[] = 'UPDATE graph_templates_item SET sequence = ' . $new_seq++ . ' WHERE id = ' . $item['id'];
cacti-1.2.15+ds1/lib/api_aggregate.php-750-			}
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-780-			ON gti.task_item_id = dtr.id
cacti-1.2.15+ds1/lib/api_aggregate.php:781:			WHERE gti.local_graph_id = $aggregate
cacti-1.2.15+ds1/lib/api_aggregate.php-782-			AND dtr.local_data_id IN (" . implode(', ', $list) . ")
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-789-				ON gti.task_item_id = dtr.id
cacti-1.2.15+ds1/lib/api_aggregate.php:790:				WHERE gti.local_graph_id = $aggregate
cacti-1.2.15+ds1/lib/api_aggregate.php-791-				AND dtr.local_data_id IN (" . implode(', ', $list) . ")
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-815-				($color_id != '' ? ', color_id = ' . $color_id:'') . "
cacti-1.2.15+ds1/lib/api_aggregate.php:816:				WHERE id = " . $item['id'];
cacti-1.2.15+ds1/lib/api_aggregate.php-817-
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-826-		FROM graph_templates_item AS gti
cacti-1.2.15+ds1/lib/api_aggregate.php:827:		WHERE gti.local_graph_id = $aggregate
cacti-1.2.15+ds1/lib/api_aggregate.php-828-		AND gti.task_item_id = 0
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-837-		# accumulate the updates to avoid interfering the next loops
cacti-1.2.15+ds1/lib/api_aggregate.php:838:		$updates[] = 'UPDATE graph_templates_item SET sequence = ' . $new_seq++ . ' WHERE id = ' . $item['id'];
cacti-1.2.15+ds1/lib/api_aggregate.php-839-	}
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-930-
cacti-1.2.15+ds1/lib/api_aggregate.php:931:		$template_data                   = db_fetch_row_prepared('SELECT * FROM aggregate_graphs WHERE id = ?', array($id));
cacti-1.2.15+ds1/lib/api_aggregate.php-932-		$attribs['graph_template_id']    = $template_data['graph_template_id'];
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-939-		$attribs['reorder']              = $template_data['order_type'];
cacti-1.2.15+ds1/lib/api_aggregate.php:940:		$attribs['item_no']              = db_fetch_cell_prepared('SELECT COUNT(*) FROM aggregate_graphs_graph_item WHERE aggregate_graph_id = ?', array($id));
cacti-1.2.15+ds1/lib/api_aggregate.php-941-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-1069-
cacti-1.2.15+ds1/lib/api_aggregate.php:1070:	include_once($config['base_path'] . '/lib/api_aggregate.php');
cacti-1.2.15+ds1/lib/api_aggregate.php-1071-
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-1630-	 */
cacti-1.2.15+ds1/lib/api_aggregate.php:1631:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/api_aggregate.php-1632-
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-1640-	if ($_graph_id == 0) {
cacti-1.2.15+ds1/lib/api_aggregate.php:1641:		$item_list_where = "gti.local_graph_id=0 AND graph_template_id=$_graph_template_id ";
cacti-1.2.15+ds1/lib/api_aggregate.php-1642-	}
##############################################
cacti-1.2.15+ds1/lib/api_aggregate.php-1644-	if ($_graph_template_id == 0) {
cacti-1.2.15+ds1/lib/api_aggregate.php:1645:		$item_list_where = "gti.local_graph_id=$_graph_id ";
cacti-1.2.15+ds1/lib/api_aggregate.php-1646-	}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-69-				if (file_exists($config['base_path'] . '/plugins/' . $hdata['name'] . '/' . $hdata['file'])) {
cacti-1.2.15+ds1/lib/plugins.php:70:					include_once($config['base_path'] . '/plugins/' . $hdata['name'] . '/' . $hdata['file']);
cacti-1.2.15+ds1/lib/plugins.php-71-				}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-109-				if (file_exists($config['base_path'] . '/plugins/' . $hdata['name'] . '/' . $hdata['file'])) {
cacti-1.2.15+ds1/lib/plugins.php:110:					include_once($config['base_path'] . '/plugins/' . $hdata['name'] . '/' . $hdata['file']);
cacti-1.2.15+ds1/lib/plugins.php-111-				}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-380-
cacti-1.2.15+ds1/lib/plugins.php:381:	include_once($config['library_path'] . '/database.php');
cacti-1.2.15+ds1/lib/plugins.php-382-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-392-		$c = 0;
cacti-1.2.15+ds1/lib/plugins.php:393:		$sql = 'CREATE TABLE `' . $table . "` (\n";
cacti-1.2.15+ds1/lib/plugins.php-394-		foreach ($data['columns'] as $column) {
##############################################
cacti-1.2.15+ds1/lib/plugins.php-399-
cacti-1.2.15+ds1/lib/plugins.php:400:				$sql .= '`' . $column['name'] . '`';
cacti-1.2.15+ds1/lib/plugins.php-401-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-434-		if (isset($data['primary'])) {
cacti-1.2.15+ds1/lib/plugins.php:435:			$sql .= ",\n PRIMARY KEY (`" . $data['primary'] . '`)';
cacti-1.2.15+ds1/lib/plugins.php-436-		}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-440-				if (isset($key['name'])) {
cacti-1.2.15+ds1/lib/plugins.php:441:					$sql .= ",\n INDEX `" . $key['name'] . '` (' . db_format_index_create($key['columns']) . ')';
cacti-1.2.15+ds1/lib/plugins.php-442-				}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-448-				if (isset($key['name'])) {
cacti-1.2.15+ds1/lib/plugins.php:449:					$sql .= ",\n UNIQUE INDEX `" . $key['name'] . '` (' . db_format_index_create($key['columns']) . ')';
cacti-1.2.15+ds1/lib/plugins.php-450-				}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-485-		foreach ($tables as $table) {
cacti-1.2.15+ds1/lib/plugins.php:486:			db_execute('DROP TABLE IF EXISTS `' . $table['table'] . '`;');
cacti-1.2.15+ds1/lib/plugins.php-487-		}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-502-		foreach ($columns as $column) {
cacti-1.2.15+ds1/lib/plugins.php:503:			db_execute('ALTER TABLE `' . $column['table'] . '` DROP `' . $column['column'] . '`');
cacti-1.2.15+ds1/lib/plugins.php-504-		}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-518-
cacti-1.2.15+ds1/lib/plugins.php:519:	include_once($config['library_path'] . '/database.php');
cacti-1.2.15+ds1/lib/plugins.php-520-
cacti-1.2.15+ds1/lib/plugins.php:521:	$result = db_fetch_assoc('SHOW COLUMNS FROM `' . $table . '`');
cacti-1.2.15+ds1/lib/plugins.php-522-	$columns = array();
##############################################
cacti-1.2.15+ds1/lib/plugins.php-529-	if (isset($column['name']) && !in_array($column['name'], $columns)) {
cacti-1.2.15+ds1/lib/plugins.php:530:		$sql = 'ALTER TABLE `' . $table . '` ADD `' . $column['name'] . '`';
cacti-1.2.15+ds1/lib/plugins.php-531-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-611-
cacti-1.2.15+ds1/lib/plugins.php:612:	include_once($config['base_path'] . "/plugins/$plugin/setup.php");
cacti-1.2.15+ds1/lib/plugins.php-613-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-680-	if (file_exists($config['base_path'] . "/plugins/$plugin/setup.php")) {
cacti-1.2.15+ds1/lib/plugins.php:681:		include_once($config['base_path'] . "/plugins/$plugin/setup.php");
cacti-1.2.15+ds1/lib/plugins.php-682-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-712-	if (file_exists($config['base_path'] . "/plugins/$plugin/setup.php")) {
cacti-1.2.15+ds1/lib/plugins.php:713:		include_once($config['base_path'] . "/plugins/$plugin/setup.php");
cacti-1.2.15+ds1/lib/plugins.php-714-
##############################################
cacti-1.2.15+ds1/lib/plugins.php-785-		/* update the above plugin to the prior temp id */
cacti-1.2.15+ds1/lib/plugins.php:786:		db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($temp_id, $prior_id));
cacti-1.2.15+ds1/lib/plugins.php:787:		db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($prior_id, $id));
cacti-1.2.15+ds1/lib/plugins.php:788:		db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($id, $temp_id));
cacti-1.2.15+ds1/lib/plugins.php-789-	}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-792-function api_plugin_movedown($plugin) {
cacti-1.2.15+ds1/lib/plugins.php:793:	$id      = db_fetch_cell_prepared('SELECT id FROM plugin_config WHERE directory = ?', array($plugin));
cacti-1.2.15+ds1/lib/plugins.php-794-	$temp_id = db_fetch_cell('SELECT MAX(id) FROM plugin_config')+1;
##############################################
cacti-1.2.15+ds1/lib/plugins.php-797-	/* update the above plugin to the prior temp id */
cacti-1.2.15+ds1/lib/plugins.php:798:	db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($temp_id, $next_id));
cacti-1.2.15+ds1/lib/plugins.php:799:	db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($next_id, $id));
cacti-1.2.15+ds1/lib/plugins.php:800:	db_execute_prepared('UPDATE plugin_config SET id = ? WHERE id = ?', array($id, $temp_id));
cacti-1.2.15+ds1/lib/plugins.php-801-}
##############################################
cacti-1.2.15+ds1/lib/plugins.php-888-	foreach($files as $tfile) {
cacti-1.2.15+ds1/lib/plugins.php:889:		$sql_where .= ($sql_where != '(' ? ' OR ':'') .
cacti-1.2.15+ds1/lib/plugins.php-890-			' (file = "' . $tfile . '" OR file LIKE "' . $tfile . ',%" OR file LIKE "%,' . $tfile . ',%" OR file LIKE "%,' . $tfile . '")';
##############################################
cacti-1.2.15+ds1/lib/import.php-27-
cacti-1.2.15+ds1/lib/import.php:28:	include_once($config['library_path'] . '/xml.php');
cacti-1.2.15+ds1/lib/import.php-29-
##############################################
cacti-1.2.15+ds1/lib/import.php-136-				'$hash_type' AS type,
cacti-1.2.15+ds1/lib/import.php:137:				`$db_id_field` AS id,
cacti-1.2.15+ds1/lib/import.php:138:				`$db_hash_field` AS hash
cacti-1.2.15+ds1/lib/import.php-139-			FROM
cacti-1.2.15+ds1/lib/import.php:140:				`$db_table`
cacti-1.2.15+ds1/lib/import.php-141-		";
##############################################
cacti-1.2.15+ds1/lib/import.php-1524-
cacti-1.2.15+ds1/lib/import.php:1525:	include_once($config['library_path'] . '/vdef.php');
cacti-1.2.15+ds1/lib/import.php-1526-
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-134-			FROM graph_tree_items
cacti-1.2.15+ds1/lib/api_tree.php:135:			WHERE id = ?', array($data['leaf_id']));
cacti-1.2.15+ds1/lib/api_tree.php-136-	}
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-361-		FROM graph_tree_items
cacti-1.2.15+ds1/lib/api_tree.php:362:		WHERE graph_tree_id = ? AND parent = ?', array($tree_id, $leaf_id));
cacti-1.2.15+ds1/lib/api_tree.php-363-
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-424-			foreach($others as $other) {
cacti-1.2.15+ds1/lib/api_tree.php:425:				db_execute_prepared('UPDATE graph_tree_items SET position = ? WHERE id = ?', array($position, $other['id']));
cacti-1.2.15+ds1/lib/api_tree.php-426-				$position++;
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-446-			foreach($others as $other) {
cacti-1.2.15+ds1/lib/api_tree.php:447:				db_execute_prepared('UPDATE graph_tree_items SET position = ? WHERE id = ?', array($position, $other['id']));
cacti-1.2.15+ds1/lib/api_tree.php-448-				$position++;
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-781-function api_tree_get_branch_ordering($leaf_id) {
cacti-1.2.15+ds1/lib/api_tree.php:782:	$leaf = db_fetch_row_prepared('SELECT sort_children_type, parent, graph_tree_id FROM graph_tree_items WHERE id = ?', array($leaf_id));
cacti-1.2.15+ds1/lib/api_tree.php-783-
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-790-			} else {
cacti-1.2.15+ds1/lib/api_tree.php:791:				return db_fetch_cell_prepared('SELECT sort_type FROM graph_tree WHERE id = ?', array($leaf['graph_tree_id']));
cacti-1.2.15+ds1/lib/api_tree.php-792-			}
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-806-function api_tree_get_branch_name($tree_id, $leaf_id) {
cacti-1.2.15+ds1/lib/api_tree.php:807:	return db_fetch_cell_prepared('SELECT title FROM graph_tree_items WHERE graph_tree_id = ? AND id = ?', array($tree_id, $leaf_id));
cacti-1.2.15+ds1/lib/api_tree.php-808-}
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-815-function api_tree_get_branch_id($tree_id, $parent, $title) {
cacti-1.2.15+ds1/lib/api_tree.php:816:	return db_fetch_cell_prepared('SELECT id FROM graph_tree_items WHERE graph_tree_id = ? AND parent = ? AND title = ?', array($tree_id, $parent, $title));
cacti-1.2.15+ds1/lib/api_tree.php-817-}
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-840-	if ($leaf_id > 0) {
cacti-1.2.15+ds1/lib/api_tree.php:841:		$pdata   = db_fetch_row_prepared('SELECT parent, graph_tree_id FROM graph_tree_items WHERE id = ?', array($leaf_id));
cacti-1.2.15+ds1/lib/api_tree.php-842-		$parent  = $pdata['parent'];
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-853-	} else {
cacti-1.2.15+ds1/lib/api_tree.php:854:		$sort_style = db_fetch_cell_prepared('SELECT sort_type FROM graph_tree WHERE id = ?', array($tree_id));
cacti-1.2.15+ds1/lib/api_tree.php-855-	}
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-883-		foreach($sort_array as $id => $element) {
cacti-1.2.15+ds1/lib/api_tree.php:884:			$sort = db_fetch_cell_prepared('SELECT sort_children_type FROM graph_tree_items WHERE id = ?', array($id));
cacti-1.2.15+ds1/lib/api_tree.php-885-			if ($sort == TREE_ORDERING_INHERIT) {
cacti-1.2.15+ds1/lib/api_tree.php:886:				$first_child = db_fetch_cell_prepared('SELECT id FROM graph_tree_items WHERE parent = ? ORDER BY position LIMIT 1', array($id));
cacti-1.2.15+ds1/lib/api_tree.php-887-				if (!empty($first_child)) {
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-892-
cacti-1.2.15+ds1/lib/api_tree.php:893:			db_execute_prepared('UPDATE graph_tree_items SET position = ? WHERE id = ?', array($sequence, $id));
cacti-1.2.15+ds1/lib/api_tree.php-894-			$sequence++;
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-925-		foreach($sort_array as $id => $element) {
cacti-1.2.15+ds1/lib/api_tree.php:926:			db_execute_prepared('UPDATE graph_tree_items SET position = ? WHERE id = ?', array($sequence, $id));
cacti-1.2.15+ds1/lib/api_tree.php-927-			$sequence++;
##############################################
cacti-1.2.15+ds1/lib/api_tree.php-958-		foreach($sort_array as $id => $element) {
cacti-1.2.15+ds1/lib/api_tree.php:959:			db_execute_prepared('UPDATE graph_tree_items SET position = ? WHERE id = ?', array($sequence, $id));
cacti-1.2.15+ds1/lib/api_tree.php-960-			$sequence++;
##############################################
cacti-1.2.15+ds1/lib/template.php-158-	/* get information about this data template */
cacti-1.2.15+ds1/lib/template.php:159:	$data_template_rrd = db_fetch_row_prepared('SELECT * FROM data_template_rrd WHERE id = ?', array($data_template_rrd_id));
cacti-1.2.15+ds1/lib/template.php-160-
##############################################
cacti-1.2.15+ds1/lib/template.php-183-	/* get information about this data template */
cacti-1.2.15+ds1/lib/template.php:184:	$data_template_data = db_fetch_row_prepared('SELECT * FROM data_template_data WHERE id = ?', array($data_template_data_id));
cacti-1.2.15+ds1/lib/template.php-185-
##############################################
cacti-1.2.15+ds1/lib/template.php-225-
cacti-1.2.15+ds1/lib/template.php:226:	$template_data = (($data_template_id == '0') ? $data : db_fetch_row_prepared('SELECT * FROM data_template_data WHERE local_data_id=0 AND data_template_id = ?', array($data_template_id)));
cacti-1.2.15+ds1/lib/template.php-227-
##############################################
cacti-1.2.15+ds1/lib/template.php-269-
cacti-1.2.15+ds1/lib/template.php:270:	$template_rrds_list = (($data_template_id == '0') ? $data_rrds_list : db_fetch_assoc_prepared('SELECT * FROM data_template_rrd WHERE local_data_id=0 AND data_template_id = ?', array($data_template_id)));
cacti-1.2.15+ds1/lib/template.php-271-
##############################################
cacti-1.2.15+ds1/lib/template.php-328-		FROM graph_templates_graph
cacti-1.2.15+ds1/lib/template.php:329:		WHERE id = ?', array($graph_template_graph_id));
cacti-1.2.15+ds1/lib/template.php-330-
##############################################
cacti-1.2.15+ds1/lib/template.php-352-					SET $field_name = ?
cacti-1.2.15+ds1/lib/template.php:353:					WHERE local_graph_template_graph_id = ?", array($graph_template_graph[$field_name], $graph_template_graph['id']));
cacti-1.2.15+ds1/lib/template.php-354-			}
##############################################
cacti-1.2.15+ds1/lib/template.php-375-		FROM graph_template_input
cacti-1.2.15+ds1/lib/template.php:376:		WHERE id = ?', array($graph_template_input_id));
cacti-1.2.15+ds1/lib/template.php-377-
##############################################
cacti-1.2.15+ds1/lib/template.php-379-		FROM graph_template_input_defs
cacti-1.2.15+ds1/lib/template.php:380:		WHERE graph_template_input_id = ?', array($graph_template_input_id));
cacti-1.2.15+ds1/lib/template.php-381-
##############################################
cacti-1.2.15+ds1/lib/template.php-400-			FROM graph_templates_item
cacti-1.2.15+ds1/lib/template.php:401:			WHERE graph_template_id=' . $graph_input['graph_template_id'] . " $sql_include_items
cacti-1.2.15+ds1/lib/template.php-402-			AND local_graph_id>0
##############################################
cacti-1.2.15+ds1/lib/template.php-412-			FROM graph_templates_item
cacti-1.2.15+ds1/lib/template.php:413:			WHERE graph_template_id=' . $graph_input['graph_template_id'] . '
cacti-1.2.15+ds1/lib/template.php-414-			AND local_graph_id>0
##############################################
cacti-1.2.15+ds1/lib/template.php-423-					SET ' . $graph_input['column_name'] . "=" . db_qstr($value[$graph_input['column_name']]) . "
cacti-1.2.15+ds1/lib/template.php:424:					WHERE local_graph_id=" . $value['local_graph_id'] . "
cacti-1.2.15+ds1/lib/template.php-425-					AND local_graph_template_item_id=$graph_template_item_id");
##############################################
cacti-1.2.15+ds1/lib/template.php-440-		FROM graph_templates_item
cacti-1.2.15+ds1/lib/template.php:441:		WHERE id = ?', array($graph_template_item_id));
cacti-1.2.15+ds1/lib/template.php-442-
##############################################
cacti-1.2.15+ds1/lib/template.php-950-	/* delete the old graph local entry */
cacti-1.2.15+ds1/lib/template.php:951:	db_execute_prepared('DELETE FROM graph_local WHERE id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/template.php:952:	db_execute_prepared('DELETE FROM graph_tree_items WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/lib/template.php-953-}
##############################################
cacti-1.2.15+ds1/lib/template.php-999-	/* delete the old graph local entry */
cacti-1.2.15+ds1/lib/template.php:1000:	db_execute_prepared('DELETE FROM data_local WHERE id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/template.php:1001:	db_execute_prepared('DELETE FROM poller_item WHERE local_data_id= ?', array($local_data_id));
cacti-1.2.15+ds1/lib/template.php-1002-}
##############################################
cacti-1.2.15+ds1/lib/template.php-1027-
cacti-1.2.15+ds1/lib/template.php:1028:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/template.php-1029-
##############################################
cacti-1.2.15+ds1/lib/template.php-1408-
cacti-1.2.15+ds1/lib/template.php:1409:								$previous_value = db_fetch_cell_prepared("SELECT `$vkey`
cacti-1.2.15+ds1/lib/template.php-1410-									FROM data_template_data
cacti-1.2.15+ds1/lib/template.php-1411-									WHERE local_data_id = ?
cacti-1.2.15+ds1/lib/template.php:1412:									AND `$vkey` = ?",
cacti-1.2.15+ds1/lib/template.php-1413-									array($previous_data_source['id'], $vvalue));
##############################################
cacti-1.2.15+ds1/lib/template.php-1439-
cacti-1.2.15+ds1/lib/template.php:1440:								$previous_value = db_fetch_cell_prepared("SELECT `$vkey`
cacti-1.2.15+ds1/lib/template.php-1441-									FROM data_template_rrd
cacti-1.2.15+ds1/lib/template.php-1442-									WHERE local_data_id = ?
cacti-1.2.15+ds1/lib/template.php:1443:									AND `$vkey` = ?",
cacti-1.2.15+ds1/lib/template.php-1444-									array($previous_data_source['id'], $vvalue));
##############################################
cacti-1.2.15+ds1/lib/template.php-1510-
cacti-1.2.15+ds1/lib/template.php:1511:											$previous_value = db_fetch_cell_prepared("SELECT `$vkey`
cacti-1.2.15+ds1/lib/template.php-1512-												FROM data_template_data
cacti-1.2.15+ds1/lib/template.php-1513-												WHERE local_data_id = ?
cacti-1.2.15+ds1/lib/template.php:1514:												AND `$vkey` = ?",
cacti-1.2.15+ds1/lib/template.php-1515-												array($previous_data_source['id'], $vvalue));
##############################################
cacti-1.2.15+ds1/lib/template.php-1541-
cacti-1.2.15+ds1/lib/template.php:1542:											$previous_value = db_fetch_cell_prepared("SELECT `$vkey`
cacti-1.2.15+ds1/lib/template.php-1543-												FROM data_template_rrd
cacti-1.2.15+ds1/lib/template.php-1544-												WHERE local_data_id = ?
cacti-1.2.15+ds1/lib/template.php:1545:												AND `$vkey` = ?",
cacti-1.2.15+ds1/lib/template.php-1546-												array($previous_data_source['id'], $vvalue));
##############################################
cacti-1.2.15+ds1/lib/boost.php-244-		/* include poller processing routinges */
cacti-1.2.15+ds1/lib/boost.php:245:		include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/boost.php-246-
##############################################
cacti-1.2.15+ds1/lib/boost.php-302-	/* include poller processing routinges */
cacti-1.2.15+ds1/lib/boost.php:303:	include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/boost.php-304-
##############################################
cacti-1.2.15+ds1/lib/boost.php-612-
cacti-1.2.15+ds1/lib/boost.php:613:	include_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/lib/boost.php-614-
##############################################
cacti-1.2.15+ds1/lib/boost.php-652-					FROM ' . $table['name'] . "
cacti-1.2.15+ds1/lib/boost.php:653:					WHERE local_data_id = $local_data_id) ";
cacti-1.2.15+ds1/lib/boost.php-654-			}
##############################################
cacti-1.2.15+ds1/lib/boost.php-666-		FROM poller_output_boost
cacti-1.2.15+ds1/lib/boost.php:667:		WHERE local_data_id = $local_data_id
cacti-1.2.15+ds1/lib/boost.php-668-		AND time < FROM_UNIXTIME($timestamp))";
##############################################
cacti-1.2.15+ds1/lib/boost.php-1031-	 */
cacti-1.2.15+ds1/lib/boost.php:1032:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/boost.php-1033-
##############################################
cacti-1.2.15+ds1/lib/boost.php-1105-			} elseif (strpos($data_source['rrd_maximum'], '|query_') !== false) {
cacti-1.2.15+ds1/lib/boost.php:1106:				$data_local = db_fetch_row_prepared('SELECT * FROM data_local WHERE id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/boost.php-1107-
##############################################
cacti-1.2.15+ds1/lib/boost.php-1204-	if ($file_exists == false) {
cacti-1.2.15+ds1/lib/boost.php:1205:		$ds_exists = db_fetch_cell_prepared('SELECT id FROM data_local WHERE id = ?', array($local_data_id));
cacti-1.2.15+ds1/lib/boost.php-1206-
##############################################
cacti-1.2.15+ds1/lib/boost.php-1234-	if (read_config_option('boost_rrd_update_enable') == 'on') {
cacti-1.2.15+ds1/lib/boost.php:1235:		include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/lib/boost.php-1236-
##############################################
cacti-1.2.15+ds1/lib/timespan_settings.php-31-
cacti-1.2.15+ds1/lib/timespan_settings.php:32:include_once($config['base_path'] . '/lib/time.php');
cacti-1.2.15+ds1/lib/timespan_settings.php-33-
##############################################
cacti-1.2.15+ds1/lib/api_device.php-46-	if ($poller_id == 1) {
cacti-1.2.15+ds1/lib/api_device.php:47:		db_execute_prepared('DELETE FROM host WHERE id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php-48-	} else {
cacti-1.2.15+ds1/lib/api_device.php:49:		db_execute_prepared('UPDATE host SET deleted = "on" WHERE id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php-50-	}
cacti-1.2.15+ds1/lib/api_device.php-51-
cacti-1.2.15+ds1/lib/api_device.php:52:	db_execute_prepared('DELETE FROM host_graph       WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:53:	db_execute_prepared('DELETE FROM host_snmp_query  WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:54:	db_execute_prepared('DELETE FROM host_snmp_cache  WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:55:	db_execute_prepared('DELETE FROM poller_item      WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:56:	db_execute_prepared('DELETE FROM poller_reindex   WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:57:	db_execute_prepared('DELETE FROM graph_tree_items WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:58:	db_execute_prepared('DELETE FROM reports_items    WHERE host_id = ?', array($device_id . ':%'));
cacti-1.2.15+ds1/lib/api_device.php-59-	db_execute_prepared('DELETE FROM poller_command   WHERE command LIKE ?', array($device_id . ':%'));
##############################################
cacti-1.2.15+ds1/lib/api_device.php-124-		foreach($devices as $d) {
cacti-1.2.15+ds1/lib/api_device.php:125:			db_execute_prepared('DELETE FROM host             WHERE      id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:126:			db_execute_prepared('DELETE FROM host_graph       WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:127:			db_execute_prepared('DELETE FROM host_snmp_query  WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:128:			db_execute_prepared('DELETE FROM host_snmp_cache  WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:129:			db_execute_prepared('DELETE FROM poller_item      WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:130:			db_execute_prepared('DELETE FROM poller_reindex   WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:131:			db_execute_prepared('DELETE FROM graph_tree_items WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:132:			db_execute_prepared('DELETE FROM reports_items    WHERE host_id = ?', array($d['id'] . ':%'));
cacti-1.2.15+ds1/lib/api_device.php-133-			db_execute_prepared('DELETE FROM poller_command   WHERE command LIKE ?', array($d['id'] . ':%'));
cacti-1.2.15+ds1/lib/api_device.php:134:			db_execute_prepared('DELETE FROM data_local       WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php:135:			db_execute_prepared('DELETE FROM graph_local      WHERE host_id = ?', array($d['id']));
cacti-1.2.15+ds1/lib/api_device.php-136-
##############################################
cacti-1.2.15+ds1/lib/api_device.php-179-			/* poller commands go one at a time due to trashy logic */
cacti-1.2.15+ds1/lib/api_device.php:180:			db_execute_prepared('DELETE FROM poller_item    WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php:181:			db_execute_prepared('DELETE FROM poller_reindex WHERE host_id = ?', array($device_id));
cacti-1.2.15+ds1/lib/api_device.php-182-			db_execute_prepared('DELETE FROM poller_command WHERE command LIKE ?', array($device_id . ':%'));
##############################################
cacti-1.2.15+ds1/lib/api_device.php-653-
cacti-1.2.15+ds1/lib/api_device.php:654:	include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/lib/api_device.php:655:	include_once($config['base_path'] . '/lib/variables.php');
cacti-1.2.15+ds1/lib/api_device.php:656:	include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/lib/api_device.php-657-
##############################################
cacti-1.2.15+ds1/lib/api_device.php-853-	if ($save['id'] > 0) {
cacti-1.2.15+ds1/lib/api_device.php:854:		$device = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($save['id']));
cacti-1.2.15+ds1/lib/api_device.php-855-
##############################################
cacti-1.2.15+ds1/lib/api_device.php-1014-	if ($host_ids != '') {
cacti-1.2.15+ds1/lib/api_device.php:1015:		$status_where .= ' AND host.id IN(' . $host_ids . ')';
cacti-1.2.15+ds1/lib/api_device.php-1016-	}
##############################################
cacti-1.2.15+ds1/lib/html_graph.php-139-
cacti-1.2.15+ds1/lib/html_graph.php:140:function html_graph_preview_filter($page, $action, $devices_where = '', $templates_where = '') {
cacti-1.2.15+ds1/lib/html_graph.php-141-	global $graphs_per_page, $realtime_window, $realtime_refresh, $graph_timeshifts, $graph_timespans, $config;
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-54-
cacti-1.2.15+ds1/lib/api_automation_tools.php:55:		$sql_where = 'WHERE ht.id IN (' . implode(',', $hostTemplateIds) . ')';
cacti-1.2.15+ds1/lib/api_automation_tools.php-56-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-104-
cacti-1.2.15+ds1/lib/api_automation_tools.php:105:		$sql_where = 'WHERE ht.id IN (' . implode(',', $hostTemplateIds) . ')';
cacti-1.2.15+ds1/lib/api_automation_tools.php-106-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-175-	if ($snmp_query_id != '') {
cacti-1.2.15+ds1/lib/api_automation_tools.php:176:		$sql_where = " AND snmp_query_id=$snmp_query_id";
cacti-1.2.15+ds1/lib/api_automation_tools.php-177-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-182-		FROM host_snmp_cache
cacti-1.2.15+ds1/lib/api_automation_tools.php:183:		WHERE host_id = ' . $hostId . "
cacti-1.2.15+ds1/lib/api_automation_tools.php-184-		$sql_where
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-199-	if ($snmp_query_id != '') {
cacti-1.2.15+ds1/lib/api_automation_tools.php:200:		$sql_where = " AND snmp_query_id=$snmp_query_id";
cacti-1.2.15+ds1/lib/api_automation_tools.php-201-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-206-		FROM host_snmp_cache
cacti-1.2.15+ds1/lib/api_automation_tools.php:207:		WHERE host_id=' . $hostId . "
cacti-1.2.15+ds1/lib/api_automation_tools.php-208-		AND field_name='" . $field . "'
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-281-
cacti-1.2.15+ds1/lib/api_automation_tools.php:282:		$sql_where = 'WHERE htg.host_template_id IN (' . implode(',', $host_template_ids) . ')';
cacti-1.2.15+ds1/lib/api_automation_tools.php-283-	} else {
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-547-							FROM graph_templates_graph AS gtg
cacti-1.2.15+ds1/lib/api_automation_tools.php:548:							WHERE gtg.local_graph_id = ?', array($node['local_graph_id']));
cacti-1.2.15+ds1/lib/api_automation_tools.php-549-
##############################################
cacti-1.2.15+ds1/lib/api_automation_tools.php-564-
cacti-1.2.15+ds1/lib/api_automation_tools.php:565:						$name = db_fetch_cell_prepared('SELECT hostname FROM host WHERE id = ?', array($node['host_id']));
cacti-1.2.15+ds1/lib/api_automation_tools.php-566-
##############################################
cacti-1.2.15+ds1/lib/poller.php-32-		if ($config['cacti_server_os'] == 'unix') {
cacti-1.2.15+ds1/lib/poller.php:33:			$fp = popen($command, 'r');
cacti-1.2.15+ds1/lib/poller.php-34-		} else {
cacti-1.2.15+ds1/lib/poller.php:35:			$fp = popen($command, 'rb');
cacti-1.2.15+ds1/lib/poller.php-36-		}
##############################################
cacti-1.2.15+ds1/lib/poller.php-47-	} else {
cacti-1.2.15+ds1/lib/poller.php:48:		$output = `$command`;
cacti-1.2.15+ds1/lib/poller.php-49-	}
##############################################
cacti-1.2.15+ds1/lib/poller.php-92-			if ($config['cacti_server_os'] == 'unix')  {
cacti-1.2.15+ds1/lib/poller.php:93:				$fp = popen($command, 'r');
cacti-1.2.15+ds1/lib/poller.php-94-			} else {
cacti-1.2.15+ds1/lib/poller.php:95:				$fp = popen($command, 'rb');
cacti-1.2.15+ds1/lib/poller.php-96-			}
##############################################
cacti-1.2.15+ds1/lib/poller.php-107-		} else {
cacti-1.2.15+ds1/lib/poller.php:108:			$output = `$command`;
cacti-1.2.15+ds1/lib/poller.php-109-		}
##############################################
cacti-1.2.15+ds1/lib/poller.php-131-			if ($redirect_args == '') {
cacti-1.2.15+ds1/lib/poller.php:132:				pclose(popen('start "Cactiplus" /I ' . $filename . ' ' . $args, 'r'));
cacti-1.2.15+ds1/lib/poller.php-133-			} else {
cacti-1.2.15+ds1/lib/poller.php:134:				pclose(popen('start "Cactiplus" /I ' . $filename . ' ' . $args . ' ' . $redirect_args, 'r'));
cacti-1.2.15+ds1/lib/poller.php-135-			}
cacti-1.2.15+ds1/lib/poller.php-136-		} elseif ($redirect_args == '') {
cacti-1.2.15+ds1/lib/poller.php:137:			exec($filename . ' ' . $args . ' > /dev/null 2>&1 &');
cacti-1.2.15+ds1/lib/poller.php-138-		} else {
cacti-1.2.15+ds1/lib/poller.php:139:			exec($filename . ' ' . $args . ' ' . $redirect_args . ' &');
cacti-1.2.15+ds1/lib/poller.php-140-		}
##############################################
cacti-1.2.15+ds1/lib/poller.php-142-		if ($redirect_args == '') {
cacti-1.2.15+ds1/lib/poller.php:143:			exec($filename . ' ' . $args . ' > /dev/null 2>&1 &');
cacti-1.2.15+ds1/lib/poller.php-144-		} else {
cacti-1.2.15+ds1/lib/poller.php:145:			exec($filename . ' ' . $args . ' ' . $redirect_args . ' &');
cacti-1.2.15+ds1/lib/poller.php-146-		}
##############################################
cacti-1.2.15+ds1/lib/poller.php-165-	if ($config['cacti_server_os'] != 'win32') {
cacti-1.2.15+ds1/lib/poller.php:166:		system("test -f $filename", $rval);
cacti-1.2.15+ds1/lib/poller.php-167-		return ($rval == 0);
##############################################
cacti-1.2.15+ds1/lib/poller.php-179-
cacti-1.2.15+ds1/lib/poller.php:180:	include_once($config['library_path'] . '/data_query.php');
cacti-1.2.15+ds1/lib/poller.php:181:	include_once($config['library_path'] . '/snmp.php');
cacti-1.2.15+ds1/lib/poller.php-182-
##############################################
cacti-1.2.15+ds1/lib/poller.php-385-
cacti-1.2.15+ds1/lib/poller.php:386:	include_once($config['library_path'] . '/rrd.php');
cacti-1.2.15+ds1/lib/poller.php-387-
##############################################
cacti-1.2.15+ds1/lib/poller.php-486-									ON dtr.data_input_field_id=dif.id
cacti-1.2.15+ds1/lib/poller.php:487:									WHERE dtr.local_data_id = ?', array($item['local_data_id'])),
cacti-1.2.15+ds1/lib/poller.php-488-								'data_name', 'data_source_name'
##############################################
cacti-1.2.15+ds1/lib/poller.php-599-
cacti-1.2.15+ds1/lib/poller.php:600:	$pollers = db_fetch_cell('SELECT COUNT(*) FROM poller WHERE disabled=""', '', true, $conn);
cacti-1.2.15+ds1/lib/poller.php-601-
##############################################
cacti-1.2.15+ds1/lib/poller.php-785-			$curr_md5 = md5_file($path);
cacti-1.2.15+ds1/lib/poller.php:786:			$last_md5 = db_fetch_cell_prepared('SELECT md5sum FROM poller_resource_cache WHERE path = ?', array($spath));
cacti-1.2.15+ds1/lib/poller.php-787-
##############################################
cacti-1.2.15+ds1/lib/poller.php-951-								if (file_put_contents($tmpfile, $contents) !== false) {
cacti-1.2.15+ds1/lib/poller.php:952:									$output = system($php_path . ' -l ' . $tmpfile, $exit);
cacti-1.2.15+ds1/lib/poller.php-953-
##############################################
cacti-1.2.15+ds1/lib/poller.php-1542-	if ($poller_id > 1) {
cacti-1.2.15+ds1/lib/poller.php:1543:		$sql_where  = 'WHERE host_id = ' . $device_id . ' AND data_query_id = ' . $data_query_id;
cacti-1.2.15+ds1/lib/poller.php-1544-
##############################################
cacti-1.2.15+ds1/lib/poller.php-1564-	$sql_where1  = '';
cacti-1.2.15+ds1/lib/poller.php:1565:	$sql_where  .= $device_id > 0 ? 'WHERE host_id = ' . $device_id:'';
cacti-1.2.15+ds1/lib/poller.php-1566-	$sql_where1 .= $device_id > 0 ? ' AND host_id = ' . $device_id:'';
##############################################
cacti-1.2.15+ds1/lib/poller.php-1568-	if ($data_query_id > 0) {
cacti-1.2.15+ds1/lib/poller.php:1569:		$sql_where .= ($sql_where != '' ? ' AND':'WHERE ') . ' snmp_query_id = ' . $data_query_id;
cacti-1.2.15+ds1/lib/poller.php-1570-		$sql_where1 .= ' AND snmp_query_id = ' . $data_query_id;
##############################################
cacti-1.2.15+ds1/lib/poller.php-1755-			if ($first) {
cacti-1.2.15+ds1/lib/poller.php:1756:				$prefix .= '(`' . implode('`,`', array_keys($r)) . '`) VALUES ';
cacti-1.2.15+ds1/lib/poller.php-1757-				$first = false;
##############################################
cacti-1.2.15+ds1/lib/html_form_template.php-69-			}
cacti-1.2.15+ds1/lib/html_form_template.php:70:		} elseif ((!empty($snmp_query_graph_id)) && (cacti_sizeof(db_fetch_assoc_prepared('SELECT id FROM snmp_query_graph_sv WHERE snmp_query_graph_id = ? AND field_name = ?', array($snmp_query_graph_id, $field_name))) > 0)) {
cacti-1.2.15+ds1/lib/html_form_template.php-71-			if ($include_hidden_fields == true) {
##############################################
cacti-1.2.15+ds1/lib/html_form_template.php-306-			}
cacti-1.2.15+ds1/lib/html_form_template.php:307:		} elseif ((!empty($snmp_query_graph_id)) && (cacti_sizeof(db_fetch_assoc_prepared('SELECT id FROM snmp_query_graph_rrd_sv WHERE snmp_query_graph_id = ? AND data_template_id = ? AND field_name = ?', array($snmp_query_graph_id, $data_template_id, $field_name))) > 0)) {
cacti-1.2.15+ds1/lib/html_form_template.php-308-			if ($include_hidden_fields == true) {
##############################################
cacti-1.2.15+ds1/lib/html_form_template.php-415-					}
cacti-1.2.15+ds1/lib/html_form_template.php:416:				} elseif ((!empty($snmp_query_graph_id)) && (cacti_sizeof(db_fetch_assoc_prepared('SELECT id FROM snmp_query_graph_rrd_sv WHERE snmp_query_graph_id = ? AND data_template_id = ? AND field_name = ?', array($snmp_query_graph_id, $data_template_id, $field_name))) > 0)) {
cacti-1.2.15+ds1/lib/html_form_template.php-417-					if ($include_hidden_fields == true) {
##############################################
cacti-1.2.15+ds1/lib/html_form_template.php-442-							FROM data_input_fields
cacti-1.2.15+ds1/lib/html_form_template.php:443:							WHERE data_input_id=" . $data_input_id . "
cacti-1.2.15+ds1/lib/html_form_template.php-444-							AND input_output = 'out'
##############################################
cacti-1.2.15+ds1/lib/vdef.php-30-
cacti-1.2.15+ds1/lib/vdef.php:31:	$vdef_item = db_fetch_row_prepared('SELECT type, value FROM vdef_items WHERE id = ?', array($vdef_item_id));
cacti-1.2.15+ds1/lib/vdef.php-32-	$current_vdef_value = $vdef_item['value'];
##############################################
cacti-1.2.15+ds1/lib/vdef.php-45-function get_vdef($vdef_id, $display = false) {
cacti-1.2.15+ds1/lib/vdef.php:46:	$vdef_items = db_fetch_assoc_prepared('SELECT * FROM vdef_items WHERE vdef_id = ? ORDER BY sequence', array($vdef_id));
cacti-1.2.15+ds1/lib/vdef.php-47-
##############################################
cacti-1.2.15+ds1/lib/html.php-1091-
cacti-1.2.15+ds1/lib/html.php:1092:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/lib/html.php-1093-
##############################################
cacti-1.2.15+ds1/lib/html.php-1986-
cacti-1.2.15+ds1/lib/html.php:1987:function html_host_filter($host_id = '-1', $call_back = 'applyFilter', $sql_where = '', $noany = false, $nonone = false) {
cacti-1.2.15+ds1/lib/html.php-1988-	$theme = get_selected_theme();
##############################################
cacti-1.2.15+ds1/lib/html.php-2048-
cacti-1.2.15+ds1/lib/html.php:2049:function html_site_filter($site_id = '-1', $call_back = 'applyFilter', $sql_where = '', $noany = false, $nonone = false) {
cacti-1.2.15+ds1/lib/html.php-2050-	$theme = get_selected_theme();
##############################################
cacti-1.2.15+ds1/data_templates.php-360-
cacti-1.2.15+ds1/data_templates.php:361:			$ds_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM data_template WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/data_templates.php-362-			$ds_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/data_templates.php-450-		foreach ($children as $item) {
cacti-1.2.15+ds1/data_templates.php:451:			db_execute_prepared('DELETE FROM data_template_rrd WHERE id = ?', array($item['id']));
cacti-1.2.15+ds1/data_templates.php:452:			db_execute_prepared('DELETE FROM snmp_query_graph_rrd WHERE data_template_rrd_id = ?', array($item['id']));
cacti-1.2.15+ds1/data_templates.php:453:			db_execute_prepared('UPDATE graph_templates_item SET task_item_id = 0 WHERE task_item_id = ?', array($item['id']));
cacti-1.2.15+ds1/data_templates.php-454-		}
##############################################
cacti-1.2.15+ds1/data_templates.php-703-		} else {
cacti-1.2.15+ds1/data_templates.php:704:			$struct_data_source_item['data_input_field_id']['sql'] = "SELECT id, CONCAT(data_name, ' - ', name) AS name FROM data_input_fields WHERE data_input_id=" . $template_data['data_input_id'] . " AND input_output='out' AND update_rra='on' ORDER BY data_name, name";
cacti-1.2.15+ds1/data_templates.php-705-		}
##############################################
cacti-1.2.15+ds1/data_templates.php-1012-	if (get_request_var('profile') != '-1') {
cacti-1.2.15+ds1/data_templates.php:1013:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' dsp.id=' . get_request_var('profile');
cacti-1.2.15+ds1/data_templates.php-1014-	}
##############################################
cacti-1.2.15+ds1/plugins.php-399-	if (get_request_var('filter') != '') {
cacti-1.2.15+ds1/plugins.php:400:		$sql_where = "WHERE ($table.name LIKE " . db_qstr('%' . get_request_var('filter') . '%') . ')';
cacti-1.2.15+ds1/plugins.php-401-	}
##############################################
cacti-1.2.15+ds1/plugins.php-408-		case 5:
cacti-1.2.15+ds1/plugins.php:409:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' status IN(1,4)';
cacti-1.2.15+ds1/plugins.php-410-			break;
cacti-1.2.15+ds1/plugins.php-411-		case -98:
cacti-1.2.15+ds1/plugins.php:412:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' status < 0';
cacti-1.2.15+ds1/plugins.php-413-			break;
##############################################
cacti-1.2.15+ds1/plugins.php-416-		default:
cacti-1.2.15+ds1/plugins.php:417:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' status=' . get_request_var('state');
cacti-1.2.15+ds1/plugins.php-418-			break;
##############################################
cacti-1.2.15+ds1/graph_view.php-444-
cacti-1.2.15+ds1/graph_view.php:445:	$sql_where .= ($sql_or != '' && $sql_where != '' ? ' AND ':'') . $sql_or;
cacti-1.2.15+ds1/graph_view.php-446-
cacti-1.2.15+ds1/graph_view.php-447-	if (!isempty_request_var('host_id') && get_request_var('host_id') > 0) {
cacti-1.2.15+ds1/graph_view.php:448:		$sql_where .= (empty($sql_where) ? '' : ' AND') . ' gl.host_id=' . get_request_var('host_id');
cacti-1.2.15+ds1/graph_view.php-449-	} elseif (isempty_request_var('host_id')) {
cacti-1.2.15+ds1/graph_view.php:450:		$sql_where .= (empty($sql_where) ? '' : ' AND') . ' gl.host_id=0';
cacti-1.2.15+ds1/graph_view.php-451-	}
##############################################
cacti-1.2.15+ds1/graph_view.php-453-	if (!isempty_request_var('graph_template_id') && get_request_var('graph_template_id') != '-1' && get_request_var('graph_template_id') != '0') {
cacti-1.2.15+ds1/graph_view.php:454:		$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/graph_view.php-455-	} elseif (get_request_var('graph_template_id') == '0') {
cacti-1.2.15+ds1/graph_view.php:456:		$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/graph_view.php-457-	}
##############################################
cacti-1.2.15+ds1/graph_view.php-691-	if (!isempty_request_var('host_id') && get_request_var('host_id') > 0) {
cacti-1.2.15+ds1/graph_view.php:692:		$sql_where .= ($sql_where == '' ? '' : ' AND') . ' gl.host_id=' . get_request_var('host_id');
cacti-1.2.15+ds1/graph_view.php-693-	} elseif (isempty_request_var('host_id')) {
cacti-1.2.15+ds1/graph_view.php:694:		$sql_where .= ($sql_where == '' ? '' : ' AND') . ' gl.host_id=0';
cacti-1.2.15+ds1/graph_view.php-695-	}
##############################################
cacti-1.2.15+ds1/graph_view.php-697-	if (!isempty_request_var('graph_template_id') && get_request_var('graph_template_id') != '-1' && get_request_var('graph_template_id') != '0') {
cacti-1.2.15+ds1/graph_view.php:698:		$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/graph_view.php-699-	} elseif (get_request_var('graph_template_id') == '0') {
cacti-1.2.15+ds1/graph_view.php:700:		$sql_where .= ($sql_where != '' ? ' AND ':'') . ' (gl.graph_template_id IN (' . get_request_var('graph_template_id') . '))';
cacti-1.2.15+ds1/graph_view.php-701-	}
##############################################
cacti-1.2.15+ds1/automation_templates.php-144-
cacti-1.2.15+ds1/automation_templates.php:145:			$at_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT ht.name FROM automation_templates AS at INNER JOIN host_template AS ht ON ht.id=at.host_template WHERE at.id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/automation_templates.php-146-			$at_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/remote_agent.php-25-require(__DIR__ . '/include/global.php');
cacti-1.2.15+ds1/remote_agent.php:26:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/remote_agent.php:27:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/remote_agent.php:28:include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/remote_agent.php:29:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/remote_agent.php:30:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/remote_agent.php:31:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/remote_agent.php:32:require_once($config['base_path'] . '/lib/html_form_template.php');
cacti-1.2.15+ds1/remote_agent.php:33:require_once($config['base_path'] . '/lib/ping.php');
cacti-1.2.15+ds1/remote_agent.php:34:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/remote_agent.php:35:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/remote_agent.php:36:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/remote_agent.php:37:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/remote_agent.php:38:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/remote_agent.php:39:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/remote_agent.php-40-
##############################################
cacti-1.2.15+ds1/remote_agent.php-135-	/* don't allow to run from the command line */
cacti-1.2.15+ds1/remote_agent.php:136:	$client_addr = get_client_addr();
cacti-1.2.15+ds1/remote_agent.php-137-	if ($client_addr === false) {
##############################################
cacti-1.2.15+ds1/remote_agent.php-145-
cacti-1.2.15+ds1/remote_agent.php:146:	$client_name = gethostbyaddr($client_addr);
cacti-1.2.15+ds1/remote_agent.php-147-
##############################################
cacti-1.2.15+ds1/remote_agent.php-247-	if (!empty($host_id)) {
cacti-1.2.15+ds1/remote_agent.php:248:		$host = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/remote_agent.php-249-		$session = cacti_snmp_session($host['hostname'], $host['snmp_community'], $host['snmp_version'],
##############################################
cacti-1.2.15+ds1/remote_agent.php-269-	if (!empty($host_id)) {
cacti-1.2.15+ds1/remote_agent.php:270:		$host = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($host_id));
cacti-1.2.15+ds1/remote_agent.php-271-		$session = cacti_snmp_session($host['hostname'], $host['snmp_community'], $host['snmp_version'],
##############################################
cacti-1.2.15+ds1/remote_agent.php-329-						} else {
cacti-1.2.15+ds1/remote_agent.php:330:							$host = db_fetch_row_prepared('SELECT ping_retries, max_oids FROM host WHERE hostname = ?', array($item['hostname']));
cacti-1.2.15+ds1/remote_agent.php-331-							$session = cacti_snmp_session($item['hostname'], $item['snmp_community'], $item['snmp_version'],
##############################################
cacti-1.2.15+ds1/gprint_presets.php-130-
cacti-1.2.15+ds1/gprint_presets.php:131:			$gprint_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM graph_templates_gprint WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/gprint_presets.php-132-			$gprint_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/graphs.php-137-	if ($host_id > 0) {
cacti-1.2.15+ds1/graphs.php:138:		$sql_where = ' AND data_local.host_id=' . $host_id;
cacti-1.2.15+ds1/graphs.php-139-	} else {
##############################################
cacti-1.2.15+ds1/graphs.php-527-							FROM snmp_query_graph
cacti-1.2.15+ds1/graphs.php:528:							WHERE (snmp_query_id = $dqid AND id IN ($ids))
cacti-1.2.15+ds1/graphs.php-529-							OR graph_template_id IN ($gtids) ORDER BY name";
##############################################
cacti-1.2.15+ds1/graphs.php-532-							FROM snmp_query_graph
cacti-1.2.15+ds1/graphs.php:533:							WHERE (snmp_query_id = $dqid AND id IN ($ids))
cacti-1.2.15+ds1/graphs.php-534-							ORDER BY name";
##############################################
cacti-1.2.15+ds1/graphs.php-1525-			'id' => $host_id,
cacti-1.2.15+ds1/graphs.php:1526:			'value' => db_fetch_cell_prepared('SELECT description FROM host WHERE id = ?', array($host_id)),
cacti-1.2.15+ds1/graphs.php-1527-			),
##############################################
cacti-1.2.15+ds1/graphs.php-2000-	} elseif (isempty_request_var('host_id')) {
cacti-1.2.15+ds1/graphs.php:2001:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.host_id=0';
cacti-1.2.15+ds1/graphs.php-2002-	} elseif (!isempty_request_var('host_id')) {
cacti-1.2.15+ds1/graphs.php:2003:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.host_id=' . get_request_var('host_id');
cacti-1.2.15+ds1/graphs.php-2004-	}
##############################################
cacti-1.2.15+ds1/graphs.php-2008-	} elseif (isempty_request_var('site_id')) {
cacti-1.2.15+ds1/graphs.php:2009:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' h.site_id=0';
cacti-1.2.15+ds1/graphs.php-2010-	} elseif (!isempty_request_var('site_id')) {
cacti-1.2.15+ds1/graphs.php:2011:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' h.site_id=' . get_request_var('site_id');
cacti-1.2.15+ds1/graphs.php-2012-	}
##############################################
cacti-1.2.15+ds1/graphs.php-2016-	} elseif (get_request_var('template_id') == '0') {
cacti-1.2.15+ds1/graphs.php:2017:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id = 0';
cacti-1.2.15+ds1/graphs.php-2018-	} elseif (!isempty_request_var('template_id')) {
##############################################
cacti-1.2.15+ds1/graphs.php-2021-			input_validate_input_number($parts[1]);
cacti-1.2.15+ds1/graphs.php:2022:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.graph_template_id = ' . $parts[1];
cacti-1.2.15+ds1/graphs.php-2023-		} else {
cacti-1.2.15+ds1/graphs.php-2024-			input_validate_input_number($parts[1]);
cacti-1.2.15+ds1/graphs.php:2025:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.snmp_query_graph_id = ' . $parts[1];
cacti-1.2.15+ds1/graphs.php-2026-		}
##############################################
cacti-1.2.15+ds1/graphs.php-2029-	if (get_request_var('local_graph_ids') != '') {
cacti-1.2.15+ds1/graphs.php:2030:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gl.id IN(' . get_request_var('local_graph_ids') . ')';
cacti-1.2.15+ds1/graphs.php-2031-	}
##############################################
cacti-1.2.15+ds1/graphs.php-2041-
cacti-1.2.15+ds1/graphs.php:2042:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (
cacti-1.2.15+ds1/graphs.php-2043-			gl.snmp_index = "" AND gl.snmp_query_id > 0 OR
##############################################
cacti-1.2.15+ds1/graphs.php-2056-	/* don't allow aggregates to be view here */
cacti-1.2.15+ds1/graphs.php:2057:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' ag.local_graph_id IS NULL';
cacti-1.2.15+ds1/graphs.php-2058-
cacti-1.2.15+ds1/graphs.php-2059-	/* allow plugins to modify sql_where */
cacti-1.2.15+ds1/graphs.php:2060:	$sql_where = api_plugin_hook_function('graphs_sql_where', $sql_where);
cacti-1.2.15+ds1/graphs.php-2061-
##############################################
cacti-1.2.15+ds1/rrdcleaner.php-25-include_once ('./include/auth.php');
cacti-1.2.15+ds1/rrdcleaner.php:26:include_once ($config['library_path'] . '/functions.php');
cacti-1.2.15+ds1/rrdcleaner.php-27-
##############################################
cacti-1.2.15+ds1/rrdcleaner.php-311-	} else {
cacti-1.2.15+ds1/rrdcleaner.php:312:		$sql_where .= " AND last_mod<='" . date("Y-m-d H:i:s", (time() - $secsback)) . "'";
cacti-1.2.15+ds1/rrdcleaner.php-313-	}
##############################################
cacti-1.2.15+ds1/rrdcleaner.php-446-				FROM data_source_purge_temp
cacti-1.2.15+ds1/rrdcleaner.php:447:				WHERE id = ?', array($matches[1]));
cacti-1.2.15+ds1/rrdcleaner.php-448-
##############################################
cacti-1.2.15+ds1/rrdcleaner.php-457-			/* drop from data_source_purge table */
cacti-1.2.15+ds1/rrdcleaner.php:458:			db_execute_prepared('DELETE FROM data_source_purge_temp WHERE id = ?', array($matches[1]));
cacti-1.2.15+ds1/rrdcleaner.php-459-		}
##############################################
cacti-1.2.15+ds1/utilities.php-223-			if ((file_exists(read_config_option('path_rrdtool'))) && ((function_exists('is_executable')) && (is_executable(read_config_option('path_rrdtool'))))) {
cacti-1.2.15+ds1/utilities.php:224:				exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')), $out_array);
cacti-1.2.15+ds1/utilities.php-225-			}
##############################################
cacti-1.2.15+ds1/utilities.php-261-			$out_array = array();
cacti-1.2.15+ds1/utilities.php:262:			exec(cacti_escapeshellcmd(read_config_option('path_spine')) . ' --version', $out_array);
cacti-1.2.15+ds1/utilities.php-263-			if (cacti_sizeof($out_array) > 0) {
##############################################
cacti-1.2.15+ds1/utilities.php-580-				FROM information_schema.tables
cacti-1.2.15+ds1/utilities.php:581:				WHERE table_schema = SCHEMA()', false, $local_db_cnn_id);
cacti-1.2.15+ds1/utilities.php-582-		}
##############################################
cacti-1.2.15+ds1/utilities.php-844-	if (get_request_var('result') != '-1') {
cacti-1.2.15+ds1/utilities.php:845:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' ul.result=' . get_request_var('result');
cacti-1.2.15+ds1/utilities.php-846-	}
##############################################
cacti-1.2.15+ds1/utilities.php-849-	if (get_request_var('filter') != '') {
cacti-1.2.15+ds1/utilities.php:850:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (
cacti-1.2.15+ds1/utilities.php-851-			ul.username LIKE '     . db_qstr('%' . get_request_var('filter') . '%') . '
##############################################
cacti-1.2.15+ds1/utilities.php-1846-	} elseif (get_request_var('template_id') == '0') {
cacti-1.2.15+ds1/utilities.php:1847:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' dtd.data_template_id=0';
cacti-1.2.15+ds1/utilities.php-1848-	} elseif (!isempty_request_var('template_id')) {
cacti-1.2.15+ds1/utilities.php:1849:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' dl.data_template_id=' . get_request_var('template_id');
cacti-1.2.15+ds1/utilities.php-1850-	}
##############################################
cacti-1.2.15+ds1/graph_templates.php-252-						db_execute_prepared('DELETE FROM graph_template_input_defs
cacti-1.2.15+ds1/graph_templates.php:253:							WHERE graph_template_input_id = ?', array($item['id']));
cacti-1.2.15+ds1/graph_templates.php-254-					}
##############################################
cacti-1.2.15+ds1/graph_templates.php-321-
cacti-1.2.15+ds1/graph_templates.php:322:			$graph_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM graph_templates WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/graph_templates.php-323-			$graph_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/poller_commands.php-32-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_commands.php:33:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/poller_commands.php:34:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/poller_commands.php:35:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/poller_commands.php:36:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/poller_commands.php:37:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/poller_commands.php:38:require_once($config['base_path'] . '/lib/html_form_template.php');
cacti-1.2.15+ds1/poller_commands.php:39:require_once($config['base_path'] . '/lib/ping.php');
cacti-1.2.15+ds1/poller_commands.php:40:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_commands.php:41:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller_commands.php:42:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/poller_commands.php:43:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/poller_commands.php:44:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/poller_commands.php:45:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/poller_commands.php-46-
##############################################
cacti-1.2.15+ds1/include/global.php-256-/* include base modules */
cacti-1.2.15+ds1/include/global.php:257:include_once($config['library_path'] . '/database.php');
cacti-1.2.15+ds1/include/global.php:258:include_once($config['library_path'] . '/functions.php');
cacti-1.2.15+ds1/include/global.php:259:include_once($config['include_path'] . '/global_constants.php');
cacti-1.2.15+ds1/include/global.php-260-
##############################################
cacti-1.2.15+ds1/include/global.php-497-
cacti-1.2.15+ds1/include/global.php:498:include_once($config['include_path'] . '/global_languages.php');
cacti-1.2.15+ds1/include/global.php:499:include_once($config['library_path'] . '/auth.php');
cacti-1.2.15+ds1/include/global.php:500:include_once($config['library_path'] . '/plugins.php');
cacti-1.2.15+ds1/include/global.php:501:include_once($config['include_path'] . '/plugins.php');
cacti-1.2.15+ds1/include/global.php:502:include_once($config['library_path'] . '/html_validate.php');
cacti-1.2.15+ds1/include/global.php:503:include_once($config['library_path'] . '/html_utility.php');
cacti-1.2.15+ds1/include/global.php:504:include_once($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/include/global.php:505:include_once($config['include_path'] . '/global_settings.php');
cacti-1.2.15+ds1/include/global.php:506:include_once($config['include_path'] . '/global_form.php');
cacti-1.2.15+ds1/include/global.php:507:include_once($config['library_path'] . '/html.php');
cacti-1.2.15+ds1/include/global.php:508:include_once($config['library_path'] . '/html_form.php');
cacti-1.2.15+ds1/include/global.php:509:include_once($config['library_path'] . '/html_filter.php');
cacti-1.2.15+ds1/include/global.php:510:include_once($config['library_path'] . '/variables.php');
cacti-1.2.15+ds1/include/global.php:511:include_once($config['library_path'] . '/mib_cache.php');
cacti-1.2.15+ds1/include/global.php:512:include_once($config['library_path'] . '/poller.php');
cacti-1.2.15+ds1/include/global.php:513:include_once($config['library_path'] . '/snmpagent.php');
cacti-1.2.15+ds1/include/global.php:514:include_once($config['library_path'] . '/aggregate.php');
cacti-1.2.15+ds1/include/global.php:515:include_once($config['library_path'] . '/api_automation.php');
cacti-1.2.15+ds1/include/global.php:516:include_once($config['include_path'] . '/csrf.php');
cacti-1.2.15+ds1/include/global.php-517-
##############################################
cacti-1.2.15+ds1/include/global.php-534-			if ($action == $bad && !isset($_POST['__csrf_magic'])) {
cacti-1.2.15+ds1/include/global.php:535:				cacti_log('WARNING: Attempt to use GET method for POST operations from IP ' . get_client_addr(), false, 'WEBUI');
cacti-1.2.15+ds1/include/global.php-536-				exit;
##############################################
cacti-1.2.15+ds1/include/session.php-23-function cacti_db_session_read($id) {
cacti-1.2.15+ds1/include/session.php:24:	db_execute_prepared('UPDATE IGNORE sessions SET access = ? WHERE id = ?', array(time(), $id));
cacti-1.2.15+ds1/include/session.php:25:	$session = db_fetch_cell_prepared('SELECT data FROM sessions WHERE id = ?', array($id));
cacti-1.2.15+ds1/include/session.php-26-
##############################################
cacti-1.2.15+ds1/include/session.php-39-function cacti_db_session_destroy($id) {
cacti-1.2.15+ds1/include/session.php:40:	return db_execute_prepared('DELETE FROM sessions WHERE id = ?', array($id));
cacti-1.2.15+ds1/include/session.php-41-}
##############################################
cacti-1.2.15+ds1/include/csrf.php-1-<?php
cacti-1.2.15+ds1/include/csrf.php:2:require_once($config['include_path'] .'/vendor/csrf/csrf-conf.php');
cacti-1.2.15+ds1/include/csrf.php-3-
##############################################
cacti-1.2.15+ds1/include/csrf.php-30-
cacti-1.2.15+ds1/include/csrf.php:31:include_once($config['include_path'] . '/vendor/csrf/csrf-magic.php');
##############################################
cacti-1.2.15+ds1/include/auth.php-176-		} else {
cacti-1.2.15+ds1/include/auth.php:177:			require_once($config['base_path'] . '/auth_login.php');
cacti-1.2.15+ds1/include/auth.php-178-		}
##############################################
cacti-1.2.15+ds1/include/global_languages.php-187-
cacti-1.2.15+ds1/include/global_languages.php:188:l10n_debug("require(1): Handler $l10n_handler");
cacti-1.2.15+ds1/include/global_languages.php-189-switch ($l10n_handler) {
cacti-1.2.15+ds1/include/global_languages.php-190-	case CACTI_LANGUAGE_HANDLER_OSCAROTERO:
cacti-1.2.15+ds1/include/global_languages.php:191:		//require($config['include_path'] . '/vendor/gettext/oscarotero.php');
cacti-1.2.15+ds1/include/global_languages.php:192:		require_once($config['include_path'] . '/vendor/gettext/src/autoloader.php');
cacti-1.2.15+ds1/include/global_languages.php:193:		require_once($config['include_path'] . '/vendor/cldr-to-gettext-plural-rules/src/autoloader.php');
cacti-1.2.15+ds1/include/global_languages.php-194-		break;
##############################################
cacti-1.2.15+ds1/include/global_languages.php-196-	case CACTI_LANGUAGE_HANDLER_PHPGETTEXT:
cacti-1.2.15+ds1/include/global_languages.php:197:		require_once($config['include_path'] . '/vendor/phpgettext/streams.php');
cacti-1.2.15+ds1/include/global_languages.php:198:		require_once($config['include_path'] . '/vendor/phpgettext/gettext.php');
cacti-1.2.15+ds1/include/global_languages.php-199-		break;
##############################################
cacti-1.2.15+ds1/include/global_languages.php-201-	case CACTI_LANGUAGE_HANDLER_MOTRANSLATOR:
cacti-1.2.15+ds1/include/global_languages.php:202:		require_once($config['include_path'] . '/vendor/motranslator/src/Translator.php');
cacti-1.2.15+ds1/include/global_languages.php:203:		require_once($config['include_path'] . '/vendor/motranslator/src/StringReader.php');
cacti-1.2.15+ds1/include/global_languages.php-204-		break;
##############################################
cacti-1.2.15+ds1/include/vendor/phpsnmp/mib_parser.php-410-					}else {
cacti-1.2.15+ds1/include/vendor/phpsnmp/mib_parser.php:411:						$oid = db_fetch_cell("SELECT `oid` FROM snmpagent_cache WHERE name = '" . $object['VALUE'][0] . "' LIMIT 1");
cacti-1.2.15+ds1/include/vendor/phpsnmp/mib_parser.php-412-						$oid .= "." . $object['VALUE'][1];
##############################################
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php-143-				$backup['valueretrieval'] = snmp_get_valueretrieval();
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php:144:				snmp_set_valueretrieval($this->valueretrieval);
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php-145-
##############################################
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php-161-				if (isset($backup['valueretrieval'])) {
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php:162:					snmp_set_valueretrieval($backup['valueretrieval']);
cacti-1.2.15+ds1/include/vendor/phpsnmp/classSNMP.php-163-				}
##############################################
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-129-	if (!$has_cookies && $secret) {
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php:130:		$ip = csrf_get_client_addr();
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-131-		if (!empty($ip)) {
##############################################
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-292-
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php:293:							$client_ip = csrf_get_client_addr();
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-294-							if (!empty($client_ip)) {
##############################################
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-430-
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php:431:function csrf_get_client_addr() {
cacti-1.2.15+ds1/include/vendor/csrf/csrf-magic.php-432-	$http_addr_headers = array(
##############################################
cacti-1.2.15+ds1/include/vendor/csrf/README.md-101-`csrf_startup()` function. They are described in csrf-magic.php, and you can set
cacti-1.2.15+ds1/include/vendor/csrf/README.md:102:them using the convenience `function csrf_conf($name, $value)`.
cacti-1.2.15+ds1/include/vendor/csrf/README.md-103-
##############################################
cacti-1.2.15+ds1/include/global_settings.php-1312-			'none_value' => __('No User'),
cacti-1.2.15+ds1/include/global_settings.php:1313:			'sql' => 'SELECT id AS id, username AS name FROM user_auth WHERE realm = 0 AND id NOT IN (' . $admin_account . ') ORDER BY username',
cacti-1.2.15+ds1/include/global_settings.php-1314-			'default' => '0'
##############################################
cacti-1.2.15+ds1/include/global_settings.php-1320-			'none_value' => __('No User'),
cacti-1.2.15+ds1/include/global_settings.php:1321:			'sql' => 'SELECT id AS id, username AS name FROM user_auth WHERE realm = 0 AND id NOT IN (' . $admin_account . ') ORDER BY username',
cacti-1.2.15+ds1/include/global_settings.php-1322-			'default' => '0'
##############################################
cacti-1.2.15+ds1/include/js/jquery.tablednd.js-106-                onDragClass: $(this).data('ondragclass') == undefined && "tDnD_whileDrag" || $(this).data('ondragclass'),
cacti-1.2.15+ds1/include/js/jquery.tablednd.js:107:                onDrop: $(this).data('ondrop') && new Function('table', 'row', $(this).data('ondrop')), // 'return eval("'+$(this).data('ondrop')+'");') || null,
cacti-1.2.15+ds1/include/js/jquery.tablednd.js:108:                onDragStart: $(this).data('ondragstart') && new Function('table', 'row' ,$(this).data('ondragstart')), // 'return eval("'+$(this).data('ondragstart')+'");') || null,
cacti-1.2.15+ds1/include/js/jquery.tablednd.js-109-                onDragStop: $(this).data('ondragstop') && new Function('table', 'row' ,$(this).data('ondragstop')),
##############################################
cacti-1.2.15+ds1/include/js/jquery.sparkline.js-1280-                // extract RGB values
cacti-1.2.15+ds1/include/js/jquery.sparkline.js:1281:                parse = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(color) || /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(color);
cacti-1.2.15+ds1/include/js/jquery.sparkline.js-1282-                if (parse) {
##############################################
cacti-1.2.15+ds1/automation_graph_rules.php-241-
cacti-1.2.15+ds1/automation_graph_rules.php:242:			$automation_graph_rules_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM automation_graph_rules WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/automation_graph_rules.php-243-			$automation_graph_rules_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/automation_graph_rules.php-852-	} elseif (get_request_var('status') == '-2') {
cacti-1.2.15+ds1/automation_graph_rules.php:853:		$sql_where .= ($sql_where != '' ? " and agr.enabled='on'" : "where agr.enabled='on'");
cacti-1.2.15+ds1/automation_graph_rules.php-854-	} elseif (get_request_var('status') == '-3') {
cacti-1.2.15+ds1/automation_graph_rules.php:855:		$sql_where .= ($sql_where != '' ? " and agr.enabled=''" : "where agr.enabled=''");
cacti-1.2.15+ds1/automation_graph_rules.php-856-	}
##############################################
cacti-1.2.15+ds1/automation_graph_rules.php-860-	} elseif (!isempty_request_var('snmp_query_id')) {
cacti-1.2.15+ds1/automation_graph_rules.php:861:		$sql_where .= ($sql_where != '' ? ' AND ' : ' WHERE ');
cacti-1.2.15+ds1/automation_graph_rules.php-862-		$sql_where .= 'agr.snmp_query_id=' . get_request_var('snmp_query_id');
##############################################
cacti-1.2.15+ds1/index.php-48-					if (file_exists($file)) {
cacti-1.2.15+ds1/index.php:49:						include_once($file);
cacti-1.2.15+ds1/index.php-50-					} else {
##############################################
cacti-1.2.15+ds1/scripts/ss_sql.php-16-	if ($database_password != '') {
cacti-1.2.15+ds1/scripts/ss_sql.php:17:		$result = `mysqladmin --host=$database_hostname --user=$database_username --password=$database_password status`;
cacti-1.2.15+ds1/scripts/ss_sql.php-18-	} else {
cacti-1.2.15+ds1/scripts/ss_sql.php:19:		$result = `mysqladmin --host=$database_hostname --user=$database_username status`;
cacti-1.2.15+ds1/scripts/ss_sql.php-20-	}
##############################################
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_io.php-184-		$data = "'" . json_encode($current) . "'";
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_io.php:185:		shell_exec("echo $data > $tmpdir/$tmpfile");
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_io.php-186-	}
##############################################
cacti-1.2.15+ds1/scripts/sql.php-7-if ($database_password == '') {
cacti-1.2.15+ds1/scripts/sql.php:8:	$sql = `mysqladmin -h $database_hostname -u $database_username status | awk '{print $6 }'`;
cacti-1.2.15+ds1/scripts/sql.php-9-} else {
cacti-1.2.15+ds1/scripts/sql.php:10:	$sql = `mysqladmin -h $database_hostname -u $database_username -p$database_password status | awk '{print $6 }'`;
cacti-1.2.15+ds1/scripts/sql.php-11-}
##############################################
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_bytes.php-185-		$data = "'" . json_encode($current) . "'";
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_bytes.php:186:		shell_exec("echo $data > $tmpdir/$tmpfile");
cacti-1.2.15+ds1/scripts/ss_net_snmp_disk_bytes.php-187-	}
##############################################
cacti-1.2.15+ds1/scripts/ss_cpoller.php-72-				$value = '0';
cacti-1.2.15+ds1/scripts/ss_cpoller.php:73:				$stats = explode(' ', db_fetch_cell('SELECT value FROM settings WHERE name="stats_recache_' . $index . '"'));
cacti-1.2.15+ds1/scripts/ss_cpoller.php-74-
##############################################
cacti-1.2.15+ds1/scripts/ss_cpoller.php-84-				$value = '0';
cacti-1.2.15+ds1/scripts/ss_cpoller.php:85:				$stats = explode(' ', db_fetch_cell('SELECT value FROM settings WHERE name="stats_recache_' . $index . '"'));
cacti-1.2.15+ds1/scripts/ss_cpoller.php-86-
##############################################
cacti-1.2.15+ds1/scripts/loadavg.pl-15-if ($val1 eq "5") {
cacti-1.2.15+ds1/scripts/loadavg.pl:16:        $avg = `echo "$avg" | awk '\{print \$1 \}'`;
cacti-1.2.15+ds1/scripts/loadavg.pl-17-}
##############################################
cacti-1.2.15+ds1/scripts/loadavg.pl-19-if ($val1 eq "15") {
cacti-1.2.15+ds1/scripts/loadavg.pl:20:        $avg = `echo "$avg" | awk '\{print \$2 \}'`;
cacti-1.2.15+ds1/scripts/loadavg.pl-21-}
##############################################
cacti-1.2.15+ds1/scripts/loadavg.pl-23-if ($val1 eq "30") {
cacti-1.2.15+ds1/scripts/loadavg.pl:24:        $avg = `echo "$avg" | awk '\{print \$3 \}'`;
cacti-1.2.15+ds1/scripts/loadavg.pl-25-}
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-108-		FROM aggregate_graphs
cacti-1.2.15+ds1/aggregate_graphs.php:109:		WHERE local_graph_id = ?', array($local_graph_id));
cacti-1.2.15+ds1/aggregate_graphs.php-110-
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-434-							<p>" . __('There are currently no Aggregate Templates defined for the selected Legacy Aggregates.') . "</p>
cacti-1.2.15+ds1/aggregate_graphs.php:435:							<p>" . __('In order to migrate the Aggregate Graphs below to a Template based Aggregate, first create an Aggregate Template for the Graph Template \'%s\'.', db_fetch_cell_prepared('SELECT name FROM graph_templates WHERE id = ?', array($graph_template))) . "</p>
cacti-1.2.15+ds1/aggregate_graphs.php-436-							<p>" . __('Please press \'Return\' to continue.') . "</p>
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1157-		$sql_where = '';
cacti-1.2.15+ds1/aggregate_graphs.php:1158:		$sql_where = aggregate_make_sql_where($sql_where, $filters, 'gtg.title_cache');
cacti-1.2.15+ds1/aggregate_graphs.php-1159-	}
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1161-	if (get_request_var('matching') != 'false') {
cacti-1.2.15+ds1/aggregate_graphs.php:1162:		$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . ' (agi.local_graph_id IS NOT NULL)';
cacti-1.2.15+ds1/aggregate_graphs.php-1163-	}
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1180-	if (!empty($graph_template)) {
cacti-1.2.15+ds1/aggregate_graphs.php:1181:		$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . " (gtg.graph_template_id=$graph_template)";
cacti-1.2.15+ds1/aggregate_graphs.php-1182-	}
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1184-	if (get_request_var('local_graph_ids') != '') {
cacti-1.2.15+ds1/aggregate_graphs.php:1185:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' agi.local_graph_id IN(' . get_request_var('local_graph_ids') . ')';
cacti-1.2.15+ds1/aggregate_graphs.php-1186-	}
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1194-			FROM aggregate_graphs_items
cacti-1.2.15+ds1/aggregate_graphs.php:1195:			WHERE aggregate_graph_id=$aggregate_id) AS agi
cacti-1.2.15+ds1/aggregate_graphs.php-1196-		ON gtg.local_graph_id=agi.local_graph_id
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1209-			FROM aggregate_graphs_items
cacti-1.2.15+ds1/aggregate_graphs.php:1210:			WHERE aggregate_graph_id=$aggregate_id) AS agi
cacti-1.2.15+ds1/aggregate_graphs.php-1211-		ON gtg.local_graph_id=agi.local_graph_id
##############################################
cacti-1.2.15+ds1/aggregate_graphs.php-1401-				} else {
cacti-1.2.15+ds1/aggregate_graphs.php:1402:					$sql_where .= ($termcount > 0 ? ' OR ':'') . $field . " LIKE '%" . trim($i) . "%'";
cacti-1.2.15+ds1/aggregate_graphs.php-1403-					$termcount++;
##############################################
cacti-1.2.15+ds1/automation_tree_rules.php-217-
cacti-1.2.15+ds1/automation_tree_rules.php:218:					db_execute_prepared("UPDATE automation_tree_rules SET enabled='on' WHERE id = ?", array($selected_items[$i]));
cacti-1.2.15+ds1/automation_tree_rules.php-219-				}
##############################################
cacti-1.2.15+ds1/automation_tree_rules.php-223-
cacti-1.2.15+ds1/automation_tree_rules.php:224:					db_execute_prepared("UPDATE automation_tree_rules SET enabled='' WHERE id = ?", array($selected_items[$i]));
cacti-1.2.15+ds1/automation_tree_rules.php-225-				}
##############################################
cacti-1.2.15+ds1/automation_tree_rules.php-243-
cacti-1.2.15+ds1/automation_tree_rules.php:244:			$automation_tree_rules_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM automation_tree_rules WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/automation_tree_rules.php-245-			$automation_tree_rules_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/automation_tree_rules.php-510-
cacti-1.2.15+ds1/automation_tree_rules.php:511:	include_once($config['base_path'].'/lib/html_tree.php');
cacti-1.2.15+ds1/automation_tree_rules.php-512-
##############################################
cacti-1.2.15+ds1/automation_tree_rules.php-899-	} elseif (get_request_var('status') == '-2') {
cacti-1.2.15+ds1/automation_tree_rules.php:900:		$sql_where .= ($sql_where != '' ? " AND atr.enabled='on'" : "WHERE atr.enabled='on'");
cacti-1.2.15+ds1/automation_tree_rules.php-901-	} elseif (get_request_var('status') == '-3') {
cacti-1.2.15+ds1/automation_tree_rules.php:902:		$sql_where .= ($sql_where != '' ? " AND atr.enabled=''" : "WHERE atr.enabled=''");
cacti-1.2.15+ds1/automation_tree_rules.php-903-	}
##############################################
cacti-1.2.15+ds1/graphs_new.php-201-				FROM graph_template_input_defs
cacti-1.2.15+ds1/graphs_new.php:202:				WHERE graph_template_input_id = ?', array($matches[3]));
cacti-1.2.15+ds1/graphs_new.php-203-
##############################################
cacti-1.2.15+ds1/graphs_new.php-682-								if ($sql_where != '') {
cacti-1.2.15+ds1/graphs_new.php:683:									$sql_where .= ", '" . $index['snmp_index'] . "'";
cacti-1.2.15+ds1/graphs_new.php-684-								} else {
cacti-1.2.15+ds1/graphs_new.php:685:									$sql_where .= " AND snmp_index IN('" . $index['snmp_index'] . "'";
cacti-1.2.15+ds1/graphs_new.php-686-								}
##############################################
cacti-1.2.15+ds1/graphs_new.php-728-						$sql_query_worder = $sql_query . ' FROM host_snmp_cache
cacti-1.2.15+ds1/graphs_new.php:729:							WHERE host_id=' . $host['id'] . '
cacti-1.2.15+ds1/graphs_new.php-730-							AND snmp_query_id=' . $snmp_query['id'] . "
##############################################
cacti-1.2.15+ds1/graphs_new.php-736-						$sql_query .= ' FROM host_snmp_cache
cacti-1.2.15+ds1/graphs_new.php:737:							WHERE host_id=' . $host['id'] . '
cacti-1.2.15+ds1/graphs_new.php-738-							AND snmp_query_id=' . $snmp_query['id'] . "
##############################################
cacti-1.2.15+ds1/graphs_new.php-744-							FROM host_snmp_cache
cacti-1.2.15+ds1/graphs_new.php:745:							WHERE host_id=' . $host['id'] . '
cacti-1.2.15+ds1/graphs_new.php-746-							AND snmp_query_id=' . $snmp_query['id'] . "
##############################################
cacti-1.2.15+ds1/automation_devices.php-102-				foreach($selected_items as $id) {
cacti-1.2.15+ds1/automation_devices.php:103:					$d = db_fetch_row_prepared('SELECT * FROM automation_devices WHERE id = ?', array($id));
cacti-1.2.15+ds1/automation_devices.php-104-					$d['poller_id']           = get_filter_request_var('poller_id');
##############################################
cacti-1.2.15+ds1/automation_devices.php-110-					// pull ping options from network_id
cacti-1.2.15+ds1/automation_devices.php:111:					$n = db_fetch_row_prepared('SELECT * FROM automation_networks WHERE id = ?', array($d['network_id']));
cacti-1.2.15+ds1/automation_devices.php-112-					if (cacti_sizeof($n)) {
##############################################
cacti-1.2.15+ds1/automation_devices.php-131-				foreach($selected_items as $id) {
cacti-1.2.15+ds1/automation_devices.php:132:					db_execute_prepared('DELETE FROM automation_devices WHERE id = ?', array($id));
cacti-1.2.15+ds1/automation_devices.php-133-				}
##############################################
cacti-1.2.15+ds1/automation_devices.php-152-
cacti-1.2.15+ds1/automation_devices.php:153:			$device_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT CONCAT(IF(hostname!="", hostname, "unknown"), " (", ip, ")") FROM automation_devices WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/automation_devices.php-154-			$device_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/automation_devices.php-415-	if ($network > 0) {
cacti-1.2.15+ds1/automation_devices.php:416:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'network_id=' . $network;
cacti-1.2.15+ds1/automation_devices.php-417-	}
##############################################
cacti-1.2.15+ds1/automation_devices.php-419-	if ($snmp == __('Down')) {
cacti-1.2.15+ds1/automation_devices.php:420:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'snmp=0';
cacti-1.2.15+ds1/automation_devices.php-421-	} else if ($snmp == __('Up')) {
cacti-1.2.15+ds1/automation_devices.php:422:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'snmp=1';
cacti-1.2.15+ds1/automation_devices.php-423-	}
##############################################
cacti-1.2.15+ds1/automation_devices.php-425-	if ($os != '-1' && in_array($os, $os_arr)) {
cacti-1.2.15+ds1/automation_devices.php:426:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . "os='$os'";
cacti-1.2.15+ds1/automation_devices.php-427-	}
##############################################
cacti-1.2.15+ds1/automation_devices.php-429-	if ($filter != '') {
cacti-1.2.15+ds1/automation_devices.php:430:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(hostname LIKE ' . db_qstr('%' . $filter . '%') . '
cacti-1.2.15+ds1/automation_devices.php-431-			OR ip LIKE ' . db_qstr('%' . $filter . '%') . '
##############################################
cacti-1.2.15+ds1/graph_realtime.php-176-
cacti-1.2.15+ds1/graph_realtime.php:177:	shell_exec("$command $args");
cacti-1.2.15+ds1/graph_realtime.php-178-
##############################################
cacti-1.2.15+ds1/graph_realtime.php-338-	<?php html_common_header(__('Cacti Real-time Graphing'));?>
cacti-1.2.15+ds1/graph_realtime.php:339:    <?php include($config['base_path'] . '/include/global_session.php'); ?>
cacti-1.2.15+ds1/graph_realtime.php-340-</head>
##############################################
cacti-1.2.15+ds1/poller.php-29-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller.php:31:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/poller.php:32:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller.php:33:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/poller.php:34:require_once($config['base_path'] . '/lib/dsdebug.php');
cacti-1.2.15+ds1/poller.php:35:require_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/poller.php:36:require_once($config['base_path'] . '/lib/reports.php');
cacti-1.2.15+ds1/poller.php-37-
##############################################
cacti-1.2.15+ds1/poller.php-55-				FROM poller_time
cacti-1.2.15+ds1/poller.php:56:				WHERE end_time=\'0000-00-00 00:00:00\'', true, $poller_db_cnn_id);
cacti-1.2.15+ds1/poller.php-57-
##############################################
cacti-1.2.15+ds1/poller.php-282-	$poller_runs = intval($cron_interval / $poller_interval);
cacti-1.2.15+ds1/poller.php:283:	$sql_where   = 'WHERE rrd_next_step<=0 AND poller_id = ' . $poller_id;
cacti-1.2.15+ds1/poller.php-284-
##############################################
cacti-1.2.15+ds1/poller.php-286-} else {
cacti-1.2.15+ds1/poller.php:287:	$sql_where       = 'WHERE poller_id = ' . $poller_id;
cacti-1.2.15+ds1/poller.php-288-	$poller_runs     = 1;
##############################################
cacti-1.2.15+ds1/poller.php-859-    global $config;
cacti-1.2.15+ds1/poller.php:860:    include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller.php-861-
##############################################
cacti-1.2.15+ds1/poller.php-998-    global $config;
cacti-1.2.15+ds1/poller.php:999:    include_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller.php-1000-
##############################################
cacti-1.2.15+ds1/data_source_profiles.php-261-
cacti-1.2.15+ds1/data_source_profiles.php:262:			$profile_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM data_source_profiles WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/data_source_profiles.php-263-			$profile_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/host.php-172-
cacti-1.2.15+ds1/host.php:173:	shell_exec(read_config_option('path_php_binary') . ' -q ' . $config['base_path'] . '/cli/poller_reindex_hosts.php --qid=all --id=' . get_filter_request_var('host_id'));
cacti-1.2.15+ds1/host.php-174-
##############################################
cacti-1.2.15+ds1/host.php-336-
cacti-1.2.15+ds1/host.php:337:			$host_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT description FROM host WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/host.php-338-			$host_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/host.php-1334-	if (get_request_var('location') == __('Undefined') || get_request_var('location') == '') {
cacti-1.2.15+ds1/host.php:1335:		$sql_where .= ($sql_where != '' ? ' AND':' WHERE') . ' IFNULL(host.location,"") = ""';
cacti-1.2.15+ds1/host.php-1336-	} elseif (get_request_var('location') != '-1') {
cacti-1.2.15+ds1/host.php:1337:		$sql_where .= ($sql_where != '' ? ' AND':' WHERE') . ' host.location = ' . db_qstr(get_request_var('location'));;
cacti-1.2.15+ds1/host.php-1338-	}
##############################################
cacti-1.2.15+ds1/host.php-1342-	} elseif (get_request_var('host_status') == '-2') {
cacti-1.2.15+ds1/host.php:1343:		$sql_where .= ($sql_where != '' ? " AND host.disabled='on'" : " WHERE host.disabled='on'");
cacti-1.2.15+ds1/host.php-1344-	} elseif (get_request_var('host_status') == '-3') {
cacti-1.2.15+ds1/host.php:1345:		$sql_where .= ($sql_where != '' ? " AND host.disabled=''" : " WHERE host.disabled=''");
cacti-1.2.15+ds1/host.php-1346-	} elseif (get_request_var('host_status') == '-4') {
cacti-1.2.15+ds1/host.php:1347:		$sql_where .= ($sql_where != '' ? " AND (host.status!='3' OR host.disabled='on')" : " WHERE (host.status!='3' OR host.disabled='on')");
cacti-1.2.15+ds1/host.php-1348-	} else {
cacti-1.2.15+ds1/host.php:1349:		$sql_where .= ($sql_where != '' ? ' AND (host.status=' . get_request_var('host_status') . " AND host.disabled = '')" : 'where (host.status=' . get_request_var('host_status') . " AND host.disabled = '')");
cacti-1.2.15+ds1/host.php-1350-	}
##############################################
cacti-1.2.15+ds1/host.php-1354-	} elseif (get_request_var('host_template_id') == '0') {
cacti-1.2.15+ds1/host.php:1355:		$sql_where .= ($sql_where != '' ? ' AND host.host_template_id=0' : ' WHERE host.host_template_id=0');
cacti-1.2.15+ds1/host.php-1356-	} elseif (!isempty_request_var('host_template_id')) {
cacti-1.2.15+ds1/host.php:1357:		$sql_where .= ($sql_where != '' ? ' AND host.host_template_id=' . get_request_var('host_template_id') : ' WHERE host.host_template_id=' . get_request_var('host_template_id'));
cacti-1.2.15+ds1/host.php-1358-	}
##############################################
cacti-1.2.15+ds1/host.php-1362-	} elseif (get_request_var('site_id') == '0') {
cacti-1.2.15+ds1/host.php:1363:		$sql_where .= ($sql_where != '' ? ' AND host.site_id=0' : ' WHERE host.site_id=0');
cacti-1.2.15+ds1/host.php-1364-	} elseif (!isempty_request_var('site_id')) {
cacti-1.2.15+ds1/host.php:1365:		$sql_where .= ($sql_where != '' ? ' AND host.site_id=' . get_request_var('site_id') : ' WHERE host.site_id=' . get_request_var('site_id'));
cacti-1.2.15+ds1/host.php-1366-	}
##############################################
cacti-1.2.15+ds1/host.php-1370-	} else {
cacti-1.2.15+ds1/host.php:1371:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' host.poller_id=' . get_request_var('poller_id');
cacti-1.2.15+ds1/host.php-1372-	}
cacti-1.2.15+ds1/host.php-1373-
cacti-1.2.15+ds1/host.php:1374:	$sql_where = api_plugin_hook_function('device_sql_where', $sql_where);
cacti-1.2.15+ds1/host.php-1375-
##############################################
cacti-1.2.15+ds1/poller_dsstats.php-29-require(__DIR__ . '/include/cli_check.php');
cacti-1.2.15+ds1/poller_dsstats.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/poller_dsstats.php:31:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/poller_dsstats.php:32:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/poller_dsstats.php-33-
##############################################
cacti-1.2.15+ds1/vdef.php-159-
cacti-1.2.15+ds1/vdef.php:160:	$vdef       = db_fetch_row_prepared('SELECT * FROM vdef WHERE id = ?', array($_vdef_id));
cacti-1.2.15+ds1/vdef.php:161:	$vdef_items = db_fetch_assoc_prepared('SELECT * FROM vdef_items WHERE vdef_id = ?', array($_vdef_id));
cacti-1.2.15+ds1/vdef.php-162-
##############################################
cacti-1.2.15+ds1/vdef.php-249-
cacti-1.2.15+ds1/vdef.php:250:			$vdef_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM vdef WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/vdef.php-251-			$vdef_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/links.php-145-				for ($i=0;($i<cacti_count($selected_items));$i++) {
cacti-1.2.15+ds1/links.php:146:					db_execute_prepared("UPDATE external_links SET enabled='on' WHERE id = ?", array($selected_items[$i]));
cacti-1.2.15+ds1/links.php-147-				}
##############################################
cacti-1.2.15+ds1/links.php-149-				for ($i=0;($i<cacti_count($selected_items));$i++) {
cacti-1.2.15+ds1/links.php:150:					db_execute_prepared("UPDATE external_links SET enabled='' WHERE id = ?", array($selected_items[$i]));
cacti-1.2.15+ds1/links.php-151-				}
##############################################
cacti-1.2.15+ds1/links.php-153-				for ($i=0;($i<cacti_count($selected_items));$i++) {
cacti-1.2.15+ds1/links.php:154:					db_execute_prepared('DELETE FROM external_links WHERE id = ?', array($selected_items[$i]));
cacti-1.2.15+ds1/links.php:155:					db_execute_prepared('DELETE FROM user_auth_realm WHERE realm_id = ?', array($selected_items[$i]+10000));
cacti-1.2.15+ds1/links.php:156:					db_execute_prepared('DELETE FROM user_auth_group_realm WHERE realm_id = ?', array($selected_items[$i]+10000));
cacti-1.2.15+ds1/links.php-157-				}
##############################################
cacti-1.2.15+ds1/links.php-174-
cacti-1.2.15+ds1/links.php:175:			$page_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT title FROM external_links WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/links.php-176-			$pages[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/links.php-444-function page_delete($id) {
cacti-1.2.15+ds1/links.php:445:	db_execute_prepared('DELETE FROM external_links WHERE id = ?', array($id));
cacti-1.2.15+ds1/links.php:446:	db_execute_prepared('DELETE FROM user_auth_realm WHERE realm_id = ?', array($id+10000));
cacti-1.2.15+ds1/links.php:447:	db_execute_prepared('DELETE FROM user_auth_group_realm WHERE realm_id = ?', array($id+10000));
cacti-1.2.15+ds1/links.php-448-
##############################################
cacti-1.2.15+ds1/links.php-457-		foreach ($pages as $page) {
cacti-1.2.15+ds1/links.php:458:			db_execute_prepared('UPDATE external_links SET sortorder = ? WHERE id = ?' . array($i, $page['id']));
cacti-1.2.15+ds1/links.php-459-			$i++;
##############################################
cacti-1.2.15+ds1/links.php-464-function page_move($pageid, $junk, $direction) {
cacti-1.2.15+ds1/links.php:465:	$oldorder = db_fetch_cell_prepared('SELECT sortorder FROM external_links WHERE id = ?', array($pageid));
cacti-1.2.15+ds1/links.php-466-	$neworder = $oldorder + $direction;
cacti-1.2.15+ds1/links.php:467:	$otherid  = db_fetch_cell_prepared('SELECT id FROM external_links WHERE sortorder = ?', array($neworder));
cacti-1.2.15+ds1/links.php-468-
cacti-1.2.15+ds1/links.php-469-	if (!empty($otherid)) {
cacti-1.2.15+ds1/links.php:470:		db_execute_prepared('UPDATE external_links SET sortorder = ? WHERE id = ?', array($neworder, $pageid));
cacti-1.2.15+ds1/links.php:471:		db_execute_prepared('UPDATE external_links SET sortorder = ? WHERE id = ?', array($oldorder, $otherid));
cacti-1.2.15+ds1/links.php-472-	}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-184-function user_group_disable($id) {
cacti-1.2.15+ds1/user_group_admin.php:185:	db_execute_prepared("UPDATE user_auth_group SET enabled = '' WHERE id = ?", array($id));
cacti-1.2.15+ds1/user_group_admin.php-186-
##############################################
cacti-1.2.15+ds1/user_group_admin.php-190-function user_group_enable($id) {
cacti-1.2.15+ds1/user_group_admin.php:191:	db_execute_prepared("UPDATE user_auth_group SET enabled = 'on' WHERE id = ?", array($id));
cacti-1.2.15+ds1/user_group_admin.php-192-
##############################################
cacti-1.2.15+ds1/user_group_admin.php-196-function user_group_remove($id) {
cacti-1.2.15+ds1/user_group_admin.php:197:	db_execute_prepared('DELETE FROM user_auth_group WHERE id = ?', array($id));
cacti-1.2.15+ds1/user_group_admin.php:198:	db_execute_prepared('DELETE FROM user_auth_group_members WHERE group_id = ?', array($id));
cacti-1.2.15+ds1/user_group_admin.php:199:	db_execute_prepared('DELETE FROM user_auth_group_realm WHERE group_id = ?', array($id));
cacti-1.2.15+ds1/user_group_admin.php:200:	db_execute_prepared('DELETE FROM user_auth_group_perms WHERE group_id = ?', array($id));
cacti-1.2.15+ds1/user_group_admin.php-201-}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-212-		policy_graphs, policy_trees, policy_hosts, policy_graph_templates, enabled
cacti-1.2.15+ds1/user_group_admin.php:213:		FROM user_auth_group WHERE id = ?', array($id));
cacti-1.2.15+ds1/user_group_admin.php-214-
##############################################
cacti-1.2.15+ds1/user_group_admin.php-426-			if (get_nfilter_request_var('drp_action') != '2') {
cacti-1.2.15+ds1/user_group_admin.php:427:				$group_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM user_auth_group WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/user_group_admin.php-428-			}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-653-	} else {
cacti-1.2.15+ds1/user_group_admin.php:654:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_group_members.group_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_group_admin.php-655-	}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-796-		} elseif (get_request_var('graph_template_id') == '0') {
cacti-1.2.15+ds1/user_group_admin.php:797:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id=0';
cacti-1.2.15+ds1/user_group_admin.php-798-		} elseif (!isempty_request_var('graph_template_id')) {
cacti-1.2.15+ds1/user_group_admin.php:799:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' gtg.graph_template_id=' . get_request_var('graph_template_id');
cacti-1.2.15+ds1/user_group_admin.php-800-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-804-		} else {
cacti-1.2.15+ds1/user_group_admin.php:805:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_group_perms.type = 1 AND user_auth_group_perms.group_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_group_admin.php-806-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-940-		} elseif (get_request_var('host_template_id') == '0') {
cacti-1.2.15+ds1/user_group_admin.php:941:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' host.host_template_id=0';
cacti-1.2.15+ds1/user_group_admin.php-942-		} elseif (!isempty_request_var('host_template_id')) {
cacti-1.2.15+ds1/user_group_admin.php:943:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' host.host_template_id=' . get_request_var('host_template_id');
cacti-1.2.15+ds1/user_group_admin.php-944-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-948-		} else {
cacti-1.2.15+ds1/user_group_admin.php:949:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' user_auth_group_perms.group_id=' . get_request_var('id', 0);
cacti-1.2.15+ds1/user_group_admin.php-950-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-1088-		} else {
cacti-1.2.15+ds1/user_group_admin.php:1089:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_group_perms.type = 4 AND user_auth_group_perms.group_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_group_admin.php-1090-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-1228-		} else {
cacti-1.2.15+ds1/user_group_admin.php:1229:			$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . ' (user_auth_group_perms.type = 2 AND user_auth_group_perms.group_id=' . get_request_var('id', 0) . ')';
cacti-1.2.15+ds1/user_group_admin.php-1230-		}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-1562-
cacti-1.2.15+ds1/user_group_admin.php:1563:					$form_array[$field_name]['items'][$sub_field_name]['value'] =  db_fetch_cell_prepared('SELECT value FROM settings_user_group WHERE name = ? AND group_id = ?', array($sub_field_name, get_request_var('id')));
cacti-1.2.15+ds1/user_group_admin.php-1564-				}
##############################################
cacti-1.2.15+ds1/user_group_admin.php-1569-
cacti-1.2.15+ds1/user_group_admin.php:1570:				$form_array[$field_name]['value'] = db_fetch_cell_prepared('SELECT value FROM settings_user_group WHERE name = ? AND group_id = ?', array($field_name, get_request_var('id')));
cacti-1.2.15+ds1/user_group_admin.php-1571-			}
##############################################
cacti-1.2.15+ds1/host_templates.php-131-
cacti-1.2.15+ds1/host_templates.php:132:	$host_template              = db_fetch_row_prepared('SELECT * FROM host_template WHERE id = ?', array($_host_template_id));
cacti-1.2.15+ds1/host_templates.php:133:	$host_template_graphs       = db_fetch_assoc_prepared('SELECT * FROM host_template_graph WHERE host_template_id = ?', array($_host_template_id));
cacti-1.2.15+ds1/host_templates.php:134:	$host_template_data_queries = db_fetch_assoc_prepared('SELECT * FROM host_template_snmp_query WHERE host_template_id = ?', array($_host_template_id));
cacti-1.2.15+ds1/host_templates.php-135-
##############################################
cacti-1.2.15+ds1/host_templates.php-221-				/* "undo" any device that is currently using this template */
cacti-1.2.15+ds1/host_templates.php:222:				db_execute('UPDATE host SET host_template_id = 0 WHERE deleted = "" AND ' . array_to_sql_or($selected_items, 'host_template_id'));
cacti-1.2.15+ds1/host_templates.php-223-			} elseif (get_nfilter_request_var('drp_action') == '2') { // duplicate
##############################################
cacti-1.2.15+ds1/host_templates.php-247-
cacti-1.2.15+ds1/host_templates.php:248:			$host_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM host_template WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/host_templates.php-249-			$host_array[$i] = $matches[1];
##############################################
cacti-1.2.15+ds1/aggregate_templates.php-199-			FROM aggregate_graph_templates_item
cacti-1.2.15+ds1/aggregate_templates.php:200:			WHERE aggregate_template_id = ?', array($id)),
cacti-1.2.15+ds1/aggregate_templates.php-201-		'graph_templates_item_id', array('sequence', 'color_template', 't_graph_type_id', 'graph_type_id', 't_cdef_id', 'cdef_id', 'item_skip', 'item_total')
##############################################
cacti-1.2.15+ds1/aggregate_templates.php-293-			/* ==================================================== */
cacti-1.2.15+ds1/aggregate_templates.php:294:			$aggregate_list .= '<li>' . html_escape(db_fetch_cell_prepared('SELECT name FROM aggregate_graph_templates WHERE id = ?', array($matches[1]))) . '</li>';
cacti-1.2.15+ds1/aggregate_templates.php-295-			$aggregate_array[] = $matches[1];
##############################################
cacti-1.2.15+ds1/aggregate_templates.php-622-	if (get_request_var('has_graphs') == 'true') {
cacti-1.2.15+ds1/aggregate_templates.php:623:		$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . 'graphs.graphs>0';
cacti-1.2.15+ds1/aggregate_templates.php-624-	}
##############################################
cacti-1.2.15+ds1/docs-source/Debugging.md-249-Pay attention to custom scripts. It is required, that external commands called
cacti-1.2.15+ds1/docs-source/Debugging.md:250:from there are in the `$PATH` of the cactiuser running the poller. It is
cacti-1.2.15+ds1/docs-source/Debugging.md-251-therefor recommended to provide `/full/path/to/external/command`
##############################################
cacti-1.2.15+ds1/docs-source/Script-Data-Query-Walkthrough.md-179-
cacti-1.2.15+ds1/docs-source/Script-Data-Query-Walkthrough.md:180:The values of interest are stored in `$return_arr[$i] = $arr[$i][“value”];`.
cacti-1.2.15+ds1/docs-source/Script-Data-Query-Walkthrough.md-181-The **function_reindex** gets them all.
##############################################
cacti-1.2.15+ds1/docs-source/Standards-Code-Formatting.md-26-  the function.  For example:
cacti-1.2.15+ds1/docs-source/Standards-Code-Formatting.md:27:  - `function name($params ...) {`
cacti-1.2.15+ds1/docs-source/Standards-Code-Formatting.md-28-
##############################################
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-4-
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md:5:Use the ```foreach ($array as $name => $value)``` syntax instead of ```while
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-6-(list($name, $value) = each($array))``` syntax when traversing arrays. The
##############################################
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-88-
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md:89:When including other PHP files, you should use the `$config['base_path']` to
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-90-ensure that the base path is configured properly.
##############################################
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-99-```php
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md:100:include($config['base_path'] . '/lib/database.php');
cacti-1.2.15+ds1/docs-source/Standards-PHP-Spec-Constructs.md-101-```
##############################################
cacti-1.2.15+ds1/docs-source/Standards-SQL.md-34-// Example prepared statements
cacti-1.2.15+ds1/docs-source/Standards-SQL.md:35:$hostname = db_fetch_cell_prepared('SELECT hostname FROM host WHERE id = ?', array($id));
cacti-1.2.15+ds1/docs-source/Standards-SQL.md:36:$host     = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($id));
cacti-1.2.15+ds1/docs-source/Standards-SQL.md:37:$graphs   = db_fetch_assoc('SELECT * FROM graph_local WHERE host_id = ?', array($id));
cacti-1.2.15+ds1/docs-source/Standards-SQL.md-38-
cacti-1.2.15+ds1/docs-source/Standards-SQL.md:39:db_execute_prepared('UPDATE host SET description = ? WHERE id = ?', array('Local Machines', $id));
cacti-1.2.15+ds1/docs-source/Standards-SQL.md-40-
##############################################
cacti-1.2.15+ds1/docs-source/Standards-SQL.md-42-$hostname = db_escape('myhost.com');
cacti-1.2.15+ds1/docs-source/Standards-SQL.md:43:db_execute(UPDATE host SET hostname = '$myhost' WHERE id = $id");
cacti-1.2.15+ds1/docs-source/Standards-SQL.md-44-
##############################################
cacti-1.2.15+ds1/docs-source/bin/build_html_docs.sh-86-echo "Converting files..."
cacti-1.2.15+ds1/docs-source/bin/build_html_docs.sh:87:for FILE in `find ${BASE_PATH} -name "*.md"`
cacti-1.2.15+ds1/docs-source/bin/build_html_docs.sh-88-do
##############################################
cacti-1.2.15+ds1/docs-source/bin/check_markdown_style.sh-38-# Run mdl with documentation repository configuration
cacti-1.2.15+ds1/docs-source/bin/check_markdown_style.sh:39:MDL_OUTPUT=`${MDL_PATH} -c .mdlrc ${ARGV}`
cacti-1.2.15+ds1/docs-source/bin/check_markdown_style.sh-40-MDL_RESULT=$?
##############################################
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh-23-
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh:24:	FILENAME=`basename $1`
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh:25:	LINES=`grep "${FILENAME}" README.md | wc -l`
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh-26-	if [[ ${LINES} -gt 0 ]]; then
##############################################
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh-34-else
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh:35:	LINES=`find -name \*.md ! -name README.md -exec "$0" "{}" \;`
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh:36:	COUNT=`echo "${LINES}" | grep "Not Linked:" | wc -l`
cacti-1.2.15+ds1/docs-source/bin/check_missing_link.sh-37-
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-16-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:17: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:18: require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:19: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-20-Index: cacti/cli/add_device.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-29-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:30: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:31: require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:32: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-33-Index: cacti/cli/add_graphs.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-42-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:43: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:44: require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:45: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-46-Index: cacti/cli/add_graph_template.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-55-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:56: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-57- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-68-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:69: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-70- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-81-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:82: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:83: require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-84- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-107-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:108: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:109: require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:110: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-111-Index: cacti/cli/import_template.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-120-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:121: require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:122: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:123: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-124-Index: cacti/cli/poller_data_sources_reapply_names.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-133-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:134: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:135: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:136: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-137-Index: cacti/cli/poller_graphs_reapply_names.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-146-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:147: require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-148- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-159-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:160: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:161: require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:162: require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-163-Index: cacti/cli/poller_reindex_hosts.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-172-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:173: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:174: require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:175: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-176-Index: cacti/cli/rebuild_poller_cache.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-185-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:186: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:187: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-188- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-211-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:212: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:213: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:214: require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-215-Index: cacti/cli/structure_rra_paths.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-237-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:238: require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:239: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:240: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-241-Index: cacti/cli/analyze_database.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-263-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:264: require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:265: require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-266- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-276-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:277: include_once($config['base_path'] . '/lib/spikekill.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-278- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-302-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:303: require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:304: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:305: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-306-Index: cacti/cli/audit_database.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-341-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:342: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:343: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:344: require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-345-Index: cacti/cli/add_datasource.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-354-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:355: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:356: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:357: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-358-Index: cacti/cli/convert_tables.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-380-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:381: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:382: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:383: require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-384-Index: cacti/cli/install_cacti.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-393-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:394: include_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-395- 
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-406-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:407: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:408: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:409: require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-410-Index: cacti/cli/repair_graphs.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-419-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:420: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:421: require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:422: require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-423-Index: cacti/cli/apply_automation_rules.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-432-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:433: require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:434: require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:435: require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-436-Index: cacti/cli/poller_replicate.php
##############################################
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-445-+require(__DIR__ . '/../site/include/cli_check.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch:446: require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/debian/patches/07_cli-include-path.patch-447- 
##############################################
cacti-1.2.15+ds1/debian/tests/check-all-pages-96-# CVE-2017-16660
cacti-1.2.15+ds1/debian/tests/check-all-pages:97:echo "update cacti.settings set value='/var/lib/cacti/rra/shell.php' where name='path_cactilog' ;" | mysql -ucacti -p"$database_pw" cacti
cacti-1.2.15+ds1/debian/tests/check-all-pages-98-wget --output-document="$tmpFile1" $loadSaveCookie --header 'Client-ip: <?php phpinfo();?>' http://localhost/cacti/remote_agent.php
##############################################
cacti-1.2.15+ds1/debian/tests/check-all-pages-105-# CVE-2017-16661
cacti-1.2.15+ds1/debian/tests/check-all-pages:106:echo "update cacti.settings set value='/etc/cacti.log' where name='path_cactilog' ;" | mysql -ucacti -p"$database_pw" cacti
cacti-1.2.15+ds1/debian/tests/check-all-pages-107-wget --output-document="$tmpFile1" $loadSaveCookie 'http://localhost/cacti/clog.php?rfilter=&reverse=1&refresh=60&message_type=-1&tail_lines=500&filename=passwd'
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:35:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:36:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:37:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-38-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-166-	 */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:167:	$host_name = db_fetch_cell('SELECT hostname FROM host WHERE id = ' . $host_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-168-	if (!isset($host_name)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-175-	 */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:176:	$data_query_name = db_fetch_cell('SELECT name FROM snmp_query WHERE id = ' . $data_query_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-177-	if (!isset($data_query_name)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-184-	 */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php:185:	$exists_already = db_fetch_cell("SELECT host_id FROM host_snmp_query WHERE host_id=$host_id AND snmp_query_id=$data_query_id AND reindex_method=$reindex_method");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_data_query.php-186-	if ((isset($exists_already)) &&
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:28:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:31:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:35:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:36:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-37-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-321-	if (isset($hosts[$description])) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:322:		db_execute("UPDATE host SET hostname='$ip' WHERE deleted = '' AND id=" . $hosts[$description]);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-323-		print "This host already exists in the database ($description) device-id: (" . $hosts[$description] . ")\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-344-		$id    = $addresses[$ip];
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:345:		$phost = db_fetch_row_prepared('SELECT * FROM host WHERE id = ?', array($id));
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-346-		$fail  = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-385-		if ($fail) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php:386:			db_execute("UPDATE host SET description = '$description' WHERE deleted = '' AND id = " . $addresses[$ip]);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_device.php-387-			print "ERROR: This IP already exists in the database ($ip) device-id: (" . $addresses[$ip] . ")\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:34:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:35:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:36:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-39-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-628-			FROM host_snmp_cache
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:629:			WHERE host_id=' . $host_id . '
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-630-			AND snmp_query_id=' . $dsGraph['snmpQueryId'];
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-635-				$req  .= ' AND snmp_index IN (
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php:636:					SELECT DISTINCT snmp_index FROM host_snmp_cache WHERE host_id=' . $host_id . ' AND field_name = ' . db_qstr($snmpField);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graphs.php-637-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-28-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-124-	 */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php:125:	$host_name = db_fetch_cell("SELECT hostname FROM host WHERE id = " . $host_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-126-	if (!isset($host_name)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-133-	 */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php:134:	$graph_template_name = db_fetch_cell("SELECT name FROM graph_templates WHERE id = " . $graph_template_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-135-	if (!isset($graph_template_name)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-140-	/* check, if graph template was already associated */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php:141:	$exists_already = db_fetch_cell("SELECT host_id FROM host_graph WHERE graph_template_id=$graph_template_id AND host_id=$host_id");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_graph_template.php-142-	if ((isset($exists_already)) &&
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-28-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-153-	if ($displayGraphs) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:154:		if (!isset($hostId) || ($hostId === 0) || (!db_fetch_cell("SELECT id FROM host WHERE id=$hostId"))) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-155-			print "ERROR: You must supply a valid host_id before you can list its graphs\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-175-		/* verify existing user id */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:176:		if ( db_fetch_cell("SELECT id FROM user_auth WHERE id=$userId") ) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-177-			array_push($userIds, $userId);
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-201-		case 1: /* graph */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:202:			if (!db_fetch_cell("SELECT local_graph_id FROM graph_templates_graph WHERE local_graph_id=$itemId") ) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-203-				print "ERROR: Invalid Graph item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-208-		case 2: /* tree */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:209:			if (!db_fetch_cell("SELECT id FROM graph_tree WHERE id=$itemId") ) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-210-				print "ERROR: Invalid Tree item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-215-		case 3: /* host */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:216:			if (!db_fetch_cell("SELECT id FROM host WHERE id=$itemId") ) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-217-				print "ERROR: Invalid Host item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-222-		case 4: /* graph_template */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php:223:			if (!db_fetch_cell("SELECT id FROM graph_templates WHERE id=$itemId") ) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_perms.php-224-				print "ERROR: Invalid Graph Template item id: ($itemId)\n\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php:28:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-29-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-212-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php:213:		$existsAlready = db_fetch_cell("SELECT id FROM graph_tree WHERE name = '$name'");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-214-		if ($existsAlready) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-245-				FROM graph_tree_items
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php:246:				WHERE graph_tree_id=$treeId
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-247-				AND id=$parentNode");
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-276-				FROM graph_local
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php:277:				WHERE graph_local.id=' . $graphId);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_tree.php-278-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php-52-/* Check that user exists */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php:53:$user_auth = db_fetch_row("SELECT * FROM user_auth WHERE username = '" . $template_user . "' AND realm = 0");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php-54-if (! isset($user_auth)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php-63-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php:64:$user_auth = db_fetch_row("SELECT * FROM user_auth WHERE username = '" . $new_user . "' AND realm = 0");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/copy_user.php-65-if (! isset($user_auth)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:32:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:34:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:35:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:36:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:37:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-38-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-101-}else if (is_numeric($host_id)) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:102:	$sql_where = ' WHERE id=' . $host_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-103-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-110-if (is_numeric($template)) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:111:	$sql_where .= ($sql_where != '' ? " AND host_template_id=$template": "WHERE host_template_id=$template");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-112-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-118-/* verify that the host template is accurate */
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:119:if (db_fetch_cell("SELECT id FROM host_template WHERE id=$template") > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-120-	$hosts = db_fetch_assoc("SELECT * FROM host $sql_where");
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-126-			FROM host_template_snmp_query
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:127:			WHERE host_template_id=' . $host['host_template_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-128-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-140-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php:141:		$graph_templates = db_fetch_assoc('SELECT graph_template_id FROM host_template_graph WHERE host_template_id=' . $host['host_template_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/host_update_template.php-142-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php:27:require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php-30-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php-92-		} else {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php:93:			$id = db_fetch_cell_prepared('SELECT id FROM data_source_profiles WHERE id = ?', array($profile_id));
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_template.php-94-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:27:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-30-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-90-if ($filter != '') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:91:	$sql_where = "AND (data_template_data.name_cache like '%" . $filter . "%'" .
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-92-	" OR data_template_data.local_data_id like '%" . $filter . "%'" .
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-110-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:111:	$sql_where .= " AND data_local.host_id IN ($host_str)";
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-112-} elseif ($host_id == '0') {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-114-} elseif (!empty($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php:115:	$sql_where .= ' AND data_local.host_id=' . $host_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_data_sources_reapply_names.php-116-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php:27:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-28-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-84-if ($filter != '') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php:85:	$sql_where = "AND (graph_templates_graph.title_cache LIKE '%" . $filter . "%'" .
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-86-		" OR graph_templates.name LIKE '%" . $filter . "%')";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-102-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php:103:	$sql_where .= " AND graph_local.host_id IN ($host_str)";
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-104-} elseif ($host_id == '0') {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-106-} elseif (!empty($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php:107:	$sql_where .= ' AND graph_local.host_id=' . $host_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_graphs_reapply_names.php-108-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:28:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:29:require_once($config['base_path'] . '/lib/dsstats.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:30:require_once($config['base_path'] . '/lib/dsdebug.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:31:require_once($config['base_path'] . '/lib/boost.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php:32:require_once($config['base_path'] . '/lib/rrd.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_output_empty.php-33-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:34:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:35:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:36:require_once($config['base_path'] . '/lib/sort.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-39-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-106-}else if (is_numeric($host_id) && $host_id > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:107:	$sql_where = 'WHERE host_id = ' . $host_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-108-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-117-}else if (is_numeric($query_id) && $query_id > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:118:	$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . ' snmp_query_id=' . $query_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-119-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-126-if ($host_descr != '') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php:127:	$sql_where .= ($sql_where != '' ? ' AND':'WHERE') . " host.description LIKE '%" . $host_descr . "%' AND host.id=host_snmp_query.host_id";
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_reindex_hosts.php-128-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php:28:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php-29-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php-85-if ($host_id > 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php:86:	$poller_data  = db_fetch_assoc('SELECT * FROM data_local WHERE host_id=' . $host_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/rebuild_poller_cache.php-87-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:28:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:29:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-30-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-83-	foreach($damaged_template_ids as $id) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:84:		$template_name = db_fetch_cell('SELECT name FROM data_template WHERE id=' . $id['data_template_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-85-		print "NOTE: Data Template '$template_name' is Damaged and can be repaired\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-93-				$hash = get_hash_data_template($template['local_data_template_rrd_id'], 'data_template_item');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:94:				db_execute("UPDATE data_template_rrd SET hash='$hash' WHERE id=" . $template['id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-95-			}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-114-	foreach($damaged_template_ids as $id) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:115:		$template_name = db_fetch_cell('SELECT name FROM graph_templates WHERE id=' . $id['graph_template_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-116-		print "NOTE: Graph Template '$template_name' is Damaged and can be repaired\n";
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-124-				$hash = get_hash_graph_template(0, 'graph_template_input');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php:125:				db_execute("UPDATE graph_template_input SET hash='$hash' WHERE id=" . $template['id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_templates.php-126-			}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php-197-		SET rrd_path = '" . $info['new_rrd_path'] . "'
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php:198:		WHERE local_data_id=" . $info['local_data_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php-199-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php-202-		SET data_source_path='" . $info['new_data_source_path'] . "'
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php:203:		WHERE local_data_id=" . $info['local_data_id']);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/structure_rra_paths.php-204-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php:27:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php:30:require_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php-31-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php-123-		print 'Upgrading from v' . $prev_cacti_version .' (DB ' . $orig_cacti_version . ') to v' . $cacti_upgrade_version . PHP_EOL;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php:124:		include($upgrade_file);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/upgrade_database.php-125-		if (function_exists($upgrade_function)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/analyze_database.php-71-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/analyze_database.php:72:$tables = db_fetch_assoc('SHOW TABLES FROM `' . $database_default . '`');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/analyze_database.php-73-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php:27:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php:28:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-29-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-91-}else if (is_numeric($host_id)) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php:92:	$sql_where .= ($sql_where != '' ? ' AND ' : ' WHERE ' ) . 'data_local.host_id = ' . $host_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-93-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-100-if (is_numeric($query_id)) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php:101:	$sql_where .= ($sql_where != '' ? ' AND ' : ' WHERE ' ) . 'data_local.snmp_query_id= ' . $query_id;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/reorder_data_query.php-102-} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/removespikes.php-30-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/removespikes.php:31:include_once($config['base_path'] . '/lib/spikekill.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/removespikes.php-32-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/sqltable_to_php.php-81-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/sqltable_to_php.php:82:	include_once($config['library_path'] . '/database.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/sqltable_to_php.php-83-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/sqltable_to_php.php:84:	$result = db_fetch_assoc('SHOW tables FROM `' . $database_default . '`');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/sqltable_to_php.php-85-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php-28-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php:29:require_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php:30:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php:31:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php:32:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/import_package.php-33-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-345-function make_column_alter($table, $dbc) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:346:	$alter_cmd = 'ALTER TABLE `' . $table . '` MODIFY COLUMN `' . $dbc['table_field'] . '` ' . $dbc['table_type'] . ($dbc['table_null'] == 'NO' ? ' NOT NULL':'');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-347-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-369-	if (db_index_exists($table, $key)) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:370:		$alter_cmds[] = 'ALTER TABLE `' . $table . '` DROP KEY `' . $key . '`';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-371-	}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-383-			if ($i == 0 && $p['idx_key_name'] == 'PRIMARY') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:384:				$alter_cmd = 'ALTER TABLE `' . $table . '` ADD PRIMARY KEY ' . $p['idx_index_type'] . ' (';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-385-			} elseif ($i == 0) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-386-				if ($p['idx_non_unique'] == 1) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:387:					$alter_cmd = 'ALTER TABLE `' . $table . '` ADD INDEX `' . $key . '` (';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-388-				} else {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:389:					$alter_cmd = 'ALTER TABLE `' . $table . '` ADD UNIQUE INDEX `' . $key . '` (';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-390-				}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-392-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:393:			$alter_cmd .= ($i > 0 ? ',':'') . '`' . $p['idx_column_name'] . '`';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-394-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-554-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php:555:		exec('mysqldump -u' . $database_username . ' -p' . $database_password . ' ' . $database_default . ' table_columns table_indexes --extended-insert=FALSE > ' . $config['base_path'] . '/docs/audit_schema.sql');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/audit_database.php-556-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:28:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:29:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:31:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:32:require_once($config['base_path'] . '/lib/snmp.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:33:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php:34:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_device.php-35-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php:27:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php:29:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php:30:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/add_datasource.php-31-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php-193-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php:194:				$status = db_execute('ALTER TABLE `' . $table['Name'] . '`' . ($dynamic ? ' ROW_FORMAT=Dynamic, ':'') . $sql);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php-195-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php-198-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php:199:					cacti_log("FATAL: Conversion of Table '" . $table['Name'] . "' Failed.  Command: 'ALTER TABLE `" . $table['Name'] . "` $sql'", false, 'CONVERT');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/convert_tables.php-200-				} else {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/input_whitelist.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/input_whitelist.php:27:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/input_whitelist.php:28:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/input_whitelist.php:29:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/input_whitelist.php-30-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:27:include_once($config['base_path'] . '/install/functions.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php-28-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php-162-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:163:include_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:164:include_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:165:include_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:166:include_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:167:include_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:168:include_once($config['base_path'] . '/lib/import.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:169:include_once($config['base_path'] . '/lib/installer.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:170:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php:171:include_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/install_cacti.php-172-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:28:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:29:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:30:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:31:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:32:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-33-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-221-	if (cacti_sizeof($host_ids) && $all === false) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:222:		$sql_where .= ' AND gl.host_id IN (' . implode(',', $host_ids). ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-223-		$all_option = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-226-	if (cacti_sizeof($host_template_ids) && $all === false) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:227:		$sql_where .= ' AND h.host_template_id IN (' . implode(',', $host_template_ids). ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-228-		$all_option = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-231-	if (cacti_sizeof($graph_template_ids) && $all === false) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:232:		$sql_where .= ' AND gl.graph_template_id IN (' . implode(',', $graph_template_ids). ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-233-		$all_option = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-240-		foreach($regex as $r) {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:241:			$sql_cwhere .= ($sql_cwhere == '' ? '':' OR ') . 'title_cache RLIKE "' . $r . '"';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-242-		}
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-243-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php:244:		$sql_where .= $sql_cwhere . ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/remove_graphs.php-245-		$all_option = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-28-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:29:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:30:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:31:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-32-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-112-// Get all graphs for supplied graph template
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:113:$graph = db_fetch_assoc("SELECT * FROM graph_local where " . (!isset($host_id) ? '' : "host_id=".$host_id." and ") . " graph_template_id=" . $graph_template_id . "");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-114-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-121-		// Get datasource for supplied data template for current host
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:122:		$ds = db_fetch_assoc("SELECT * FROM data_local where host_id=" . $g["host_id"] . " and data_template_id=" . $data_template_id);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-123-		if (!cacti_sizeof($ds)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-128-		// Get rrd for found datasource
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:129:		$rrd_data = db_fetch_assoc("SELECT * FROM data_template_rrd where local_data_id=" . $ds["id"]);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-130-		if (!cacti_sizeof($rrd_data)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-141-		// Get graph associations which corresponds to supplied data template
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:142:		select id from graph_templates_item where local_graph_id=$g["id"] and local_graph_template_item_id in
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-143-		// But I'm too lazy to write such a lot of code, so let's better make one long query below
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-145-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:146:		$graph_templates_items_wrong = db_fetch_assoc("select id, task_item_id from graph_templates_item WHERE task_item_id!=" . $rrd_data[0]["id"] . " and graph_template_id=" . $graph_template_id . " and local_graph_id=" . $g["id"] . " and local_graph_template_item_id in (select id from graph_templates_item where local_graph_template_item_id=0 and local_graph_id=0 and task_item_id=(select id from data_template_rrd where local_data_template_rrd_id=0 and local_data_id=0 and data_template_id=" . $data_template_id . "))");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-147-		if (!cacti_sizeof($graph_templates_items_wrong)) {
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-159-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php:160:		$query = "UPDATE graph_templates_item SET task_item_id=" . $rrd_data[0]["id"] . " WHERE task_item_id!=" . $rrd_data[0]["id"] . " and graph_template_id=" . $graph_template_id . " and local_graph_id=" . $g["id"] . " and id in (" . implode(",",$graph_templates_item) . ")";
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/repair_graphs.php-161-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:27:require_once($config['base_path'] . '/lib/api_automation_tools.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:28:require_once($config['base_path'] . '/lib/api_automation.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:29:require_once($config['base_path'] . '/lib/api_data_source.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:30:require_once($config['base_path'] . '/lib/api_graph.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:31:require_once($config['base_path'] . '/lib/api_device.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:32:require_once($config['base_path'] . '/lib/api_tree.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:33:require_once($config['base_path'] . '/lib/data_query.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:34:require_once($config['base_path'] . '/lib/functions.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:35:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:36:require_once($config['base_path'] . '/lib/reports.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:37:require_once($config['base_path'] . '/lib/template.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:38:require_once($config['base_path'] . '/lib/utility.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-39-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-110-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:111:	$sql_where = 'WHERE h.id IN (' . implode(',', $ids) . ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-112-}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-115-if ($hostname != '') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:116:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-117-	$regex = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-120-		$regex = true;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:121:		$sql_where .= 'h.hostname RLIKE ' . db_qstr($hostname);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-122-	}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-124-	$hostname = '%' . $hostname . '%';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:125:	$sql_where .= ($regex == true ? ' OR ':'') . 'h.hostname LIKE ' . db_qstr($hostname) . ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-126-}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-129-if ($description != '') {
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:130:	$sql_where .= ($sql_where != '' ? ' AND ':'WHERE ') . '(';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-131-	$regex = false;
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-134-		$regex = true;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:135:		$sql_where .= 'h.description RLIKE ' . db_qstr($description);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-136-	}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-138-	$description = '%' . $description . '%';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php:139:	$sql_where .= ($regex == true ? ' OR ':'') . 'h.description LIKE ' . db_qstr($description) . ')';
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/apply_automation_rules.php-140-}
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_replicate.php-26-require(__DIR__ . '/../include/cli_check.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_replicate.php:27:require_once($config['base_path'] . '/lib/poller.php');
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/poller_replicate.php-28-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-238-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php:239:$response = shell_exec($rrdtool);
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-240-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-268-debug("Creating XML file '$oldxmlfile' from '$oldrrd'");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php:269:shell_exec("$rrdtool dump $oldrrd > $oldxmlfile");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-270-
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-271-debug("Creating XML file '$newxmlfile' from '$newrrd'");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php:272:shell_exec("$rrdtool dump $newrrd > $newxmlfile");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-273-
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-414-			FROM dsData
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php:415:			WHERE dsid = $dsnum
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-416-			AND cf = '$cf'
##############################################
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-820-	print 'NOTE: Re-Importing \'' . $xmlfile . '\' to \'' . $rrdfile . '\'' . PHP_EOL;
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php:821:	$response = shell_exec("$rrdtool restore -f -r $xmlfile $rrdfile");
cacti-1.2.15+ds1/.pc/07_cli-include-path.patch/cli/splice_rrd.php-822-	if (strlen($response)) print $response . PHP_EOL;
##############################################
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-15-if ($val1 eq "5") {
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl:16:        $avg = `echo "$avg" | awk '\{print \$1 \}'`;
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-17-}
##############################################
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-19-if ($val1 eq "15") {
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl:20:        $avg = `echo "$avg" | awk '\{print \$2 \}'`;
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-21-}
##############################################
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-23-if ($val1 eq "30") {
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl:24:        $avg = `echo "$avg" | awk '\{print \$3 \}'`;
cacti-1.2.15+ds1/.pc/perl-path.patch/scripts/loadavg.pl-25-}
##############################################
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-1091-
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php:1092:	include($config['include_path'] . '/global_arrays.php');
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-1093-
##############################################
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-1986-
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php:1987:function html_host_filter($host_id = '-1', $call_back = 'applyFilter', $sql_where = '', $noany = false, $nonone = false) {
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-1988-	$theme = get_selected_theme();
##############################################
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-2048-
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php:2049:function html_site_filter($site_id = '-1', $call_back = 'applyFilter', $sql_where = '', $noany = false, $nonone = false) {
cacti-1.2.15+ds1/.pc/font-awesome-path.patch/lib/html.php-2050-	$theme = get_selected_theme();