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; }
return '<table class=\'table table-striped\'>' . '<thead>' . $tableHead . '</thead>' . '<tbody>' . implode($shellExecOutput) . '</tbody>' . '</table>'; } ?> <div class="container details"> <table> <tr id="check-system"> <td class="check"><i class="icon-cog"></i> System</td> <td class="icon"></td> <td class="infos"> hostname: <span class="text-info"><?php echo Rbpi::hostname(true); ?> </span> <br />distribution: <span class="text-info"><?php echo Rbpi::distribution(); ?> </span> <br />kernel: <?php echo Rbpi::kernel(); ?> <br />firmware: <?php echo Rbpi::firmware(); ?> </td> </tr> <tr id="check-uptime"> <td class="check"><i class="icon-time"></i> Uptime</td> <td class="icon"></td> <td class="infos"><?php