-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscout_weights_run.php
More file actions
33 lines (30 loc) · 1.27 KB
/
Copy pathscout_weights_run.php
File metadata and controls
33 lines (30 loc) · 1.27 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
<?
/***************************************************************************
* scout_weights_run.php
* ----------------------------
* begin : Friday, Aug 29, 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";
// Process the scout weight adjustment
if ($login->is_admin()) {
if (is_array($_POST['position_scout_weight'])) {
foreach($_POST['position_scout_weight'] as $key=>$value) {
$statement = "update position set position_scout_weight = '$value' where position_id = '$key'";
mysql_query($statement);
}
}
$_SESSION['message'] = "Scout weights updated.";
}
header("Location: scout_weights.php");
?>