Closed mrlsecurity closed 5 years ago
so.... If someone wants to customize this game, you can change names to your own in 2 files: database/countries.sql and src/models/Country.php.
countries.sql:
CHANGE
`iso_code
varchar(2) to iso_code
varchar(20) `//or another number of chars.
next -> change iso codes of countries to your names;
to paint your own svg picture use Adobe Illustrator, or any online editor that allows make svg inline.
copy it's
excellent.
Country.php: find "$translated_name" comment next lines
#$translated_name = locale_get_display_region(
# '-'.must_have_idx($row, 'iso_code'),
# $language,
#);
add under this next one:
$translated_name = must_have_idx($row, 'iso_code');
Excellent. Hope it will help someone.
Please include the following information when filing an issue • Current version of FBCTF installed - latest from master • Detailed description of the problem. Include steps to reproduce the problem when possible: The impossibility to change country names by myself, because in countries.sql there are only ISO-codes for them, but in the older versions i found https://github.com/facebook/fbctf/blob/5d75a0a5b71d724ff71ac301e99ad5ed99a7947b/database/countries.sql there were also names for countries. i tried to make size of ISO code to 20 chars and provide custom names, but it just broke the map, and regions became nameless.