T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/gositeme.com/public_html/whmcs/modules/addons/phox_templates1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/gositeme.com/public_html/whmcs/modules/addons/phox_templates1/hooks.php
<?php

if (!defined("WHMCS")) {
    die("This file cannot be accessed directly");
}

require_once __DIR__ .  DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Bootstrap.php';

use Symfony\Component\HttpFoundation\Request;

use PhoxTemplates\Includes\App\Database\Databases;
use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaPage', 1, function($vars) {

    $classes_list = [
        'BrandSettings',
        'ColorSettings',
        'TypoSettings'
    ];

    foreach ( $classes_list as $class_name ){

        $class = 'PhoxTemplates\Includes\App\Http\Controllers'.'\\' . $class_name ;

        $init = new $class();

        $class_values = call_user_func([$init, 'front_values']);

        $vars [$class_values['var_name']]= $class_values['values'];

    }


    $split_assetPathcss = explode('/css' ,$vars['theme']['assetPath']['css']);
    $split_assetPathRootFolder =explode('templates/' ,$split_assetPathcss[0]);
    $vars['phoxName'] = $split_assetPathRootFolder[1];

    return $vars;
});


// Change Main Menu Home Text To Icon
add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar)
{

    if ( ! is_null($primaryNavbar->getChild('Home') ) ) {
        $primaryNavbar->removeChild('Home');
    }

    if ( ! is_null($primaryNavbar->getChild('Network Status' ) ) ) {
        $primaryNavbar->removeChild('Network Status');
    }

});

CasperSecurity Mini