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