For my server setup, I have two SQL databases, one on the athena server and one on the web server. The web server has replication databases of the athena server's databases. I want to have Flux using the web server's replicated databases when querying for data. This is where I have my problem; when a user wants to change account settings like sex, email or password, I want to connect to the main database and not the replicated one. I have narrowed it down and believe Flux CP makes the connection here (in files changepass.php, changesex.php, changemail.php, confirmemail.php):
$sth = $server->connection->getStatement($sql);
How can I alter this statement in the few locations it will be necessary so it connects to an alternative host address?
Question
puzzles
Edited by puzzles
1 answer to this question
Recommended Posts