Code Duplication    Length = 5-5 lines in 2 locations

index.php 1 location

@@ 165-169 (lines=5) @@
162
                } else {
163
                    $country_name = '';
164
                }
165
                if (file_exists($flag)) {
166
                    $a_msg['country'] = "<img src=\""
167
                                        . XOOPS_URL
168
                                        . '/modules/xfguestbook/assets/images/flags/'
169
                                        . $onemsg->getVar('flagdir')
170
                                        . '/'
171
                                        . $onemsg->getVar('country')
172
                                        . ".gif\" alt=\""

xfcreate.php 1 location

@@ 128-132 (lines=5) @@
125
                            . '.gif';
126
            $arr_country  = xfgb_getCountry("country_code ='" . $country . "'");
127
            $country_name = (count($arr_country) > 0) ? $arr_country[0]['country_name'] : '';
128
            if (file_exists($flag)) {
129
                $msgpost['country'] = "<img src=\""
130
                                      . XOOPS_URL
131
                                      . '/modules/xfguestbook/assets/images/flags/'
132
                                      . $xoopsModuleConfig['flagdir']
133
                                      . '/'
134
                                      . $country
135
                                      . ".gif\" alt=\""