toothpick
09-08-2003, 12:33 PM
ok i am currently working on a small administrator type program which i am hoping to expand on.
the user logs into the program with a login id and password which is issued to them. they are then logged into there own little area where they can view information about themself, private information and more. for this example it is at work.
i have 2 sections which i cannot code, as i am unsure how to.
1) total time logged in, from when the user logs into the login system at the start i want it to log the time he/she is logged in to there account. when the account is logged out, it will save the time and next time logged in display it. this is not a live running/moving clock while they are logged in, it simply displays the time they have been logged in previously.
2) getting the ip address. i have achived this way through winsock commands before however the program keeps wanting to use the internet that way and i dont want to use the internet at all. actually the program will not be in use, on an internet compatible machine. so i dont know if there is an easy way to pull the ip from somewhere as like the windows username and o/s modules i have. else im going to have to use the winsock way. if you know please post.
i just threw this program screenshot together so you can get a very ruff idea of what i mean, i hope it helps.
please post, i would like to hear from you all.
the user logs into the program with a login id and password which is issued to them. they are then logged into there own little area where they can view information about themself, private information and more. for this example it is at work.
i have 2 sections which i cannot code, as i am unsure how to.
1) total time logged in, from when the user logs into the login system at the start i want it to log the time he/she is logged in to there account. when the account is logged out, it will save the time and next time logged in display it. this is not a live running/moving clock while they are logged in, it simply displays the time they have been logged in previously.
2) getting the ip address. i have achived this way through winsock commands before however the program keeps wanting to use the internet that way and i dont want to use the internet at all. actually the program will not be in use, on an internet compatible machine. so i dont know if there is an easy way to pull the ip from somewhere as like the windows username and o/s modules i have. else im going to have to use the winsock way. if you know please post.
i just threw this program screenshot together so you can get a very ruff idea of what i mean, i hope it helps.
please post, i would like to hear from you all.