Code Duplication    Length = 5-5 lines in 6 locations

brokenlink.php 1 location

@@ 89-93 (lines=5) @@
86
    $xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select);
87
88
    //wanikoo search
89
    if (file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php")) {
90
       include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php";
91
    } else {
92
       include_once XOOPS_ROOT_PATH."/language/english/search.php";
93
    }
94
95
    $xoopsTpl->assign('lang_all', _SR_ALL);
96
    $xoopsTpl->assign('lang_any', _SR_ANY);

modlink.php 1 location

@@ 149-153 (lines=5) @@
146
    $xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select);
147
148
    //wanikoo search
149
    if (file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php")) {
150
       include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php";
151
    } else {
152
       include_once XOOPS_ROOT_PATH."/language/english/search.php";
153
    }
154
    $xoopsTpl->assign('lang_all', _SR_ALL);
155
    $xoopsTpl->assign('lang_any', _SR_ANY);
156
    $xoopsTpl->assign('lang_exact', _SR_EXACT);

ratelink.php 1 location

@@ 155-159 (lines=5) @@
152
    $xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select);
153
154
    //wanikoo search
155
    if (file_exists(XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/search.php')) {
156
       include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/search.php';
157
    } else {
158
       include_once XOOPS_ROOT_PATH.'/language/english/search.php';
159
    }
160
    $xoopsTpl->assign('lang_all', _SR_ALL);
161
    $xoopsTpl->assign('lang_any', _SR_ANY);
162
    $xoopsTpl->assign('lang_exact', _SR_EXACT);

singlelink.php 1 location

@@ 193-197 (lines=5) @@
190
//wanikoo end
191
192
//wanikoo search
193
if (file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php")) {
194
   include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php";
195
} else {
196
   include_once XOOPS_ROOT_PATH."/language/english/search.php";
197
}
198
$xoopsTpl->assign('lang_all', _SR_ALL);
199
$xoopsTpl->assign('lang_any', _SR_ANY);
200
$xoopsTpl->assign('lang_exact', _SR_EXACT);

submit.php 1 location

@@ 165-169 (lines=5) @@
162
    $xoopsTpl->assign('mylinksthemeoption', $mylinkstheme_select);
163
164
    //wanikoo search
165
    if (file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php")) {
166
       include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php";
167
    } else {
168
       include_once XOOPS_ROOT_PATH . '/language/english/search.php';
169
    }
170
    $xoopsTpl->assign('lang_all', _SR_ALL);
171
    $xoopsTpl->assign('lang_any', _SR_ANY);
172
    $xoopsTpl->assign('lang_exact', _SR_EXACT);

viewcat.php 1 location

@@ 329-333 (lines=5) @@
326
//wanikoo end
327
328
//wanikoo search
329
if ( file_exists(XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php") ) {
330
   include_once XOOPS_ROOT_PATH."/language/".$xoopsConfig['language']."/search.php";
331
} else {
332
   include_once XOOPS_ROOT_PATH."/language/english/search.php";
333
}
334
$xoopsTpl->assign('lang_all', _SR_ALL);
335
$xoopsTpl->assign('lang_any', _SR_ANY);
336
$xoopsTpl->assign('lang_exact', _SR_EXACT);