|
From: Burke A. <bu...@di...> - 2003-06-02 17:41:11
|
There seem to be two places to get this right now. I don't see any
reason why we should maintain these defines in two different places,
especially a static file such as pnAPI.php. I suggest we move away from
having these defined in the php file & only have the info available via
the database.
Currently, references to _PN_VERSION_NUM exist in:
Stats module/index.php (line 462)
Credits module/pnuser.php (lines: 76, 90, 104)
The other two (_PN_VERSION_ID,_PN_VERSION_SUB) don't appear to ever get
used.
pnAPI defines:
define('_PN_VERSION_NUM', "1.2");
define('_PN_VERSION_ID', "Envolution");
define('_PN_VERSION_SUB', "Michelangelo");
and database fields:
/PNConfig Version_Num s:5:"1.2.0";
/PNConfig Version_ID s:10:"Envolution";
/PNConfig Version_Sub s:12:"Michelangelo";
The fields from the database are retrieved via:
pnConfigGetVar('Version_Num')
pnConfigGetVar('Version_ID')
pnConfigGetVar('Version_Sub')
|