'.PHP_EOL); foreach($_POST['goodRoles'] as removeBrackets($selectedOption)) { fwrite($rolefile, '
  • '.$selectedOption.'
  • '.PHP_EOL); }; fwrite($rolefile, ';"'.PHP_EOL); #Convars $f_convars = '$convars = "Normal Role Convars (also found in ULX): '.removeBrackets($_POST['gconvars'].' Rolespecific Convars: '.removeBrackets($_POST['cconvars']).'"'; fwrite($rolefile, $f_convars.PHP_EOL); # # Credits # #The Steam URL to your addon $f_steam = removeBrackets($_POST['steam']); fwrite($rolefile, '$steam = "'.$f_steam.'"'.PHP_EOL); #The Source URL to your addon $f_source = removeBrackets($_POST['source']); fwrite($rolefile, '$source = "'.$f_source.'"'.PHP_EOL); #Creator of the Addon $f_author = removeBrackets($_POST['creator']); fwrite($rolefile, '$author = "'.$f_author.'"'.PHP_EOL); #Creatorlink $f_authorurl = removeBrackets($_POST['creatorurl']); fwrite($rolefile, '$authorurl = "'.$f_authorurl.'"'.PHP_EOL); # Credittext (can use the above variables) $f_ctext = removeBrackets($_POST['credits']); fwrite($rolefile, '$ctext = "'.$f_ctext.'"'.PHP_EOL); fwrite($rolefile, '?>'); fclose($rolefile); } else { echo 'INVALID ROLENAME'; } ?>