ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:24.18 GB of 70.42 GB (34.34%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,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,

/ distr/ Shinobi/ web/ libs/ js/ - drwxr-xr-x

Directory:
Viewing file:     dash2.gps.js (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
$(document).ready(function(){
    window.setRadialBearing = function(iconElement,addedDegrees,titlePrefix){
        //fa-compass
        var degrees = -35;
        degrees += addedDegrees
        iconElement.css('transform','rotate(' + degrees + 'deg)').attr('title',titlePrefix + addedDegrees)
    }
    var createMapElement = function(options){
        $(`#${options.id}`).html(`<div class="gps-map" id="${options.id}_map" style="min-height: 600px;border-radius:5px;overflow:hidden;"></div>`)
        var vidViewMap = L.map(options.id + '_map').setView(options.initalView, options.zoom)
        var mapBoxMarker;
        L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
            attribution: 'OpenStreet Map'
        }).addTo(vidViewMap)

        if(options.marker)mapBoxMarker = L.marker(options.marker).addTo(vidViewMap)
        return {
            map: vidViewMap,
            marker: mapBoxMarker,
        }
    }
    window.destroyGpsHandlerForVideoFile = function(mapId){
        var vidViewMap = $(`#${mapId}`)
        if (vidViewMap.length > 0) {
            try{
                vidViewMap.off();
                vidViewMap.remove();
            }catch(err){
                console.log(err)
            }
        }
    }
    window.createGpsHandlerForVideoFile = function(options,callback){
        var groupKey = options.ke
        var monitorId = options.mid
        var filename = options.file
        var videoElement = options.targetVideoElement
        $.get(getApiPrefix() + '/videos/' + groupKey + '/' + monitorId + '/' + filename + '?json=true',function(video){
            var response = {ok: false}
            var gps = video.details.gps
            if(gps && gps[0]){
                var gpsPoints = {}
                var firstMarker = gps[0]

                var videoStartTime = new Date(video.time)
                $.each(gps,function(n,point){
                    var pointTime = new Date(point.time)
                    var seekPosition = (pointTime - videoStartTime) / 1000
                    gpsPoints[pointTime] = point
                })
                response.ok = true
                response.gpsPoints = gpsPoints
                callback(response)
                response.elements = createMapElement({
                    id: options.targetMapElement,
                    initalView: [firstMarker.lat,firstMarker.lng],
                    marker: [firstMarker.lat,firstMarker.lng],
                    zoom: 2,
                })
                videoElement.on('timeupdate',function(){
                    var point = gpsPoints[parseInt(this.currentTime)]
                    if(point){
                        mapBoxMarker.setLatLng([point.lat, point.lng]).update()
                    }
                })
            }else{
                callback(response)
            }
        })
    }
})
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2157 seconds