477 lines
16 KiB
PHP
477 lines
16 KiB
PHP
<?php
|
|
/* $Id: home.php 8 2009-01-11 06:02:53Z john $ */
|
|
include "header.php";
|
|
$page = 'general';
|
|
|
|
function general()
|
|
{
|
|
global $user, $owner, $database;
|
|
?>
|
|
<style>
|
|
.grayscale{filter: url(/js/filters/filters.svg#grayscale);
|
|
filter: gray; -webkit-filter: grayscale(100%)!important;
|
|
-moz-filter: grayscale(100%)!important;
|
|
-ms-filter: grayscale(100%)!important;
|
|
-o-filter: grayscale(100%)!important;}
|
|
|
|
.bateoffintrovid{max-width:720px; width:100%;}
|
|
.bateoffimage{width:200px; margin-bottom:10px;}
|
|
.bateoffmenu{margin:auto; width:100%; max-width:1000px;}
|
|
.bateoffmenu div{float:left;}
|
|
.text-orange, a.text-orange {
|
|
color: #fe8800!important;
|
|
}
|
|
.creditcarddiv{text-align:center;}
|
|
|
|
.creditcarddiv img{ max-width: 100%;
|
|
height: auto; width:100px; margin-left:20px;margin-right:20px;}
|
|
.upgradecontainer{max-width:1071px; width:100%;}
|
|
.upgradecontainer a, .upgradecontainer a:link, .upgradecontainer a:visited, .upgradecontainer a:active{color: #ffffff;}
|
|
.renewdefault{font-size:20px;}
|
|
.renewbig{font-size:26px;}
|
|
.renewlarge{font-size:23px;}
|
|
.paymentmethods{width:42%; margin:auto; margin-top:20px; margin-bottom:20px;}
|
|
|
|
.table-full-data {
|
|
color: #fff;
|
|
font-size: 17px;
|
|
text-align: left;
|
|
border: 1px solid #fe8800;
|
|
width: 100%;
|
|
}
|
|
.table-full-data th, .table-full-data td {
|
|
padding: 10px 15px;
|
|
border: 1px solid #fe8800;
|
|
}
|
|
.bateworldright {
|
|
float: right!important;
|
|
}
|
|
|
|
@media only screen and (max-width: 991px) {
|
|
.mostpopular{margin-left:-63px;}
|
|
.creditcarddiv img{width:auto;}
|
|
.helpbuttons{display:block; margin:0px !important; text-align:center;}
|
|
.helpbuttons img{display:initial;}
|
|
}
|
|
@media only screen and (max-width: 768px) {
|
|
.paymentmethods div:first-of-type{margin-bottom:30px;}
|
|
.bateworldright {
|
|
float: left!important;
|
|
}
|
|
.mostpopular{margin-left:-31px;}
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function editVideo(id, desc)
|
|
{
|
|
jQuery("#biobateoff").attr("src", decodeURIComponent(desc));
|
|
content=jQuery("#editvideo").html();
|
|
jQuery("#myModal").html(content);
|
|
|
|
jQuery(".modal-content").css("background", "black")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//jQuery('#media_desc').html(desc);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
<div class="center-block upgradecontainer">
|
|
|
|
|
|
|
|
|
|
|
|
<a href="bateoff.php"><img src="/images/BateOff-Small1.png" class="img-responsive center-block"></a>
|
|
|
|
|
|
|
|
<br>
|
|
<?php echo SE_Language::get("a21");?>
|
|
|
|
|
|
<br>
|
|
|
|
<br><div class="col-sm-2"></div>
|
|
<?php $query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff_contestants ORDER BY id"); $x=0;
|
|
while($row=$database->database_fetch_array($query)){
|
|
$contestants[$x]["username"]=$row["name"];
|
|
$contestants[$x]["id"]=$row["id"];
|
|
$contestants[$x]["picture"]=$row["picture"];
|
|
$contestants[$x]["bio"]=$row["bio"];
|
|
$x++;
|
|
|
|
}
|
|
shuffle($contestants);
|
|
$x=0;$y=1;
|
|
|
|
foreach($contestants as $contestant){?>
|
|
<div class="col-sm-2 center-text text-center">
|
|
|
|
<a href="javascript:void(0)" onclick="editVideo('<?php echo $contestant["id"];?>', '<?php echo urlencode($contestant["bio"]);?>'); " data-toggle="modal" data-target="#myModal"><img src="<?php echo $contestant["picture"];?>" class="img-responsive" style="margin:auto;"></a>
|
|
<a href="profile.php?user=<?php echo $contestant["username"];?>" target="_blank"><?php echo $contestant["username"];?></a>
|
|
<?php echo $row["name"];?></div>
|
|
<?php
|
|
if($y%3==0){?><div class="clearfix"></div><div style="height:10px;"></div><div class="col-sm-2"></div><?php }$x++;$y++;
|
|
}?>
|
|
<div class="clearfix"></div><br>
|
|
<br>
|
|
<div class="center" style="font-size:20px; color:#eda800;">
|
|
Total BateOff Votes:<br>
|
|
<?php echo $database->database_result($database->database_query("SELECT COUNT(*) FROM bateworldcom_zips.bateoffvotes"),0);?><br>
|
|
VOTE ON EACH CHALLENGE BELOW!<br>
|
|
</div>
|
|
<script type="text/javascript" src="https://n2h5a5n4.ssl.hwcdn.net/include/videoplayer/start/java/FWDUVPlayer.js"></script>
|
|
|
|
<!-- Setup video player-->
|
|
<script type="text/javascript">
|
|
FWDUVPUtils.onReady(function(){
|
|
|
|
new FWDUVPlayer({
|
|
//main settings
|
|
instanceName:"player1",
|
|
parentId:"myDiv",
|
|
playlistsId:"playlists",
|
|
mainFolderPath:"https://n2h5a5n4.ssl.hwcdn.net/include/videoplayer/start/content",
|
|
skinPath:"classic_skin_dark",
|
|
displayType:"responsive",
|
|
initializeOnlyWhenVisible:"no",
|
|
useVectorIcons:"no",
|
|
fillEntireVideoScreen:"no",
|
|
fillEntireposterScreen:"yes",
|
|
goFullScreenOnButtonPlay:"no",
|
|
playsinline:"yes",
|
|
privateVideoPassword:"428c841430ea18a70f7b06525d4b748a",
|
|
youtubeAPIKey:"",
|
|
useHEXColorsForSkin:"no",
|
|
normalHEXButtonsColor:"#666666",
|
|
googleAnalyticsTrackingCode:"",
|
|
useResumeOnPlay:"no",
|
|
useDeepLinking:"no",
|
|
showPreloader:"yes",
|
|
preloaderBackgroundColor:"#000000",
|
|
preloaderFillColor:"#FFFFFF",
|
|
addKeyboardSupport:"no",
|
|
autoScale:"yes",
|
|
showButtonsToolTip:"yes",
|
|
stopVideoWhenPlayComplete:"no",
|
|
playAfterVideoStop:"no",
|
|
autoPlay:"no",
|
|
loop:"no",
|
|
shuffle:"no",
|
|
showErrorInfo:"yes",
|
|
maxWidth:1160,
|
|
maxHeight:552,
|
|
volume:.8,
|
|
buttonsToolTipHideDelay:1.5,
|
|
backgroundColor:"#000000",
|
|
videoBackgroundColor:"#000000",
|
|
posterBackgroundColor:"#000000",
|
|
buttonsToolTipFontColor:"#5a5a5a",
|
|
//logo settings
|
|
showLogo:"yes",
|
|
hideLogoWithController:"no",
|
|
logoPosition:"topRight",
|
|
logoLink:"",
|
|
logoPath:"/images/watermark1.png",
|
|
logoMargins:10,
|
|
//playlists/categories settings
|
|
showPlaylistsSearchInput:"no",
|
|
usePlaylistsSelectBox:"no",
|
|
showPlaylistsButtonAndPlaylists:"no",
|
|
showPlaylistsByDefault:"no",
|
|
thumbnailSelectedType:"opacity",
|
|
startAtPlaylist:0,
|
|
buttonsMargins:15,
|
|
thumbnailMaxWidth:350,
|
|
thumbnailMaxHeight:350,
|
|
horizontalSpaceBetweenThumbnails:40,
|
|
verticalSpaceBetweenThumbnails:40,
|
|
inputBackgroundColor:"#333333",
|
|
inputColor:"#999999",
|
|
//playlist settings
|
|
showPlaylistButtonAndPlaylist:"no",
|
|
playlistPosition:"bottom",
|
|
showPlaylistByDefault:"yes",
|
|
showPlaylistName:"yes",
|
|
showSearchInput:"no",
|
|
showLoopButton:"yes",
|
|
showShuffleButton:"yes",
|
|
showPlaylistOnFullScreen:"no",
|
|
showNextAndPrevButtons:"yes",
|
|
showThumbnail:"yes",
|
|
forceDisableDownloadButtonForFolder:"yes",
|
|
addMouseWheelSupport:"yes",
|
|
startAtRandomVideo:"no",
|
|
stopAfterLastVideoHasPlayed:"no",
|
|
addScrollOnMouseMove:"no",
|
|
randomizePlaylist:'no',
|
|
folderVideoLabel:"VIDEO ",
|
|
playlistRightWidth:310,
|
|
playlistBottomHeight:150,
|
|
startAtVideo:0,
|
|
maxPlaylistItems:50,
|
|
thumbnailWidth:71,
|
|
thumbnailHeight:71,
|
|
spaceBetweenControllerAndPlaylist:1,
|
|
spaceBetweenThumbnails:1,
|
|
scrollbarOffestWidth:10,
|
|
scollbarSpeedSensitivity:.5,
|
|
playlistBackgroundColor:"#000000",
|
|
playlistNameColor:"#FFFFFF",
|
|
|
|
thumbnailNormalBackgroundColor:"#1b1b1b",
|
|
thumbnailHoverBackgroundColor:"#313131",
|
|
thumbnailDisabledBackgroundColor:"#272727",
|
|
searchInputBackgroundColor:"#000000",
|
|
searchInputColor:"#bdbdbd",
|
|
youtubeAndFolderVideoTitleColor:"#FFFFFF",
|
|
folderAudioSecondTitleColor:"#999999",
|
|
youtubeOwnerColor:"#bdbdbd",
|
|
youtubeDescriptionColor:"#bdbdbd",
|
|
mainSelectorBackgroundSelectedColor:"#FFFFFF",
|
|
mainSelectorTextNormalColor:"#FFFFFF",
|
|
mainSelectorTextSelectedColor:"#000000",
|
|
mainButtonBackgroundNormalColor:"#212021",
|
|
mainButtonBackgroundSelectedColor:"#FFFFFF",
|
|
mainButtonTextNormalColor:"#FFFFFF",
|
|
mainButtonTextSelectedColor:"#000000",
|
|
//controller settings
|
|
showController:"yes",
|
|
showControllerWhenVideoIsStopped:"yes",
|
|
showNextAndPrevButtonsInController:"no",
|
|
showRewindButton:"yes",
|
|
showPlaybackRateButton:"yes",
|
|
showVolumeButton:"yes",
|
|
|
|
showTime:"yes",
|
|
showQualityButton:"yes",
|
|
showInfoButton:"no",
|
|
showDownloadButton:"no",
|
|
showShareButton:"no",
|
|
showEmbedButton:"no",
|
|
showChromecastButton:"yes",
|
|
showFullScreenButton:"yes",
|
|
disableVideoScrubber:"no",
|
|
showScrubberWhenControllerIsHidden:"yes",
|
|
showMainScrubberToolTipLabel:"yes",
|
|
showDefaultControllerForVimeo:"no",
|
|
repeatBackground:"no",
|
|
controllerHeight:42,
|
|
controllerHideDelay:3,
|
|
startSpaceBetweenButtons:10,
|
|
spaceBetweenButtons:10,
|
|
scrubbersOffsetWidth:2,
|
|
mainScrubberOffestTop:16,
|
|
timeOffsetLeftWidth:2,
|
|
timeOffsetRightWidth:3,
|
|
timeOffsetTop:0,
|
|
volumeScrubberHeight:80,
|
|
volumeScrubberOfsetHeight:12,
|
|
timeColor:"#bdbdbd",
|
|
youtubeQualityButtonNormalColor:"#bdbdbd",
|
|
youtubeQualityButtonSelectedColor:"#FFFFFF",
|
|
scrubbersToolTipLabelBackgroundColor:"#FFFFFF",
|
|
scrubbersToolTipLabelFontColor:"#5a5a5a",
|
|
//advertisement on pause window
|
|
aopwTitle:"Advertisement",
|
|
aopwWidth:400,
|
|
aopwHeight:240,
|
|
aopwBorderSize:6,
|
|
aopwTitleColor:"#FFFFFF",
|
|
//subtitle
|
|
subtitlesOffLabel:"Subtitle off",
|
|
//popup add windows
|
|
showPopupAdsCloseButton:"yes",
|
|
//embed window and info window
|
|
embedAndInfoWindowCloseButtonMargins:15,
|
|
borderColor:"#333333",
|
|
mainLabelsColor:"#FFFFFF",
|
|
secondaryLabelsColor:"#bdbdbd",
|
|
shareAndEmbedTextColor:"#5a5a5a",
|
|
inputBackgroundColor:"#000000",
|
|
inputColor:"#FFFFFF",
|
|
//login
|
|
playIfLoggedIn:"no",
|
|
playIfLoggedInMessage:"Please <a href='https://google.com' target='_blank'>login</a> to play this video.",
|
|
//audio visualizer
|
|
audioVisualizerLinesColor:"#0099FF",
|
|
audioVisualizerCircleColor:"#FFFFFF",
|
|
//lightbox settings
|
|
closeLightBoxWhenPlayComplete:"no",
|
|
lightBoxBackgroundOpacity:.6,
|
|
lightBoxBackgroundColor:"#000000",
|
|
//sticky on scroll
|
|
stickyOnScroll:"no",
|
|
stickyOnScrollShowOpener:"yes",
|
|
stickyOnScrollWidth:"700",
|
|
stickyOnScrollHeight:"394",
|
|
//sticky display settings
|
|
showOpener:"yes",
|
|
showOpenerPlayPauseButton:"yes",
|
|
verticalPosition:"bottom",
|
|
horizontalPosition:"center",
|
|
showPlayerByDefault:"yes",
|
|
animatePlayer:"yes",
|
|
openerAlignment:"right",
|
|
mainBackgroundImagePath:"https://n2h5a5n4.ssl.hwcdn.net/include/videoplayer/start/content/minimal_skin_dark/main-background.png",
|
|
openerEqulizerOffsetTop:-1,
|
|
openerEqulizerOffsetLeft:3,
|
|
offsetX:0,
|
|
offsetY:0,
|
|
//playback rate / speed
|
|
defaultPlaybackRate:1, //0.25, 0.5, 1, 1.25, 1.2, 2
|
|
//cuepoints
|
|
executeCuepointsOnlyOnce:"no",
|
|
//annotations
|
|
showAnnotationsPositionTool:"no",
|
|
//ads
|
|
openNewPageAtTheEndOfTheAds:"no",
|
|
adsButtonsPosition:"left",
|
|
skipToVideoText:"You can skip to video in: ",
|
|
skipToVideoButtonText:"Skip Ad",
|
|
adsTextNormalColor:"#bdbdbd",
|
|
adsTextSelectedColor:"#FFFFFF",
|
|
adsBorderNormalColor:"#444444",
|
|
adsBorderSelectedColor:"#FFFFFF",
|
|
//a to b loop
|
|
useAToB:"yes",
|
|
atbTimeBackgroundColor:"transparent",
|
|
atbTimeTextColorNormal:"#888888",
|
|
atbTimeTextColorSelected:"#FFFFFF",
|
|
atbButtonTextNormalColor:"#888888",
|
|
atbButtonTextSelectedColor:"#FFFFFF",
|
|
atbButtonBackgroundNormalColor:"#FFFFFF",
|
|
atbButtonBackgroundSelectedColor:"#000000",
|
|
//thumbnails preview
|
|
thumbnailsPreviewWidth:196,
|
|
thumbnailsPreviewHeight:110,
|
|
thumbnailsPreviewBackgroundColor:"#000000",
|
|
thumbnailsPreviewBorderColor:"#666",
|
|
thumbnailsPreviewLabelBackgroundColor:"#666",
|
|
thumbnailsPreviewLabelFontColor:"#FFF",
|
|
// context menu
|
|
showContextmenu:'yes',
|
|
showScriptDeveloper:"no",
|
|
contextMenuBackgroundColor:"#1f1f1f",
|
|
contextMenuBorderColor:"#1f1f1f",
|
|
contextMenuSpacerColor:"#333",
|
|
contextMenuItemNormalColor:"#666666",
|
|
contextMenuItemSelectedColor:"#FFFFFF",
|
|
contextMenuItemDisabledColor:"#333"
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
<div id="myDiv" style="position:relative; left:0px; top:0px; max-width:720px; width:100%; margin:auto;"></div>
|
|
|
|
<ul id="playlists" style="display:none;">
|
|
|
|
|
|
<li data-source="mixedPlaylist" data-playlist-name="" data-thumbnail-path="">
|
|
<p class="fwduvp-categories-title"><span class="fwduvp-header">Title: </span><span class="fwduvp-title"></span></p>
|
|
<p class="fwduvp-categories-type"><span class="fwduvp-header">Type: </span>HTML</p>
|
|
<p class="fwduvp-categories-description"><span class="fwduvp-header">Description: </span>Favorited Videos</p>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
<!-- HTML playlist -->
|
|
|
|
|
|
<!-- HTML mixed playlist -->
|
|
<ul id="mixedPlaylist" style="display:none;">
|
|
|
|
|
|
|
|
|
|
|
|
<li data-thumb-source="https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16_thumb.jpg" data-video-source="[{source:'https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16-1080.mp4', label:'1080p' },{source:'https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16-720.mp4', label:'720p' },{source:'https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16-480.mp4', label:'480' },{source:'https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16-240.mp4', label:'240' }]" data-start-at-video="0" data-poster-source="https://n2h5a5n4.ssl.hwcdn.net/bate_videos/16_thumb.jpg" data-downloadable="no">
|
|
<div data-video-short-description="">
|
|
<div>
|
|
<p class="fwduvp-thumbnail-title">BateOff Intro!</p>
|
|
<p class="fwduvp-thumbnail-description"></p>
|
|
</div>
|
|
</div>
|
|
<div data-video-long-description="">
|
|
<div>
|
|
<p class="fwduvp-video-title">BateOff Intro!</p>
|
|
<p class="fwduvp-video-main-description"></p>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<br>
|
|
<?php
|
|
include("ads/bateoff.php"); ?>
|
|
<br>
|
|
<div class="bateoffmenu">
|
|
<?php $query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff WHERE approved=1 ORDER BY orderby ASC"); $x=0;
|
|
while($row=$database->database_fetch_array($query)){ if($x>0 && $x%2==0){?><div class="clearfix clear"></div><?php } $x++;?>
|
|
|
|
<div class="col-sm-5 <?php if($x>0 && $x%2==0){?>bateworldright<?php }?>">
|
|
<div class="pull-left col-sm-3"><a href="bateoffvideo.php?id=<?php echo $row["id"];?>">
|
|
<img data-src="<?php echo $row["picture"];?>" class="img-responsive center-block lozad bateoffimage" ></a></div><div class="pull-right col-sm-8" style="padding:0; margin-bottom:15px;"><a href="bateoffvideo.php?id=<?php echo $row["id"];?>"><?php echo html_entity_decode($row["title"]);?><br>
|
|
<div style="height:51px; overflow:hidden;">
|
|
<?php echo html_entity_decode($row["body"]);?></div> More</a></div>
|
|
<div class="clearfix clear"></div></div>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
}?>
|
|
|
|
<?php $query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff WHERE approved=0 ORDER BY orderby ASC");
|
|
while($row=$database->database_fetch_array($query)){ if($x>0 && $x%2==0){?><div class="clearfix clear"></div><?php } $x++; ?>
|
|
<div class="col-sm-5 <?php if($x>0 && $x%2==0){?>bateworldright<?php }?>">
|
|
<div class="pull-left col-sm-3">
|
|
<img data-src="<?php echo $row["picture"];?>" class="img-responsive center-block lozad bateoffimage test123 grayscale" style="filter: url(/js/filters/filters.svg#grayscale);
|
|
filter: gray; -webkit-filter: grayscale(100%)!important;
|
|
-moz-filter: grayscale(100%)!important;
|
|
-ms-filter: grayscale(100%)!important;
|
|
-o-filter: grayscale(100%)!important;" >
|
|
</div><div class="pull-right col-sm-8" style="padding:0; margin-bottom:15px;">
|
|
<?php echo html_entity_decode($row["title"]);?><br>
|
|
<div style="height:51px; overflow:hidden;">
|
|
<?php echo html_entity_decode($row["body"]);?></div>
|
|
</div>
|
|
<div class="clearfix clear"></div></div>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
}?>
|
|
|
|
|
|
|
|
<div class="clearfix clear"></div></div><div class="clearfix clear"></div></div>
|
|
|
|
<div id='editvideo' style="display:none;">
|
|
<div class="modal-dialog"><button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button><div class="modal-content" style="text-align:left;">
|
|
<div class="center"><img src="" id="biobateoff"></div>
|
|
<br />
|
|
<br />
|
|
</div></div>
|
|
</div>
|
|
<?php
|
|
}
|
|
|
|
|
|
$smarty->assign('modalcontent', $modal);
|
|
include "footer.php";
|
|
?>
|