https://github.com/sjonhortensius/flyspraytothebuggenieconverter
Simple PHP script to migrate Flyspray to TheBugGenie
https://github.com/sjonhortensius/flyspraytothebuggenieconverter
Last synced: 2 months ago
JSON representation
Simple PHP script to migrate Flyspray to TheBugGenie
- Host: GitHub
- URL: https://github.com/sjonhortensius/flyspraytothebuggenieconverter
- Owner: SjonHortensius
- License: gpl-3.0
- Created: 2013-04-27T12:26:49.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-27T12:44:59.000Z (about 12 years ago)
- Last Synced: 2025-02-08T15:46:47.367Z (4 months ago)
- Language: PHP
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
FlysprayToTheBugGenieConverter
==============================Simple PHP script to migrate Flyspray to TheBugGenie
If you know a bit of scripting, modifying this importer to your liking shouldn't be hard. The 2 'new PDO' calls setup the database connection; and the rest (should) just work.
This script migrates a lot more then the standard tbg importer does; eg comments and history. It also supports a lot more properties (basically anything I could find in flyspray).
One thing I couldn't get to migrate are the passwords. The easiest method should be to instruct your users to reset them.
If you want to login directly; you can hack .../thebuggenie/core/classes/TBGUser.class.php; around line no. 505; you'll find this block:
elseif ($username !== null && $password !== null)
{
$external = false;
TBGLogging::log('Using internal authentication', 'auth', TBGLogging::LEVEL_INFO);
// First test a pre-encrypted password
$user = TBGUsersTable::getTable()->getByUsernameAndPassword($username, $password);If you modify this to the following; you can login with any password, and the pwd you enter will be stored as the new pwd for the user:
elseif ($username !== null && $password !== null)
{
$external = false;
TBGLogging::log('Using internal authentication', 'auth', TBGLogging::LEVEL_INFO);
// Hacky: directly store the entered password without any checks
$user = TBGUsersTable::getTable()->getByUsername($username);
$user->setPassword($password);
// First test a pre-encrypted password
# $user = TBGUsersTable::getTable()->getByUsernameAndPassword($username, $password);