diff --git a/html/pages/storage.inc.php b/html/pages/storage.inc.php
deleted file mode 100644
index 46325ff130..0000000000
--- a/html/pages/storage.inc.php
+++ /dev/null
@@ -1,81 +0,0 @@
-= '5')
-{
- $sql = "SELECT * FROM `storage` AS S, `devices` AS D WHERE S.device_id = D.device_id ORDER BY D.hostname, S.storage_descr";
-} else {
- $sql = "SELECT * FROM `storage` AS S, `devices` AS D, devices_perms as P WHERE S.device_id = D.device_id AND ";
- $sql .= "D.device_id = P.device_id AND P.user_id = '" . $_SESSION['user_id'] . "' ORDER BY D.hostname, S.storage_descr";
-}
-
-$query = mysql_query($sql);
-
-echo("
-
");
-
-echo("
- | Device |
- Storage |
- |
- Usage |
- Used |
-
");
-
-$row = 1;
-
-while ($drive = mysql_fetch_assoc($query))
-{
- $skipdrive = 0;
-
- if ($drive["os"] == "junos")
- {
- foreach ($config['ignore_junos_os_drives'] as $jdrive)
- {
- if (preg_match($jdrive, $drive["storage_descr"]))
- {
- $skipdrive = 1;
- }
- }
-
- $drive["storage_descr"] = preg_replace("/.*mounted on: (.*)/", "\\1", $drive["storage_descr"]);
-
- }
-
- if ($drive['os'] == "freebsd")
- {
- foreach ($config['ignore_bsd_os_drives'] as $jdrive)
- {
- if (preg_match($jdrive, $drive["storage_descr"]))
- {
- $skipdrive = 1;
- }
- }
- }
-
- if ($skipdrive) { continue; }
- if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
-
- $perc = round($drive['storage_perc'], 0);
- $total = formatStorage($drive['storage_size']);
- $free = formatStorage($drive['storage_free']);
- $used = formatStorage($drive['storage_used']);
-
- $store_url = "graph.php?id=" . $drive['storage_id'] . "&type=storage&from=$month&to=$now&width=400&height=125";
- $store_popup = "onmouseover=\"return overlib('
', LEFT);\" onmouseout=\"return nd();\"";
-
- $mini_graph = $config['base_url'] . "/graph.php?id=".$drive['storage_id']."&type=storage&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
-
- $background = get_percentage_colours($perc);
-
- echo("| " . generate_device_link($drive) . " | " . $drive['storage_descr'] . " |
-  |
-
- ".print_percentage_bar (400, 20, $perc, "$used / $total", "ffffff", $background['left'], formatStorage($free), "ffffff", $background['right'])."
- | $perc"."% |
");
-
- $row++;
-}
-
-echo("
");
-
-?>
diff --git a/html/pages/syslog.inc.php b/html/pages/syslog.inc.php
index 0e93eaa35c..0228f302d1 100644
--- a/html/pages/syslog.inc.php
+++ b/html/pages/syslog.inc.php
@@ -1,6 +1,6 @@
-= '10') { mysql_query("TRUNCATE TABLE `syslog`"); } ?>
+= '10') { dbFetchCell("TRUNCATE TABLE `syslog`"); } ?>