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