$spylog->weapons = implode(';', $spylog->weapons); $spylog->types = implode(';', $spylog->types); $spylog->types2 = implode(';', $spylog->types2); $spylog->quantities = implode(';', $spylog->quantities); $spylog->strengths = implode(';', $spylog->strengths); $spylog->allStrengths = implode(';', $spylog->allStrengths); } else { $user->spies--; } $user->buy($conf['spying-cost']); $user->cacheStats(); $spylogId = $spylog->create(); if ($spylogId) { header("Location: spylog.php?id=$spylogId"); exit; } else { // some kind of database error.. header("Location: stats.php?uid=$uid&e=4"); exit; } function spiedValue($value, $user, $target, $op = false){ $ret = '???'; $rdefCA = (float)(rand(80, 105) * 0.01 * $target->CA); $rattCA = (float)(rand(95, 105) * 0.01 * $user->CA);