Thread: TS 1.3.9 by xam
View Single Post
  #3  
Old 26th February 2020, 23:10
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 147
Default
something like that


Quote:
$secs = 45*86400;
$dt = sqlesc(get_date_time(gmtime() - $secs)); // calculate date.
$maxclass = UC_POWER_USER;
mysql_query("DELETE FROM users WHERE parked='no' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");
Reply With Quote