2006-09-28 18:51:52 +00:00
|
|
|
#!/usr/bin/env php
|
2004-06-09 21:42:23 +00:00
|
|
|
|
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
2015-12-07 15:17:48 +00:00
|
|
|
// Copyright (C) 2015 University of California
|
2008-08-05 22:43:14 +00:00
|
|
|
//
|
|
|
|
// 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/>.
|
2004-06-09 21:42:23 +00:00
|
|
|
|
2009-09-15 18:14:37 +00:00
|
|
|
require_once("../inc/util_ops.inc");
|
2004-06-09 21:42:23 +00:00
|
|
|
require_once("../inc/uotd.inc");
|
|
|
|
|
2015-12-07 15:17:48 +00:00
|
|
|
$force_new = false;
|
|
|
|
if ($argc > 1) {
|
|
|
|
if ($argv[1] == "-f" || $argv[1] == "--force") {
|
|
|
|
$force_new = true;
|
|
|
|
} else {
|
|
|
|
echo "Usage: ".$argv[0]." [-f|--force]\n";
|
|
|
|
echo " -f | --force Will select a new User of the day regardless if there already is one for the current day\n";
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
2004-06-09 21:42:23 +00:00
|
|
|
|
2015-12-07 15:17:48 +00:00
|
|
|
select_uotd($force_new);
|
2004-06-09 21:42:23 +00:00
|
|
|
?>
|