3 $phpPhraseSettingsFile = $argv[1];
4 $jsonPhraseSettingsFile = dirname($phpPhraseSettingsFile).'/'.basename($phpPhraseSettingsFile, '.php').'.json';
6 if (file_exists($phpPhraseSettingsFile) && !file_exists($jsonPhraseSettingsFile)) {
7 include $phpPhraseSettingsFile;
11 if (isset($aTagsBlacklist)) {
12 $data['blackList'] = $aTagsBlacklist;
14 if (isset($aTagsWhitelist)) {
15 $data['whiteList'] = $aTagsWhitelist;
18 $jsonFile = fopen($jsonPhraseSettingsFile, 'w');
19 fwrite($jsonFile, json_encode($data));