So I've saved this code:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
if (!is_object($DB_site))
{
exit;
}
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET usergroupid = 2 WHERE usergroupid = 15 AND lastpost < " .
(TIMENOW-45*86400));
log_cron_action('Inactive VIP Users reset to Registered', $nextitem);
?>
to a file called autokick.php, created a cron job, set it to log, and ran it manually, I just get a screen with the cron job name, and it just hangs.
I'm a tard, what am I doing wrong?