Code Duplication    Length = 5-5 lines in 2 locations

install/actions/action_summary.php 1 location

@@ 173-177 (lines=5) @@
170
// config.inc.php writable?
171
echo '<p>'.$_lang['checking_if_config_exist_and_writable'];
172
$tmp = "../".MGR_DIR."/includes/config.inc.php";
173
if (!is_file($tmp)) {
174
    f_owc($tmp, "<?php //EVO configuration file ?>", 0666);
175
} else {
176
    @chmod($tmp, 0666);
177
}
178
$isWriteable = is_writable($tmp);
179
if (!$isWriteable) {
180
    $errors++;

install/cli-install.php 1 location

@@ 233-237 (lines=5) @@
230
// config.inc.php writable?
231
echo strip_tags($_lang['checking_if_config_exist_and_writable']);
232
$tmp = "../".MGR_DIR."/includes/config.inc.php";
233
if (!is_file($tmp)) {
234
    f_owc($tmp, "<?php //EVO configuration file ?>", 0666);
235
} else {
236
    @chmod($tmp, 0666);
237
}
238
$isWriteable = is_writable($tmp);
239
if (!$isWriteable) {
240
    $errors++;