Projet

Général

Profil

« Précédent | Suivant » 

Révision d02491e6

Ajouté par Colin Fleming il y a plus de 9 ans

Tidy up "status_rrd_graph.php" XHTML

"id" attributes cannot start with a numeric character, so change "8hour"
to "eighthour" and "4year" to "fouryear".

Voir les différences:

usr/local/www/status_rrd_graph.php
245 245
$ui_databases = array_merge($dbheader, $databases);
246 246
$custom_databases = array_merge($dbheader_custom, $databases);
247 247

  
248
$graphs = array("8hour", "day", "week", "month", "quarter", "year", "4year");
248
$graphs = array("eighthour", "day", "week", "month", "quarter", "year", "fouryear");
249 249
$periods = array("absolute" => gettext("Absolute Timespans"), "current" => gettext("Current Period"), "previous" => gettext("Previous Period"));
250 250
$graph_length = array(
251
	"8hour" => 28800,
251
	"eighthour" => 28800,
252 252
	"day" => 86400,
253 253
	"week" => 604800,
254 254
	"month" => 2678400,
255 255
	"quarter" => 7948800,
256 256
	"year" => 31622400,
257
	"4year" => 126230400);
257
	"fouryear" => 126230400);
258 258

  
259 259
$pgtitle = array(gettext("Status"),gettext("RRD Graphs"));
260 260

  
......
331 331
				$offset = 0;
332 332
		}
333 333
		switch($graph) {
334
			case "8hour":
334
			case "eighthour":
335 335
				if($curhour < 24)
336 336
					$starthour = 16;
337 337
				if($curhour < 16)
......
385 385
				if($offset != 0)
386 386
					$end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));
387 387
				break;
388
			case "4year":
388
			case "fouryear":
389 389
				$start = mktime(0, 0, 0, 1, 0, (($curyear - 3) + $offset));
390 390
				if($offset != 0)
391 391
					$end = mktime(0, 0, 0, 1, 0, (($curyear + $offset) +1));

Formats disponibles : Unified diff