Fibinger Ádám
2019-11-27 c5946f44341c29594803c5b2ca64dcaf335fbca3
commit | author | age
a4186a 1 <?php
2 include_once "common/base.php";
3
4 $s = new \EOG\Models\Stripe();
5
6 if (file_exists(STRIPE_JSON)) {
7     $raw_json = file_get_contents(STRIPE_JSON);
8     $stateArray = json_decode($raw_json, true);
9     if (is_array($stateArray)) {
10         $s->loadFromArray($stateArray);
11     }
12 }
13
14 $history = new \EOG\Models\MatchHistory();
15
16 if (file_exists(HISTORY_JSON)) {
17     $raw_json = file_get_contents(HISTORY_JSON);
18     $stateArray = json_decode($raw_json, true);
19     if (is_array($stateArray)) {
20         $history->loadState($stateArray);
21     }
22 }