$flags |= BOLT_FLAGS_DEBUG;
     }
     $user->bossa->update("flags={$flags}");
     $user->bossa->flags = $flags;
     Header('Location: bossa_admin.php');
     exit;
 case 'show_user':
     show_bossa_user();
     exit;
 case 'show_batches':
     $app_id = get_int('app_id');
     show_batches($app_id);
     exit;
 case 'show_batch':
     $batch_id = get_int('batch_id');
     show_batch($batch_id);
     exit;
 case 'job_show_insts':
     $job_id = get_int('job_id');
     job_show_insts($job_id);
     exit;
 case 'hide':
     $app_id = get_int('app_id');
     $app = BossaApp::lookup_id($app_id);
     if (!$app) {
         error_page("no such app");
     }
     $app->update("hidden=1");
     break;
 case 'unhide':
     $app_id = get_int('app_id');
Exemple #2
0
    page_head("Batch {$batch->id}");
    $results = BoincResult::enum("batch={$batch->id} order by workunitid");
    $i = 0;
    result_table_start(true, true, null);
    foreach ($results as $result) {
        show_result_row($result, true, true, true, $i++);
    }
    end_table();
    page_tail();
}
function show_batches($user)
{
    $batches = BoincBatch::enum("user_id={$user->id}");
    page_head("Batches");
    start_table();
    table_header("Batch ID", "Submitted", "# jobs");
    foreach ($batches as $batch) {
        echo "<tr>\n            <td><a href=submit_status.php?action=show_batch&batch_id={$batch->id}>{$batch->id}</a></td>\n            <td>" . time_str($batch->create_time) . "</td>\n            <td>{$batch->njobs}</td>\n            </tr>\n        ";
    }
    end_table();
    page_tail();
}
$user = get_logged_in_user();
$action = get_str('action', true);
switch ($action) {
    case '':
        show_batches($user);
        break;
    case 'show_batch':
        show_batch($user);
}