public function countries_list($full = false)
{
static $data = array();
if (empty($data)) {
$countries_file = normalize_path(MW_PATH . 'Utils/lib/country.csv', false);
if (is_file($countries_file)) {
$data = array_map('str_getcsv', file($countries_file));
if (isset($data[0])) {
unset($data[0]);
}
}
}
if ($full == false and !empty($data)) {
$res = array();
foreach ($data as $item) {
$res[] = $item[1];
}
return $res;
}
return $data;
}