diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/browse/router.cgi | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/browse/router.cgi')
-rw-r--r-- | httemplate/browse/router.cgi | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/httemplate/browse/router.cgi b/httemplate/browse/router.cgi deleted file mode 100644 index 541e967..0000000 --- a/httemplate/browse/router.cgi +++ /dev/null @@ -1,52 +0,0 @@ -<% include('elements/browse.html', - 'title' => 'Routers', - 'menubar' => [ @menubar ], - 'name_singular' => 'router', - 'query' => { 'table' => 'router', - 'hashref' => {}, - 'extra_sql' => $extra_sql, - }, - 'count_query' => "SELECT count(*) from router $count_sql", - 'header' => [ 'Router name', - 'Address block(s)', - ], - 'fields' => [ 'routername', - sub { join( '<BR>', map { $_->NetAddr } - shift->addr_block - ); - }, - ], - 'links' => [ [ "${p2}edit/router.cgi?", 'routernum' ], - '', - ], - 'agent_virt' => 1, - 'agent_null_right'=> "Broadband global configuration", - 'agent_pos' => 1, - ) -%> -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Broadband configuration') - || $FS::CurrentUser::CurrentUser->access_right('Broadband global configuration'); - -my $p2 = popurl(2); -my $extra_sql = ''; - -my @menubar = ( 'Add a new router', "${p2}edit/router.cgi" ); - -if ($cgi->param('hidecustomerrouters') eq '1') { - $extra_sql = 'WHERE svcnum > 0'; - $cgi->param('hidecustomerrouters', 0); - push @menubar, 'Show customer routers', $cgi->self_url(); -} else { - $cgi->param('hidecustomerrouters', 1); - push @menubar, 'Hide customer routers', $cgi->self_url(); -} - -my $count_sql = $extra_sql. ( $extra_sql =~ /WHERE/ ? ' AND' : 'WHERE' ). - $FS::CurrentUser::CurrentUser->agentnums_sql( - 'null_right' => 'Broadband global configuration', - ); - -</%init> |