space -

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php < /* * Invision Power File Manager * Server Space Script * Copyright (c) 2003 Invision Power Services * ------------------------------------- * You may not remove the copyright or * redistribute the script in any form * * Authors: Stephen Ball <[email protected]> * * Last Modified: 22nd February 2003 * */ error_reporting(0); e if (!(include("./modules/header.lib.php"))) { die("<p align=\"center\">There was an error loading the header module</p>"); } // Get the usage statistics $used = dirsize($params["root"]); $total = $params["space"]; $free = $total - $used; $ // A small fix so that the chart is shown as full if the user has used more space than their limit if ($free < 0) { $free = 0; } // Convert to human readable format $space["used"] = size($used); $space["total"] = size($total); $space["free"] = size($free); $ $used_rgb = $used_colour[0] . "," . $used_colour[1] . "," . $used_colour[2]; // Build the CSS RGB colours for "used" space $free_rgb = $free_colour[0] . "," . $free_colour[1] . "," . $free_colour[2]; //
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/18/2011 for the course CSE 099 taught by Professor Hawkins during the Spring '11 term at N. Arizona.

Page1 / 2

space -

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online