Versions des environnements
>>>Hi,
>>>
>>>I think almost every application has a configuration file that stores settings like application folder name, database folder name, and some other configuration settings. Currently I have them in a DBF table. Even though only user with certain permission privilege can access and change the setting - from within the application - anybody who knows how to use VFP can open this table and make a change. I want to change this table from DBF to an XML. Still the application access to the settings in this XML will be controlled by Admin password. But naturally anybody who knows how to use a Notepad will be able to open and make the change in this file. Mainly I want to give users ability to make the change without my assistance (if the person with admin password left or forgot his/her password). Do you think that having "unprotected" configuration file - XML - is a bad or good approach?
>>>TIA for any suggestions.
>>
>>How about each time the file is changed legitimately through the application, you store a checksum, and then when the application starts, you confirm that the checksum is still the same. Store a basic copy of the configuration in the EXE and write it out when the checksum indicates that the file has been messed with.
>>
>>Tamar
>
>Interesting suggestion. I have to learn how to do the checksum. I will search through the messages here on UT. But if you know of a simple way to do that, please let me know. Thank you.
SYS(2007)
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement