Quote by: TimPatrick
Every time a admin logs into the admin panel, while the plugin check for updates is performed, as well a check for any new security releases or other releases from Geeklog.
If there are any, it installs them for the user.
An extension of this is if there is an upgrade, then the user is notified, and they can upgrade with a click of a button, instead of all the downloading, etc.
What are your ideas on this?
- Tim
Always ask first. Automatic updates can cause problems.
I don't think geeklog.net's host provider would appreciate every install of Geeklog hitting geeklog.net every time an admin page is loaded. Better would be to use the existing "version check" admin link so the admins could check for updates when they wanted to. I suppose you could put something in the gl_vars table to hold when the last check was made and what version was found. Then the admin could control the interval for update checking and the result would be stored so a staticpage could be used to put a notice on the page of people you want informed of updates. (It's not always the admin.) The interval setting should also have a value meaning Never Check.
The patch code would need to be able to check that the files that need updating have not been modified before attempting to patch them. A lot of Geeklog installs have customizations that require applying personalized patches to the core code base and not all of these customizations fit neatly into lib-custom.php.