Parašė desire· 2008 Rugp. 13 12:08:07
#16
o sita funkcija netrins ten super adminu ar paprastu admin ? :) nes man reik tik jog narius paprastus istrintu..
p.s.
kaip suprantu cia:
<?php
$left = round(((($userdata['user_joined'] + 3600*48) - time()) / 3600),0);
echo "liko: $left valandos iki pašalinimo";
?>
48 reikia keisti i 168 jog trintu po savaites. Ir kiek cia keist jog kas savaite salintu:
$result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time()-86400)."'");
$result = dbquery("DELETE FROM ".$db_prefix."users WHERE user_joined < '".(time()-86400*2)."'");
Redagavo desire· 2008 Rugp. 13 12:08:29