add_filter('news-comment', 'php_in_template');add_filter('news-entry', 'php_in_template');<?php
//...get direct FLV link for Dailymotion
//http://www.dailymotion.com/us/featured/channel/sport/video/x8kqo2_bsides-salto-base-nocturno-en-ensan_sport
//http://keepvid.com/?url=http://www.dailymotion.com/us/featured/channel/sport/video/x8kqo2_bsides-salto-base-nocturno-en-ensan_sport
//http://vid.akm.dailymotion.com/18/512x384/h264/14404610.h264?aksessionid=1236484818170_912376&akauth=1236657618_89762dcab95c2ecae031f3b333df7437
//\$geturl = \$video_detail->video_url; // retrieve video_url from the database
//\$geturl = "http://keepvid.com/?url=" . \$video_detail->video_url;
\$geturl = "http://keepvid.com/?url=http://www.dailymotion.com/video/x5cayu_walking-contradiction-green-day_music";
if(function_exists('curl_init'))
{
\$ch = curl_init();
\$timeout = 30; // set to zero for no timeout
curl_setopt(\$ch, CURLOPT_URL, \$geturl);
curl_setopt(\$ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt(\$ch, CURLOPT_CONNECTTIMEOUT,\$timeout);
\$file_contents = curl_exec(\$ch);
curl_close(\$ch);
}
\$start_position = strpos(\$file_contents, "Links found on");
\$start_position = strpos(\$file_contents, "Report any problems to", \$start_position);
\$start_position = strpos(\$file_contents, "<a href=\"", \$start_position) + 9;
\$end_position = strpos(\$file_contents, "\"", \$start_position) - \$start_position;
\$getflvlink = substr(\$file_contents, \$start_position, \$end_position);
\$flv_link = trim(\$getflvlink);
//\$flv_link = "http://proxy-35.dailymotion.com/16/320x240/flv/7746594.flv?3729391860564098ca7ed38576d57c4e13a7dae";
//\$flv_link = "http://vid.akm.dailymotion.com/18/512x384/h264/14404610.h264?aksessionid=1236484818170_912376&akauth=1236657618_89762dcab95c2ecae031f3b333df7437";
?>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<script type="text/javascript">
var flashvars =
{
'file': encodeURIComponent('<?php echo \$flv_link; ?>'),
'type': 'video',
'skin': 'nacht',
'controlbar': 'bottom',
'stretching': 'fill',
'frontcolor': 'FFFFFF',
'lightcolor': 'FF6600',
'autostart': 'true'
};
var params =
{
'allowfullscreen': 'true',
'allowscriptaccess': 'always'
};
var attributes =
{
'name': 'JomPlayerId1',
'id': 'JomPlayerId1'
};
swfobject.embedSWF('player.swf', 'JomTubePlayerId1', '430', '300', '9.0.124', false, flashvars, params, attributes);
</script>
</head>
</body>
<div id="JomPlayerContainer" class="JomPlayerContainer"><a id="JomTubePlayerId1" class="player1" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
</body>
</html>tags: <?php echo 'blahblah'; ?><?=cn_meta('keywords'); ?><?PHP=cn_meta('keywords'); ?><?php
\$background="http://www.website.com/{avatar}.png";
?>
$output = preg_replace('/\[full-link\](.*?)\[\/full-link\]/is', '', $output);
$output = preg_replace_callback('/<\\?php(.*?)\\?>/is', 'phpTemplateEval', $output);
DarkSlim wrote:For "GoldenGonaz":
As the first post says you need to 'escape the variables', so it should look like:
- Code: Select all
<?php
\$background="http://www.website.com/{avatar}.png";
?>
<?php
$cat="1";
include("/path/to/photogallery/mainpage.php");
?>Return to Additional Downloads
Users browsing this forum: Google [Bot] and 0 guests