DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • January 20, 2019, 09:03:29 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: A Suggestion Regarding Module Info  (Read 4044 times)
0 Members and 1 Guest are viewing this topic.
Captain of the Guard
Offline Offline

Posts: 139


View Profile WWW
« on: November 27, 2004, 03:00:06 PM »

Im not sure how plausible this idea is but Ive seen it implemented in another PHP program that uses modules.   On this other program in the module info array the script used a combination of JavaScript and PHP to alert site As administrator if a newer version of a module was available on the official download site (site B).  Basically the script would compare the version # on site A with the version # on the official site, site B, and if the version # on Site B was greater than the version # on site A the script would prompt site As administrator to download the newer version. I was thinking you could add something like this to the module info array:


The script could check the version # thats stored in the text file on Site B.  (This file could/should be separate from the zip archive.) Then if the version # in Site Bs text file is greater than your version # it would prompt you to download the newest version using the entry in:


Does this sound like a useful suggestion?  I could possibly work on it myself, but Im  sure others would do a better job, and I need feedback to know if anyone wants this option besides myself?   Cheesy

« Reply #1 on: November 27, 2004, 11:20:03 PM »

Personally I don't like the idea and having it done automatically.
You've (well some of you) have seen the problems that can occur if lotgd.net is down and you are registered with logdnet.  This would just exacerbate that a hundred times over.  It would also increase the load on those servers to have them being checked.

Having a manual 'check for new version' thing might be doable, but then you could just go out and check yourself, eh?
Offline Offline

Posts: 430


View Profile WWW
« Reply #2 on: November 29, 2004, 07:48:12 AM »

I already wrote a module to do this (Module Updater).  It doesn't automatically update modules for you, since that was a huge pain in the ass (permissions wise, not to mention security), but it will tell you when a module is out of date and let you check it off as "upgraded".

Castle Siege - a work in progress
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
48 Guests, 1 User
Home Forums News Downloads Login Register Advanced Search