⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 permissions.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1168213890',        'name' => 'account/prefs/permissions.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 33 "template\en\default\account\prefs\permissions.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n<table align=\"center\">\n  <tr>\n    <td>";    #line 67 "template\en\default\account\prefs\permissions.html.tmpl"    if ($stash->get(['has_bits', 0, 'size', 0])) {    $output .=  "\n        You have the following permission ";    #line 39 "template\en\default\account\prefs\permissions.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bits', 0]);    $output .=  " set on your account:\n        <table align=\"center\">";    #line 46 "template\en\default\account\prefs\permissions.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('has_bits');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'bit_description'} = $_tt_value;    $output .=  "\n            <tr>\n              <td>";    #line 43 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bit_description', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "</td>\n              <td>";    #line 44 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get(['bit_description', 0, 'desc', 0]);                &$_tt_filter($output);    };        $output .=  "</td>\n            </tr>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n        </table>\n";    #line 63 "template\en\default\account\prefs\permissions.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = [ 'editcomponents', 'canconfirm', 'editbugs' ];                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'privs'} = $_tt_value;    #line 0 "template\en\default\account\prefs\permissions.html.tmpl"    $stash->set('products', $stash->get(("local_" . $stash->get('privs'))));        #line 62 "template\en\default\account\prefs\permissions.html.tmpl"    if ($stash->get('products') && $stash->get(['products', 0, 'size', 0])) {    $output .=  "\n            <br>\n            <p>\n              You also have local '";    #line 54 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('privs');                &$_tt_filter($output);    };        $output .=  "' privileges\n              for the following products:\n            </p>\n            <p>";    #line 60 "template\en\default\account\prefs\permissions.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('products');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'product'} = $_tt_value;    #line 59 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['product', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "<br>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n            </p>";    }    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n";    }    else {    $output .=  "\n        There are no permission ";    #line 66 "template\en\default\account\prefs\permissions.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bits', 0]);    $output .=  " set on your account.";    }        $output .=  "\n";    #line 85 "template\en\default\account\prefs\permissions.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'editusers', 0])) {    $output .=  "\n        <br>\n        You have editusers privileges.  You can turn on and off\n        all permissions for all users.";    }    elsif ($stash->get(['set_bits', 0, 'size', 0])) {    $output .=  "\n        <br>\n        And you can turn on or off the following ";    #line 75 "template\en\default\account\prefs\permissions.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bits', 0]);    $output .=  " for\n        <a href=\"editusers.cgi\">other users</a>:\n          <table align=\"center\">";    #line 83 "template\en\default\account\prefs\permissions.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('set_bits');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'bit_description'} = $_tt_value;    $output .=  "\n            <tr>\n              <td>";    #line 80 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['bit_description', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "</td>\n              <td>";    #line 81 "template\en\default\account\prefs\permissions.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get(['bit_description', 0, 'desc', 0]);                &$_tt_filter($output);    };        $output .=  "</td>\n            </tr>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n          </table>";    }        $output .=  "\n";    #line 91 "template\en\default\account\prefs\permissions.html.tmpl"    if ($stash->get(['user', 0, 'groups', 0, 'bz_sudoers', 0])) {    $output .=  "\n        <br>\n        You are a member of the <b>bz_sudoers</b> group, so you can \n        <a href=\"relogin.cgi?action=prepare-sudo\">impersonate someone else</a>.";    }        $output .=  "\n    </td>\n  </tr>\n</table>\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -