function write_config_file() { global $errors, $DFLT; test_im(); detect_img_package(); $config = build_cfg_file(); @unlink($DFLT['cfg_f']); if ($fd = @fopen($DFLT['cfg_f'], 'wb')) { fwrite($fd, $config); fclose($fd); } else { $errors .= "<hr /><br />Unable to write config file '{$DFLT['cfg_f']}'<br /><br />"; } }
function write_config_file() { global $errors; $config = build_cfg_file(); @unlink(CONF_DB); if ($fd = @fopen(CONF_DB, 'wb')) { fwrite($fd, $config); fclose($fd); } else { $errors[]= "Tidak bisa Menulis config file : '{CONF_DB}'"; } }