bradymiller wrote on Saturday, February 20, 2010:
Review on this patch:
http://sourceforge.net/tracker/?func=detail&aid=2939284&group_id=60081&atid=1245239
1)Couldn’t get checksums to show up in the log
2)I see it in the log, but I can’t figure out how your getting the php-gacl queries or all the postpuke queries? (enlighten my stupidity here)
openemr/Documentation/README-Log-Backup.txt
—see openemr/interface/main/backuplog.php feedback
openemr/interface/main/backuplog.php
—Would this be more clear if collected the tmp-directory from globals.php (see openemr/interface/main/backup.php feedback where i suggest explicitly setting this in globals.php)? Then no need to modify parameter settings in cron script.
—Consider providing an error mechanism, so do not manipulate the database at all if the backup file mechanism does not work
openemr/interface/main/backuplog.sh
—see openemr/interface/main/backuplog.php feedback
openemr/interface/globals.php
—More description needed. Explain settings (1 is on, and 0 is off) and quickly explain what the general auditlog functionality is.
—Put it at the bottom of the file with your other settings
openemr/interface/logview/logview.php
—Consider use of formdata.inc.php functions if applicable (just ensure you understand the functions in formdata.inc.php; I’ll let you use your own judgment whether these functions will be applicable in this script)
openemr/interface/main/backup.php
—Don’t use translated words in the algorithms(line 97 of backup patch); use another mechanism that does not rely on the value (which gets translated). For example, do what the TEXT_IMPORT stuff does and make a button with a different ‘name’ in the html tag.
—Remove trailing spaces in xl functions at line 113 in backup patch.
—in line 113, not entirely clear what line means; Perhaps somehting like this will be more clear “Please refer to the README-Log-Backup.txt file in the Documentation directory to learn how to automate the process of creating log backups”. Also, this message seems to steal the screen (main function of this screen is to provide a backup of data, which gets overridden by the formatting and placement of this message. Please make it more subtle, and make it so it is obviously only associated with the ‘Create Eventlog Backup’ button.)
—Is the ‘temporary directory’ really the best place for this stuff? Storing confidential stuff in the php tmp directory seems very insecure. Seem more appropriate to have users explicitly set the log backup directory in globals.php, which can also be used by your cron script.
—Provide an error mechanism, so do not manipulate the database at all if the backup file mechanism does not work
—Remove trailing space in xl function at line 166 in backup patch (second one I’ve noticed; please check all your xl functions to ensure no leading or trailing whitespaces in them. Read developer policies in wiki if need refresher in the xl stuff)
openemr/library/log.inc
—when matching for sql command in the sql_checksum_of_modified_row functon, would it make more sense to use a php matching function to deal better with caps vs not caps (ie, no need to look for SET, set, Set, SeT).
—It is an OpenEMR no-no to call native mysql function. please use the sql.inc wrapper functions (line 869 and 870 of patch). Gives more flexibility in future if want to support other databases etc.
—What are the soundex fucntions for checking for breakglass user? Does this functionality work.
openemr/library/sql.inc
—ok
openemr/library/adodb/adodb.inc.php
—ok
openemr/sql/3_2_0-to-3_3_0_upgrade.sql
—ok
openemr/sql/database.sql
—ok
thanks,
brady