Dotclear


Ignore:
Timestamp:
10/29/13 16:31:16 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2504:d81b0e204d62, 2506:39edf8aaacef
Message:

Request confirmation before restoring old installation archive (update.php), fixes #1823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/update.php

    r2382 r2503  
    6363{ 
    6464     $b_file = $_POST['backup_file']; 
    65       
     65 
    6666     try 
    6767     { 
     
    7373               http::redirect($p_url.'?tab=files'); 
    7474          } 
    75            
     75 
    7676          if (!empty($_POST['b_revert'])) 
    7777          { 
     
    9494     { 
    9595          $updater->setForcedFiles('inc/digests'); 
    96            
     96 
    9797          switch ($step) 
    9898          { 
     
    133133     { 
    134134          $msg = $e->getMessage(); 
    135            
     135 
    136136          if ($e->getCode() == dcUpdate::ERR_FILES_CHANGED) 
    137137          { 
     
    154154               'Please fix this or try to <a href="http://dotclear.org/download">update manually</a>.'); 
    155155          } 
    156            
     156 
    157157          if (isset($e->bad_files)) { 
    158158               $msg .= 
     
    161161               '</strong></li></ul>'; 
    162162          } 
    163            
     163 
    164164          $core->error->add($msg); 
    165            
     165 
    166166          $core->callBehavior('adminDCUpdateException',$e); 
    167167     } 
     
    171171-------------------------------------------------------- */ 
    172172dcPage::open(__('Dotclear update'), 
    173      (!$step ?  
     173     (!$step ? 
    174174          dcPage::jsPageTabs($default_tab). 
    175175          dcPage::jsLoad('js/_update.js') 
     
    206206                         __('Information about this version').')&nbsp;<img src="images/outgoing.png" alt=""/></a>' : ''). 
    207207                    '</p>'. 
    208            
     208 
    209209          '<p>'.__('To upgrade your Dotclear installation simply click on the following button. '. 
    210210               'A backup file of your current installation will be created in your root directory.').'</p>'. 
     
    215215     } 
    216216     echo '</div>'; 
    217       
     217 
    218218     if (!empty($archives)) 
    219219     { 
     
    224224          '<p>'.__('The following files are backups of previously updates. '. 
    225225          'You can revert your previous installation or delete theses files.').'</p>'; 
    226            
     226 
    227227          echo '<form action="'.$p_url.'" method="post">'; 
    228228          foreach ($archives as $v) { 
     
    231231               html::escapeHTML($v).'</label></p>'; 
    232232          } 
    233            
     233 
    234234          echo 
    235235          '<p><strong>'.__('Please note that reverting your Dotclear version may have some '. 
     
    256256dcPage::helpBlock('core_update'); 
    257257dcPage::close(); 
    258 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map