Ejemplo n.º 1
0
function build_all_toplists()
{
    require_once 'textdb.php';
    $db = new ToplistsDB();
    $toplists = $db->RetrieveAll();
    foreach ($toplists as $toplist) {
        build_toplist($toplist);
    }
    touch(FILE_TIME_TOPLISTS);
}
Ejemplo n.º 2
0
function _xToplistsBuild()
{
    require_once 'textdb.php';
    $db = new ToplistsDB();
    foreach (explode(',', $_REQUEST['toplist_id']) as $toplist_id) {
        $toplist = $db->Retrieve($toplist_id);
        build_toplist($toplist);
    }
    JSON::Success(array(JSON_KEY_MESSAGE => 'Selected toplists have been built<br />If one or more of your toplists does not get generated, check the logs/error.log file for possible error messages'));
}