Hi all, I've decided that it would be cool to experiment a little with the level function... so I made a cron that runs every few hours, thing is.. it doesnt work lol
<?php
include "config.php";
global $_CONFIG;
if($_GET['code'] != $_CONFIG['code']) { die(""); }
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
$db->query("UPDATE users set level=level+1 WHERE daysold<51");
?>
That is the cron file, but it doesn't work!
Can anyone patch this up for me?