Optimizations

-Removed the "sort_type" 6 from the movement table, looted resources
will now be saved in the "sort_type" 4 returing attack.
This reduces a lot the spam in the tables "send" and "movement" of the
database
-Removed some useless methods in Database.php and Message.php
+Optimized report loading, own report will be loaded only once (and not
twice at random) and allied reports aren't loaded anymore
+Minor improovements and better indentation
This commit is contained in:
iopietro
2018-05-05 17:54:34 +02:00
parent cf74514451
commit f7e05c9802
14 changed files with 437 additions and 624 deletions
+1 -3
View File
@@ -234,9 +234,7 @@ if(isset($_POST['password']) && $_POST['password'] != ""){
}
}
if ($counter > 0) {
$database->addMovement( $type, $from, $to, $ref, $time, $endtime );
}
if ($counter > 0) $database->addMovement($type, $from, $to, $ref, $time, $endtime);
/**
* SMALL ARTEFACTS