Changeset 878

Show
Ignore:
Timestamp:
12/11/06 09:51:21 (2 years ago)
Author:
fumiakiy
Message:

Made the choices of backup file size limit smaller and consider the CGIMaxUpload value. BugId: 45331

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r877 r878  
    1093810938    $param{missing_xpath} = 1 if $@; 
    1093910939 
     10940    my $limit = $app->config('CGIMaxUpload') || 2048; 
     10941    $param{over_300} = 1 if $limit >= 300 * 1024; 
     10942    $param{over_500} = 1 if $limit >= 500 * 1024; 
     10943    $param{over_1024} = 1 if $limit >= 1024 * 1024; 
     10944    $param{over_2048} = 1 if $limit >= 2048 * 1024; 
    1094010945    $app->build_page('backup_restore.tmpl', \%param); 
    1094110946} 
  • branches/wheeljack/tmpl/cms/backup_restore.tmpl

    r877 r878  
    6969<select name="size_limit" id="size_limit"> 
    7070<option value="0" selected="selected">Don't Divide</option> 
     71<TMPL_IF NAME=OVER_300> 
     72<option value="300">300KB</option> 
     73<TMPL_IF NAME=OVER_500> 
     74<option value="500">500KB</option> 
     75<TMPL_IF NAME=OVER_1024> 
    7176<option value="1024">1MB</option> 
     77<TMPL_IF NAME=OVER_2048> 
    7278<option value="2048">2MB</option> 
    73 <option value="4096">4MB</option> 
    74 <option value="8192">8MB</option> 
     79</TMPL_IF> 
     80</TMPL_IF> 
     81</TMPL_IF> 
     82</TMPL_IF> 
    7583</select> 
    7684<p><MT_TRANS phrase="Maximum file size per backup file."> <a href="#" onclick="return openManual('backup_restore', 'backup_num_size')" class="help">?</a></p>