Fibinger Ádám
2020-09-10 f2e0b5357a6f019780773cb87cc5c633b27c88f2
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 }