|
Hi There,
I was wondering if anyone could give me a hand as I know absolutley nothing about PHP.
I would like to create a form on my employers Intranet site which allows them to enable/disable out of office auto replies on our mail server.
Firstly I need them to be able to create a txt file in cd /var/hayley/autoreplies which should be called "jdoe.txt (dependant upon what name they type in). This file should contain their out of office message.
Then I need for them to enable/disable the option.
If they chose to enable it, it needs to send the command sxaa --user "John Doe" --reply jdoe.txt --title "custom auto reply"
If they chose to disable it, I need it to query the server to see what rule is in force:
"sxaa --user "John Doe"
This will bring back rule codes if an out of office reply is currently in force. Dependant upon this code I would then like it to send a code simular to:
sxaa --user "John Doe" --remove 602
It would be nice if all of this could be done on a pretty looking form. Can this sort of thing be done?
|