$req->batch_id = get_int('batch_id'); $errmsg = boinc_retire_batch($req); if ($errmsg) { error_page(htmlentities($errmsg)); } page_head("Batch retired"); echo "<p><a href=submit_example.php>Return to job control page</a>\n"; page_tail(); } $action = get_str('action', true); switch ($action) { case '': handle_main(); break; case 'abort_batch': handle_abort_batch(); break; case 'abort_batch_confirm': handle_abort_batch_confirm(); break; case 'create_action': handle_create_action(); break; case 'create_form': handle_create_form(); break; case 'query_batch': handle_query_batch(); break; case 'query_job': handle_query_job();
if (0) { $r = simplexml_load_string("\n<estimate_batch>\n <authenticator>x</authenticator>\n <batch>\n <app_name>remote_test</app_name>\n <batch_name>Aug 6 batch 4</batch_name>\n <job>\n <rsc_fpops_est>19000000000</rsc_fpops_est>\n <command_line>--t 19</command_line>\n <input_file>\n <mode>remote</mode>\n <source>https://google.com/</source>\n </input_file>\n </job>\n </batch>\n</estimate_batch>\n"); estimate_batch($r); exit; } if (0) { require_once "submit_test.inc"; } xml_header(); $r = simplexml_load_string($_POST['request']); if (!$r) { xml_error(-1, "can't parse request message"); } switch ($r->getName()) { case 'abort_batch': handle_abort_batch($r); break; case 'abort_jobs': handle_abort_jobs($r); break; case 'create_batch': create_batch($r); break; case 'estimate_batch': estimate_batch($r); break; case 'get_templates': get_templates($r); break; case 'ping': ping($r);
$batches = BoincBatch::enum("app_id = {$appid} and state={$state} order by id desc"); } else { $batches = BoincBatch::enum("state={$state} order by id desc"); } fill_in_app_and_user_names($batches); show_batches_in_state($batches, $state); } } $user = get_logged_in_user(); $action = get_str('action', true); switch ($action) { case '': handle_main($user); break; case 'abort_batch': handle_abort_batch($user); break; case 'abort_batch_confirm': handle_abort_batch_confirm(); break; case 'admin': handle_admin($user); break; case 'query_batch': handle_query_batch($user); break; case 'query_job': handle_query_job($user); break; case 'retire_batch': handle_retire_batch($user);