function build_rbpi($response) { $response['rbpi']['hostname'] = Rbpi::hostname(true); $response['rbpi']['distribution'] = Rbpi::distribution(); $response['rbpi']['kernel'] = Rbpi::kernel(); $response['rbpi']['firmware'] = Rbpi::firmware(); $response['rbpi']['ip']['internal'] = Rbpi::internalIp(); $response['rbpi']['ip']['external'] = Rbpi::externalIp(); return $response; }
free: <span class="text-success">', $hdd[$i]['free'], 'b</span> · used: <span class="text-warning">', $hdd[$i]['used'], 'b</span> · total: ', $hdd[$i]['total'], 'b · format: ', $hdd[$i]['format'], ' </td> </tr> ', $i == sizeof($hdd) - 1 ? null : '<tr class="storage">'; } ?> <tr id="check-network"> <td class="check"><i class="icon-globe"></i> Network</td> <td class="icon"><?php echo icon_alert($net_connections['alert']); ?> </td> <td class="infos"> IP: <span class="text-info"><?php echo Rbpi::internalIp(); ?> </span> [internal] · <span class="text-info"><?php echo Rbpi::externalIp(); ?> </span> [external] <br />received: <strong><?php echo $net_eth['down']; ?> Mb</strong> · sent: <strong><?php echo $net_eth['up']; ?> Mb</strong> · total: <?php echo $net_eth['total']; ?>