Code Duplication    Length = 5-5 lines in 3 locations

install/install.queries.php 3 locations

@@ 1073-1077 (lines=5) @@
1070
                        )
1071
                    );
1072
                    fclose($file_handler);
1073
                    if ($result === false) {
1074
                        echo '[{"error" : "Setting.php file could not be created. Please check the path and the rights", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1075
                    } else {
1076
                        echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1077
                    }
1078
                } elseif ($task === "sk.php") {
1079
//Create sk.php file
1080
                    if (file_exists($skFile)) {
@@ 1105-1109 (lines=5) @@
1102
                    fclose($file_handler);
1103
1104
                    // finalize
1105
                    if ($result === false) {
1106
                        echo '[{"error" : "sk.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 === "security") {
1111
                    # Sort out the file permissions
1112
@@ 1125-1129 (lines=5) @@
1122
                        }
1123
                    }
1124
1125
                    if ($result === false) {
1126
                        echo '[{"error" : "Cannot change directory permissions - please fix manually", "result":"", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1127
                    } else {
1128
                        echo '[{"error" : "", "index" : "'.$post_index.'", "multiple" : "'.$post_multiple.'"}]';
1129
                    }
1130
                } elseif ($task === "teampass-seckey") {
1131
                    // create teampass-seckey.txt
1132
                    require_once '../includes/libraries/Encryption/Encryption/Crypto.php';