Originally posted by lfroen
I will explain what i intend to do
And it works
I am confused. You already implemented it or waiting for for amuleweb to support ?
Anyway, here comes technical side of mysql support:
1. Such code will definitly include mysql headers and as a result will need compile-time switch
2. Complicated configuration options
3. Last time I wrote SQL was about 10 years ago
4. I have no idea how "regular" php connects with mysql and have quite low motivation to lear it.
5. AFAICT you (or me) will have to rework amuleweb login code in c++ side to allow control thru php
6. Old templates will not work with all above
7. Other issues that I did not thought about
Beware, that (6) is quite serious issue and you have to deal with it. My personal opinion - this is bad idea: very complicated implementation, complex setup, very limited usefullness. But, if you think different (and you clear are) please come out with some kind of implementation proposal, and we will discuss it.
I only implemented the login issue for more than one user using the mysql as backend.
I have look to your php code i think i can manage to implement some mysql features on that.
Yes, old templates are working on that... just need to disable the UseMySQL flag. At least the way i did it...
You can check on
http://fulgas.dyndns.orguser/pass => fulgas/fulgas
the changes i did on remote.conf
UseMySQL=1
[MySQL]
DbHost=127.0.0.1
DbUser=fulgas
DbPass=******
DbName=aMule
I propose using categories, and user-level control of which categories to show.
that's a though... Haven't though how user-level will work.