<?php # Copyright by Cristian Gheorghiu # Support www.cristiang.de defined ('main') or die ( 'no direct access' ); $result1 = db_query("select schl from `prefix_config` where schl='stream_type'"); $result2 = db_query("select schl from `prefix_config` where schl='stream_url'"); $result3 = db_query("select schl from `prefix_config` where schl='stream_width'"); $result4 = db_query("select schl from `prefix_config` where schl='stream_height'"); if (db_num_rows($result1) > 0 and db_num_rows($result2) > 0 and db_num_rows($result3) > 0 and db_num_rows($result4) > 0) { $erg = db_query('SELECT schl, wert FROM `prefix_config`'); while ($row = db_fetch_object($erg)) { if( $row->schl == 'stream_type' ) { $stream_type = $row->wert; } if( $row->schl == 'stream_url' ) { $stream_url = $row->wert; } if( $row->schl == 'stream_width' ) { $stream_width = $row->wert; } if( $row->schl == 'stream_height' ) { $stream_height = $row->wert; } } if( $stream_type == "twitch.tv" or $stream_type == "justin.tv" ) { echo '<object type="application/x-shockwave-flash" height="'. $stream_height .'" width="'. $stream_width .'" id="live_embed_player_flash" data="http://www.justin.tv/widgets/live_embed_player.swf?channel='. $stream_url .'" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="allownetworking" value="all" /><param name="movie" value="http://www.justin.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="channel='. $stream_url .'&auto_play=true&start_volume=1" /></object>'; } elseif( $stream_type == "own3d.tv" ) { echo '<iframe height="'. $stream_height .'" width="'. $stream_width .'" frameborder="0" src="http://www.own3d.tv/liveembed/'. $stream_url .'"></iframe>'; } else { echo 'ERROR: Anbieter nicht gefunden!'; } } else { echo 'Die Livestream-Box wurde noch nicht installiert!'; } ?>
verwendete ilch Version: 1.1 P
! Bitte Code im vorgesehenen Tag [code] setzen. Siehe über dem Eingabefeld. BBCode Hilfe. Gruß Lord|S. !
Zuletzt modifiziert von Lord|Schirmer am 19.11.2015 - 23:03:28