Commit | Line | Data |
---|---|---|
7a471619 H |
1 | <?php |
2 | $transport_name='kyberia.sk'; | |
3 | ||
4 | global $transports; | |
5 | ||
6 | $transports[$transport_name]['get_node_content']=function($id, $protocol='http', $domain='kyberia.sk', $content_template='2019721') { | |
7 | return file_get_contents("$protocol://$domain/id/$id/$content_template"); | |
8 | }; | |
9 | ||
10 | //echo $transports[$transport_name]['get_node_content'](2019721); //Example | |
11 | ||
12 | unset($transport_name); |