function site_config() { return find_config(array("site/config.js", "config.js"), '#MirrorConfig\\s+=\\s+#ms'); }
if (strcmp("{$wifi_mask}", "") == 0) { $wifi_mask = "255.255.255.0"; } if (strcmp("{$wifi_gw}", "") == 0) { $wifi_gw = "0.0.0.0"; } $eth_phy = get_phy_addr("eth0"); $wlan_phy = get_phy_addr("wlan0"); if (find_config($net_config, "wlan0", "wpa-psk", "bool")) { $wifi_key_type = "WPA AUTO"; $wifi_password = find_config($net_config, "wlan0", "wpa-psk ", "val"); $wifi_ssid = find_config($net_config, "wlan0", "wpa-ssid", "val"); } else { if (find_config($net_config, "wlan0", "wireless-key", "val")) { $wifi_key_type = "WEP"; $wifi_password = find_config($net_config, "wlan0", "wireless-key", "val"); $wifi_ssid = find_config($net_config, "wlan0", "wireless-essid", "val"); } else { $wifi_key_type = "NONE"; $wifi_ssid = find_config($net_config, "wlan0", "wireless-essid", "val"); } } //Compute time loading for debug option $end_load = getmicrotime(); if ($GLOBALS['DEBUG_TRACE']) { echo __('GENERATE_TIME') . ": " . round($end_load - $start_load, 3) . " secondes.<br />"; echo "---------------------------------------"; aff_variables(); echo "---------------------------------------<br />"; memory_stat(); }