PDA

View Full Version : [Question] extract variables for external script...


mathias_g
8th December 2006, 13:24
Hi,

I'm trying to write an external script to update an external mailserver with the informations given to ISPC via its web-interface. As ISPC is not intented to work with multiple servers, I thought well, let's simply extract the needed information, pass it to an self-written script that updates the external mailserver as needed.

Now I'm stuck at figuring out in which variables what information is inside ISPC.
All I need would be username (the system based one), mail-alias (all of them), redirection, auto-responder, is the user created, updated or deleted..

Perhaps the information could be retrieved from the database, but I don't figured out how the users in isp_isp_user are related to the data in table isp_isp_web (where I found the informations about the webs are stored..)

If someone could get me a hint, that would help me a lot. Thank you

Best regards
Mathias Gelhausen
------------------
I'm not a native english speaker, so please forgive my faults

till
8th December 2006, 16:26
The tables are linked trough the isp_dep table. Please have a look at this thread for a example:

http://www.howtoforge.com/forums/showthread.php?t=7575&highlight=isp_dep

mathias_g
8th December 2006, 16:32
Thanks for the fast reply, I will read and try :)

best regards
Mathias Gelhausen