-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathskip_pick.php
More file actions
34 lines (29 loc) · 1.24 KB
/
Copy pathskip_pick.php
File metadata and controls
34 lines (29 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?
/***************************************************************************
* skip_pick.php
* -------------------
* begin : Saturday, Apr 26, 2008
* copyright : (C) 2008 J. David Baker
* email : me@jdavidbaker.com
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
include "includes/classes.inc.php";
if ($login->is_admin()) {
// This function sets the selected pick's player_id to kSkipPick to allow their pick to be skipped
$statement = "update pick set player_id = '".kSkipPick."' where pick_id = '".$_GET['pick_id']."'
and player_id is NULL";
mysql_query($statement);
// Update the draft clock
reset_current_pick_clock();
}
process_pick_queue();
header("Location: selections.php");
?>