!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/petitions.zt-rada.gov.ua/modules/list/js/   drwxr-xr-x
Free 106.9 GB of 200.55 GB (53.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     petitionsList.js (5.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
function resttime(days, seconds, status)
{
    if (status != 1)
        return  '-';

    var x = new Date(seconds * 1000);
    var hours = x.getHours();
    var minutes = x.getMinutes();
    var str = '';
    if (days == 0) {
        return seconds;
    }
    return seconds;
}
var petitionsListViewModelClass = function()
{
    var self = this;
    this.petitions = ko.observableArray();
    this.petitionsLoading = ko.observable(true);
    this.petitionsCount = ko.observable('...');
    this.maxcount = ko.observable(250);
    this.updateHash = function()
    {
        this.replaceHash();
        //location.hash = '' + $('#petitions-statuses-select a.darken-2').attr('status') + '/' + $("#sort-petitions").val() + '/' + this.petitions().length;
    }
    this.replaceHash = function()
    {
        location.replace('#'+$('#petitions-statuses-select a.darken-2').attr('status') + '/' +  $("#sort-petitions").val() + '/' + self.petitions().length);
    }
    this.changeStatus = function(obj, e)
    {
        self.status($(e.target).attr('status'));
        $("#petitions-statuses-select a").addClass('lighten-3').removeClass('darken-2');
        $(e.target).addClass('darken-2');
        localStorage.setItem('#status-petitions',  $(e.target).attr('status'));
        this.status($(e.target).attr('status'));
        updatePetitionsList();
        self.updateHash();
    }
    this.addPetition = function(petition)
    {
        self.petitions.push(petition);
    }
    this.loadParams = function() {
        myarr = [];
        var hash = location.hash;
        var arr = hash.split('#');
        var hashCount = 20;
        if (typeof arr[1] == 'string' && arr[1].length > 0)
        {
            arr = arr[1].split('/');
            var hashStatus = parseInt(arr[0]);
            var hashSort = parseInt(arr[1]);
            hashCount = parseInt(arr[2]);
            localStorage.setItem('#status-petitions', hashStatus);
            localStorage.setItem('#sort-petitions', hashSort);
        }
        var status = localStorage.getItem('#status-petitions');
        if (status == null)
            status = 1;
        this.status = ko.observable(status);
        var options = [
            {selector: '.petitions-list-scrollFire', offset: 0, callback: "PetitionsListEndScrollFire()"}];
        Materialize.scrollFire(options);
        var status = localStorage.getItem('#status-petitions');
        if (status == null)
            status = 1;

        $("#petitions-statuses-select a").addClass('lighten-3').removeClass('darken-2');
        $("#petitions-statuses-select a[status='" + status + "']").addClass('darken-2');

        if (localStorage.getItem('#sort-petitions') != null) {
            $("#sort-petitions").val(localStorage.getItem('#sort-petitions'));
            $("#sort-petitions").material_select();
        }
        $("#sort-petitions").on('change', function()
        {
            petitionsListViewModel.petitions.removeAll();
            petitionsListViewModel.petitionsLoading(true);
            localStorage.setItem('#sort-petitions', $('#sort-petitions').val());
            $.post('/list/JsonList', {sort:$('#sort-petitions').val(), status : petitionsListViewModel.status()}, function(data)
            {
                petitionsListViewModel.petitions(data.rows);
                petitionsListViewModel.petitionsCount(data.count);
                petitionsListViewModel.petitionsLoading(false);
                petitionsListViewModel.replaceHash();
            },'json');
            petitionsListViewModel.updateHash();
        });
        updatePetitionsList(hashCount);
    }
}
var petitionsListViewModel = new petitionsListViewModelClass();
$(document).ready(function()
{
    ko.applyBindings(petitionsListViewModel);
    petitionsListViewModel.loadParams();
});
function updatePetitionsList(count)
{
    $.post('/list/JsonList', {sort:$('#sort-petitions').val(), status : petitionsListViewModel.status(), count : count}, function(data)
    {
        petitionsListViewModel.petitions(data.rows);
        petitionsListViewModel.petitionsCount(data.count);
        petitionsListViewModel.maxcount(data.maxcount);
        petitionsListViewModel.petitionsLoading(false);
        petitionsListViewModel.replaceHash();
    },'json');
}
function PetitionsListEndScrollFire()
{
    petitionsListViewModel.petitionsLoading(true);
    if (petitionsListViewModel.petitionsCount() > petitionsListViewModel.petitions().length)
    $.post('/list/JsonList', {sort:$('#sort-petitions').val(), status : petitionsListViewModel.status(), start:$('.list-item').length}, function(data)
    {
        ko.utils.arrayPushAll(petitionsListViewModel.petitions, data.rows);
        petitionsListViewModel.petitionsLoading(false);
        var options = [
            {selector: '.petitions-list-scrollFire', offset: 0, callback: "PetitionsListEndScrollFire()"}];
        Materialize.scrollFire(options);
        petitionsListViewModel.replaceHash();
    },'json');
    else {
        petitionsListViewModel.petitionsLoading(false);
        var options = [
            {selector: '.petitions-list-scrollFire', offset: 0, callback: "PetitionsListEndScrollFire()"}];
        Materialize.scrollFire(options);
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0136 ]--