files.tar 0100777 0000000 0000000 00000121000 13246053132 007617 0 ustar 00 lib/ 0040777 0000000 0000000 00000000000 13202471260 006557 5 ustar 00 lib/system/ 0040777 0000000 0000000 00000000000 13202471260 010103 5 ustar 00 lib/system/bbcode/ 0040777 0000000 0000000 00000000000 13202471260 011321 5 ustar 00 lib/system/bbcode/media/ 0040777 0000000 0000000 00000000000 13202471260 012400 5 ustar 00 lib/system/bbcode/media/provider/ 0040777 0000000 0000000 00000000000 13234576754 014255 5 ustar 00 lib/system/bbcode/media/provider/ABCNewsBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003147 13176712725 022766 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class ABCNewsBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'ABCNews';
$contentProperties = ' scrolling="no" autoplay="no" ';
$styleProperties = ' style="border:none"';
$playerContent = '';
$playerContainer = '
' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/BBCNewsBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003055 13172350565 022761 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class BBCNewsBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'BBCNews';
$contentProperties = ' scrolling="no" frameborder="0"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/CNBCBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003200 13175604620 022230 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class CNBCBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'CNBC';
$contentProperties = ' type="application/x-shockwave-flash" allowFullScreen="true" scrolling="no" bgcolor="#131313"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/CNNBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003072 13172101372 022141 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class CNNBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'CNN';
$contentProperties = ' frameborder="0" scrolling="no"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/CNNMoneyBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003022 13172351400 023143 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class CNNMoneyBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'CNNMoney';
$contentProperties = ' class="' . $providerClass . '"';
$playerContent = '';
$playerContainer = $playerContent;
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/CollegehumorBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003120 13172352064 024150 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class CollegehumorBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'Collegehumor';
$contentProperties = ' frameborder="0" webkitAllowFullScreen allowFullScreen';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/DemocracyNowBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003142 13173341021 024111 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class DemocracyNowBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'DemocracyNow';
$contentProperties = ' frameborder="0" allowfullscreen="true" scrolling="no"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/FacebookPostBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000002625 13234576761 024126 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class FacebookPostBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
$matches[0] = 'https' . mb_substr($matches[0], 4);
}
}
$request = new HTTPRequest('https://www.facebook.com/plugins/post/oembed.json/?url=' . $matches[0] , ['timeout' => 10]);
try {
$request->execute();
$reply = $request->getReply();
$data = JSON::decode($reply['body']);
if ($data['success']) {
return $data["html"];
}
else {
throw new SystemException('Can not connect to https://www.facebook.com/plugins/post/oembed.json/');
}
}
catch (SystemException $e) {
throw new SystemException('Request to Facebook failed. Please inform the Administrator about: ' . $e->getMessage());
}
}
} lib/system/bbcode/media/provider/FacebookVideoBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000002630 13234605615 024232 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class FacebookVideoBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
$matches[0] = 'https' . mb_substr($matches[0], 4);
}
}
$request = new HTTPRequest('https://www.facebook.com/plugins/video/oembed.json/?url=' . $matches[0] , ['timeout' => 10]);
try {
$request->execute();
$reply = $request->getReply();
$data = JSON::decode($reply['body']);
if ($data['success']) {
return $data["html"];
}
else {
throw new SystemException('Can not connect to https://www.facebook.com/plugins/video/oembed.json/');
}
}
catch (SystemException $e) {
throw new SystemException('Request to Facebook failed. Please inform the Administrator about: ' . $e->getMessage());
}
}
} lib/system/bbcode/media/provider/fourPlayersBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003157 13176711216 024052 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class fourPlayersBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'fourPlayers';
$contentProperties = ' frameborder="0" allowfullscreen="allowfullscreen" autoplay="false"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/GameSpotBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003155 13174063756 023263 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class GameSpotBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'GameSpot';
$contentProperties = ' scrolling="no" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/GamestarBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000003077 13174064344 023304 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class GamestarBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
$contentProperties = '';
$styleProperties = '';
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
return '' . $matches[0] . ' (Non-SSL)';
} else {
$providerClass = 'Gamestar';
$contentProperties = ' frameborder="0" scrolling="auto"';
$playerContent = '';
$playerContainer = '' . $playerContent . '
';
return $playerContainer;
}
}
}
} lib/system/bbcode/media/provider/TwitterBBCodeMediaProvider.class.php 0100777 0000000 0000000 00000002552 13176703343 023201 0 ustar 00
* @package WoltLabSuite\Core\System\Bbcode\Media\Provider
* @since 3.1
*/
class TwitterBBCodeMediaProvider implements IBBCodeMediaProvider {
public function parse($url, array $matches = []) {
if (preg_match('~^(https?)://~', $matches[0], $protocol)) {
if ($protocol[1] === 'http' && RouteHandler::secureConnection()) {
$matches[0] = 'https' . mb_substr($matches[0], 4);
}
}
$request = new HTTPRequest('https://publish.twitter.com/oembed?url=' . $matches[0] , ['timeout' => 10]);
try {
$request->execute();
$reply = $request->getReply();
$data = JSON::decode($reply['body']);
if ($data['url']) {
return $data["html"];
}
else {
throw new SystemException('Can not connect to https://publish.twitter.com/oembed');
}
}
catch (SystemException $e) {
throw new SystemException('Request to Twitter failed. Please inform the Administrator about: ' . $e->getMessage());
}
}
} style/ 0040777 0000000 0000000 00000000000 13202471260 007151 5 ustar 00 style/mediaprovider.scss 0100777 0000000 0000000 00000011154 13237633407 012715 0 ustar 00 @if #{$wcf_option_mediaprovider_adaptedvideosize} == 1 {
@include screen-sm-up {
$list: fourPlayers, ABCNews, ArchiveOrg, audioBoom, AudiomackAlbumPlaylist,
AudiomackSong, BBCNews, Channel9, CNN, Collegehumor, DailyMotionPlaylist,
DemocracyNow, Dumpert, ExternalVideofiles, FunnyOrDie, GameSpot, Gamestar,
gaskranktv, gfycat, GolemVideo, GoogleDocuments, GoogleMaps, GoogleMyMaps,
GoogleSpreadsheets, HotCoub, Indiegogo, ivoox, Kickstarter, LiveCap,
MailruVideos, Mixcloud;
.fourPlayers {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.ABCNews {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.ArchiveOrg {
padding-bottom: 0%;
height: 360px;
max-width: 477px;
}
.audioBoom {
padding-bottom: 0%;
height: 300px;
max-width: 550px;
iframe {
background-color:transparent;
display:block;
}
}
.AudiomackAlbumPlaylist {
padding-bottom: 0%;
height: 350px;
max-width: 560px;
}
.AudiomackSong {
padding-bottom: 0%;
height: 252px;
max-width: 560px;
width: 100%;
}
.BBCNews {
padding-bottom: 0%;
height: 500px;
max-width: 400px;
}
.Channel9 {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.CNN {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Collegehumor {
padding-bottom: 0%;
height: 369px;
max-width: 600px;
}
.DailyMotionPlaylist {
padding-bottom: 0%;
height: 315px;
//width: 480px;
max-width: 480px;
}
.DemocracyNow {
padding-bottom: 0%;
height: 360px;
max-width: 640px;
}
.Dumpert {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.ExternalVideofiles {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.FunnyOrDie {
padding-bottom: 0%;
height: 400px;
max-width: 640px;
}
.GameSpot {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Gamestar {
padding-bottom: 0%;
height: 385px;
max-width: 585px;
}
.gaskranktv {
padding-bottom: 0%;
height: 338px;
max-width: 560px;
width: 100%;
}
.gfycat {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.GolemVideo {
padding-bottom: 0%;
height: 270px;
max-width: 480px;
}
.GoogleDocuments {
padding-bottom: 0%;
height: 300px;
max-width: 560px;
width: 100%;
}
.GoogleMaps {
padding-bottom: 0%;
height: 400px;
max-width: 560px;
width: 100%;
}
.GoogleMyMaps {
padding-bottom: 0%;
height: 350px;
max-width: 560px;
width: 100%;
}
.GoogleSpreadsheets {
padding-bottom: 0%;
height: 300px;
max-width: 560px;
width: 100%;
}
.HotCoub {
padding-bottom: 0%;
height: 100%;
max-width: 560px;
max-height: 420px;
max-height: 315px;
width: 100%;
}
.Indiegogo {
padding-bottom: 0%;
height: 445px;
max-width: 222px;
}
.ivoox {
padding-bottom: 0%;
height: 200px;
max-width: 560px;
border:none;
box-sizing:border-box;
width:100%;
}
.Kickstarter {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
width:100%;
}
.LiveCap {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
width:100%;
}
.MailruVideos{
padding-bottom: 0%;
height: 315px;
max-width: 537px;
width:100%;
}
.Mixcloud {
padding-bottom: 0%;
height: 120px;
max-width: 900px;
width:100%;
}
.NewYorkTimes {
padding-bottom: 0%;
height: 321px;
max-width: 480px;
}
.NHLcom {
padding-bottom: 0%;
height: 320px;
max-width: 560px;
}
.Oddshot {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.OKru {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Playstv {
padding-bottom: 0%;
height: 378px;
max-width: 480px;
}
.Rutube {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Sendvid {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Sketchfab {
padding-bottom: 0%;
height: 480px;
max-width: 640px;
}
.Streamable {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Vevo {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
.Vidme {
padding-bottom: 0%;
height: 315px;
max-width: 560px;
}
@each $provider, in $list {
p.text-center + .videoContainer .#{$provider} {
margin-left: auto;
margin-right: auto;
}
p.text-center + .videoContainer .#{$provider} {
mmargin-right: 0px;
margin-left: auto;
}
}
}
} language/ 0040777 0000000 0000000 00000000000 13246053132 007576 5 ustar 00 language/de.xml 0100777 0000000 0000000 00000000762 13246045156 010724 0 ustar 00