. * * Version 0.1 * Author: Octavio Benedi Sanchez */ function make_interface() { global $url_plugin; global $section; global $plugin; global $base_plugin; // Check the ntp status if (file_exists('/etc/ntp_time.conf')) { $ntp_file=file('/etc/ntp_time.conf'); foreach($ntp_file as $ntp_conf_line) { $ntp_active=explode('=',trim($ntp_conf_line)); if (($ntp_active[0]=='ntp_mode')&&($ntp_active[1]=='on')) { $ntp_status='checked'; } } unset($ntp_file); unset($ntp_conf_line); unset($ntp_active); } // Check the gps time status if (file_exists('/etc/gps_time.conf')) { $gps_file=file('/etc/gps_time.conf'); foreach($gps_file as $gps_conf_line) { $gps_active=explode('=',trim($gps_conf_line)); if (($gps_active[0]=='gps_mode')&&($gps_active[1]=='on')) { $gps_status='checked'; } } unset($gps_file); unset($gps_conf_line); unset($gps_active); } $date=exec("date"); $list='