diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index ca77e1ba69..edebda817e 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -140,7 +140,7 @@ function overlib_link($url, $text, $contents, $class) global $config; $contents = str_replace("\"", "\'", $contents); - $output = ""; $output .= $text.""; diff --git a/html/includes/graphs/graph.inc.php b/html/includes/graphs/graph.inc.php index 0add1b6f99..ca71adc6e7 100644 --- a/html/includes/graphs/graph.inc.php +++ b/html/includes/graphs/graph.inc.php @@ -7,21 +7,21 @@ function data_uri($file, $mime) return ('data:' . $mime . ';base64,' . $base64); } -$width = mres($_GET['width']); -$height = mres($_GET['height']); -$title = mres($_GET['title']); -$vertical = mres($_GET['vertical']); -$legend = mres($_GET['legend']); -$id = mres($_GET['id']); +$width = $_GET['width']; +$height = $_GET['height']; +$title = $_GET['title']; +$vertical = $_GET['vertical']; +$legend = $_GET['legend']; +$id = $_GET['id']; -$from = (isset($_GET['from']) ? mres($_GET['from']) : time() - 60*60*24); -$to = (isset($_GET['to']) ? mres($_GET['to']) : time()); +$from = (isset($_GET['from']) ? $_GET['from'] : time() - 60*60*24); +$to = (isset($_GET['to']) ? $_GET['to'] : time()); if ($from < 0) { $from = $to + $from; } $graphfile = $config['temp_dir'] . "/" . strgen() . ".png"; -preg_match('/^(?P[A-Za-z0-9]+)_(?P.+)/', mres($_GET['type']), $graphtype); +preg_match('/^(?P[A-Za-z0-9]+)_(?P.+)/', $_GET['type'], $graphtype); $type = $graphtype['type']; $subtype = $graphtype['subtype']; diff --git a/html/includes/print-quadgraphs.inc.php b/html/includes/print-quadgraphs.inc.php index 987a7e2ccd..4ce8661bee 100644 --- a/html/includes/print-quadgraphs.inc.php +++ b/html/includes/print-quadgraphs.inc.php @@ -2,7 +2,8 @@ global $config; -if($_SESSION['widescreen']) { +if($_SESSION['widescreen']) +{ if (!$graph_array['height']) { $graph_array['height'] = "110"; } if (!$graph_array['width']) { $graph_array['width'] = "215"; } $periods = array('sixhour', 'day', 'week', 'month', 'year', 'twoyear'); diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index 6cf0ebf604..7a6f26c1e9 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -16,7 +16,7 @@ if($_SESSION['widescreen']) if (!is_numeric($vars['from'])) { $vars['from'] = $config['time']['day']; } if (!is_numeric($vars['to'])) { $vars['to'] = $config['time']['now']; } -preg_match('/^(?P[A-Za-z0-9]+)_(?P.+)/', mres($vars['type']), $graphtype); +preg_match('/^(?P[A-Za-z0-9]+)_(?P.+)/', $vars['type'], $graphtype); $type = $graphtype['type']; $subtype = $graphtype['subtype'];