|
Greetings all:
In my implentation of FreeTrade, I am attempting to
add an extra feature which would allow the customer to customize a few of the
basic templates and screens through online forms. For all intents and
purposes, we could call it an Online File Editor. My approach is to add an
extra form to the Admin Menu with a selection box which allows them to choose
the file they wish to edit (page_top, page_bottom, help, welcome). Once
the file selection is submitted, I planned to use fopen and fgets to retrieve
lines from the existing file and use a while loop to display all contents in a
textarea box. The customer would then be able to make changes to said file
and resubmit. I would then use fputs to rewrite the file.
My questions are as follows:
1. Is my approach sound?
2. I was thinking this could be acomplished
with a couple of extra screens containing the file editing routines, without the
use of an action file (seeing as most of the action files seem to be used for
MySQL queries, updates, and such). If my assessment is correct, can I
create the file selection form using the "StartForm" function using only
"screen", "post" and "name" values? Or, is an action file
necessary?
Any help or insight anyone could offer in this
matter would be greatly appreciated. Thanks in advance!
Regards,
Pat Dupuis
|
- RE: [FreeTrade] Adding New Feature Pat Dupuis
- RE: [FreeTrade] Adding New Feature Leon Atkinson
- Re: [FreeTrade] Adding New Feature Andres Salomon
- Re: [FreeTrade] Adding New Feature Shannon -jj Behrens

