# Library hosts ConfigFile::write(['', '', '# Setting the hosted urls']); ConfigFile::write("define( 'NQ_API_SHARED_HOST',\t'http://" . $_POST['app_create_dev_domain'] . "/api/' );"); ConfigFile::write("define( 'NQ_API_HOST_AUTH', \tNQ_API_SHARED_HOST . 'auth' );"); ConfigFile::write("define( 'NQ_API_HOST_DATABASE', \tNQ_API_SHARED_HOST . 'db' );"); ConfigFile::write("define( 'NQ_API_HOST_IMAGE',\tNQ_API_SHARED_HOST . 'img' );"); ConfigFile::write("define( 'NQ_API_HOST_FILE', \tNQ_API_SHARED_HOST . 'file' );"); ConfigFile::write("define( 'NQ_API_HOST_EMAIL', \tNQ_API_SHARED_HOST . 'email' );"); # Place for table aliases ConfigFile::write(['', '', '# Database Table Aliases']); ConfigFile::write('/* Add Database Table Aliases for Development here */'); ConfigFile::write(['', 'break;', '', '']); ConfigFile::tab(-1); } # Ending the switch ConfigFile::tab(-1); ConfigFile::write('}'); ConfigFile::write(''); } } # Logging $G_OUTPUT_RESULTS[] = ' - Closing the config file.<br />'; # Closing the config file ConfigFile::close(); } # Advanced install of storage servers if ($_POST['install-mode'] == 'advanced' && (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '' || isset($_POST['create_storage_host']) && $_POST['create_storage_host'] != '')) { # Storage Servers header create_header('Storage Servers', $G_OUTPUT_RESULTS); # Adding controller to database host if (isset($_POST['create_database_host']) && $_POST['create_database_host'] != '') {