TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Help General Support writelog in cleanup

writelog in cleanup

2006-10-17 08:31:00
Group: Member
Posts: 137
Topics participated: 74
Topics started: 24
First post: 2006-10-12 20:44:00
Last post: 2009-01-01 16:14:00
i donno so much about php, but i have look at the other writelogs but i dont get this one to work:( can be good to see in the log when inactiv accounts is deleted and who it was..
 
2006-10-17 00:04:00
Group: Member
Posts: 2607
Topics participated: 1470
Topics started: 2
First post: 2006-07-10 10:45:00
Last post: 2008-06-13 17:08:00
find the area for delete inactive users and b4 the closing } add

write_log("User account $arr[id] ($arr[username]) was deleted by system");
 
2006-10-17 14:05:00
Group: Member
Posts: 137
Topics participated: 74
Topics started: 24
First post: 2006-10-12 20:44:00
Last post: 2009-01-01 16:14:00
thx! :)
 
2006-10-17 14:25:00
Group: Member
Posts: 461
Topics participated: 232
Topics started: 10
First post: 2006-03-21 13:50:00
Last post: 2008-12-23 18:24:00
Try...

write_log('User account '.$arr['id'].' ('.$arr['username'].') was deleted by system');


This way, you won't fill your error.log up with notices saying...

PHP Notice: Use of undefined constant id - assumed 'id' in .......
PHP Notice: Use of undefined constant username - assumed 'username' in .......
 
2006-10-17 14:57:00
Group: Member
Posts: 137
Topics participated: 74
Topics started: 24
First post: 2006-10-12 20:44:00
Last post: 2009-01-01 16:14:00
ok Retro i will try ur, the other i remember i try befor and it just show in log User account () was deleted by system.

hmm it still do just the samething:( "User account () was deleted by system."
 
2006-10-18 03:30:00
Group: Member
Posts: 461
Topics participated: 232
Topics started: 10
First post: 2006-03-21 13:50:00
Last post: 2008-12-23 18:24:00
ok Retro i will try ur, the other i remember i try befor and it just show in log User account () was deleted by system.

hmm it still do just the samething:( "User account () was deleted by system."



You need to place that line before the DELETE query in the loop...

Since my cleanup is probably different from yours, post the account delete code, or use something similar to...

 

Similar threads

Topic Posts Last post
cleanup 6 2008-09-26 17:59:00
Cleanup 2 2006-08-12 11:26:00
need some help with cleanup 1 2007-09-14 01:20:00
Cleanup 15 2008-09-19 19:24:00
Need help with cleanup.php 1 2007-07-06 04:38:00