setConfigEntry('AUTHOR' , 'Roland Häder');
// CFG: TITLE
-setConfigEntry('TITLE', 'Mailer Project');
+setConfigEntry('TITLE', 'Mailer-Project');
// CFG: COPY
setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,<br />2009 - 2011 by Mailer Developer Team');
if (isConfigEntrySet('file_hash')) {
$keys .= getEncryptSeperator() . getFileHash();
} // END - if
- $keys .= getEncryptSeperator() . getDateFromPatchTime();
+ $keys .= getEncryptSeperator() . getDateFromRepository();
if (isConfigEntrySet('master_salt')) {
$keys .= getEncryptSeperator() . getMasterSalt();
} // END - if
$server = $_SERVER['PHP_SELF'] . getEncryptSeperator() . detectUserAgent() . getEncryptSeperator() . getenv('SERVER_SOFTWARE') . getEncryptSeperator() . detectRealIpAddress() . getEncryptSeperator() . detectRemoteAddr();
// Build key string
- $keys = getSiteKey() . getEncryptSeperator() . getDateKey() . getEncryptSeperator() . getSecretKey() . getEncryptSeperator() . getFileHash() . getEncryptSeperator() . getDateFromPatchTime() . getEncryptSeperator() . getMasterSalt();
+ $keys = getSiteKey() . getEncryptSeperator() . getDateKey() . getEncryptSeperator() . getSecretKey() . getEncryptSeperator() . getFileHash() . getEncryptSeperator() . getDateFromRepository() . getEncryptSeperator() . getMasterSalt();
// Additional data
$data = $plainText . getEncryptSeperator() . uniqid(mt_rand(), true) . getEncryptSeperator() . time();
'MEDIA_DATA_SCRIPT' => "Daten zur verwendeten Software",
'ENGINE_SOFTWARE' => "Verwendete Engine",
- 'ENGINE_VERSION' => "Installierte Mailer Version",
- 'ENGINE_PATCH_LEVEL' => "Patch-Level",
- 'ENGINE_PATCH_CTIME' => "Letzte Aktualisierung",
+ 'ENGINE_VERSION' => "Installierte Version",
+ 'ENGINE_REVISION' => "Installierte Revision",
+ 'ENGINE_REVISION_CREATED' => "Revision erstellt",
// Admin area
'ADMIN_CONFIG_MEDIADATA_TITLE' => "Einstellungen zu den Mediendaten",
$content['out_user'] = $OUT_USER;
$content['out_special'] = $OUT_SPECIAL;
-// Patch timespamp
-$content['patch_ctime'] = generateDateTime(getConfig('patch_ctime'), 2);
-
// Load template
loadTemplate('mediadata', false, $content);
die();
} // END - if
-// If you understand regular expressions ^^^ you may know how I versionize... ;-)
+// Set full version string
setConfigEntry('FULL_VERSION', getRepositoryData('Tag'));
// Current SVN revision and date
}
// "Getter" for date from patch_ctime
-function getDateFromPatchTime () {
+function getDateFromRepository () {
// Is it cached?
if (!isset($GLOBALS[__FUNCTION__])) {
// Then set it
- $GLOBALS[__FUNCTION__] = generateDateTime(getConfig('patch_ctime'), '5');
+ $GLOBALS[__FUNCTION__] = generateDateTime(getConfig('CURRENT_REPOSITORY_DATE'), '5');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for date/time from patch_ctime
+function getDateTimeFromRepository () {
+ // Is it cached?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Then set it
+ $GLOBALS[__FUNCTION__] = generateDateTime(getConfig('CURRENT_REPOSITORY_DATE'), '2');
} // END - if
// Return cache
`profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT '15768000',
`send_prof_update` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`resend_profile_update` BIGINT(20) UNSIGNED NOT NULL DEFAULT '172800',
- `patch_level` VARCHAR(100) NOT NULL DEFAULT '78',
+ `patch_level` VARCHAR(100) NOT NULL DEFAULT '0',
`patch_ctime` VARCHAR(10) NOT NULL DEFAULT 0,
`guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS',
`ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
</tr>
<tr>
<td class="bottom medium" align="center" colspan="2">
- <div>{--ENGINE_SOFTWARE--}:</div>
- <div><strong>{?TITLE?}</strong></div>
+ <div>{--ENGINE_SOFTWARE--}/{--ENGINE_VERSION--}:</div>
+ <div><strong>{?TITLE?} v{?FULL_VERSION?}</strong></div>
</td>
</tr>
<tr>
- <td class="bottom media_left" align="right">{--ENGINE_VERSION--}:</td>
- <td class="bottom media_right">{?FULL_VERSION?}</td>
+ <td class="bottom media_left" align="right">{--ENGINE_REVISION--}:</td>
+ <td class="bottom media_right">{?CURRENT_REPOSITORY_REVISION?}</td>
</tr>
<tr>
- <td class="bottom media_left" align="right">{--ENGINE_PATCH_LEVEL--}:</td>
- <td class="bottom media_right">{?patch_level?}</td>
- </tr>
- <tr>
- <td class="bottom media_left" align="right">{--ENGINE_PATCH_CTIME--}:</td>
- <td class="bottom media_right">$content[patch_ctime]</td>
+ <td class="bottom media_left" align="right">{--ENGINE_REVISION_CREATED--}:</td>
+ <td class="bottom media_right">{%pipe,getDateTimeFromRepository%}</td>
</tr>
<tr>
<td class="media_header" colspan="2">