Files
cacti/tests/security/baselines/sink_inventory.baseline.tsv
T
TheWitnessandTheWitness 3ab4c69fb7 PHPStan Level 8 - Phase 1 Conversion (#8135)
* PHPStan Level 8 - Phase 1 Conversion

Reduces the real (no-baseline) PHPStan level 8 error count from ~2,724 to 425
and regenerates phpstan-baseline.neon accordingly (8,941 -> 1,921 lines).

Core type-safety changes
- lib/database.php: narrow db_fetch_row()/db_fetch_row_prepared() to return
  array (was bool|array) and db_fetch_assoc()/db_fetch_assoc_prepared() to
  return array (was mixed); the _prepared workers coerce the connection-failure
  path to an empty array so the declared type is honest. empty()/cacti_sizeof()
  checks are unaffected.
- lib/database.php: narrow $db_conn guards from is_object() to instanceof PDO in
  the transaction/quote/insert-id helpers so the PDO calls resolve.
- lib/mib_cache.php: the fluent MibCache methods mib()/object()/table()/row()
  now return self instead of a bare object so chained calls type-check.

Type-safety casts and guards (mechanical, behaviour-preserving)
- Cast string|false/|null builtin results feeding string parameters
  (json_decode, base64_encode, trim, htmle, preg_replace, explode, etc.).
- Cast int|string / int|false values feeding int id/pid parameters.
- Guard resource|false fopen()/popen() handles before fwrite/fclose/fread, and
  wrap foreach over array|false/list|false results with `?: []`.

Genuine bugs found and fixed
- cli/add_tree.php / lib/api_tree.php: site tree nodes could not be created via
  the CLI - the --site-id option was never parsed, $nodeTypes had no 'site'
  entry (passing null to api_tree_item_save(int $type) -> TypeError), and
  api_tree_item_save() never persisted site_id. All three fixed.
- tree.php: leaves_exist() is typed : int but returned db_fetch_assoc_prepared()
  (an array of rows) for a SELECT COUNT(*); now uses db_fetch_cell_prepared()
  and returns the scalar count.
- lib/mib_cache.php: $entries_per_object was a float (division / ceil) used as
  an array key (PHP 8.1 implicit float-to-int key deprecation); now cast to int.

Config
- .phpstan.neon: add notIdentical.alwaysTrue and booleanAnd.alwaysFalse to the
  existing always-true/false ignore family (same "PHPStan gets confused"
  dynamic-constant cause already covered by identical.alwaysTrue,
  notEqual.alwaysTrue, booleanAnd.leftAlwaysTrue, etc.).
- phpstan-baseline.neon: regenerated; the remaining 425 entries are the
  untouched long tail for Phase 2.

* Remove redundant @phpstan-ignore comments

Follow-up cleanup for the level 8 Phase 1 work. Removes 14 inline
@phpstan-ignore comments that no longer suppress any reported error:

- cli/repair_database.php: `@phpstan-ignore booleanAnd.alwaysFalse` is now
  covered by the global booleanAnd.alwaysFalse ignore added to .phpstan.neon.
- 13 others (host.php, include/global.php, include/session.php,
  lib/api_automation.php x2, lib/functions.php x2, lib/html_utility.php x2,
  lib/installer.php, lib/package.php, lib/reports.php, lib/rrd.php) no longer
  match any reported error after the type-safety fixes (e.g. the
  db_fetch_row_prepared() return-type narrowing removed the offset-assign
  errors the api_automation ignores were suppressing).

Verified with reportUnmatchedIgnoredErrors enabled: 0 unmatched ignores
remain and the full level 8 run still reports 0 errors.

* ci: satisfy validator ratchet and refresh security sink baselines

- lib/api_tree.php: give the new tree-item site_id a real numeric
  constraint ('^[-0-9]+$', matching html_reports.php) instead of an
  empty regex, so the validator constraint ratchet passes without
  bumping its baseline.
- tests/security/baselines: refresh the three sink/hotspot signatures
  whose code text changed from the (string) casts added in this branch
  (lib/poller.php setsid, cli/rrdresize.php json_encode, lib/import.php
  simplexml_load_string).

* ci(js): allow DOMPurify 3.4.16 and update sync_js pin test

The dependabot bump (#8134) moved package.json/package-lock.json to
DOMPurify 3.4.16 on develop but left tests/js/sync_js.test.mjs pinned to
3.4.15, so the PR merge commit fails the 'DOMPurify is pinned' contract.
Bring package.json/package-lock.json to 3.4.16 (matching develop) and
update the pin test to expect 3.4.16.

* test: update sql.php null-handling assertion for the (string) cast

This branch changed scripts/sql.php from trim(\ ?? '') to
trim((string) \) (the phpstan-safe form that coerces both null and
false from shell_exec()). Update SqlScriptsTest's null-return assertion
to match the new cast instead of the removed '?? ''.

* fix: address Copilot review - ownership IDs, fopen guards, mib_cache bound

- chown()/chgrp(): pass integer UID/GID from fileowner()/filegroup()
  (guarding the false lookup) instead of string-casting them, which made
  them resolve account/group names like '1001' and fail. Covers
  lib/api_device.php, lib/boost.php and poller_maintenance.php (x2).
- fopen() failure now short-circuits instead of reporting success:
  lib/package.php returns false, lib/clog_webapi.php and utilities.php
  render an error, and snmpagent_mibcachechild.php skips the cache write
  and sentinel unlink so a concurrent writer's lock is preserved.
- lib/mib_cache.php: keep the float quotient as the loop bound and cast
  only the array offset, so a non-even entries/columns split no longer
  truncates the loop and drops a cached row.

* revert: keep db_fetch_* returning false on error; baseline Level 8 instead

Per review, restoring the intentional fail-safe: db_fetch_row[_prepared]()
return bool|array and db_fetch_assoc[_prepared]() return mixed again, so a
genuine SQL error (not just a missing connection) is signalled as false and
the === false checks in cdef_is_in_use(), boost_process_* and aggregate.php
work as before. Dropped the is_array() ? : [] coercion.

Level 8 stays green by regenerating phpstan-baseline.neon to capture the
re-introduced bool|array/mixed call-site errors (the ~1,850 the narrowing
had eliminated). Tightening those callers to drop them from the baseline is
Phase 2 work.

---------

Co-authored-by: TheWitness <copilot@users.noreply.github.com>
2026-10-02 10:08:56 -04:00

68 KiB

1categorylocationmatch
2cmd_exec./cactid.phpexec('pgrep -a php | grep cactid.php', $output);
3cmd_exec./cli/audit_database.phpexec('php ' . CACTI_PATH_PLUGINS . '/' . $pname . '/database_upgrade.php --type=large --force-ver=' . $old, $output, $return_var);
4cmd_exec./cli/audit_database.php$db_shell = trim((string) shell_exec('which mysql'));
5cmd_exec./cli/audit_database.phpexec($cmd, $output, $error);
6cmd_exec./cli/audit_database.phpexec('php ' . CACTI_PATH_CLI . '/upgrade_database.php --debug', $output, $return_var);
7cmd_exec./cli/batchgapfix.phpexec($command, $output, $return_var);
8cmd_exec./cli/float_rrdfiles.php$response = exec($command, $output, $return);
9cmd_exec./cli/float_rrdfiles.php$response = exec($command, $output, $return);
10cmd_exec./cli/push_out_hosts.phppassthru($php_binary . ' ' . CACTI_PATH_CLI . '/rebuild_poller_cache.php ' . $parameters);
11cmd_exec./cli/remove_broken_graphs.php$stty = shell_exec('stty size');
12cmd_exec./cli/rrdresize.php$process = proc_open($path_rrdtool . ' -', $fds, $pipes);
13cmd_exec./cli/splice_rrd.php$result = exec($command, $output, $return_var);
14cmd_exec./cli/splice_rrd.php$response = shell_exec(cacti_escapeshellcmd($rrdtool));
15cmd_exec./cli/splice_rrd.phpshell_exec(cacti_escapeshellcmd($rrdtool) . ' dump ' . cacti_escapeshellarg($newrrd) . ' > ' . cacti_escapeshellarg($newxmlfile));
16cmd_exec./cli/splice_rrd.phpshell_exec(cacti_escapeshellcmd($rrdtool) . ' dump ' . cacti_escapeshellarg($oldrrd) . ' > ' . cacti_escapeshellarg($oldxmlfile));
17cmd_exec./cli/update_heartbeat.php$result = exec($command, $output, $return_code);
18cmd_exec./cmd.php$cactiphp = proc_open($command, $cactides, $pipes);
19cmd_exec./cmd_realtime.php$cactiphp = proc_open(read_config_option('path_php_binary') . ' -q ' . CACTI_PATH_BASE . '/script_server.php realtime ' . cacti_escapeshellarg($poller_id), $cactides, $pipes);
20cmd_exec./graph_realtime.phpshell_exec($php_binary . ' -q ' . $script_path . ' ' . $args);
21cmd_exec./host.phpshell_exec(cacti_escapeshellcmd((string) read_config_option('path_php_binary')) . ' -q ' . cacti_escapeshellarg(CACTI_PATH_CLI . '/poller_reindex_hosts.php') . ' --qid=all --id=' . $host_id);
22cmd_exec./lib/dsstats.php$process = proc_open($command, $fds, $pipes);
23cmd_exec./lib/functions.php$output = shell_exec($script_path);
24cmd_exec./lib/functions.php$output = shell_exec($script_path);
25cmd_exec./lib/functions.php$shell = shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' -v 2>&1');
26cmd_exec./lib/functions.php$shell = shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' -v');
27cmd_exec./lib/functions.phpshell_exec($killCmd);
28cmd_exec./lib/functions.php$cpu_cores = shell_exec('/bin/nproc');
29cmd_exec./lib/functions.php$cpu_cores = shell_exec('/usr/bin/nproc');
30cmd_exec./lib/functions.php$output = shell_exec('nproc');
31cmd_exec./lib/functions.phpexec('id -nu', $o, $r);
32cmd_exec./lib/functions.php$cpu_cores = shell_exec('sysctl -n hw.ncpu');
33cmd_exec./lib/functions.php$processExists = trim((string) shell_exec($checkProcessCmd));
34cmd_exec./lib/functions.phpexec($command_line, $out, $return_code);
35cmd_exec./lib/functions.phpreturn exec('whoami') ?: '';
36cmd_exec./lib/functions.php * On Windows, exec()/shell_exec()/popen() route through cmd.exe, which ignores
37cmd_exec./lib/installer.php$output = shell_exec(
38cmd_exec./lib/installer.php$output = shell_exec(cacti_escapeshellcmd(str_replace('\\', '/', $path)) . ' --version 2>&1');
39cmd_exec./lib/installer.php$process = proc_open(
40cmd_exec./lib/ping.php$result = shell_exec('ping -6 -W ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' -p ' . $pattern . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
41cmd_exec./lib/ping.php$result = shell_exec('ping -W ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' -p ' . $pattern . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true) . ' 2>&1');
42cmd_exec./lib/ping.php$result = shell_exec('ping -t ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
43cmd_exec./lib/ping.php$result = shell_exec('ping6 -t ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
44cmd_exec./lib/ping.php$result = shell_exec('chcp 437 && ping -w ' . $this->timeout . ' -n ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
45cmd_exec./lib/ping.php$result = shell_exec('ping ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
46cmd_exec./lib/ping.php$result = shell_exec('ping -i ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
47cmd_exec./lib/ping.php$result = shell_exec('ping -m ' . ceil($this->timeout / 1000) . ' -n ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
48cmd_exec./lib/ping.php$result = shell_exec('ping -t ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
49cmd_exec./lib/ping.php$result = shell_exec('ping -t ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
50cmd_exec./lib/ping.php$result = shell_exec('ping -w ' . ceil($this->timeout / 1000) . ' -c ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true));
51cmd_exec./lib/ping.php$result = shell_exec(cacti_escapeshellarg($fping) . ' -q -t ' . $this->timeout . ' -c 1 -r ' . $this->retries . ' ' . cacti_escapeshellarg_cmd($this->host['hostname'], true, true) . ' 2>&1');
52cmd_exec./lib/poller.php$output = system($php_path . ' -l ' . $tmpfile, $exit);
53cmd_exec./lib/poller.php$fp = popen($command, 'r');
54cmd_exec./lib/poller.php$fp = popen($command, 'rb');
55cmd_exec./lib/poller.phpexec($safe_filename . ' ' . $args . ' ' . $redirect_args . ' &');
56cmd_exec./lib/poller.phpexec($safe_filename . ' ' . $args . ' > /dev/null 2>&1 &');
57cmd_exec./lib/poller.php$output = shell_exec($command);
58cmd_exec./lib/poller.php$setsid_path = trim((string) shell_exec('which setsid 2>/dev/null'));
59cmd_exec./lib/poller.php$process = @proc_open($command, $descriptors, $pipes, null, null, ['bypass_shell' => true]);
60cmd_exec./lib/poller.php$process = proc_open('exec ' . $cmd_full, $descriptors, $pipes);
61cmd_exec./lib/poller.php * of the proc_open() and proc_close() functions (php 4.3+)
62cmd_exec./lib/poller.php * @param array $pipes The array of r/w pipes returned from proc_open()
63cmd_exec./lib/poller.php * @param mixed $proc_fd The file descriptor returned from proc_open()
64cmd_exec./lib/rrd.php$process = proc_open([$path, '-'], $descriptors, $pipes, null, null, ['bypass_shell' => true]);
65cmd_exec./lib/rrdcheck.php$process = proc_open($command, $fds, $pipes);
66cmd_exec./lib/snmp.php// exec() does not capture, so the walk output can never contain either.
67cmd_exec./lib/snmp.phpexec($command, $snmp_value, $return_var);
68cmd_exec./lib/snmp.phpexec($command, $snmp_value, $return_var);
69cmd_exec./lib/snmp.phpexec($command, $snmp_value, $return_var);
70cmd_exec./lib/snmpagent.php// add pollers of a distributed system (future)
71cmd_exec./lib/spikekill.php$dump_output = shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' dump ' . cacti_escapeshellarg($this->rrdfile) . ' 2>&1 > ' . cacti_escapeshellarg($xmlfile));
72cmd_exec./lib/spikekill.php$response = shell_exec(cacti_escapeshellcmd(read_config_option('path_rrdtool')) . ' restore -f -r ' . cacti_escapeshellarg($xmlfile) . ' ' . cacti_escapeshellarg($rrdfile));
73cmd_exec./lib/utility.php$nproc = system('nproc');
74cmd_exec./lib/utility.phpexec('/usr/bin/free', $output, $exit_code);
75cmd_exec./lib/utility.phpexec('wmic os get FreePhysicalMemory', $memInfo['FreePhysicalMemory']);
76cmd_exec./lib/utility.phpexec('wmic os get FreeSpaceInPagingFiles', $memInfo['FreeSpaceInPagingFiles']);
77cmd_exec./lib/utility.phpexec('wmic os get FreeVirtualMemory', $memInfo['FreeVirtualMemory']);
78cmd_exec./lib/utility.phpexec('wmic os get SizeStoredInPagingFiles', $memInfo['SizeStoredInPagingFiles']);
79cmd_exec./lib/utility.phpexec('wmic os get TotalVirtualMemorySize', $memInfo['TotalVirtualMemorySize']);
80cmd_exec./lib/utility.phpexec('wmic os get TotalVisibleMemorySize', $memInfo['TotalVisibleMemorySize']);
81cmd_exec./lib/utility.php$json = shell_exec($php . ' -q ' . $php_file);
82cmd_exec./lib/utility.php$json = shell_exec($php . ' -q ' . $php_file);
83cmd_exec./lib/utility.php$json = shell_exec($php . ' -q ' . $php_file);
84cmd_exec./poller_spikekill.php$response = exec(cacti_escapeshellcmd((string) read_config_option('path_php_binary')) . ' -q ' .
85cmd_exec./remote_agent.php$cactiphp = proc_open(read_config_option('path_php_binary') . ' -q ' . CACTI_PATH_BASE . '/script_server.php realtime ' . cacti_escapeshellarg($poller_id), $cactides, $pipes);
86cmd_exec./scripts/sql.php$sql = shell_exec($cmd);
87cmd_exec./scripts/ss_netsnmp_lmsensors.php$virtual = intval(shell_exec('/usr/bin/hostnamectl 2> /dev/null | grep -i virtual | wc -l'));
88cmd_exec./scripts/ss_sql.php$result = shell_exec($cmd) ?? '';
89cmd_exec./snmpagent_mibcache.phpexec($php . ' ' . $extra_args . ' > /dev/null &');
90cmd_exec./snmpagent_persist.phpexec($php . ' ' . $extra_args . ' > /dev/null &');
91cmd_exec./support.php$out = shell_exec(cacti_escapeshellarg($path) . ' ' . $arg . ' 2>&1');
92cmd_exec./support.phpprint '<td>' . tech_env_status(DB_STATUS_WARNING, __('Version unavailable: shell_exec() is disabled')) . '</td>';
93cmd_exec./support.phpexec(cacti_escapeshellcmd(read_config_option('path_rrdtool')), $out_array);
94cmd_exec./support.php$cli_json = shell_exec(cacti_escapeshellcmd($php_binary) . ' -q ' . cacti_escapeshellarg(CACTI_PATH_INSTALL . '/cli_check.php') . ' extensions');
95cmd_exec./support.php$snmp_version = (string) shell_exec(cacti_escapeshellcmd($snmpget_path) . ' -V 2>&1');
96cmd_exec./support.phpexec(cacti_escapeshellcmd(read_config_option('path_spine')) . ' --version', $out_array);
97deserialize./lib/functions.php$items = unserialize($unstripped, ['allowed_classes' => false]);
98deserialize./lib/functions.php$items = unserialize($unstripped, ['allowed_classes' => false]);
99deserialize./lib/functions.phpreturn unserialize($strobj, ['allowed_classes' => false]);
100deserialize./lib/reports.php$items = unserialize($unstripped, ['allowed_classes' => false]);
101dynamic_include./cli/audit_database.phprequire_once($plugin . '/includes/database.php');
102dynamic_include./cli/audit_database.phprequire_once($plugin . '/setup.php');
103dynamic_include./cli/upgrade_database.phpinclude($upgrade_file);
104dynamic_include./include/global.phprequire_once($vendor_autoload);
105dynamic_include./include/global_languages.phprequire_once($providerFull);
106dynamic_include./index.phprequire_once($file);
107dynamic_include./lib/installer.phpinclude_once($upgrade_file);
108dynamic_include./lib/plugins.phpinclude_once($full_path);
109dynamic_include./lib/plugins.phprequire_once($setup_file);
110dynamic_include./lib/renderer.phpinclude $__cacti_template_file;
111dynamic_include./lib/rrd.phpinclude($rrdtheme);
112dynamic_include./lib/rrd.phpinclude($themefile);
113dynamic_include./link.phprequire_once($file);
114dynamic_include./plugins.phprequire_once($setup_file);
115dynamic_include./reports.phprequire_once($reportit_api);
116dynamic_include./script_server.phprequire_once($include_file);
117dynamic_include./scripts/ss_mikrotik_snmpget.phpinclude_once($config['base_path'] . '/lib/snmp.php');
118dynamic_include./scripts/ss_netsnmp_lmsensors.phpinclude($config['base_path'] . '/lib/snmp.php');
119dynamic_include./snmpagent_persist.phprequire($path_mibcache);
120fs_write./cactid.php$STDERR = fopen('/dev/null', 'wb');
121fs_write./cactid.php$STDERR = fopen('null', 'wb');
122fs_write./cli/audit_database.phpif (file_put_contents($path, $contents) === false) {
123fs_write./cli/clone_device_template.php$fin = fopen('php://stdin', 'r');
124fs_write./cli/float_rrdfiles.php$lf = fopen(sys_get_temp_dir() . '/cacti_float_rrdfiles.log', 'a');
125fs_write./cli/float_rrdfiles.php$fp = fopen($tmp_file, 'w');
126fs_write./cli/import_package.php$fp = fopen($filename, 'r');
127fs_write./cli/import_template.php$fp = fopen($filename,'r');
128fs_write./cli/input_whitelist.php$filesystem->writeFile($config['input_whitelist'], json_encode($input));
129fs_write./cli/md5sum.php$filesystem->writeFile($md5_file, $output);
130fs_write./cli/rrdresize.phpif (!file_put_contents($tmp_xml_file, $rrd_new_header . $rrd_new_body . '</rrd>')) {
131fs_write./cli/rrdresize.php$log_handle = fopen($tmp_backup_folder . 'tmp_rrdresize.log', 'w');
132fs_write./cli/splice_rrd.phpif (($f = @fopen($path, 'a'))) {
133fs_write./cli/splice_rrd.phpif (($f = @fopen($path, 'w'))) {
134fs_write./cli/splice_rrd.phpreturn file_put_contents($xmlfile, $output);
135fs_write./cli/splice_rrd.phpfile_put_contents($newxmlfile, $new_xml);
136fs_write./host.php$stdout = fopen('php://output', 'w');
137fs_write./include/csrf.php$fh = fopen($file, 'w');
138fs_write./include/csrf.php$fh = @fopen($path, 'a');
139fs_write./include/csrf.php$fh = @fopen($path, 'w');
140fs_write./include/global_languages.phpfile_put_contents($config['i18n_log'], $text . $eol, $mode);
141fs_write./include/global_languages.phpfile_put_contents($config['i18n_text_log'], $text . $eol, $mode);
142fs_write./include/themes/midwinter/update_hash.phpfile_put_contents($cssFile, $fileUpdated);
143fs_write./install/functions.php$fp = fopen($config_file, 'w');
144fs_write./install/functions.php$fh = fopen($file, 'w');
145fs_write./install/functions.phpfile_put_contents($cacheFile, '<[version]> ' . $cacti_upgrade_version . ' <[status]> ' . $status . ' <[sql]> ' . clean_up_lines($sql) . ' <[error]> ' . $database_last_error . PHP_EOL, FILE_APPEND);
146fs_write./install/functions.phpfile_put_contents(CACTI_PATH_LOG . '/' . $logfile . '.log', sprintf($format_log1, $day, $time, $levelname, $data, PHP_EOL), $flags);
147fs_write./install/functions.phpfile_put_contents(CACTI_PATH_LOG . '/install-complete.log', sprintf($format_log2, $day, $time, $sectionname, $levelname, $data, PHP_EOL), $flags);
148fs_write./lib/CactiFilesystem.php$this->filesystem->dumpFile($filename, $content);
149fs_write./lib/CactiFilesystem.phpself::default()->writeFile($filename, $content);
150fs_write./lib/api_device.phpif (file_put_contents($new_xmlfile, $data) === false) {
151fs_write./lib/boost.phpif ($fileptr = fopen($cache_file, 'rb')) {
152fs_write./lib/boost.php$fileptr = fopen($temp_file, 'wb');
153fs_write./lib/clog_webapi.php$log_fh = fopen($logfile, 'w');
154fs_write./lib/csp_report_endpoint.php$inputStream = fopen('php://input', 'rb');
155fs_write./lib/database.phpfile_put_contents(sys_get_temp_dir() . '/cacti-option.log',
156fs_write./lib/database.phpfile_put_contents(sys_get_temp_dir() . '/cacti-option.log',
157fs_write./lib/database.phpfile_put_contents(sys_get_temp_dir() . '/cacti-sql.log', get_debug_prefix() . $line, FILE_APPEND);
158fs_write./lib/functions.phpfile_put_contents(sys_get_temp_dir() . '/cacti-option.log', get_debug_prefix() .
159fs_write./lib/functions.phpfile_put_contents($tmp_file, 'cacti');
160fs_write./lib/functions.phpfile_put_contents(sys_get_temp_dir() . '/cacti-option.log', get_debug_prefix() .
161fs_write./lib/functions.php$fp = @fopen($logfile, 'a');
162fs_write./lib/functions.phpif ($f = @fopen($path, 'a')) {
163fs_write./lib/functions.phpif ($f = @fopen($path, 'w')) {
164fs_write./lib/functions.php$f = fopen($file, 'r');
165fs_write./lib/functions.php$fp = fopen($file_name, 'r');
166fs_write./lib/import.php$file = fopen($filename, 'wb');
167fs_write./lib/import.php$f = fopen($filename, 'r');
168fs_write./lib/installer.php$file = fopen($cacheFile, 'r');
169fs_write./lib/package.phpfile_put_contents($xmlfile, $template);
170fs_write./lib/plugins.phpfile_put_contents($restore_path . '/' . $basefile, $output);
171fs_write./lib/plugins.php$fh = fopen($file, 'w');
172fs_write./lib/plugins.phpfile_put_contents($tmpfile, $file_data);
173fs_write./lib/poller.phpfile_put_contents($mypath, $contents);
174fs_write./lib/poller.phpif (file_put_contents($tmpfile, $contents) !== false) {
175fs_write./lib/poller.phpfile_put_contents($mypath, $contents);
176fs_write./lib/rrd.php$written = file_put_contents($temporary, $contents, LOCK_EX);
177fs_write./lib/spikekill.phpreturn file_put_contents($xmlfile, $output);
178fs_write./package_import.phpfile_put_contents($xmlfile, $data);
179fs_write./package_import.phpfile_put_contents($xmlfile, $data);
180fs_write./package_import.phpfile_put_contents($xmlfile, $data);
181fs_write./package_import.phpfile_put_contents($xmlfile, $data);
182fs_write./package_import.phpfile_put_contents($xmlfile, $_SESSION['sess_import_package']);
183fs_write./package_import.phpfile_put_contents($xmlfile, $data);
184fs_write./package_import.phpfile_put_contents($xmlfile, $_SESSION['sess_import_package']);
185fs_write./package_import.phpfile_put_contents($xmlfile, $_SESSION['sess_import_package']);
186fs_write./package_import.phpfile_put_contents($xmlfile, $_SESSION['sess_import_package']);
187fs_write./script_server.phpdefine('STDIN', fopen('php://stdin', 'r'));
188fs_write./script_server.phpdefine('STDOUT', fopen('php://stdout', 'w'));
189fs_write./snmpagent_mibcachechild.phpfile_put_contents($path_mibcache, '<?php $cache = ' . var_export($cache, true) . ';', LOCK_EX);
190fs_write./snmpagent_mibcachechild.php$lock = fopen($path_mibcache_lock, 'w');
191fs_write./support.php$fp = @fopen($file, 'rb');
192fs_write./templates_import.php$fp = fopen($_FILES['import_file']['tmp_name'],'r');
193fs_write./utilities.php$log_fh = fopen($logfile, 'w');
194header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
195header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
196header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
197header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
198header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
199header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&tab=items&id=' . $local_graph_id);
200header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&tab=items&id=' . $local_graph_id);
201header_redirect./aggregate_graphs.phpheader('Location: ' . CACTI_PATH_URL . 'aggregate_graphs.php?action=edit&id=' . gfrv('local_graph_id'));
202header_redirect./aggregate_graphs.phpheader('Location: ' . CACTI_PATH_URL . 'aggregate_graphs.php?action=item_edit&graph_template_item_id=' . ($graph_template_item_id === null ? gfrv('graph_template_item_id') : $graph_template_item_id) . '&id=' . gfrv('local_graph_id'));
203header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . $local_graph_id);
204header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . $local_graph_id);
205header_redirect./aggregate_graphs.phpheader('Location: ' . $referer);
206header_redirect./aggregate_graphs.phpheader('Location: ' . CACTI_PATH_URL . $location_failure);
207header_redirect./aggregate_graphs.phpheader('Location: ' . CACTI_PATH_URL . $location_success);
208header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php');
209header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . $local_graph_id);
210header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . gfrv('id'));
211header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . gfrv('local_graph_id'));
212header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . gfrv('local_graph_id'));
213header_redirect./aggregate_graphs.phpheader('Location: aggregate_graphs.php?action=edit&id=' . gfrv('local_graph_id'));
214header_redirect./aggregate_templates.phpheader('Location: aggregate_templates.php');
215header_redirect./aggregate_templates.phpheader('Location: aggregate_templates.php?action=edit&id=' . gnrv('id'));
216header_redirect./aggregate_templates.phpheader('Location: aggregate_templates.php?action=edit&id=' . gnrv('id'));
217header_redirect./aggregate_templates.phpheader('Location: aggregate_templates.php?action=edit&id=' . gnrv('id'));
218header_redirect./aggregate_templates.phpheader('Location: aggregate_templates.php?action=edit&id=' . $id);
219header_redirect./auth_2fa.phpheader('Location: logout.php');
220header_redirect./auth_changepassword.phpheader('Location: logout.php');
221header_redirect./auth_changepassword.phpheader('Location:index.php');
222header_redirect./auth_changepassword.phpheader('Location: graph_view.php');
223header_redirect./auth_profile.phpheader('Location: auth_profile.php' . $tab);
224header_redirect./auth_resetpassword.phpheader('Location: index.php');
225header_redirect./automation_devices.phpheader('Location: automation_devices.php');
226header_redirect./automation_devices.phpheader('Location: automation_devices.php');
227header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?header=false&action=edit&id=' . grv('id'));
228header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . grv('id') . '&rule_type=' . AUTOMATION_RULE_TYPE_GRAPH_ACTION);
229header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . grv('id') . '&rule_type=' . AUTOMATION_RULE_TYPE_GRAPH_MATCH);
230header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=item_edit&id=' . grv('id') . '&item_id=' . ($item_id === null ? grv('item_id') : $item_id) . '&rule_type=' . AUTOMATION_RULE_TYPE_GRAPH_ACTION);
231header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=item_edit&id=' . grv('id') . '&item_id=' . ($item_id === null ? grv('item_id') : $item_id) . '&rule_type=' . AUTOMATION_RULE_TYPE_GRAPH_MATCH);
232header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?header=false&action=edit&id=' . grv('id') . '&rule_type=' . AUTOMATION_RULE_TYPE_GRAPH_ACTION);
233header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php');
234header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php');
235header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php');
236header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php');
237header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . (empty($rule_id) ? gnrv('id') : $rule_id));
238header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . gfrv('id'));
239header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . gfrv('id'));
240header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&id=' . gfrv('id'));
241header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=edit&name=' . grv('name') . '&id=' . gfrv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
242header_redirect./automation_graph_rules.phpheader('Location: automation_graph_rules.php?action=import');
243header_redirect./automation_networks.phpheader('Location: automation_networks.php');
244header_redirect./automation_networks.phpheader('Location: automation_networks.php?action=edit&id=' . (empty($network_id) ? gnrv('id') : $network_id));
245header_redirect./automation_networks.phpheader('Location: automation_networks.php?action=import');
246header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . gnrv('id'));
247header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=item_edit&id=' . gnrv('id') . '&item_id=' . ($item_id === null ? gfrv('id') : $item_id));
248header_redirect./automation_snmp.phpheader('Location: automation_snmp.php');
249header_redirect./automation_snmp.phpheader('Location: automation_snmp.php');
250header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . (empty($id) ? gnrv('id') : $id));
251header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . grv('id'));
252header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . grv('id'));
253header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . grv('id'));
254header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=edit&id=' . grv('id'));
255header_redirect./automation_snmp.phpheader('Location: automation_snmp.php?action=import');
256header_redirect./automation_templates.phpheader('Location: automation_templates.php');
257header_redirect./automation_templates.phpheader('Location: automation_templates.php?id=' . (empty($template_id) ? gnrv('id') : $template_id));
258header_redirect./automation_templates.phpheader('Location: automation_templates.php');
259header_redirect./automation_templates.phpheader('Location: automation_templates.php');
260header_redirect./automation_templates.phpheader('Location: automation_templates.php');
261header_redirect./automation_templates.phpheader('Location: automation_templates.php');
262header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('id'));
263header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
264header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
265header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
266header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
267header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
268header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
269header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . gfrv('template_id'));
270header_redirect./automation_templates.phpheader('Location: automation_templates.php');
271header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . $template_id);
272header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . grv('id'));
273header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=edit&id=' . grv('id'));
274header_redirect./automation_templates.phpheader('Location: automation_templates.php?action=import');
275header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?header=false&action=edit&id=' . get_request_var('id'));
276header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id') . '&rule_type=' . AUTOMATION_RULE_TYPE_TREE_ACTION);
277header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id') . '&rule_type=' . AUTOMATION_RULE_TYPE_TREE_MATCH);
278header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=item_edit&id=' . grv('id') . '&item_id=' . ($automation_graph_rule_item_id === null ? grv('item_id') : $automation_graph_rule_item_id) . '&rule_type=' . AUTOMATION_RULE_TYPE_TREE_ACTION);
279header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=item_edit&id=' . grv('id') . '&item_id=' . grv('item_id') . '&rule_type=' . AUTOMATION_RULE_TYPE_TREE_MATCH);
280header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?header=false&action=item_edit&id=' . grv('id') . '&item_id=' . grv('item_id') . '&rule_type=' . AUTOMATION_RULE_TYPE_TREE_MATCH);
281header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php');
282header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php');
283header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php');
284header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php');
285header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . (empty($rule_id) ? grv('id') : $rule_id));
286header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id'));
287header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id'));
288header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id'));
289header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=edit&id=' . grv('id'));
290header_redirect./automation_tree_rules.phpheader('Location: automation_tree_rules.php?action=import');
291header_redirect./cache/boost/index.phpheader('Location:../index.php');
292header_redirect./cache/index.phpheader('Location:../index.php');
293header_redirect./cache/mibcache/index.phpheader('Location:../../index.php');
294header_redirect./cache/realtime/index.phpheader('Location:../index.php');
295header_redirect./cache/spikekill/index.phpheader('Location:../index.php');
296header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . gnrv('cdef_id'));
297header_redirect./cdef.phpheader('Location: cdef.php?action=item_edit&cdef_id=' . gnrv('cdef_id') . '&id=' . ($cdef_item_id === null ? gnrv('id') : $cdef_item_id));
298header_redirect./cdef.phpheader('Location: cdef.php');
299header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . (empty($cdef_id) ? gnrv('id') : $cdef_id));
300header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . grv('cdef_id'));
301header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . grv('cdef_id'));
302header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . grv('cdef_id'));
303header_redirect./cdef.phpheader('Location: cdef.php?action=edit&id=' . grv('id'));
304header_redirect./cli/index.phpheader('Location:../index.php');
305header_redirect./clog.phpheader('Location: logout.php?action=remote');
306header_redirect./clog.phpheader('Location: permission_denied.php');
307header_redirect./clog_user.phpheader('Location: logout.php?action=remote');
308header_redirect./clog_user.phpheader('Location: permission_denied.php');
309header_redirect./color.phpheader('Location: color.php?action=import');
310header_redirect./color.phpheader('Location: color.php');
311header_redirect./color.phpheader('Location: color.php?action=edit&id=' . (empty($color_id) ? gnrv('id') : $color_id));
312header_redirect./color.phpheader('Location: color.php?action=import');
313header_redirect./color.phpheader('Location: color.php');
314header_redirect./color_templates.phpheader('Location: color_templates.php?action=item_edit&color_template_item_id=' . ($color_template_item_id === null ? gnrv('color_template_item_id') : $color_template_item_id) . '&color_template_id=' . gnrv('color_template_id'));
315header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . gnrv('color_template_id'));
316header_redirect./color_templates.phpheader('Location: color_templates.php');
317header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . ($color_template_id === null ? gfrv('color_template_id') : $color_template_id));
318header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . grv('color_template_id'));
319header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . grv('color_template_id'));
320header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . grv('id'));
321header_redirect./color_templates.phpheader('Location: color_templates.php?action=template_edit&color_template_id=' . grv('id'));
322header_redirect./contrib/index.phpheader('Location:../index.php');
323header_redirect./data_debug.phpheader('Location: data_debug.php?debug=-1');
324header_redirect./data_debug.phpheader('Location: data_debug.php?debug=1');
325header_redirect./data_debug.phpheader('Location: data_debug.php?action=view&id=' . gfrv('id'));
326header_redirect./data_debug.phpheader('Location: data_debug.php?action=view&id=' . gfrv('id'));
327header_redirect./data_input.phpheader('Location: data_input.php');
328header_redirect./data_input.phpheader('Location: data_input.php?action=edit&id=' . grv('data_input_id'));
329header_redirect./data_input.phpheader('Location: data_input.php?action=field_edit&data_input_id=' . grv('data_input_id') . '&id=' . ($data_input_field_id === null ? grv('id') : $data_input_field_id) . (!ierv('input_output') ? '&type=' . grv('input_output') : ''));
330header_redirect./data_input.phpheader('Location: data_input.php');
331header_redirect./data_input.phpheader('Location: data_input.php?action=edit&id=' . (empty($data_input_id) ? gnrv('id') : $data_input_id));
332header_redirect./data_input.phpheader('Location: data_input.php?action=edit&id=' . gfrv('data_input_id'));
333header_redirect./data_input.phpheader('Location: data_input.php?action=edit&id=' . gfrv('data_input_id'));
334header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
335header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
336header_redirect./data_queries.phpheader('Location: data_queries.php');
337header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
338header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
339header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
340header_redirect./data_queries.phpheader('Location: data_queries.php');
341header_redirect./data_queries.phpheader('Location: data_queries.php?action=edit&id=' . (empty($snmp_query_id) ? grv('id') : $snmp_query_id));
342header_redirect./data_queries.phpheader('Location: data_queries.php?action=edit&id=' . gfrv('snmp_query_id'));
343header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . (empty($snmp_query_graph_id) ? grv('id') : $snmp_query_graph_id) . '&snmp_query_id=' . grv('snmp_query_id'));
344header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
345header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
346header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
347header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
348header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
349header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . gfrv('snmp_query_graph_id') . '&snmp_query_id=' . gfrv('snmp_query_id'));
350header_redirect./data_queries.phpheader('Location: data_queries.php?action=item_edit&id=' . grv('id') . '&snmp_query_id=' . grv('snmp_query_id'));
351header_redirect./data_source_profiles.phpheader('Location: data_source_profiles.php?action=edit&id=' . grv('profile_id'));
352header_redirect./data_source_profiles.phpheader('Location: data_source_profiles.php?action=item_edit&profile_id=' . grv('profile_id') . '&id=' . ($profile_rra_id === null ? grv('id') : $profile_rra_id));
353header_redirect./data_source_profiles.phpheader('Location: data_source_profiles.php');
354header_redirect./data_source_profiles.phpheader('Location: data_source_profiles.php?action=edit&id=' . (empty($profile_id) ? grv('id') : $profile_id));
355header_redirect./data_source_profiles.phpheader('Location: data_source_profiles.php?action=import');
356header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&id=' . (empty($local_data_id) ? gfrv('local_data_id') : $local_data_id) . '&host_id=' . grv('host_id') . '&view_rrd=' . (isrv('current_rrd') ? gnrv('current_rrd') : '0'));
357header_redirect./data_sources.phpheader('Location: data_sources.php');
358header_redirect./data_sources.phpheader('Location: data_sources.php');
359header_redirect./data_sources.phpheader('Location: data_sources.php');
360header_redirect./data_sources.phpheader('Location: data_sources.php');
361header_redirect./data_sources.phpheader('Location: data_sources.php');
362header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&host_id=' . grv('host_id') . '&new=1');
363header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&id=' . (empty($local_data_id) ? gfrv('local_data_id') : $local_data_id) . '&host_id=' . grv('host_id') . '&view_rrd=' . (isrv('current_rrd') ? gnrv('current_rrd') : '0'));
364header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&id=' . grv('id'));
365header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&id=' . grv('id'));
366header_redirect./data_sources.phpheader('Location: data_sources.php?action=ds_edit&id=' . grv('local_data_id'));
367header_redirect./data_templates.phpheader('Location: ' . $location);
368header_redirect./data_templates.phpheader('Location: data_templates.php');
369header_redirect./data_templates.phpheader('Location: data_templates.php?action=template_edit&id=' . (empty($data_template_id) ? grv('data_template_id') : $data_template_id) . (ierv('current_rrd') ? '' : '&view_rrd=' . (gnrv('current_rrd') ? gnrv('current_rrd') : $data_template_rrd_id)));
370header_redirect./data_templates.phpheader('Location: data_templates.php?action=template_edit&id=' . grv('data_template_id'));
371header_redirect./docs/index.phpheader('Location: https://github.com/Cacti/documentation/blob/develop/README.md');
372header_redirect./formats/index.phpheader('Location:../index.php');
373header_redirect./gprint_presets.phpheader('Location: gprint_presets.php');
374header_redirect./gprint_presets.phpheader('Location: gprint_presets.php?action=edit&id=' . ($gprint_preset_id === null ? gnrv('id') : $gprint_preset_id));
375header_redirect./gprint_presets.phpheader('Location: gprint_presets.php');
376header_redirect./graph_templates.phpheader('Location: graph_templates.php');
377header_redirect./graph_templates.phpheader('Location: graph_templates.php?action=template_edit&id=' . gfrv('id'));
378header_redirect./graph_templates.phpheader('Location: graph_templates.php?action=template_edit&id=' . grv('graph_template_id'));
379header_redirect./graph_templates.phpheader('Location: graph_templates.php?action=template_edit&id=' . grv('graph_template_id'));
380header_redirect./graph_templates.phpheader('Location: graph_templates.php?action=template_edit&id=' . grv('graph_template_id'));
381header_redirect./graph_templates.phpheader('Location: graph_templates.php?action=template_edit&id=' . grv('graph_template_id'));
382header_redirect./graphs.phpheader('Location: aggregate_graphs.php');
383header_redirect./graphs.phpheader('Location: aggregate_graphs.php');
384header_redirect./graphs.phpheader('Location: aggregate_graphs.php');
385header_redirect./graphs.phpheader('Location: graphs.php');
386header_redirect./graphs.phpheader('Location: graphs.php');
387header_redirect./graphs.phpheader('Location: graphs.php?template_id=-1');
388header_redirect./graphs.phpheader('Location: graphs.php?action=graph_edit&id=' . gfrv('id'));
389header_redirect./graphs.phpheader('Location: graphs.php?action=graph_edit&id=' . grv('local_graph_id'));
390header_redirect./graphs.phpheader('Location: graphs.php?action=graph_edit&id=' . grv('local_graph_id'));
391header_redirect./graphs.phpheader('Location: graphs.php?action=graph_edit&id=' . grv('local_graph_id'));
392header_redirect./graphs_new.phpheader('Location: graphs_new.php?host_id=' . $host_id);
393header_redirect./graphs_new.phpheader('Location: graphs_new.php?host_id=' . gfrv('host_id'));
394header_redirect./graphs_new.phpheader('Location: graphs_new.php?host_id=' . grv('host_id'));
395header_redirect./host.phpheader('Location: host.php');
396header_redirect./host.phpheader('Location: host.php?action=edit&id=' . (empty($host_id) ? gnrv('id') : $host_id));
397header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id') . '&display_dq_details=true');
398header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
399header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
400header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
401header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
402header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
403header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
404header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
405header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
406header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
407header_redirect./host.phpheader('Location: host.php?action=edit&id=' . grv('host_id'));
408header_redirect./host_templates.phpheader('Location: host_templates.php?action=archives');
409header_redirect./host_templates.phpheader('Location: host_templates.php?action=templates&action=templates');
410header_redirect./host_templates.phpheader('Location: host_templates.php?action=edit&id=' . (empty($host_template_id) ? gnrv('id') : $host_template_id));
411header_redirect./host_templates.phpheader('Location: host_templates.php?action=edit&id=' . gfrv('host_template_id'));
412header_redirect./host_templates.phpheader('Location: host_templates.php?action=edit&id=' . gfrv('host_template_id'));
413header_redirect./host_templates.phpheader('Location: host_templates.php?action=edit&id=' . gfrv('host_template_id'));
414header_redirect./host_templates.phpheader('Location: host_templates.php?action=edit&id=' . gfrv('host_template_id'));
415header_redirect./images/index.phpheader('Location:../index.php');
416header_redirect./include/auth.phpheader('Location: ' . CACTI_PATH_URL . 'auth_2fa.php');
417header_redirect./include/auth.phpheader('Location: ' . CACTI_PATH_URL . 'auth_changepassword.php?ref=' . rawurlencode(validate_redirect_url($_SERVER['HTTP_REFERER'] ?? '', 'index.php')));
418header_redirect./include/auth.phpheader('Location: ' . CACTI_PATH_URL . 'install/');
419header_redirect./include/content/index.phpheader('Location:../index.php');
420header_redirect./include/csrf.phpheader('Location: ' . $redirect_target);
421header_redirect./include/fa/css/index.phpheader('Location:../index.php');
422header_redirect./include/fa/index.phpheader('Location:../index.php');
423header_redirect./include/fa/js/index.phpheader('Location:../index.php');
424header_redirect./include/fa/less/index.phpheader('Location:../index.php');
425header_redirect./include/fa/metadata/index.phpheader('Location:../index.php');
426header_redirect./include/fa/scss/index.phpheader('Location:../index.php');
427header_redirect./include/fa/sprites/index.phpheader('Location:../index.php');
428header_redirect./include/fa/svgs/brands/index.phpheader('Location:../index.php');
429header_redirect./include/fa/svgs/index.phpheader('Location:../index.php');
430header_redirect./include/fa/svgs/regular/index.phpheader('Location:../index.php');
431header_redirect./include/fa/svgs/solid/index.phpheader('Location:../index.php');
432header_redirect./include/fa/webfonts/index.phpheader('Location:../index.php');
433header_redirect./include/global.phpheader('Location: ' . $location);
434header_redirect./include/index.phpheader('Location:../index.php');
435header_redirect./include/js/LC_MESSAGES/index.phpheader('Location:../index.php');
436header_redirect./include/js/index.phpheader('Location:../index.php');
437header_redirect./include/themes/cacti/default/index.phpheader('Location:../index.php');
438header_redirect./include/themes/cacti/images/index.phpheader('Location:../index.php');
439header_redirect./include/themes/cacti/index.phpheader('Location:../index.php');
440header_redirect./include/themes/carrot/default/index.phpheader('Location:../index.php');
441header_redirect./include/themes/carrot/images/index.phpheader('Location:../index.php');
442header_redirect./include/themes/carrot/index.phpheader('Location:../index.php');
443header_redirect./include/themes/dark/default/index.phpheader('Location:../index.php');
444header_redirect./include/themes/dark/images/index.phpheader('Location:../index.php');
445header_redirect./include/themes/dark/index.phpheader('Location:../index.php');
446header_redirect./include/themes/hollyberry/default/index.phpheader('Location:../index.php');
447header_redirect./include/themes/hollyberry/images/index.phpheader('Location:../index.php');
448header_redirect./include/themes/hollyberry/index.phpheader('Location:../index.php');
449header_redirect./include/themes/index.phpheader('Location:../index.php');
450header_redirect./include/themes/midwinter/default/index.phpheader('Location:../index.php');
451header_redirect./include/themes/midwinter/images/index.phpheader('Location:../index.php');
452header_redirect./include/themes/midwinter/index.phpheader('Location:../index.php');
453header_redirect./include/themes/modern/default/index.phpheader('Location:../index.php');
454header_redirect./include/themes/modern/images/index.phpheader('Location:../index.php');
455header_redirect./include/themes/modern/index.phpheader('Location:../index.php');
456header_redirect./include/themes/paper-plane/default/index.phpheader('Location:../index.php');
457header_redirect./include/themes/paper-plane/images/index.phpheader('Location:../index.php');
458header_redirect./include/themes/paper-plane/index.phpheader('Location:../index.php');
459header_redirect./include/themes/paw/default/index.phpheader('Location:../index.php');
460header_redirect./include/themes/paw/images/index.phpheader('Location:../index.php');
461header_redirect./include/themes/paw/index.phpheader('Location:../index.php');
462header_redirect./include/themes/raspberry/default/index.phpheader('Location:../index.php');
463header_redirect./include/themes/raspberry/images/index.phpheader('Location:../index.php');
464header_redirect./include/themes/raspberry/index.phpheader('Location:../index.php');
465header_redirect./include/themes/sunrise/default/index.phpheader('Location:../index.php');
466header_redirect./include/themes/sunrise/images/index.phpheader('Location:../index.php');
467header_redirect./include/themes/sunrise/index.phpheader('Location:../index.php');
468header_redirect./include/views/index.phpheader('Location:../index.php');
469header_redirect./install/upgrades/index.phpheader('Location:../../index.php');
470header_redirect./lib/Auth/LocalAuthLoginProvider.phpheader('Location: auth_changepassword.php');
471header_redirect./lib/Auth/OpenIdLoginProvider.phpheader('Location: ' . $discovery['authorization_endpoint'] . '?' . $query);
472header_redirect./lib/Auth/SamlLoginProvider.phpheader('Location: ' . $responseUrl);
473header_redirect./lib/Auth/SamlLoginProvider.phpheader('Location: ' . $redirectUrl);
474header_redirect./lib/Auth/SamlLoginProvider.phpheader('Location: ' . rtrim((string) read_config_option('base_url'), '/') . '/logout.php');
475header_redirect./lib/auth.phpheader('Location: ' . $referer);
476header_redirect./lib/auth.phpheader('Location: ' . CACTI_PATH_URL . 'graph_view.php' . ($newtheme ? '?newtheme=1' : ''));
477header_redirect./lib/auth.phpheader('Location: ' . CACTI_PATH_URL . 'index.php' . ($newtheme ? '?newtheme=1' : ''));
478header_redirect./lib/auth.phpheader('Location: graph_view.php');
479header_redirect./lib/auth.phpheader('Location: index.php');
480header_redirect./lib/auth.phpheader('Location: ' . CACTI_PATH_URL . 'graph_view.php' . ($newtheme ? '?newtheme=1' : ''));
481header_redirect./lib/auth.phpheader('Location: ' . CACTI_PATH_URL . 'auth_changepassword.php?action=force&ref=' . urlencode(validate_redirect_url($_SERVER['HTTP_REFERER'] ?? 'index.php')));
482header_redirect./lib/clog_webapi.phpheader('Location: clog.php?filename=' . basename($logfile));
483header_redirect./lib/clog_webapi.phpheader('Location: ' . get_current_page());
484header_redirect./lib/functions.phpheader('Location: ' . cacti_url(sanitize_redirect_path($path), $params));
485header_redirect./lib/html_form.phpheader('Location: ' . $page);
486header_redirect./lib/html_form.phpheader('Location: ' . $page);
487header_redirect./lib/html_graph.phpheader('Location: ' . $page . '?host_id=' . $host_id);
488header_redirect./lib/html_graph.phpheader('Location: permission_denied.php');
489header_redirect./lib/html_graph.phpheader('Location: permission_denied.php');
490header_redirect./lib/html_graph.phpheader('Location: permission_denied.php');
491header_redirect./lib/html_graph.phpheader('Location: graph_view.php?action=list');
492header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
493header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
494header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
495header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
496header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
497header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
498header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page() . '?action=item_edit&id=' . gnrv('report_id') . '&item_id=' . (empty($item_id) ? gnrv('id') : $item_id));
499header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
500header_redirect./lib/html_reports.phpheader('Location: ' . get_reports_page());
501header_redirect./lib/html_reports.phpheader('Location: ' . reports_redirect_url(get_reports_page(), (empty($id) ? $post['id'] : $id)));
502header_redirect./lib/html_tree.phpheader('Location: permission_denied.php');
503header_redirect./lib/html_tree.phpheader('Location: permission_denied.php');
504header_redirect./lib/index.phpheader('Location:../index.php');
505header_redirect./lib/plugins.phpheader('Location: plugins.php');
506header_redirect./lib/plugins.phpheader('Location: plugins.php');
507header_redirect./lib/plugins.phpheader('Location: plugins.php');
508header_redirect./lib/plugins.phpheader('Location: plugins.php');
509header_redirect./lib/plugins.phpheader('Location: plugins.php');
510header_redirect./lib/plugins.phpheader('Location: plugins.php');
511header_redirect./lib/plugins.phpheader('Location: plugins.php');
512header_redirect./lib/plugins.phpheader('Location: plugins.php');
513header_redirect./lib/plugins.phpheader('Location: plugins.php');
514header_redirect./link.phpheader('Location: ' . $referer);
515header_redirect./link.phpheader('Location: ' . $referer);
516header_redirect./links.phpheader('Location: links.php');
517header_redirect./links.phpheader('Location: links.php?action=edit&id=' . (isrv('id') ? gfrv('id') : ''));
518header_redirect./links.phpheader('Location: links.php');
519header_redirect./links.phpheader('Location: links.php');
520header_redirect./links.phpheader('Location: links.php');
521header_redirect./links.phpheader('Location: links.php');
522header_redirect./links.phpheader('Location: links.php');
523header_redirect./locales/index.phpheader('Location:../index.php');
524header_redirect./log/index.phpheader('Location:../index.php');
525header_redirect./login_providers.phpheader('Location: login_providers.php');
526header_redirect./login_providers.phpheader('Location: login_providers.php?action=edit&id=' . (empty($id) ? gnrv('id') : $id));
527header_redirect./login_providers.phpheader('Location: login_providers.php');
528header_redirect./logout.phpheader('Location: index.php');
529header_redirect./managers.phpheader('Location: managers.php');
530header_redirect./managers.phpheader('Location: managers.php?action=edit&id=' . gnrv('id') . '&tab=notifications');
531header_redirect./managers.phpheader('Location: managers.php?action=edit&tab=notifications&id=' . grv('id'));
532header_redirect./managers.phpheader('Location: managers.php?action=edit&id=' . (empty($manager_id) ? gnrv('id') : $manager_id));
533header_redirect./mibs/index.phpheader('Location:../index.php');
534header_redirect./oauth2.phpheader('Location: ' . $authUrl);
535header_redirect./package.phpheader('Location: package.php');
536header_redirect./package_import.phpheader('Location: package_import.php?package_location=' . $package_location);
537header_redirect./package_import.phpheader('Location: package_import.php');
538header_redirect./package_import.phpheader('Location: package_import.php');
539header_redirect./package_import.phpheader('Location: package_import.php');
540header_redirect./package_import.phpheader('Location: package_import.php');
541header_redirect./package_import.phpheader('Location: package_import.php?package_location=0');
542header_redirect./package_import.phpheader('Location: package_import.php');
543header_redirect./package_import.phpheader('Location: package_import.php');
544header_redirect./package_import.phpheader('Location: package_import.php?package_location=' . $package_location);
545header_redirect./package_keys.phpheader('Location: package_keys.php?header=false');
546header_redirect./package_keys.phpheader('Location: package_keys.php?header=false');
547header_redirect./package_repos.phpheader('Location: package_repos.php?header=false');
548header_redirect./package_repos.phpheader('Location: package_repos.php?header=false');
549header_redirect./package_repos.phpheader('Location: package_repos.php?header=false&action=edit&id=' . (empty($id) ? gnrv('id') : $id));
550header_redirect./plugins.phpheader('Location: plugins.php');
551header_redirect./plugins.phpheader('Location: plugins.php');
552header_redirect./plugins.phpheader('Location: plugins.php');
553header_redirect./plugins.phpheader('Location: plugins.php');
554header_redirect./plugins.phpheader('Location: plugins.php');
555header_redirect./plugins.phpheader('Location: plugins.php?state=5');
556header_redirect./plugins.phpheader('Location: plugins.php');
557header_redirect./plugins.phpheader('Location: plugins.php');
558header_redirect./plugins.phpheader('Location: plugins.php');
559header_redirect./plugins.phpheader('Location: plugins.php');
560header_redirect./plugins.phpheader('Location: plugins.php');
561header_redirect./plugins.phpheader('Location: plugins.php');
562header_redirect./plugins.phpheader('Location: plugins.php');
563header_redirect./plugins.phpheader('Location: plugins.php');
564header_redirect./plugins.phpheader('Location: plugins.php');
565header_redirect./plugins.phpheader('Location: plugins.php');
566header_redirect./plugins.phpheader('Location: plugins.php');
567header_redirect./plugins.phpheader('Location: plugins.php');
568header_redirect./plugins.phpheader('Location: plugins.php');
569header_redirect./plugins.phpheader('Location: plugins.php');
570header_redirect./plugins.phpheader('Location: plugins.php');
571header_redirect./plugins.phpheader('Location: plugins.php');
572header_redirect./plugins.phpheader('Location: plugins.php');
573header_redirect./pollers.phpheader('Location: pollers.php');
574header_redirect./pollers.phpheader('Location: pollers.php?action=edit&id=' . (empty($poller_id) ? gnrv('id') : $poller_id));
575header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=' . grv('tab') . '&id=' . grv('id'));
576header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=items&id=' . grv('id'));
577header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=items&id=' . grv('id'));
578header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=items&id=' . grv('id'));
579header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=items&id=' . grv('id'));
580header_redirect./reports.phpheader('Location: reports.php?action=edit&tab=preview&rdate=-1&id=' . $report_id);
581header_redirect./resource/index.phpheader('Location:../index.php');
582header_redirect./resource/script_queries/index.phpheader('Location:../index.php');
583header_redirect./resource/script_server/index.phpheader('Location:../index.php');
584header_redirect./resource/snmp_queries/index.phpheader('Location:../index.php');
585header_redirect./scripts/index.phpheader('Location:../index.php');
586header_redirect./service/index.phpheader('Location:../index.php');
587header_redirect./settings.phpheader('Location: settings.php?header=false&tab=' . grv('tab'));
588header_redirect./settings.phpheader('Location: settings.php?tab=' . grv('tab'));
589header_redirect./settings.phpheader('Location: settings.php?tab=' . urlencode($tab));
590header_redirect./sites.phpheader('Location: sites.php');
591header_redirect./sites.phpheader('Location: sites.php?action=edit&id=' . (empty($site_id) ? gnrv('id') : $site_id));
592header_redirect./support.phpheader('Location: support.php?tab=summary');
593header_redirect./support.phpheader('Location: support.php?tab=summary');
594header_redirect./templates_export.phpheader('Location: templates_export.php');
595header_redirect./templates_import.phpheader('Location: templates_import.php');
596header_redirect./templates_import.phpheader('Location: templates_import.php');
597header_redirect./tests/index.phpheader('Location:../index.php');
598header_redirect./tree.phpheader('Location: tree.php');
599header_redirect./tree.phpheader('Location: tree.php');
600header_redirect./tree.phpheader('Location: tree.php');
601header_redirect./tree.phpheader('Location: tree.php');
602header_redirect./tree.phpheader('Location: tree.php');
603header_redirect./tree.phpheader('Location: tree.php');
604header_redirect./tree.phpheader('Location: tree.php');
605header_redirect./tree.phpheader('Location: tree.php');
606header_redirect./tree.phpheader('Location: tree.php?action=edit&id=' . (isset($tree_id) ? $tree_id : ''));
607header_redirect./tree.phpheader('Location: tree.php');
608header_redirect./tree.phpheader('Location: tree.php');
609header_redirect./tree.phpheader('Location: tree.php');
610header_redirect./user_admin.phpheader('Location: user_admin.php');
611header_redirect./user_admin.phpheader('Location: user_admin.php');
612header_redirect./user_admin.phpheader('Location: user_admin.php');
613header_redirect./user_admin.phpheader('Location: user_admin.php');
614header_redirect./user_admin.phpheader('Location: user_admin.php');
615header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=graph_perms_edit&id=' . gnrv('id'));
616header_redirect./user_admin.phpheader('Location: user_admin.php');
617header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=permsd&id=' . gnrv('id'));
618header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=permsg&id=' . gnrv('id'));
619header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=permsgr&id=' . gnrv('id'));
620header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=permste&id=' . gnrv('id'));
621header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=permstr&id=' . gnrv('id'));
622header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&id=' . (empty($user_id) ? gfrv('id') : $user_id));
623header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=' . gnrv('tab') . '&id=' . gnrv('id'));
624header_redirect./user_admin.phpheader('Location: user_admin.php?action=user_edit&tab=graph_perms_edit&id=' . grv('user_id'));
625header_redirect./user_group_admin.phpheader('Location: user_group_admin.php');
626header_redirect./user_group_admin.phpheader('Location: user_group_admin.php');
627header_redirect./user_group_admin.phpheader('Location: user_group_admin.php');
628header_redirect./user_group_admin.phpheader('Location: user_group_admin.php');
629header_redirect./user_group_admin.phpheader('Location: user_group_admin.php');
630header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=general&id=' . (isset($group_id) && $group_id > 0 ? $group_id : gnrv('id')));
631header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=members&id=' . gnrv('id'));
632header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=permsd&id=' . gnrv('id'));
633header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=permsg&id=' . gnrv('id'));
634header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=permste&id=' . gnrv('id'));
635header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=permstr&id=' . gnrv('id'));
636header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=realms&id=' . grv('id'));
637header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=settings&id=' . gnrv('id'));
638header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=' . gnrv('tab') . '&id=' . gnrv('id'));
639header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=general&id=' . gnrv('id'));
640header_redirect./user_group_admin.phpheader('Location: user_group_admin.php?action=edit&tab=gperms&id=' . grv('group_id'));
641header_redirect./utilities.phpheader('Location: support.php?tab=summary');
642header_redirect./utilities.phpheader('Location: utilities.php');
643header_redirect./utilities.phpheader('Location: utilities.php');
644header_redirect./utilities.phpheader('Location: utilities.php?action=view_poller_cache');
645header_redirect./utilities.phpheader('Location: utilities.php?action=view_snmpagent_cache');
646xml_parse./cli/genmanifest.php$xmldata = simplexml_load_string($data);
647xml_parse./cli/rrdresize.php$rrd_data = json_decode((string) json_encode(simplexml_load_string($file_dump)), true);
648xml_parse./install/functions.php$xmlget = simplexml_load_string($xml);
649xml_parse./lib/import.php$xmlget = simplexml_load_string((string) $data);
650xml_parse./lib/import.php$xmlget = simplexml_load_string($xml);