Пример #1
0
function videoembedder_options_page()
{
    if ($_POST) {
        $options = array("video_width" => $_POST["video_width"], "video_height" => $_POST["video_height"], "youtube_tag" => $_POST["youtube_tag"], "google_tag" => $_POST["google_tag"], "metacafe_tag" => $_POST["metacafe_tag"], "liveleak_tag" => $_POST["liveleak_tag"], "revver_tag" => $_POST["revver_tag"], "ifilm_tag" => $_POST["ifilm_tag"], "myspace_tag" => $_POST["myspace_tag"], "bliptv_tag" => $_POST["bliptv_tag"], "college_tag" => $_POST["college_tag"], "videojug_tag" => $_POST["videojug_tag"], "godtube_tag" => $_POST["godtube_tag"], "veoh_tag" => $_POST["veoh_tag"], "break_tag" => $_POST["break_tag"], "dailymotion_tag" => $_POST["dailymotion_tag"], "movieweb_tag" => $_POST["movieweb_tag"], "jaycut_tag" => $_POST["jaycut_tag"], "myvideo_tag" => $_POST["myvideo_tag"], "vimeo_tag" => $_POST["vimeo_tag"], "gtrailers_tag" => $_POST["gtrailers_tag"], "viddler_tag" => $_POST["viddler_tag"], "snotr_tag" => $_POST["snotr_tag"], "funnyordie_tag" => $_POST["funnyordie_tag"], "quicktime_tag" => $_POST["quicktime_tag"], "windowsmedia_tag" => $_POST["windowsmedia_tag"]);
        $updated = false;
        update_option('videoembedder_options', $options);
        defaultSettings();
    }
    $videoembedder_options = get_option(videoembedder_options);
    $video_height = $videoembedder_options["video_height"];
    $video_width = $videoembedder_options["video_width"];
    $youtube_tag = $videoembedder_options["youtube_tag"];
    $google_tag = $videoembedder_options["google_tag"];
    $metacafe_tag = $videoembedder_options["metacafe_tag"];
    $liveleak_tag = $videoembedder_options["liveleak_tag"];
    $revver_tag = $videoembedder_options["revver_tag"];
    $ifilm_tag = $videoembedder_options["ifilm_tag"];
    $myspace_tag = $videoembedder_options["myspace_tag"];
    $bliptv_tag = $videoembedder_options["bliptv_tag"];
    $college_tag = $videoembedder_options["college_tag"];
    $videojug_tag = $videoembedder_options["videojug_tag"];
    $godtube_tag = $videoembedder_options["godtube_tag"];
    $veoh_tag = $videoembedder_options["veoh_tag"];
    $break_tag = $videoembedder_options["break_tag"];
    $dailymotion_tag = $videoembedder_options["dailymotion_tag"];
    $movieweb_tag = $videoembedder_options["movieweb_tag"];
    $jaycut_tag = $videoembedder_options["jaycut_tag"];
    $myvideo_tag = $videoembedder_options["myvideo_tag"];
    $vimeo_tag = $videoembedder_options["vimeo_tag"];
    $gtrailers_tag = $videoembedder_options["gtrailers_tag"];
    $viddler_tag = $videoembedder_options["viddler_tag"];
    $snotr_tag = $videoembedder_options["snotr_tag"];
    $funnyordie_tag = $videoembedder_options["funnyordie_tag"];
    $quicktime_tag = $videoembedder_options["quicktime_tag"];
    $windowsmedia_tag = $videoembedder_options["windowsmedia_tag"];
    echo '<div class="wrap"><h2>Video Embedder Settings</h2>';
    echo "<form name='form' method='post' action=''>\n\t<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n\t\t<tr>\n\t\t\t<th width='20%'><strong>Video Width:</strong></th>\n\t\t\t<td width='80%'><input name='video_width' type='text' id='video_width' value='{$video_width}'> (Default: 425)</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Video Height:</strong></th>\n\t\t\t<td><input name='video_height' type='text' id='video_height' value='{$video_height}'> (Default: 355)</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Youtube tag:</strong></th>\n\t\t\t<td><input name='youtube_tag' type='text' id='youtube_tag' value='{$youtube_tag}'> Usage: [{$youtube_tag}]video_id[/{$youtube_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Google Video tag:</strong></th>\n\t\t\t<td><input name='google_tag' type='text' id='google_tag' value='{$google_tag}'> Usage: [{$google_tag}]video_id[/{$google_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Metacafe tag:</strong></th>\n\t\t\t<td><input name='metacafe_tag' type='text' id='metacafe_tag' value='{$metacafe_tag}'> Usage: [{$metacafe_tag}]video_id[/{$metacafe_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Liveleak tag:</strong></th>\n\t\t\t<td><input name='liveleak_tag' type='text' id='liveleak_tag' value='{$liveleak_tag}'> Usage: [{$liveleak_tag}]video_id[/{$liveleak_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Revver tag:</strong></th>\n\t\t\t<td><input name='revver_tag' type='text' id='revver_tag' value='{$revver_tag}'> Usage: [{$revver_tag}]video_id[/{$revver_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>IFILM tag:</strong></th>\n\t\t\t<td><input name='ifilm_tag' type='text' id='ifilm_tag' value='{$ifilm_tag}'> Usage: [{$ifilm_tag}]video_id[/{$ifilm_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Myspace tag:</strong></th>\n\t\t\t<td><input name='myspace_tag' type='text' id='myspace_tag' value='{$myspace_tag}'> Usage: [{$myspace_tag}]video_id[/{$myspace_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Blip.tv tag:</strong></th>\n\t\t\t<td><input name='bliptv_tag' type='text' id='bliptv_tag' value='{$bliptv_tag}'> Usage: [{$bliptv_tag}]video_id[/{$bliptv_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>CollegeHumor tag:</strong></th>\n\t\t\t<td><input name='college_tag' type='text' id='college_tag' value='{$college_tag}'> Usage: [{$college_tag}]video_id[/{$college_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Videojug tag:</strong></th>\n\t\t\t<td><input name='videojug_tag' type='text' id='videojug_tag' value='{$videojug_tag}'> Usage: [{$videojug_tag}]video_id[/{$videojug_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Godtube tag:</strong></th>\n\t\t\t<td><input name='godtube_tag' type='text' id='godtube_tag' value='{$godtube_tag}'> Usage: [{$godtube_tag}]video_id[/{$godtube_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Veoh tag:</strong></th>\n\t\t\t<td><input name='veoh_tag' type='text' id='veoh_tag' value='{$veoh_tag}'> Usage: [{$veoh_tag}]video_id[/{$veoh_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Break tag:</strong></th>\n\t\t\t<td><input name='break_tag' type='text' id='break_tag' value='{$break_tag}'> Usage: [{$break_tag}]video_id[/{$break_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Dailymotion tag:</strong></th>\n\t\t\t<td><input name='dailymotion_tag' type='text' id='dailymotion_tag' value='{$dailymotion_tag}'> Usage: [{$dailymotion_tag}]video_id[/{$dailymotion_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Movieweb tag:</strong></th>\n\t\t\t<td><input name='movieweb_tag' type='text' id='movieweb_tag' value='{$movieweb_tag}'> Usage: [{$movieweb_tag}]video_id[/{$movieweb_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Jaycut tag:</strong></th>\n\t\t\t<td><input name='jaycut_tag' type='text' id='jaycut_tag' value='{$jaycut_tag}'> Usage: [{$jaycut_tag}]video_id[/{$jaycut_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Myvideo tag:</strong></th>\n\t\t\t<td><input name='myvideo_tag' type='text' id='myvideo_tag' value='{$myvideo_tag}'> Usage: [{$myvideo_tag}]video_id[/{$myvideo_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Vimeo tag:</strong></th>\n\t\t\t<td><input name='vimeo_tag' type='text' id='vimeo_tag' value='{$vimeo_tag}'> Usage: [{$vimeo_tag}]video_id[/{$vimeo_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Gametrailers tag:</strong></th>\n\t\t\t<td><input name='gtrailers_tag' type='text' id='gtrailers_tag' value='{$gtrailers_tag}'> Usage: [{$gtrailers_tag}]video_id[/{$gtrailers_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Viddler tag:</strong></th>\n\t\t\t<td><input name='viddler_tag' type='text' id='viddler_tag' value='{$viddler_tag}'> Usage: [{$viddler_tag}]video_id[/{$viddler_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Snotr tag:</strong></th>\n\t\t\t<td><input name='snotr_tag' type='text' id='snotr_tag' value='{$snotr_tag}'> Usage: [{$snotr_tag}]video_id[/{$snotr_tag}]</td>\n\t\t</tr\n\t\t<tr>\n\t\t\t<th><strong>Funny or Die tag:</strong></th>\n\t\t\t<td><input name='funnyordie_tag' type='text' id='funnyordie_tag' value='{$funnyordie_tag}'> Usage: [{$funnyordie_tag}]video_id[/{$funnyordie_tag}]</td>\n\t\t</tr>\n\t\t<!-- local media -->\n\t\t<tr>\n\t\t\t<th><strong>Quicktime tag:</strong></th>\n\t\t\t<td><input name='quicktime_tag' type='text' id='quicktime_tag' value='{$quicktime_tag}'> Usage: [{$quicktime_tag}]URL[/{$quicktime_tag}]</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th><strong>Windows Media Player tag:</strong></th>\n\t\t\t<td><input name='windowsmedia_tag' type='text' id='windowsmedia_tag' value='{$windowsmedia_tag}'> Usage: [{$windowsmedia_tag}]URL[/{$windowsmedia_tag}]</td>\n\t\t</tr>\n\t</table>\n\t<input type='submit' name='Submit' value='Save'>";
    if ($updated == true) {
        echo ' Settings updated';
    }
    echo '</form></div>';
    echo '<div class="wrap"><h2>Help</h2>';
    echo '<h3>Youtube help</h3>';
    echo '<p>For Youtube movies, check the URL and use the red part: http://www.youtube.com/watch?v=<strong style="color:red;">zORv8wwiadQ</strong></p>';
    echo '<p>Type [' . $youtube_tag . ']<strong style="color:red;">zORv8wwiadQ</strong>[/' . $youtube_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Google Video help</h3>';
    echo '<p>For Google Video, check the URL and use the red part: http://video.google.com/videoplay?docid=<strong style="color:red;">6063985264803214006</strong></p>';
    echo '<p>Type [' . $google_tag . ']<strong style="color:red;">6063985264803214006</strong>[/' . $google_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Metacafe help</h3>';
    echo '<p>For Metacafe, check the URL and use the red part: http://www.metacafe.com/watch/<strong style="color:red;">975366/secrets_of_google_earth</strong>/ (the trailing slash should not be included)</p>';
    echo '<p>Type [' . $metacafe_tag . ']<strong style="color:red;">975366/secrets_of_google_earth</strong>[/' . $metacafe_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Liveleak help</h3>';
    echo '<p>For Liveleak, check the URL and use the red part: http://www.liveleak.com/view?i=<strong style="color:red;">d62_1594640234</strong></p>';
    echo '<p>Type [' . $liveleak_tag . ']<strong style="color:red;">d62_1594640234</strong>[/' . $liveleak_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Revver help</h3>';
    echo '<p>For Revver, check the URL and use the red part: http://revver.com/video/<strong style="color:red;">527514</strong>/ (the trailing slash should not be included)</p>';
    echo '<p>Type [' . $revver_tag . ']<strong style="color:red;">527514</strong>[/' . $revver_tag . '] in the editor to embed the video.</p>';
    echo '<h3>IFILM help</h3>';
    echo '<p>For IFILM, check the URL and use the red part: http://www.ifilm.com/video/<strong style="color:red;">3521648</strong></p>';
    echo '<p>Type [' . $ifilm_tag . ']<strong style="color:red;">3521648</strong>[/' . $ifilm_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Myspace help</h3>';
    echo '<p>For Myspace, check the URL and use the red part: http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=<strong style="color:red;">56884863</strong></p>';
    echo '<p>Type [' . $myspace_tag . ']<strong style="color:red;">56884863</strong>[/' . $myspace_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Blip.tv help</h3>';
    echo '<p>For Blip.tv, check the URL and use the red part: http://blip.tv/file/<strong style="color:red;">254683</strong></p>';
    echo '<p>Type [' . $bliptv_tag . ']<strong style="color:red;">254683</strong>[/' . $bliptv_tag . '] in the editor to embed the video.</p>';
    echo '<h3>CollegeHumor help</h3>';
    echo '<p>For CollegeHumor, check the URL and use the red part: http://www.collegehumor.com/video:<strong style="color:red;">3567863</strong></p>';
    echo '<p>Type [' . $college_tag . ']<strong style="color:red;">3567863</strong>[/' . $college_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Videojug help</h3>';
    echo '<p>For Videojug, check the embed code and use the red part: &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="345" align="middle"&gt;&lt;param name="movie" value="http://www.videojug.com/film/player?id=<strong style="color:red;">3ff6e533-5eaf-4ff8-540e-02334f7ac808</strong>" /&gt;&lt;embed src (...)</p>';
    echo '<p>Type [' . $videojug_tag . ']<strong style="color:red;">3ff6e533-5eaf-4ff8-540e-02334f7ac808</strong>[/' . $videojug_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Godtube help</h3>';
    echo '<p>For Godtube, check the URL and use the red part: http://www.godtube.com/view_video.php?viewkey=<strong style="color:red;">83abb6308b8842ca6f1f</strong></p>';
    echo '<p>Type [' . $godtube_tag . ']<strong style="color:red;">83abb6308b8842ca6f1f</strong>[/' . $godtube_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Veoh help</h3>';
    echo '<p>For Veoh, check the URL and use the red part: http://www.veoh.com/videos/<strong style="color:red;">v1683095mYFrF3Xc</strong></p>';
    echo '<p>Type [' . $veoh_tag . ']<strong style="color:red;">v1683095mYFrF3Xc</strong>[/' . $veoh_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Break help</h3>';
    echo '<p>For Break, check the embed code and use the red part:&lt;object width="464" height="392"&gt;&lt;param name="movie" value="http://embed.break.com/<strong style="color:red;">NDExNjU2</strong>"&gt;&lt;/para...</p>';
    echo '<p>Type [' . $break_tag . ']<strong style="color:red;">NDExNjU2</strong>[/' . $break_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Dailymotion help</h3>';
    echo '<p>For Dailymotion, check the URL and use the red part: http://www.dailymotion.com/video/<strong style="color:red;">xoh8j</strong>_monty-python-dead-parrot-sketch_family</p>';
    echo '<p>Type [' . $dailymotion_tag . ']<strong style="color:red;">xoh8j</strong>[/' . $dailymotion_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Movieweb help</h3>';
    echo '<p>For Movieweb, check the URL and use the red part: http://www.movieweb.com/video/<strong style="color:red;">V07L3flnvxMUWY</strong></p>';
    echo '<p>Type [' . $movieweb_tag . ']<strong style="color:red;">V07L3flnvxMUWY</strong>[/' . $movieweb_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Jaycut help</h3>';
    echo '<p>For Jaycut, check the URL and use the red part: http://jaycut.se/mix/<strong style="color:red;">2493</strong>/preview</p>';
    echo '<p>Type [' . $jaycut_tag . ']<strong style="color:red;">2493</strong>[/' . $jaycut_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Myvideo help</h3>';
    echo '<p>For Myvideo, check the URL and use the red part: http://www.myvideo.de/watch/<strong style="color:red;">3033737</strong></p>';
    echo '<p>Type [' . $myvideo_tag . ']<strong style="color:red;">3033737</strong>[/' . $myvideo_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Vimeo help</h3>';
    echo '<p>For Vimeo, check the URL and use the red part: http://www.vimeo.com/<strong style="color:red;">367351</strong></p>';
    echo '<p>Type [' . $vimeo_tag . ']<strong style="color:red;">367351</strong>[/' . $vimeo_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Gametrailers help</h3>';
    echo '<p>For Gametrailers, check the URL and use the red part: http://www.gametrailers.com/player/<strong style="color:red;">32532</strong>.html</p>';
    echo '<p>Type [' . $gtrailers_tag . ']<strong style="color:red;">32532</strong>[/' . $gtrailers_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Viddler help</h3>';
    echo '<p>For Viddler, check the embed code and use the red part: &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="437" height="370" id="viddler"&gt;&lt;param name="movie" value="http://www.viddler.com/player/<strong style="color:red;">6708b741</strong>/" /&gt;&lt;param name</p>';
    echo '<p>Type [' . $viddler_tag . ']<strong style="color:red;">6708b741</strong>[/' . $viddler_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Snotr help</h3>';
    echo '<p>For Snotr, check the URL and use the red part: http://www.snotr.com/video/<strong style="color:red;">1046</strong></p>';
    echo '<p>Type [' . $snotr_tag . ']<strong style="color:red;">1046</strong>[/' . $snotr_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Funny or Die help</h3>';
    echo '<p>For Funny or Die, check the URL and use the red part: http://www.funnyordie.com/videos/<strong style="color:red;">1785f25c3f</strong></p>';
    echo '<p>Type [' . $funnyordie_tag . ']<strong style="color:red;">1785f25c3f</strong>[/' . $funnyordie_tag . '] in the editor to embed the video.</p>';
    // Local media
    echo '<h3>Quicktime help</h3>';
    echo '<p>For Quicktime files, enclose the URL</p>';
    echo '<p>Type [' . $quicktime_tag . ']<strong style="color:red;">http://www.yoursite.com/path/file.mov</strong>[/' . $quicktime_tag . '] in the editor to embed the video.</p>';
    echo '<h3>Windows Media Player help</h3>';
    echo '<p>For Windows Media files, enclose the URL</p>';
    echo '<p>Type [' . $windowsmedia_tag . ']<strong style="color:red;">http://www.yoursite.com/path/file.wmv</strong>[/' . $windowsmedia_tag . '] in the editor to embed the video.</p>';
    echo '<h2>More help</h2>';
    echo '<p>Visit the <a href="http://www.gate303.net/2007/12/17/video-embedder/">home page for Video Embedder</a> for more help and support</p>';
    echo '<p>Video Embedder version ' . $videoembedder_options["version"] . '</p>';
    echo '</div>';
}
Пример #2
0
    <script src="/js/desktop.js" type="text/javascript" charset="utf-8"></script>
  
  <?php endif ?>
  
  <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-20072687-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

  </script>
</head>
<body>
  <?php  
  // Load default settings
  $sql = "SELECT * FROM settings WHERE myId = '{$_GET['id']}'";
  $result = mysql_query($sql) or die(mysql_error());
  $num = mysql_num_rows($result);
  if ($num > 0) {
    $s = mysql_fetch_object($result);
  } else {
    $s = defaultSettings($_GET['id']);
  }
    
  ?>
Пример #3
0
if ($_GET['action'] == "makeHash") {
  $master = $_GET['master'];
	$host = strtolower($_GET['host']);
	$s = $_GET['settings'];

	// Select algorithm
	$alg = $s['h_algorithm']."Hash";

	// Create the new password
	$out = $alg($master, $host, $s);	
	echo $out;
}
if ($_GET['action'] == "getDefaultSettings") {
//  print_r($_GET);
  echo defaultSettings($_GET['id'], $_GET['method']);
}

if ($_GET['action'] == "makeHash") {
	$master = $_GET['master'];
	$host = strtolower($_GET['host']);
	$s = $_GET['settings'];

	// Select algorithm
	$alg = $s['h_algorithm']."Hash";
	
	// Create the new password
	$out = $alg($master, $host, $s);	
	echo $out;
}