Вход Регистрация
Файл: concrete5.7.5.6/concrete/tools/attribute_type_actions.php
Строк: 17
<?php
    defined
('C5_EXECUTE') or die("Access Denied.");
    use 
ConcreteCoreAttributeKeyKey as AttributeKey;
    use 
ConcreteCoreAttributeType as AttributeType;

    if (isset(
$_REQUEST['akID'])) {
        
$at AttributeKey::getInstanceByID($_REQUEST['akID']);
    } else {
        
$at AttributeType::getByID($_REQUEST['atID']);
    }
    if (
is_object($at)) {
        
$cnt $at->getController();
        if (isset(
$_REQUEST['args']) && is_array($_REQUEST['args'])) {
            
$args $_REQUEST['args'];
        } else {  
            
$args = array(); 
        }
        if(
method_exists($cnt'action_' $_REQUEST['action'])) { //make sure the controller has the right method
            
call_user_func_array(array($cnt'action_' $_REQUEST['action']), $args);
        }
    }
Онлайн: 0
Реклама