| @@ 148-152 (lines=5) @@ | ||
| 145 | } else { |
|
| 146 | $country_name = ''; |
|
| 147 | } |
|
| 148 | if (file_exists($flag)) { |
|
| 149 | $a_msg['country'] = '<img src="' |
|
| 150 | . XOOPS_URL |
|
| 151 | . '/modules/xfguestbook/assets/images/flags/' |
|
| 152 | . $onemsg->getVar('flagdir') |
|
| 153 | . '/' |
|
| 154 | . $onemsg->getVar('country') |
|
| 155 | . '.gif" alt="' |
|
| @@ 137-141 (lines=5) @@ | ||
| 134 | $flag = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->dirname() . '/assets/images/flags/' . $xoopsModuleConfig['flagdir'] . '/' . $country . '.gif'; |
|
| 135 | $arr_country = XfguestbookUtil::getCountry("country_code ='" . $country . '\''); |
|
| 136 | $country_name = (count($arr_country) > 0) ? $arr_country[0]['country_name'] : ''; |
|
| 137 | if (file_exists($flag)) { |
|
| 138 | $msgpost['country'] = '<img src="' |
|
| 139 | . XOOPS_URL |
|
| 140 | . '/modules/xfguestbook/assets/images/flags/' |
|
| 141 | . $xoopsModuleConfig['flagdir'] |
|
| 142 | . '/' |
|
| 143 | . $country |
|
| 144 | . '.gif" alt="' |
|