Changeset 627 for trunk/cgi-bin/main.cgi
- Timestamp:
- 10/08/14 17:17:38 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r624 r627 244 244 # Display blocks immediately within a given parent 245 245 sub showSubs { 246 $page->param(block => $webvar{block}); 246 my $pinfo = getBlockData($ip_dbh, $webvar{parent}); 247 248 $page->param(del_id => $webvar{parent}); 249 $page->param(block => $pinfo->{block}); 247 250 $page->param(mayadd => ($IPDBacl{$authuser} =~ /a/)); 248 251 $page->param(maydel => ($IPDBacl{$authuser} =~ /d/)); 249 252 250 my $sublist = listSubs($ip_dbh, block => $webvar{block}, rdepth => $webvar{rdepth}); 251 $page->param(deldepth => $webvar{rdepth} - 1); 252 $page->param(rdepth => $webvar{rdepth}); 253 $page->param(subdepth => $webvar{rdepth} + 1); 253 my $sublist = listSubs($ip_dbh, parent => $webvar{parent}); 254 254 $page->param(sublist => $sublist); 255 255 256 my $flist = listFree($ip_dbh, master => $webvar{block}, rdepth => $webvar{rdepth});256 my $flist = listFree($ip_dbh, parent => $webvar{parent}); 257 257 $page->param(freelist => $flist); 258 258 } # showSubs
Note:
See TracChangeset
for help on using the changeset viewer.