diff --git a/serendipity_event_autoupdate/ChangeLog b/serendipity_event_autoupdate/ChangeLog index 6bc20b65..4e5242ce 100644 --- a/serendipity_event_autoupdate/ChangeLog +++ b/serendipity_event_autoupdate/ChangeLog @@ -1,5 +1,9 @@ +1.1 + * Translated and faked message unicode-icons to Chrome Browser, since this + does not work with all native unicodes (like clock and triangled ). + 1.0 - * Trying to enable flush on FastCGI servers + * Enable flush to work on FastCGI servers 0.9 * Check if ZIP extension is installed and loaded diff --git a/serendipity_event_autoupdate/serendipity_event_autoupdate.php b/serendipity_event_autoupdate/serendipity_event_autoupdate.php index e08a9767..cbf6d10d 100644 --- a/serendipity_event_autoupdate/serendipity_event_autoupdate.php +++ b/serendipity_event_autoupdate/serendipity_event_autoupdate.php @@ -22,7 +22,7 @@ class serendipity_event_autoupdate extends serendipity_event { $propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC); $propbag->add('stackable', false); $propbag->add('author', 'onli, Ian'); - $propbag->add('version', '1.0'); + $propbag->add('version', '1.1'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'php' => '5.1' @@ -177,8 +177,8 @@ class serendipity_event_autoupdate extends serendipity_event {
EOS; - $this->show_message('

Download, verify, check, unzip, copy, remove temporary stuff for Serendipity Update: ' . $_REQUEST['serendipity']['newVersion'] . ' may take a little while...
Please don\'t get nervous and do not close this page while in progress!


'); - $this->show_message('

Please note: If this page ever stops with an error message during procession, you can normally just RELOAD your browser [by keyboard shortcut] to get another run. This does not do any harm to a continued upgrade.

'); + $this->show_message('

Download, verify, check, unzip, copy, remove temporary stuff for Serendipity Update: ' . $_REQUEST['serendipity']['newVersion'] . ' may take a little while...
Please don\'t get nervous and do not close this page while in progress!


'); + $this->show_message('

Please note: If this page ever stops with an error message during procession, you can normally just RELOAD your browser [by keyboard shortcut] to get another run. This does not do any harm to a continued upgrade.

'); $this->show_message('

PHP max execution time set to 210 seconds

'); $start = microtime(true); if(false === ($update = $this->fetchUpdate($nv))) { @@ -194,49 +194,49 @@ EOS; usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn verifyUpdate()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function verify update', 'checking write permissions'); + $this->show_message('

'.$lmsg.'

', 'Function verify update', 'checking write permissions'); $start = microtime(true); if ($this->checkWritePermissions($update)) { usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn checkWritePermissions()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function check write permissions', 'unpacking the update'); + $this->show_message('

'.$lmsg.'

', 'Function check write permissions', 'unpacking the update'); $start = microtime(true); $unpacked = $this->unpackUpdate($nv); usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn unpackUpdate()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function unpack update', 'checking integrity'); + $this->show_message('

'.$lmsg.'

', 'Function unpack update', 'checking integrity'); if ($unpacked) { $start = microtime(true); if ($this->checkIntegrity($nv)) { usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn checkIntegrity()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function check integrity', 'finally copy update'); + $this->show_message('

'.$lmsg.'

', 'Function check integrity', 'finally copy update'); $start = microtime(true); $copied = $this->copyUpdate($nv); usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn copyUpdate()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function copy update', 'cleaning up temporary directory'); + $this->show_message('

'.$lmsg.'

', 'Function copy update', 'cleaning up temporary directory'); if ($copied) { $start = microtime(true); if (true === $this->cleanTemplatesC($nv, true) ) { - $this->show_message('

Cleanup download temp done!

'); + $this->show_message('

Cleanup download temp done!

'); } usleep(1); $time = microtime(true) - $start; $logmsg .= $lmsg = sprintf("In %0.4d seconds run fcn cleanTemplatesC()...\n", $time); // print in readable format 1.2345 - $this->show_message('

'.$lmsg.'

', 'Function cleanup templates_c', 'finish processing unit'); + $this->show_message('

'.$lmsg.'

', 'Function cleanup templates_c', 'finish processing unit'); sleep(2); echo ''; sleep(2); - $this->show_message('

click to start Serendipity Installer here!

'); + $this->show_message('

click to start Serendipity Installer here!

'); sleep(1); $this->doUpdate();//$logmsg } else { - $this->show_message('

Copying the files for the update failed

'); + $this->show_message('

Copying the files for the update failed

'); } } else { $this->showChecksumErrors($nv); @@ -246,11 +246,11 @@ EOS; '; } } else { - $this->show_message('

Unpacking the update failed

'); + $this->show_message('

Unpacking the update failed

'); if (true === $this->cleanTemplatesC($nv, false) ) { - $this->show_message('

Cleaning up the failed unpack directory!

'); + $this->show_message('

Cleaning up the failed unpack directory!

'); } - $this->show_message('

Please reload this page by F5 to have another try upgrading your Blog successfully!

'); + $this->show_message('

Please reload this page by F5 to have another try upgrading your Blog successfully!

'); } } else { @@ -301,12 +301,12 @@ EOS; $success = @curl_exec($ch); if ( !$success ) { - $this->show_message('

Downloading update failed

'); + $this->show_message('

Downloading update failed

'); return false; } } } - $this->show_message('

Fetch download to templates_c done

'); + $this->show_message('

Fetch download to templates_c done

'); return $update; } @@ -328,7 +328,7 @@ EOS; if ($check == $checksum) { return true; } else { - $this->show_message('

Error. Could not verify the update.

'); + $this->show_message('

Error. Could not verify the update.

'); return false; } } @@ -382,7 +382,7 @@ EOS; } // 2.extraxt all files to temp $zip->extractTo($updateDir); - $this->show_message('

Extracting the zip in templates_c done

'); + $this->show_message('

Extracting the zip in templates_c done

'); $zip->close(); } else { return false; @@ -427,7 +427,7 @@ EOS; $success = @copy($updateDir . $file, $target); } if ( !$success ) { - $this->show_message('

Error copying file to '.$target.'

'); + $this->show_message('

Error copying file to '.$target.'

'); return false; } } @@ -498,7 +498,7 @@ EOS; } } ob_start(); - echo '

Unpacking the update failed, because following files were not writeable:

'; + echo '

Unpacking the update failed, because following files were not writeable:

'; echo "