681 lines
24 KiB
PHP
681 lines
24 KiB
PHP
|
|
<?php
|
||
|
|
/* $Id: home.php 8 2009-01-11 06:02:53Z john $ */
|
||
|
|
include "header.php";
|
||
|
|
$page = 'general';
|
||
|
|
|
||
|
|
|
||
|
|
if(isset($_POST['id'])) { $id = $_POST['id']; } elseif(isset($_GET['id'])) { $id = $_GET['id']; } else { $id = "1"; }
|
||
|
|
$query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff WHERE id=".$database->database_real_escape_string($id)." ORDER BY id");
|
||
|
|
|
||
|
|
$thisbateoff=$database->database_fetch_array($query);
|
||
|
|
if($thisbateoff["approved"]!=1){
|
||
|
|
|
||
|
|
//header("Location:bateoff.php");exit;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
function general()
|
||
|
|
{
|
||
|
|
global $user, $owner, $database, $thisbateoff, $id;
|
||
|
|
|
||
|
|
//if(isset($_POST['id'])) { $id = $_POST['id']; } elseif(isset($_GET['id'])) { $id = $_GET['id']; } else { $id = "1"; }
|
||
|
|
|
||
|
|
|
||
|
|
?>
|
||
|
|
<style>
|
||
|
|
.bateoffimage{width:200px; margin-bottom:10px;}
|
||
|
|
.bateoffmenu{margin:auto; width:100%; max-width:500px;}
|
||
|
|
.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;
|
||
|
|
}
|
||
|
|
|
||
|
|
@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;}
|
||
|
|
.mostpopular{margin-left:-31px;}
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
<div class="center-block upgradecontainer">
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<a href="bateoff.php"><img src="/images/BateOff-Small1.png" class="img-responsive center-block"></a>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<br>
|
||
|
|
<br><?php
|
||
|
|
$query=$database->database_query("SELECT * FROM bateworldcom_zips.bateoff ORDER BY id");
|
||
|
|
$bateoff=$database->database_fetch_array($query);
|
||
|
|
echo "<h2>".html_entity_decode($thisbateoff["title"])."</h2>";
|
||
|
|
echo html_entity_decode($thisbateoff["body"]);
|
||
|
|
?>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
|
||
|
|
<script type="text/javascript" src="https://n2h5a5n4.ssl.hwcdn.net/include/videoplayer/start/java/FWDUVPlayer.js"></script>
|
||
|
|
|
||
|
|
<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:"yes",
|
||
|
|
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; "></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>
|
||
|
|
|
||
|
|
|
||
|
|
<ul id="mixedPlaylist" style="display:none;">
|
||
|
|
<li data-thumb-source="https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/1_thumb.jpg" data-video-source="[{source:'https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/<?php echo $thisbateoff["id"];?>-1080.mp4', label:'1080p' },{source:'https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/<?php echo $thisbateoff["id"];?>-720.mp4', label:'720p' },{source:'https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/<?php echo $thisbateoff["id"];?>-480.mp4', label:'480' },{source:'https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/<?php echo $thisbateoff["id"];?>-240.mp4', label:'240' }]" data-start-at-video="0" data-poster-source="https://n2h5a5n4.ssl.hwcdn.net/videos/bateoff/<?php echo $thisbateoff["id"];?>_thumb.jpg" data-downloadable="no">
|
||
|
|
<div data-video-short-description="">
|
||
|
|
<div>
|
||
|
|
<p class="fwduvp-thumbnail-title"></p>
|
||
|
|
<p class="fwduvp-thumbnail-description"></p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div data-video-long-description="">
|
||
|
|
<div>
|
||
|
|
<p class="fwduvp-video-title"></p>
|
||
|
|
<p class="fwduvp-video-main-description"></p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
<br>
|
||
|
|
<script>
|
||
|
|
function bateoffvote(id){
|
||
|
|
jQuery.post("misc_js.php", {
|
||
|
|
task:"bateoffvote",
|
||
|
|
videoid: "<?php echo $id;?>",
|
||
|
|
votefor: id,
|
||
|
|
user: "<?php echo $user->user_info["user_id"];?>"
|
||
|
|
},
|
||
|
|
function(data, status){
|
||
|
|
|
||
|
|
if(data=="true"){
|
||
|
|
jQuery("#thanksforvoting").show();
|
||
|
|
}else{alert("You already voted");}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<br>
|
||
|
|
<?php
|
||
|
|
include("ads/bateoff.php"); ?>
|
||
|
|
<br>
|
||
|
|
<?php if(time()>=1655492400){?><div class="center">Voting is now over<br>
|
||
|
|
<br></div><?php }?>
|
||
|
|
<div class="center"><?php echo SE_Language::get("a22");?><div class="clearfix"></div>
|
||
|
|
<div id="thanksforvoting" style="display:none; height:30px; background:black; padding-top:10px;">Thanks for voting! Check out our <a href="https://bateworld.threadless.com/collections/the-bateoff-collection" target="_blank">Swag Store!</a></div>
|
||
|
|
<br>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
<div class="col-sm-2"></div>
|
||
|
|
<?php //$contestants=array();
|
||
|
|
|
||
|
|
$query=$database->database_query("SELECT COUNT(*) AS total FROM bateworldcom_zips.bateoffvotes WHERE videoid='".$database->database_real_escape_string($id)."'");
|
||
|
|
$totalvotes=$database->database_fetch_array($query);
|
||
|
|
|
||
|
|
$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"];
|
||
|
|
$query1=$database->database_query("SELECT COUNT(*) AS votes FROM bateworldcom_zips.bateoffvotes WHERE videoid='".$database->database_real_escape_string($id)."' AND votefor='".$database->database_real_escape_string($row["id"])."'");
|
||
|
|
$contestants[$x]["votes"]=$database->database_fetch_array($query1);
|
||
|
|
$x++;
|
||
|
|
|
||
|
|
}
|
||
|
|
shuffle($contestants);
|
||
|
|
$x=0;$y=1;
|
||
|
|
|
||
|
|
|
||
|
|
foreach($contestants as $contestant){?>
|
||
|
|
|
||
|
|
<div class="col-sm-2"><img src="<?php echo $contestant["picture"];?>" class="img-responsive" style="margin:auto;"><?php if(time()<1655492400){?><input type="button" value="<?php echo $contestant["username"];?>" onclick="bateoffvote('<?php echo $contestant["id"];?>')">
|
||
|
|
<?php }?>
|
||
|
|
<br>
|
||
|
|
<?php
|
||
|
|
if($totalvotes["total"]==""){$totalvotes["total"]=0;}else{$totalvotes["total"]=$totalvotes["total"]*1;}
|
||
|
|
if($contestant["votes"]["votes"]==""){$contestant["votes"]["votes"]=0;}else{$contestant["votes"]["votes"]=$contestant["votes"]["votes"]*1;}
|
||
|
|
$average=round($contestant["votes"]["votes"]/$totalvotes["total"]*100,1);
|
||
|
|
if(is_nan($average)){$average=0;}
|
||
|
|
|
||
|
|
if($average=="NAN"){$average=0;}
|
||
|
|
echo $average;?>%</div>
|
||
|
|
|
||
|
|
<?php if($y%3==0){?><div class="clearfix"></div><div style="height:10px;"></div><div class="col-sm-2"></div><?php } $y++;$x++; }?>
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="clearfix"></div><br>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
|
||
|
|
<div>
|
||
|
|
|
||
|
|
|
||
|
|
<?php
|
||
|
|
|
||
|
|
$commentcount = $database->database_result($database->database_query("SELECT COUNT(*) FROM bateoffcomments WHERE object_id='".$id."'"),0);
|
||
|
|
if($commentcount==""){$commentcount=0;}
|
||
|
|
//if($thisbateoff["is_converted"]==0){}else{
|
||
|
|
?>
|
||
|
|
<div id="profile_<?php echo $thisbateoff["id"];?>_postcomment"><div class="comment_headline">Comments (<span class="tc" id="totalcomments"><?php echo $commentcount;?></span>)</div>
|
||
|
|
|
||
|
|
<form action="comments.php" method="post" onsubmit="return updatecount1();"><div class="profile_postcomment"><textarea name="comment" id="comment_body" cols="25" class="comment_area" style="overflow: hidden; height: 70px;" placeholder="Write Something..."></textarea><div style="margin-top: 5px;">Allowed HTML Tags: b, img, a, br</div><div style="text-align: right; margin-top: 5px;">
|
||
|
|
|
||
|
|
<input type="submit" id="comment_submit" class="button" value="Post Comment" />
|
||
|
|
<input type="hidden" name="object_id" id="object_id" value="<?php echo $thisbateoff["id"];?>">
|
||
|
|
<input type="hidden" name="user" id="user" value="<?php echo $user->user_info["user_id"];?>">
|
||
|
|
<input type="hidden" name="object" id="object" value="bateoffcomments">
|
||
|
|
|
||
|
|
<input type="hidden" name="task" id="task" value="comment_post">
|
||
|
|
<input type="hidden" name="type" id="type" value="bateoff">
|
||
|
|
<input type="hidden" name="iden" id="iden" value="id">
|
||
|
|
<input type="hidden" name="value" id="value" value="<?php echo $thisbateoff["id"];?>">
|
||
|
|
<input type="hidden" name="object_owner" id="object_owner" value="bateoff">
|
||
|
|
<input type="hidden" name="object_owner_id" id="object_owner_id" value="<?php echo $thisbateoff["id"];?>">
|
||
|
|
<input type="hidden" name="tab" id="tab" value="bateoff">
|
||
|
|
<input type="hidden" name="col" id="col" value="bateoff">
|
||
|
|
<input type="hidden" name="child" id="child" value="1"></div><div id="comment_error" style="color: #FF0000; display: none;"></div></div></form>
|
||
|
|
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<div id="bateoff_profile_comments" style='margin-left: auto; margin-right: auto;'></div>
|
||
|
|
<?php //}?>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
|
||
|
|
function loadXMLDoc(page)
|
||
|
|
{/*
|
||
|
|
var xmlhttp;
|
||
|
|
|
||
|
|
if (window.XMLHttpRequest)
|
||
|
|
{// code for IE7+, Firefox, Chrome, Opera, Safari
|
||
|
|
xmlhttp=new XMLHttpRequest();
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{// code for IE6, IE5
|
||
|
|
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
|
||
|
|
}
|
||
|
|
xmlhttp.onreadystatechange=function()
|
||
|
|
{
|
||
|
|
|
||
|
|
if (xmlhttp.readyState==4 && xmlhttp.status==200)
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
document.getElementById("{/literal}batortraining_profile_comments{literal}").innerHTML=xmlhttp.responseText;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
xmlhttp.open("GET","{/literal}grabprofilecomments.php?user={$owner->user_info.user_username}&url={$smarty.server.PHP_SELF}{if $smarty.server.QUERY_STRING!=""}?{$smarty.server.QUERY_STRING|urlencode}{/if}&p="+page+"&type=batortraining&tab=batortraining&child=1&col=batortraining&focus=id&object_owner=batortraining&object_owner_id={$video.id}&id={$video.id}{literal}",true);
|
||
|
|
|
||
|
|
xmlhttp.send();*/
|
||
|
|
jQuery("#bateoff_profile_comments").load("grabprofilecomments.php?user=<?php echo $owner->user_info.user_username;?>&url=<?php echo $_SERVER["PHP_SELF"]; if($_SERVER["QUERY_STRING"]!="")echo "?"; echo urlencode($_SERVER["QUERY_STRING"]);?>}&p="+page+"&type=bateoff&customcomments=1&tab=bateoff&child=1&col=bateoff&focus=id&object_owner=bateoff&object_owner_id=<?php echo $thisbateoff["id"];?>&id=<?php echo $thisbateoff["id"];?>", function(responseTxt, statusTxt, xhr){
|
||
|
|
if(xhr.state() == "resolved"){
|
||
|
|
// alert(statusTxt);
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
e.preventdefault();
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
//alert(xhr.state());
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
function editVideo(id, title, desc, search, privacy, comments)
|
||
|
|
{
|
||
|
|
|
||
|
|
$('video_id').value = id;
|
||
|
|
|
||
|
|
$('video_title').defaultValue = title;
|
||
|
|
|
||
|
|
$('video_title').value = title;
|
||
|
|
|
||
|
|
$('video_desc').defaultValue = desc;
|
||
|
|
|
||
|
|
$('video_desc').value = desc;
|
||
|
|
|
||
|
|
if( $('video_search_'+search) )
|
||
|
|
|
||
|
|
{
|
||
|
|
|
||
|
|
$('video_search_'+search).checked = true;
|
||
|
|
|
||
|
|
$('video_search_'+search).defaultChecked = true;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
if( $('privacy_'+privacy) )
|
||
|
|
|
||
|
|
{
|
||
|
|
|
||
|
|
$('privacy_'+privacy).checked = true;
|
||
|
|
|
||
|
|
$('privacy_'+privacy).defaultChecked = true;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
if( $('comments_'+comments) )
|
||
|
|
|
||
|
|
{
|
||
|
|
|
||
|
|
$('comments_'+comments).checked = true;
|
||
|
|
|
||
|
|
$('comments_'+comments).defaultChecked = true;
|
||
|
|
|
||
|
|
}
|
||
|
|
opendivmodal('editvideo');
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
</script>
|
||
|
|
<script type="text/javascript">
|
||
|
|
var video_id = 0;
|
||
|
|
|
||
|
|
jQuery(function(){
|
||
|
|
|
||
|
|
loadXMLDoc(1);
|
||
|
|
|
||
|
|
document.getElementById('comment_body').value="";
|
||
|
|
});
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
function editComment1(commentID)
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
//var commentContainerElement = $(this.options.type + '_' + this.options.typeID + '_comments');
|
||
|
|
//var commentElement = commentContainerElement.getElement('profile_comment_body_' + commentID);
|
||
|
|
var commentElement = $('profile_comment_body_' + commentID);
|
||
|
|
|
||
|
|
var height = commentElement.offsetHeight + 10;
|
||
|
|
var commentText = commentElement.innerHTML.replace(/<br>/gi, '\r\n').replace(/>/gi, '>');
|
||
|
|
|
||
|
|
var innerHTML = '';
|
||
|
|
innerHTML += "<form action='comments.php' method='post' target='ajaxframe' name='editCommentForm' id='editCommentForm'>";
|
||
|
|
innerHTML += "<textarea name='comment_edit' id='comment_edit_" + commentID + "' style='height: " + height +" px; width: 100%;' onblur='doCommentEdit("+commentID+")'>" + commentText + "</textarea>";
|
||
|
|
innerHTML += "<input type='hidden' name='task' value='comment_edit'>";
|
||
|
|
innerHTML += "<input type='hidden' name='comment_id' value='" + commentID + "'>";
|
||
|
|
innerHTML += "<input type='hidden' name='object_id' value='<?php echo $id;?>'><input type='hidden' name='user' value='<?php echo $user->user_info["user_id"];?>'><input type='hidden' name='object' value='bateoffcomments'>";
|
||
|
|
innerHTML += "<input type='hidden' name='type' value='bateoff'>";
|
||
|
|
innerHTML += "<input type='hidden' name='iden' value='id'>";
|
||
|
|
innerHTML += "<input type='hidden' name='value' value='<?php echo $id;?>'>";
|
||
|
|
|
||
|
|
innerHTML +=
|
||
|
|
'<input type="hidden" name="tab" value="users">';
|
||
|
|
|
||
|
|
innerHTML +=
|
||
|
|
'<input type="hidden" name="col" value="user">';
|
||
|
|
|
||
|
|
/* if( this.options.typeTabParent ) innerHTML +=
|
||
|
|
'<input type="hidden" name="tab_parent" value="' + this.options.typeTabParent + '">';
|
||
|
|
|
||
|
|
if( this.options.typeColParent ) innerHTML +=
|
||
|
|
'<input type="hidden" name="col_parent" value="' + this.options.typeColParent + '">';
|
||
|
|
|
||
|
|
if( this.options.typeChild ) innerHTML +=
|
||
|
|
'<input type="hidden" name="child" value="1">';
|
||
|
|
*/
|
||
|
|
|
||
|
|
innerHTML += "</form>";
|
||
|
|
|
||
|
|
|
||
|
|
// Inject
|
||
|
|
commentElement.innerHTML = innerHTML;
|
||
|
|
textarea_autogrow('comment_edit_' + commentID);
|
||
|
|
$('comment_edit_' + commentID).focus();
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</script>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
|
||
|
|
|
||
|
|
<?php
|
||
|
|
}
|
||
|
|
function grabcomments()
|
||
|
|
{
|
||
|
|
global $url, $id, $database;
|
||
|
|
$query = $database->database_query("SELECT * FROM bateoffcomments WHERE object_id='".$id."' ORDER BY id DESC");
|
||
|
|
while($row=$database->database_fetch_array($query))
|
||
|
|
{
|
||
|
|
$owner1=new SEUser(Array($row["authoruser_id"]));
|
||
|
|
|
||
|
|
?>
|
||
|
|
<div style="margin-top: 10px; margin-bottom: 20px;"><div style="float: left; text-align: center; width: 90px;"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>">
|
||
|
|
|
||
|
|
<?php $profilepicture=$owner1->user_photo("./images/nophoto.png");
|
||
|
|
echo $owner1->userprofiledot($profilepicture, "75px");?>
|
||
|
|
|
||
|
|
</a></div><div style="overflow: hidden;"><div class="profile_comment_author"><a href="<?=$url->url_create('profile', $owner1->user_info["user_username"])?>"><b><?=$owner1->user_displayname?></b></a></div><div class="profile_comment_date"><?=date('n/j/Y g:i A', $row["date"])?></div><div class="profile_comment_body" id="profile_comment_body_14612"><?=$row["body"]?></div><div class="profile_comment_links"><a data-toggle="modal" data-target="#myModal" href="user_messages_new.php?to_user=<?=$owner->user_info["user_username"]?>&to_id=<?=$owner->user_info["user_username"]?>">Message</a> </div></div></div>
|
||
|
|
<?
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
$modal='<div id="membershippopup" class="modal"><div class="modal-dialog" style="z-index:1050; background:black;">
|
||
|
|
<div class="modal-header border-color-orange">
|
||
|
|
<h5 class="modal-title" style="text-align:left;">Pay by Cash, Check, or Money Order</h5>
|
||
|
|
<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>
|
||
|
|
<div class="modal-content" style="text-align:left; background:black;">
|
||
|
|
To pay by mail, please choose a non-recurring membership length below. Be sure to include your Bateworld profile name and email address with your payment. <br>
|
||
|
|
<br>
|
||
|
|
30 Days - $15 90 Days - $25 180 Days - $41 365 Days - $75<br>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
Mail your payment and request to:<br>
|
||
|
|
|
||
|
|
B.W.E.<br>
|
||
|
|
|
||
|
|
P.M.B. #241<br>
|
||
|
|
|
||
|
|
8485 E. McDonald Drive<br>
|
||
|
|
|
||
|
|
Scottsdale, AZ 85250
|
||
|
|
<br>
|
||
|
|
<br>
|
||
|
|
|
||
|
|
Your confidential information will be used only to credit your profile. We do not share or sell our member data.
|
||
|
|
|
||
|
|
<br>
|
||
|
|
<br>
|
||
|
|
You will be notified when your payment has been accepted.</div></div></div>';
|
||
|
|
|
||
|
|
$smarty->assign('modalcontent', $modal);
|
||
|
|
include "footer.php";
|
||
|
|
?>
|