Advertisement
Guest User

page.php

a guest
Nov 15th, 2011
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.16 KB | None | 0 0
  1. <div id="system">
  2.  
  3.     <?php if (have_posts()) : ?>
  4.         <?php while (have_posts()) : the_post(); ?>
  5.        
  6.         <article class="item">
  7.        
  8.             <header>
  9.        
  10.                 <h1><?php the_title(); ?></h1>
  11.                
  12.             </header>
  13.            
  14.             <div class="content clearfix"><?php the_content(''); ?></div>
  15. <form action="" method="post">
  16.                            
  17.                             <label for="author">Enter Video URL: </label><input type="text" name="txtID" style="width:300px;" value="<?php echo $url; ?>">
  18.                             <!--
  19.                        
  20.                             <select name="video-provider">
  21.                                 <option value="videobb">VideoBB</option>
  22.                                 <option value="videozer">VideoZer</option>
  23.                                 <option value="userporn">UserPorn</option>
  24.                             </select>
  25.                             -->
  26.                             <input type="submit" value="Get video" id="submit" name="submit">
  27.  
  28.                         </form>
  29.                        
  30.                                                 <?php
  31.                                                        $video = $_POST['txtID'];
  32. $provider=substr($video,0, 25);
  33.  
  34. if($provider=="http://videobb.com/video/") $vid= substr($video, 25);
  35. if($provider=="http://videozer.com/video") $vid= substr($video, 26);
  36. if($provider=="http://videobb.com/watch_") $vid= substr($video, 37);
  37. if($provider=="http://www.videobb.com/wa") $vid= substr($video, 41);
  38. if($provider=="http://www.videobb.com/vi") $vid= substr($video, 29);
  39. if($provider=="http://www.videozer.com/v") $vid= substr($video, 30);
  40.  
  41.     if($provider != ''){
  42.                ?>
  43.                    <p><center>Watching <strong>
  44.                 <?php echo $video; ?>
  45.             </strong> from <strong>
  46.                 <?php echo $post->post_title; ?>
  47.             </strong><br> Brought to you by <b>
  48.                 <?php bloginfo('name'); ?>
  49.             </b></center></p>
  50.         <?php
  51.         switch($provider){         
  52.             case "http://videobb.com/video/":$url = 'http://www.bypasslimits.com/videobb.php?id='.$vid; $loc="videobb";
  53.             break;
  54.  
  55.             case "http://videobb.com/watch_":$url = 'http://www.bypasslimits.com/videobb.php?id='.$vid; $loc="videobb";
  56.             break;
  57.  
  58.             case "http://www.videobb.com/wa":$url = 'http://www.bypasslimits.com/videobb.php?id='.$vid; $loc="videobb";
  59.             break;
  60.  
  61.             case "http://www.videobb.com/vi":$url = 'http://www.bypasslimits.com/videobb.php?id='.$vid; $loc="videobb";
  62.             break;
  63.  
  64.             case "http://www.videozer.com/v":$url = 'http://www.bypasslimits.com/videozer.php?id='.$vid; $loc="videozer";
  65.             break;
  66.  
  67.             case "http://videozer.com/video":$url = 'http://www.bypasslimits.com/videozer.php?id='.$vid; $loc="videozer";
  68.             break;
  69.  
  70.             default:$url = "";
  71.         }
  72.  
  73.         if($url != ""){
  74.         //  echo do_shortcode('[pro-player]'.$url.'[/pro-player]');
  75.             ?>
  76.  
  77.  
  78. <div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="580px" height="390px">
  79. <a href="<?php echo $url;?>" style="display:block;width:580px;height:390px" id="player"></a>
  80. </div></div>
  81. <script>
  82.     flowplayer("player", "/flowplayer-3.2.7.swf",{
  83.     //key: '$c6e9311935842bee951',
  84. //logo: {
  85.  
  86.     // default logo and its position
  87. //  url: 'http://www.bypasslimits.com.com/wp-content/plugins/proplayer/players/watermark.png',
  88. //  top: 20,
  89. //  right: 20,
  90. //  opacity: 0.4,
  91.  
  92.     // you can supply a relative size (to make the logo larger in fullscreen)
  93. //  width: '6.5%',
  94. //  height: '6.5%',
  95.  
  96.     // if set to false, then the logo is also shown in non-fullscreen mode
  97. //  fullscreenOnly: true,
  98.  
  99.     // time to display logo (in seconds). 0 = show forever
  100. //  displayTime: 0,
  101.  
  102.     /*
  103.         if displayTime > 0 then this specifies the time it will take for
  104.         the logo to fade out. this happens internally by changing the opacity
  105.         property from its initial value to full transparency.
  106.         value is given in milliseconds.
  107.     */
  108. //  fadeSpeed: 0,
  109.  
  110.     // for commercial versions you can specify where the user is redirected when the logo is clicked
  111. //  linkUrl: 'http://www.bypasslimits.com.com
  112. //},
  113.         plugins: {
  114.             controls: {
  115.                 url: '/flowplayer.controls.swf'
  116.             }
  117.         }
  118.     });
  119. </script>
  120.  
  121.        
  122.  
  123.             <div style="width:100%;">
  124.             <div style="width:48%;float:left;">
  125.             <strong>Video URL : </strong><br>
  126.             <textarea rows="3" cols="35" id="vidurl" onclick="this.select()" readonly="readOnly" style="padding:0px;width:99%;height:45px;border:1px solid #d4d4d4;overflow-y:scroll;"><?php echo $url;?></textarea>
  127.             </div>
  128.             <div style="width:48%;float:right;">
  129.             <strong>Embed This Video : </strong><br>
  130.             <textarea  rows="3" id="emburl" cols="35" onclick="this.select()" readonly="readOnly" style="padding:0px;width:99%;height:45px;border:1px solid #d4d4d4;overflow-y:scroll;">&lt;iframe width="520" height="330" src="http://www.bypasslimits.com.com/watch.php?loc=<?php echo $loc;?>&vid=<?php echo $vid;?>" frameborder="0" &gt;&lt;/iframe&gt;</textarea>
  131.             </div></div>
  132.  
  133.             <?php
  134.         }else{
  135.             ?>
  136.  
  137.  
  138.  
  139.        
  140.                 <p>This is <b>working only</b> with <b>VideoBB, VideoZER</b> and <b>MegaVideo</b>.
  141.                 If you were using one of those sources, either you entered the <b>wrong link</b> on the <b>wrong page</b>
  142.                 or you clearly can't <b>read the instructions</b> above.<br> Try again.</p>    
  143.             <?php
  144.         }
  145.     }else{
  146.          echo "";
  147.     }
  148.    ?>                                                  
  149.  
  150.             <?php edit_post_link(__('Edit this post.', 'warp'), '<p class="edit">','</p>'); ?>
  151.    
  152.         </article>
  153.        
  154.         <?php endwhile; ?>
  155.     <?php endif; ?>
  156.    
  157.     <?php comments_template(); ?>
  158.  
  159. </div>
  160.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement