2007-10-16 17:12:48 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2007-10-16 17:12:48 +00:00
|
|
|
|
|
|
|
require_once("../inc/util.inc");
|
2007-10-16 23:02:13 +00:00
|
|
|
require_once("../inc/bossa_db.inc");
|
2008-07-13 04:26:23 +00:00
|
|
|
require_once("../inc/bossa_impl.inc");
|
2007-10-16 17:12:48 +00:00
|
|
|
|
|
|
|
$user = get_logged_in_user();
|
2008-02-13 19:02:44 +00:00
|
|
|
BossaUser::lookup($user);
|
2007-10-16 17:12:48 +00:00
|
|
|
|
2007-10-25 21:34:13 +00:00
|
|
|
$bossa_app_id = get_int('bossa_app_id');
|
|
|
|
$app = BossaApp::lookup_id($bossa_app_id);
|
2007-10-16 17:12:48 +00:00
|
|
|
|
|
|
|
if (!$app) {
|
|
|
|
error_page("no such app: $bossa_app_id");
|
|
|
|
}
|
|
|
|
|
2008-07-17 20:58:42 +00:00
|
|
|
{
|
|
|
|
$trans = new BossaTransaction();
|
|
|
|
show_next_job($app, $user);
|
|
|
|
}
|
2008-02-13 19:02:44 +00:00
|
|
|
|
2007-10-16 17:12:48 +00:00
|
|
|
?>
|