diff --git a/application/controllers/Update.php b/application/controllers/Update.php index 431a4b9e..2c640c94 100644 --- a/application/controllers/Update.php +++ b/application/controllers/Update.php @@ -289,6 +289,75 @@ class Update extends CI_Controller { fclose($f); } + /* + * Used for autoupdating the DOK file which is used in the QSO entry dialog for autocompletion. + */ + public function update_dok() { + $contents = file_get_contents('https://www.df2et.de/cqrlog/dok.txt', true); + + if($contents === FALSE) { + echo "Something went wrong with fetching the DOK file."; + } else { + $file = './assets/json/dok.txt'; + + file_put_contents($file, $contents); // Save our content to the file. + + if (file_exists($file)) + { + $nCount = count(file($file)); + if ($nCount > 0) + { + echo "DONE: " . number_format($nCount) . " DOK's saved"; + } else { + echo"FAILED: Empty file"; + } + } else { + echo"FAILED: Could not create dok.txt file locally"; + } + } + } + + /* + * Used for autoupdating the SOTA file which is used in the QSO entry dialog for autocompletion. + */ + public function update_sota() { + $csvfile = 'https://www.sotadata.org.uk/summitslist.csv'; + + $sotafile = './assets/json/sota.txt'; + + if($csvfile === FALSE) { + echo "Something went wrong with fetching the SOTA file"; + } else { + $csvhandle = fopen($csvfile,"r"); + + $data = fgetcsv($csvhandle,1000,","); // Skip line we are not interested in + $data = fgetcsv($csvhandle,1000,","); // Skip line we are not interested in + $data = fgetcsv($csvhandle,1000,","); + $sotafilehandle = fopen($sotafile, 'w'); + + do { + if ($data[0]) { + fwrite($sotafilehandle, $data[0].PHP_EOL); + } + } while ($data = fgetcsv($csvhandle,1000,",")); + + fclose($csvhandle); + fclose($sotafilehandle); + if (file_exists($sotafile)) + { + $nCount = count(file($sotafile)); + if ($nCount > 0) + { + echo "DONE: " . number_format($nCount) . " SOTA's saved"; + } else { + echo"FAILED: Empty file"; + } + } else { + echo"FAILED: Could not create sota.txt file locally"; + } + } + } + } ?> diff --git a/system/language/czech/calendar_lang.php b/system/language/czech/calendar_lang.php new file mode 100644 index 00000000..aef3f05b --- /dev/null +++ b/system/language/czech/calendar_lang.php @@ -0,0 +1,56 @@ + + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + diff --git a/system/language/czech/migration_lang.php b/system/language/czech/migration_lang.php new file mode 100644 index 00000000..f0f048be --- /dev/null +++ b/system/language/czech/migration_lang.php @@ -0,0 +1,19 @@ +