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;
13 if (isset($aTagsWhitelist))
14 $data['whiteList'] = $aTagsWhitelist;
16 $jsonFile = fopen($jsonPhraseSettingsFile, 'w');
17 fwrite($jsonFile, json_encode($data));