Current File : //etc/zpanel/panel/dryden/ui/tpl/quotabandwidth.class.php
<?php

/**
 * @copyright 2014-2015 Sentora Project (http://www.sentora.org/) 
 * Sentora is a GPL fork of the ZPanel Project whose original header follows:
 *
 * Generic template place holder class.
 * @package zpanelx
 * @subpackage dryden -> ui -> tpl
 * @version 1.0.0
 * @author Bobby Allen (ballen@bobbyallen.me)
 * @copyright ZPanel Project (http://www.zpanelcp.com/)
 * @link http://www.zpanelcp.com/
 * @license GPL (http://www.gnu.org/licenses/gpl.html)
 */
class ui_tpl_quotabandwidth {

    public static function Template() {
        $currentuser = ctrl_users::GetUserDetail();
        if ($currentuser['bandwidthquota'] == 0)
            $bandwidthquota = '<: Unlimited :>';
        else
            $bandwidthquota = fs_director::ShowHumanFileSize($currentuser['bandwidthquota']);
        return $bandwidthquota;
    }

}

?>