MaNGOSWebV4 icon indicating copy to clipboard operation
MaNGOSWebV4 copied to clipboard

[Suggestion] Add Armory

Open Malachiel87 opened this issue 8 years ago • 3 comments

Hi i would like to have a working wow armory maybe also compatible with wow 1.12.2

Malachiel87 avatar Nov 25 '17 15:11 Malachiel87

Definitely a good idea. I'll add it as an enhancement and to the to-do list.

paintballrefjosh avatar Nov 27 '17 01:11 paintballrefjosh

The armory link of old mangos is here https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mwenhanced/MwEnhanced_Armory_3.3.2.rar

And the sql+istructions are uploaded here armory.zip

After converted all script from mysql_ to mysqli_ (php 7) i keep to get the error: "Unable to connect to armory DB of realm blabla " (at least now is showing error at page)

2017/12/03 14:39:41 [error] 6907#6907: *41738 FastCGI sent in stderr: "PHP message: PHP Warning: mysqli_select_db() expects exactly 2 parameters, 1 given in /var/www/wow.trollandia.it/armory/configuration/mysql.php on line 60 PHP message: PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in /var/www/wow.trollandia.it/armory/configuration/mysql.php on line 60" while reading response header from upstream, client: 1xxxxx, server: wow.trollandia.it, request: "GET /armory/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "wow.trollandia.it"

my armory https://wow.trollandia.it/armory/

That error is caused by this: mysqli_select_db($needed_db[3]) or die("Unable to connect to ".$db_type." DB of realm ".$realm_name.": ".mysqli_error());

Malachiel87 avatar Dec 03 '17 12:12 Malachiel87

The mysqli_* functions typically expect you to pass which DB connection you want to use. I might have a look at this later this week.

ryanschulze avatar Dec 06 '17 05:12 ryanschulze