Hello to all, there are here creed here that the problem has been this: in cleanup.php:
Code:
//---------------------------------
//---- Login Attempts v0.1 by xam
//---------------------------------
// ---- delete inactive user accounts including phpbb accounts (not done by autocleanup, use manual Cleanup from the control panel to call this)
if ($full_cleanup==true)
{
$dt = sqlesc(get_date_time(gmtime() - $max_dead_user_time));
$maxclass = UC_POWER_USER;
$res = mysql_query("SELECT id,username FROM users WHERE parked='no' AND status = 'confirmed' AND class <= $maxclass AND last_access < $dt");
while ($row = mysql_fetch_assoc($res))
{
mysql_query("DELETE FROM users WHERE id=".$row["id"]);
delete_phpBB2user($row["username"],"nopasswordcheck",false);
}
}
//delete parked user accounts
$secs = 175*86400; // change the time to fit your needs
$dt = sqlesc(get_date_time(gmtime() - $secs));
$maxclass = UC_POWER_USER;
mysql_query("DELETE FROM users WHERE parked='yes' AND status='confirmed' AND class <= $maxclass AND last_access < $dt");
give confirmation to me that every time that click on cleanup.php this active function and cancels the not active members, but I do not see as time, you can help me?
Thanks, this would have to be a modification of this kind: Delete Disabled Users by Alex2005
Thanks Fynnon
I have also an other problem, place an image:
the linens refer to this part of the code, admincp.php:
Code:
function is_valid_rurl($val,$rta=0)
{
GLOBAL $submission;
$pp=parse_url($val);
if(($ok= ( $pp["path"]==$val ? true:false)) && $submission)
{
$val=(($val[0]=='/' && $rta==0) ? substr($val,1):$val);
if(!is_dir($val))
mkdir($val,0777);
else if(!$rta)
@chmod($val,0777);
$ok=is_dir($val);
}
return $ok;
}