Beispiel #1
0
                break;
            default:
                debug_die('Invalid system lock type received!');
                break;
        }
        if ($success) {
            // We can start backup
            set_max_execution_time(1800);
            // 30 minutes
            $current_Backup->start_backup();
        }
        // Unlock b2evolution
        switch ($lock_type) {
            case 'maintenance_lock':
                // Disable maintenance lock
                switch_maintenance_lock(false);
                break;
            case 'maintenance_mode':
                // Disable maintenance mode
                switch_maintenance_mode(false, 'all');
                break;
            default:
                // Nothing to do because the b2evoltuion was not locked
                break;
        }
        $Form->end_form();
        break;
}
$AdminUI->disp_payload_end();
// Display body bottom, debug info and close </html>:
$AdminUI->disp_global_footer();
Beispiel #2
0
             evo_flush();
             foreach ($read_only_list as $read_only_file) {
                 echo $read_only_file . '<br/>';
             }
             $success = false;
         }
     }
     if ($success) {
         // Pause a process before upgrading, and display a link to the normal upgrade action
         $upgrade_url = 'href="' . $baseurl . 'install/index.php?action=' . ($action == 'backup_and_overwrite_svn' ? 'svn_upgrade' : 'auto_upgrade') . '&locale=' . $current_locale . '"';
         echo '<p><b>' . T_('All new b2evolution files are in place. You will now be redirected to the installer to perform a DB upgrade.') . '</b> ' . T_('Note: the User Interface will look different.') . '</p>';
         echo '<p><b><span style="font-size:110%">' . sprintf(T_('<a %s>Click here to continue &raquo;</a>'), $upgrade_url) . '</span></b></p>';
         unset($block_item_Widget);
     } else {
         // Disable maintenance mode
         switch_maintenance_mode(false, 'upgrade');
         echo '<h4 style="color:red">' . T_('Upgrade failed!') . '</h4>';
     }
     break;
     /****** UPGRADE FROM SVN *****/
 /****** UPGRADE FROM SVN *****/
 case 'upgrade_svn':
     // SVN STEP 1: EXPORT.
     if ($demo_mode) {
         echo 'This feature is disabled on the demo server.';
         break;
     }
     $block_item_Widget = new Widget('block_item');
     $block_item_Widget->title = T_('Exporting package from SVN...');
     $block_item_Widget->disp_template_replaced('block_start');
     $svn_url = param('svn_url', 'string', '');