Ejemplo n.º 1
0
function tbxGenericShowSearch($type)
{
    Privileges::Check(Privileges::FromType($type));
    if ($type == 'search-term') {
        Blacklist::FilterSearchTerms();
    }
    $schema = GetDBSchema();
    $table = $schema->el('//database/table[naming/type="' . $type . '"]')->name->val();
    include_once 'cp-global-search.php';
}