Project

General

Profile

« Previous | Next » 

Revision 947141fd

Added by Phil Davis over 9 years ago

Code style usr local www a-e

View differences:

src/usr/local/www/diag_traceroute.php
90 90

  
91 91
	$sourceips = get_possible_traffic_source_addresses(true);
92 92

  
93
	foreach ($sourceips as $sipvalue => $sipname)
93
	foreach ($sourceips as $sipvalue => $sipname) {
94 94
		$list[$sipvalue] = $sipname;
95
	}
95 96

  
96 97
	return($list);
97 98
}
......
135 136
	$useicmp = false;
136 137
}
137 138

  
138
if ($input_errors)
139
if ($input_errors) {
139 140
	print_input_errors($input_errors);
141
}
140 142

  
141 143
$form = new Form('Traceroute');
142 144

  
......
212 214
		<div class="panel-heading"><h2 class="panel-title">Results</h2></div>
213 215
		<div class="panel-body">
214 216
<?php
215
		if ($result = shell_exec($cmd))
217
		if ($result = shell_exec($cmd)) {
216 218
			print(nl2br($result));
217
		else
219
		} else {
218 220
			print('Error: ' . $host . ' ' . gettext("could not be traced/resolved"));
221
		}
219 222
?>
220 223
		</div>
221 224
	</div>

Also available in: Unified diff