<?php include 'resources/live_match.php'; $live = new liveMatch(); $subscribers = $live->getSubscribedData(); foreach ($subscribers as $subscriber) { $sub = get_object_vars($subscriber); echo $live->smsSender($live->checkDestination($sub['MSISDN']), $sub['MESSAGE']); echo $live->updateSentUpdate((int) $sub['GC_ID']); }
<?php include 'resources/live_match.php'; $team_id = "660"; $area_id = "68"; $check_update = "15"; $live = new liveMatch(); $live->getXML(); $live->setTeam($team_id); $live->setArea($area_id); $live->setCheckTime($check_update); $live->getMatch(); if (!$live->startMatch()) { exit; } $club = $live->getTeamID($team_id); $club_id = $club['ID']; if ($live->checkStartUp()) { echo $match_info = $live->getMatchInfo(); $live->confirmUpdate($match_info, 'Match Info', 1, $club_id); echo "<br>"; echo $line_ups = $live->getLineUps(); $live->confirmUpdate($line_ups, 'Line Up', 2, $club_id); echo "<br>"; echo $line_bench = $live->getLineUpsBench(); $live->confirmUpdate($line_bench, ' Line Bench', 3, $club_id); echo "<br>"; } echo $sub_update = $live->getSubstitution(); $live->confirmUpdate($sub_update, 'Substitutn', 4, $club_id); echo "<br>";