echo 'This will apply ' . (sizeof($default_data_files) ? ' version updates "' . implode('", "', $default_data_files) . '" and ' : NULL) . 'updates ' . ($update->lastUpdate + 1) . ' through ' . $update->updateTo . ' to Saurus CMS, import dictonary files and syncronise extensions.' . "\n"; new Log(array('action' => 'update', 'type' => 'NOTICE', 'message' => 'Update started')); if (sizeof($default_data_files)) { echo 'Version updates: ' . implode(', ', $default_data_files); $update->runVersionUpdates($default_data_files); echo '.' . "\n"; } $update->runUpdates(); echo 'Synchronising extensions'; $update->synchroniseExtensions(); echo '.' . "\n"; echo 'Importing glossaries'; $update->importGlossaries(); echo '.' . "\n"; echo 'Clearing caches'; $update->clearCaches(); echo '.' . "\n"; new Log(array('action' => 'update', 'type' => 'NOTICE', 'message' => 'Update finished')); echo 'Finished.' . "\n"; } else { echo 'There are no new updates, the last update applied was "Update ' . $update->lastUpdate . '"' . "\n"; } } else { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Saurus CMS Community Edition Update</title> <meta name="author" content="Saurus - www.saurus.info"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Content-Type" content="text/html; charset=<?php