include("main.php");
include("header.php");
include("../config.inc.php");
switch($mode) {
case "update_db":
$timestamp=time();
print("Update Complete
");
mysql_query("update crew set pts_total = pts_total+$dp where ID = '$char_id'");
mysql_query("insert into bonus (char_id, descr, points,timestamp)VALUES('$char_id', '$reason', '$dp', '$timestamp')");
break;
default:
$q=mysql_query("select * from crew where ship = '$ship_num' and Status in ('PC','RNPC') order by service_type, pts_total DESC");
print("