version 1.146, 2013/07/01 01:44:29
|
version 1.149, 2014/01/21 18:23:35
|
Line 46 sub handler {
|
Line 46 sub handler {
|
|
|
my $r=shift; |
my $r=shift; |
|
|
# Validate access to the construction space and get username@domain. |
# Validate access to the construction space and get username:domain. |
|
|
my $uname; |
my $uname; |
my $udom; |
my $udom; |
Line 97 sub handler {
|
Line 97 sub handler {
|
opendir(DIR,$fn); |
opendir(DIR,$fn); |
my @files=sort {uc($a) cmp uc($b)} (readdir(DIR)); |
my @files=sort {uc($a) cmp uc($b)} (readdir(DIR)); |
foreach my $filename (@files) { |
foreach my $filename (@files) { |
|
next if ($filename eq '.DS_Store'); |
my ($cdev,$cino,$cmode,$cnlink, |
my ($cdev,$cino,$cmode,$cnlink, |
$cuid,$cgid,$crdev,$csize, |
$cuid,$cgid,$crdev,$csize, |
$catime,$cmtime,$cctime, |
$catime,$cmtime,$cctime, |
Line 152 sub startpage {
|
Line 153 sub startpage {
|
$env{'request.noversionuri'}=$formaction; |
$env{'request.noversionuri'}=$formaction; |
$r->print(&Apache::loncommon::start_page('Authoring Space',undef)); |
$r->print(&Apache::loncommon::start_page('Authoring Space',undef)); |
|
|
|
my $londocroot = $Apache::lonnet::perlvar{'lonDocRoot'}; |
|
my $current_disk_usage = &Apache::lonnet::diskusage($udom,$uname,"$londocroot/priv/$udom/$uname"); |
|
my $disk_quota = &Apache::loncommon::get_user_quota($uname,$udom,'author'); #expressed in Mb |
|
$disk_quota = 1000 * $disk_quota; # convert from Mb to kb |
|
|
$r->print(&Apache::loncommon::head_subbox( |
$r->print(&Apache::loncommon::head_subbox( |
&Apache::loncommon::CSTR_pageheader())); |
'<div style="float:right;padding-top:0;margin-top;0">' |
|
.&Apache::lonhtmlcommon::display_usage($current_disk_usage,$disk_quota) |
|
.'</div>' |
|
.&Apache::loncommon::CSTR_pageheader())); |
|
|
my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); |
my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); |
my $doctitle = 'LON-CAPA '.&mt('Authoring Space'); |
my $doctitle = 'LON-CAPA '.&mt('Authoring Space'); |