Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
interface/lib/classes/aps_base.inc.php
@@ -58,6 +58,8 @@
     * @param $interface_mode act in interface (true) or server mode (false)
     * @param $log_prefix a prefix to set before all log entries
     */
    public function __construct($app, $log_prefix = 'APS: ', $interface_mode = false)
    {
        $this->log_prefix = $log_prefix;
@@ -67,6 +69,8 @@
        $this->packages_dir = ISPC_ROOT_PATH.'/aps_packages';
        $this->interface_pkg_dir = ISPC_ROOT_PATH.'/web/sites/aps_meta_packages';
    }
    
    /**
     * Converts a given value to it's native representation in 1024 units
@@ -79,6 +83,8 @@
        $unit = array('Bytes', 'KB', 'MB', 'GB', 'TB');
        return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i];
    }
    
    /**
     * Determine a specific xpath from a given SimpleXMLElement handle. If the
@@ -99,5 +105,7 @@
        
        return $ret;
    }
}
?>