Example #1
0
function trigger_rackspace()
{
    global $virtual_obj_types;
    // Hide the tab if the object type is virtual
    assertUIntArg('object_id');
    $object = spotEntity('object', $_REQUEST['object_id']);
    if (in_array($object['objtype_id'], $virtual_obj_types)) {
        return '';
    }
    $rackspace = getRackspaceStats();
    if ($rackspace['Racks'] > 0) {
        return 'std';
    }
    return '';
}
Example #2
0
function trigger_rackspace()
{
    global $virtual_obj_types;
    // Hide the tab if the object type is virtual
    $object = spotEntity('object', getBypassValue());
    if (in_array($object['objtype_id'], $virtual_obj_types)) {
        return '';
    }
    $rackspace = getRackspaceStats();
    if ($rackspace['Racks'] > 0) {
        return 'std';
    }
    return '';
}