Code Duplication    Length = 5-5 lines in 3 locations

install/install.queries.php 3 locations

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