php if (! empty ($ _ POST)):
/////////////////////////////////
$ url = "SERVER DNS"; // Enter your server URL
$ port = "SERVER PORT"; // Enter your server PORT
$ username = $ _POST ['username'];
$ password = $ _POST ['password'];
$ tinyapi = "TINY-API-KEY"; // Enter Your TINY API CODE
//////////////////////////////
// TINY URL CREATOR - PLAYLIST //
$ playlist = "http: // $ url: $ port / get.php? username = $ username & password = $ password & type = m3u_plus & output = ts";
$ playlistcurl = curl_init ();
$ playlistpost_data = array ('format' => 'text',
'apikey' => "$ tinyapi",
'provider' => 'tinyurl_com',
'url' => $ playlist);
$ playlistapi_url = 'http://tiny-url.info/api/v1/create';
curl_setopt ($ playlistcurl, CURLOPT_URL, $ playlistapi_url);
curl_setopt ($ playlistcurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ playlistcurl, CURLOPT_POST, 1);
curl_setopt ($ playlistcurl, CURLOPT_POSTFIELDS, $ playlistpost_data);
$ playlistresult = curl_exec ($ playlistcurl);
curl_close ($ playlistcurl);
// END TINY URL CREATOR - PLAYLIST //
// TINY URL CREATOR - EPG //
$ epgxml = "http: // $ url: $ port / xmltv.php? username = $ username & password = $ password";
$ epgcurl = curl_init ();
$ epgpost_data = array ('format' => 'text',
'apikey' => "$ tinyapi",
'provider' => 'tinyurl_com',
'url' => $ epgxml);
$ epgapi_url = 'http://tiny-url.info/api/v1/create';
curl_setopt ($ epgcurl, CURLOPT_URL, $ epgapi_url);
curl_setopt ($ epgcurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ epgcurl, CURLOPT_POST, 1);
curl_setopt ($ epgcurl, CURLOPT_POSTFIELDS, $ epgpost_data);
$ epgresult = curl_exec ($ epgcurl);
curl_close ($ epgcurl);
// END TINY URL CREATION SCRIPTS //
?>
PLAYLIST URL:
> id =" playlist "style =" width: 300px; "> & nbsp; & nbsp; -sm "onclick =" myFunction1 () "> COPY
Br> br>
EPG XML URL:
" id = "epg" style = "width: 300px;"> & nbsp; & nbsp; -sm "onclick =" myFunction2 () "> COPY
BACK
php else:?>