original fossil code
converted to g++ from gcc for C++ code/libs like iostream. added some code to output time stampand user login creds in login attempt function to record this data in a file (login.c/login.h source files).
switched back to gcc. whoever coded this loves those arcane c paradigms that dont have any proper c++ equivalent. compiled with basic file io + const filename in login.c ...working on adding back the functionality in pure C now
got a working pure C version of my initial login attempt log file goal working. cleaning up login.c and making the code a little more robust/crash proof now.
added two checks for fopen and close to ensure file was handled properly...else output to console is provided to notify user of possible error. also added time stamps. in case a write/append to the log file fails then login credentials are simply fprinted to the console and a warning message is printed. copmiled successfully so woohoo.
well. had to remove some printf warning messages. this program uses a custom printf function which will inject text into the web browser which then, in turn, mangles up the web gui completely. without the printf functions the web gui is ok and the utility still compiles. checking to see whether or not the logging is successful next...
combatting file permission issues when writing to log file. still working on it.
file writing now works to root of working directory. we have output, need to move fprintf statements to end of login check function next
moved and formatted fprintf statements. testing with gui interactions next