Code Duplication    Length = 5-5 lines in 3 locations

install/install.queries.php 3 locations

@@ 1102-1106 (lines=5) @@
1099
                        )
1100
                    );
1101
                    fclose($file_handler);
1102
                    if ($result === false) {
1103
                        echo '[{"error" : "Setting.php file could not be created. Please check the path and the rights", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1104
                    } else {
1105
                        echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1106
                    }
1107
                } elseif ($task === "sk.php") {
1108
//Create sk.php file
1109
                    if (file_exists($skFile)) {
@@ 1134-1138 (lines=5) @@
1131
                    fclose($file_handler);
1132
1133
                    // finalize
1134
                    if ($result === false) {
1135
                        echo '[{"error" : "sk.php file could not be created. Please check the path and the rights.", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1136
                    } else {
1137
                        echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1138
                    }
1139
                } elseif ($task === "security") {
1140
                    # Sort out the file permissions
1141
@@ 1154-1158 (lines=5) @@
1151
                        }
1152
                    }
1153
1154
                    if ($result === false) {
1155
                        echo '[{"error" : "Cannot change directory permissions - please fix manually", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1156
                    } else {
1157
                        echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1158
                    }
1159
                } elseif ($task === "csrfp-token") {
1160
                    // update CSRFP TOKEN
1161
                    $csrfp_file_sample = "../includes/libraries/csrfp/libs/csrfp.config.sample.php";