vip.php
<?php include('template.class.php'); include('page_header.php'); $template = new Template(); 'body_vip' => 'body_vip.tpl') ); $sms = '6'; $kod = $_GET['kod']; $apikey = 'cd518a15794b028ec87ac49a93fc0581'; $_apiAnswer = file_get_contents("http://api.zabijaka.pl/1.1/".$apikey."/sms/".$sms."/".$kod."/sms.json/add"); $answer = json_decode($_apiAnswer); if($answer->{'error'}) { } else if ($answer->{'success'}) { echo 'Poprawny kod sms:'. $kod. ($answer->{'amount'}?' DoĹadowuje kwotÄ : '.$answer->{'amount'}:''); } } $template->pparse('body_vip'); include('page_footer.php'); ?>
Formularz
Proszę o pomoc.
@f5
Jest ktoś w stanie mi pomóc?