Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url="http://tvstartup.biz/mng-channel/vpanel/api/vodcategories.php?user=barkitv&pass=76372dd88e5968f999c2cbb693290fc3";
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- $categoryResponse = curl_exec($ch);
- $categoryResults=json_decode($categoryResponse);
- var_dump($categoryResponse); die();
- ?>
- <?php if(count($categoryResults->categories)>0):?>
- <?php foreach($categoryResults->categories as $category): ?>
- <div id="ss_menu">
- <div class="ss_button"><h3 class="cwhite flip"><?php echo $category->title; ?></h3></div>
- <!-- <ul class="videos"> -->
- <div class="ss_content" style="display: none;">
- <?php
- $url="http://tvstartup.biz/mng-channel/vpanel/v1/categorized_videos.php?token=76372dd88e5968f999c2cbb693290fc3&id=" . $category->id;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- $videosResponse = curl_exec($ch);
- $videosResults=json_decode($videosResponse);
- ?>
- <?php if(count($videosResults->videos)>0):?>
- <?php foreach($videosResults->videos as $video): ?>
- <!-- <li> -->
- <div class="thumb">
- <img alt="videos" src="<?php echo $video->image_1;?>" style="width:218px;height:158px;">
- <a href="http://barkitv.com/barki/watch-video/?id=<?php echo $video->id; ?>">Watch</a>
- </div>
- <!-- </li> -->
- <?php endforeach;?>
- <?php else:?>
- <h2>Nothing Found</h2>
- <?php endif;?>
- </div>
- <!-- </ul> -->
- <?php endforeach;?>
- <?php else:?>
- <h2>Nothing Found</h2>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement