Code Duplication    Length = 5-5 lines in 3 locations

install/install.queries.php 3 locations

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