1 | #!/usr/bin/env php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | <?php |
||
0 ignored issues
–
show
|
|||
4 | // This file is part of BOINC. |
||
5 | // http://boinc.berkeley.edu |
||
6 | // Copyright (C) 2015 University of California |
||
7 | // |
||
8 | // BOINC is free software; you can redistribute it and/or modify it |
||
9 | // under the terms of the GNU Lesser General Public License |
||
10 | // as published by the Free Software Foundation, |
||
11 | // either version 3 of the License, or (at your option) any later version. |
||
12 | // |
||
13 | // BOINC is distributed in the hope that it will be useful, |
||
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
16 | // See the GNU Lesser General Public License for more details. |
||
17 | // |
||
18 | // You should have received a copy of the GNU Lesser General Public License |
||
19 | // along with BOINC. If not, see <http://www.gnu.org/licenses/>. |
||
20 | |||
21 | require_once("../inc/util_ops.inc"); |
||
22 | require_once("../inc/uotd.inc"); |
||
23 | |||
24 | $force_new = false; |
||
25 | if ($argc > 1) { |
||
26 | if ($argv[1] == "-f" || $argv[1] == "--force") { |
||
27 | $force_new = true; |
||
28 | } else { |
||
29 | echo "Usage: ".$argv[0]." [-f|--force]\n"; |
||
30 | echo " -f | --force Will select a new User of the day regardless if there already is one for the current day\n"; |
||
31 | exit(1); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | select_uotd($force_new); |
||
36 | ?> |
||
37 |