3
Quote:
Max-Realms wrote:
So is this impossible? Nope.
Or no-one knows how to do it. Sure they do.
Or just doesn't care... You guessed it!
I would guess that most XOOPS users use hosts where MySQL useage is not limited by MySQL user, so they don't care. If you would rather spend time hacking code than negotiating a better hosting arrangement then:
In function connect() in class/database/mysqldatabase.php, replace the following code
if (XOOPS_DB_PCONNECT == 1) {
$this->conn = @mysql_pconnect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS);
} else {
$this->conn = @mysql_connect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS);
}
if (!$this->conn) {
$this->logger->addQuery('', $this->error(), $this->errno());
return false;
}
with something that loops over different values for XOOPS_DB_USER and XOOPS_DB_PASS (you will need to use an array variable rather than constants of course).