![]() |
How do vbulletin do this ?
/*================================================= =====================*\
|| ################################################## ################## || || # vBulletin 3.6.8 - Licence Number ************ || # ---------------------------------------------------------------- # || || # Copyright ©2000-2007 Jelsoft Enterprises Ltd. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || ################################################## ################## || \*================================================ ======================*/ /*================================================= =====================*\ || ################################################## ################## || # Downloaded: 09:50, Fri Jul 27th 2007 || # CVS: $RCSfile$ - $Revision: 17681 $ || ################################################## ################## \*================================================ ======================*/ Basically what I wanted is how do vb update each individual file to add things like licence number and time downloaded so I can use something simmilar on my own site. I would of used the search but I had no idea what to search for. |
The code is probably all in a database, and the zip files are generated on the fly. So when the code is pulled from the database, the dates can be parsed easily. You can use str_pad() to fill the white spaces and close the square a bit prettier (vBulletin was too lazy for this).
If you're working with single files you won't need the zip generator, you can just send the appropriate headers and echo the code, and it can be downloaded as file. If you're working with multiple files like vBulletin, you can have a look at www.phpclasses.org for zip creator classes. If you need more specific help, provide more details about your current system and circumstances. |
Thanks for the help all I needed was pointing in the right direction much appreciated :)
|
I believe the vBulletin system uses the *nix "sed" command (stream editor) to replace placeholders with the real values when creating the zipfile (this is done "on the fly").
|
The CVS values are handled by CVS. It's a bit of a pain actually, because I store our code in CVS, so all the files get my CVS version instead of vbulletins.
|
All times are GMT. The time now is 01:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|