<commit_before><!DOCTYPE html>
<?php
    $headerclass = "header";

    if (Auth::isAuthenticated()) {
        if (Auth::isAdmin()) {
            
            $uid = Utilities::arrayKeyOrDefault( $_GET, 'uid', 0, FILTER_VALIDATE_INT  );
            if( $uid ) {
                if( Config::get('admin_can_view_user_transfers_page')) {
                    $headerclass = 'headeruid';
                }
            }
        }
    }
?>

<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo Lang::getCode() ?>" xml:lang="<?php echo Lang::getCode() ?>">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        
        <title><?php echo htmlspecialchars(Config::get('site_name')); ?></title>

        <?php GUI::includeStylesheets() ?>
        
        <?php GUI::includeFavicon() ?>
        
        <?php GUI::includeScripts() ?>
        
        <script type="text/javascript" src="{path:filesender-config.js.php}"></script>
        
        <script type="text/javascript" src="{path:rest.php/lang?callback=lang.setTranslations}"></script>
        
        <meta name="robots" content="noindex, nofollow" />
        
        <meta name="auth" content="noindex, nofollow" />
    </head><commit_msg>better support for early exceptions (#868)<commit_after><!DOCTYPE html>
<?php
    $headerclass = "header";

    try {
        if (Auth::isAuthenticated()) {
            if (Auth::isAdmin()) {
            
                $uid = Utilities::arrayKeyOrDefault( $_GET, 'uid', 0, FILTER_VALIDATE_INT  );
                if( $uid ) {
                    if( Config::get('admin_can_view_user_transfers_page')) {
                        $headerclass = 'headeruid';
                    }
                }
            }
        }
    } catch (Exception $e) {
        // this is just for $headerclass if they are a superuser.
        // nothing to do on failure
    }

?>

<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo Lang::getCode() ?>" xml:lang="<?php echo Lang::getCode() ?>">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        
        <title><?php echo htmlspecialchars(Config::get('site_name')); ?></title>

        <?php GUI::includeStylesheets() ?>
        
        <?php GUI::includeFavicon() ?>
        
        <?php GUI::includeScripts() ?>
        
        <script type="text/javascript" src="{path:filesender-config.js.php}"></script>
        
        <script type="text/javascript" src="{path:rest.php/lang?callback=lang.setTranslations}"></script>
        
        <meta name="robots" content="noindex, nofollow" />
        
        <meta name="auth" content="noindex, nofollow" />
    </head>
{'fraction_non_alphanumeric': 0.16796152423233443, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 2.118800461361015, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2808652', 'n_tokens_mistral': 845, 'n_tokens_neox': 805, 'n_words': 141}