* HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
$myChart = new BJCBarChart();
$y = date('Y');
for ($i = 1; $i < 13; $i++) {
    $j = $i;
    if ($i <= 9) {
        $j = "0" . $i;
    }
    $query = "SELECT * FROM {$BL->props->tbl_orders} WHERE `sign_date` like '{$y}-{$j}-%'";
    $result = $BL->dbL->executeSELECT($query);
    $num_rows[$i] = count($result);
}
// Set the properties
$myChart->max = "1";
$myChart->min = "0";
$myChart->barWidth = "1000";
// As wide bars as possible
 * HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
$myChart = new BJCBarChart();
$conf = $BL->conf;
$symbol = $conf['symbol'];
$y = date('Y');
$status = $BL->props->invoice_status[1];
$y -= 3;
for ($i = 0; $i < 4; $i++) {
    $y1 = $y + $i;
    $query1 = "SELECT SUM(`gross_amount`) as total FROM {$BL->props->tbl_invoices} WHERE `status`='{$status}' AND `due_date` LIKE '{$y1}-%'";
    $intot = $BL->dbL->executeSELECT($query1);
    $into = $intot[0]['total'];
    if ($into == '') {
        $intot1[$i] = "0";
    } else {
        $intot1[$i] = $into;
    }
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
$conf = $BL->conf;
$symbol = $conf['symbol'];
$myChart = new BJCBarChart();
$status = $BL->props->invoice_status[1];
$y = date('Y');
for ($i = 1; $i < 13; $i++) {
    $j = $i;
    if ($i <= 9) {
        $j = "0" . $i;
    }
    $query1 = "SELECT SUM(gross_amount) as total FROM {$BL->props->tbl_invoices} WHERE `status`='{$status}' AND `due_date` like '{$y}-{$j}-%'";
    $intot = $BL->dbL->executeSELECT($query1);
    if ($intot[0]['total'] == '') {
        $intot1[$i] = "0";
    } else {
        $intot1[$i] = $intot[0]['total'];
    }
}
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
$conf = $BL->conf;
$symbol = $conf['symbol'];
$myChart = new BJCBarChart();
$allInvoices = $BL->invoices->get();
$amount = array();
$count = array();
foreach ($allInvoices as $key => $val) {
    foreach ($BL->props->invoice_status as $k => $v) {
        if ($val['status'] == $v && $k < 4) {
            if (empty($amount[$v])) {
                $amount[$v] = $val['gross_amount'];
            } else {
                $amount[$v] = $amount[$v] + $val['gross_amount'];
            }
            if (empty($count[$v])) {
                $count[$v] = 1;
            } else {
                $count[$v] = $count[$v] + 1;
 * HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
 * FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
 * DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
 * TRADEMARKS OR OTHER RIGHTS.
 * COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
 * OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
 * DOCUMENTATION.
 *
 * The name and trademarks of copyright holders may NOT be used in
 * advertising or publicity pertaining to the software without specific,
 * written prior permission. Title to copyright in this software and any
 * associated documentation will at all times remain with copyright
 * holders.
 */
$myChart = new BJCBarChart();
$uptime = @exec('uptime');
if ($uptime) {
    preg_match("/averages?: ([0-9\\.]+),[\\s]+([0-9\\.]+),[\\s]+([0-9\\.]+)/", $uptime, $avgs);
    $uptime = explode(' up ', $uptime);
    $uptime = explode(',', $uptime[1]);
    $uptime = $uptime[0] . ', ' . $uptime[1];
    $start = mktime(0, 0, 0, 1, 1, date("Y"));
    $end = mktime(0, 0, 0, date("m"), date("j"), date("y"));
    $diff = $end - $start;
    $days = $diff / 86400;
    #$percentage=($uptime/$days) * 100;
    $load = $avgs[1] . "," . $avgs[2] . "," . $avgs[3] . "";
    #echo 'Average Load: '.$load;
    #echo '<BR>Uptime: '.$uptime;
    #echo "<BR>$avgs[1]";