define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_PATCH_LEVEL', "514");
+define('CURR_SVN_REVISION', "279");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
define('ADMIN_SUB_POINTS', "{!POINTS!} abziehen");
define('ADMIN_SUB_POINTS_FROM_ALL', "Allen Mitgliedern {!POINTS!} abziehen");
define('PATCH_DESCRIPTION', "Beschreibung zum Patch");
-define('DOWNLOAD_ZIP', "Direktes ZIP-Archiv downloaden");
-define('DOWNLOAD_BZIP2', "Direkten Tar-Ball downloaden");
-define('DOWNLOAD_FROM_SERVER', "Über unseren Server downloaden");
+define('DOWNLOAD_SVN', "SVN-Version herunterladen");
+define('SVN_REPOSITORY', "SVN-Repository");
+define('SVN_CHECKOUT_COMMAND', "SVN auschecken mit:");
define('DOWNLOAD_NOW', "Jetzt downloaden!");
define('ADMIN_MEMBER_STATS_TITLE', "Einstellungen an der Mitglieder-Statistik");
define('ADMIN_MEMBER_STATS_LIMIT', "Anzahl Mailbuchungen pro Seite");
$ONLINE['code'] = "???";
// Get response from our server in an array
-$response = GET_URL("check-updates2.php");
+$response = GET_URL("check-updates3.php");
-if (empty($response[0]) && empty($response[1]) && empty($response[2])) {
+if (empty($response[0]) && empty($response[1]) && empty($response[2]) && empty($response[3])) {
// Error!
$response = array("", "", "");
} else {
// Which is the latest version on server?
$ONLINE = array(
- 'version' => str_replace("\n", "", $response[0]),
- 'changed' => str_replace("\n", "", $response[1])
+ 'version' => str_replace("\n", "", $response[0]),
+ 'changed' => str_replace("\n", "", $response[1]),
+ 'revision' => str_replace("\n", "", $response[2]),
);
// Array for available patches
'ctime' => array()
);
- if (($response[2] != "[EOF]") && ($ONLINE['version'] == FULL_VERSION)) {
+ if (($response[3] != "[EOF]") && ($ONLINE['version'] == FULL_VERSION)) {
// We have found new patches (newer than FULL_VERSION)
$max = str_replace("\n", "", $response[sizeof($response) - 2]); $TOTAL_SIZE = "0";
if (empty($ONLINE['version'])) {
// Disconnected?
LOAD_TEMPLATE("admin_settings_saved", false, "<FONT class=\"admin_failed\">".ADMIN_CANNOT_CHECK_VERSION." (".$ONLINE['code'].")</FONT>");
-} elseif ($ONLINE['version'] != FULL_VERSION) {
+} elseif (($ONLINE['version'] != FULL_VERSION) || ($ONLINE['revision'] != CURR_SVN_REVISION)) {
// New full-version available (all previous released patches are included in this version!)
define('__ONLINE_VERSION', $ONLINE['version']);
define('__ONLINE_CHANGE' , MAKE_DATETIME($ONLINE['changed'], "2"));
+ define('__ONLINE_REVISION', $ONLINE['revision']);
// Load template
LOAD_TEMPLATE("admin_update_download");
}
// Check for patch level differences between databases and current hard-coded
-if (CURR_PATCH_LEVEL > $_CONFIG['patch_level']) {
+if (CURR_SVN_REVISION > $_CONFIG['patch_level']) {
// Update database and CONFIG array
- UPDATE_CONFIG(array("patch_level", "path_ctime"), array(CURR_PATH_LEVEL, "UNIX_TIMESTAMP()"));
- $_CONFIG['patch_level'] = CURR_PATCH_LEVEL;
+ UPDATE_CONFIG(array("patch_level", "path_ctime"), array(CURR_SVN_REVISION, "UNIX_TIMESTAMP()"));
+ $_CONFIG['patch_level'] = CURR_SVN_REVISION;
$_CONFIG['patch_ctime'] = time();
} // END - if
<TR>
<TD align="right" width="350">{--YOUR_VERSION_IS--}:</TD>
<TD width="10" class="seperator"> </TD>
- <TD><STRONG>v{!FULL_VERSION!}</STRONG></TD>
+ <TD><STRONG>v{!FULL_VERSION!} {!CURR_SVN_REVISION!}</STRONG></TD>
</TR>
<TR>
<TD height="2" colspan="3" class="seperator"> </TD>
<TR>
<TD align="right" width="350">{--ONLINE_VERSION_IS--}:</TD>
<TD width="10" class="seperator"> </TD>
- <TD><STRONG>v{--__ONLINE_VERSION--}</STRONG></TD>
+ <TD><STRONG>v{!__ONLINE_VERSION!} {!__ONLINE_REVISION!}</STRONG></TD>
</TR>
<TR>
<TD height="2" colspan="3" class="seperator"> </TD>
<TR>
<TD align="right" width="350">{--UPDATE_CREATE_TIME--}:</TD>
<TD width="10" class="seperator"> </TD>
- <TD><STRONG>{--__ONLINE_CHANGE--}</STRONG></TD>
+ <TD><STRONG>{!__ONLINE_CHANGE!}</STRONG></TD>
+ </TR>
+ <TR>
+ <TD height="2" colspan="3" class="seperator"> </TD>
</TR>
<TR>
<TD height="10" colspan="3" class="seperator bottom2"> </TD>
</TD>
</TR>
<TR>
- <TD align="right" height="25">{--DOWNLOAD_ZIP--}: </TD>
- <TD align="center"><STRONG><A
- href="http://prdownloads.sourceforge.net/mxchange/mxchange-{--__ONLINE_VERSION--}.zip?download"
- target="_blank">{--DOWNLOAD_NOW--}</A></STRONG></TD>
- </TR>
- <TR>
- <TD align="right" height="25">{--DOWNLOAD_BZIP2--}: </TD>
- <TD align="center"><STRONG><A
- href="http://prdownloads.sourceforge.net/mxchange/mxchange-{--__ONLINE_VERSION--}.bzip2?download"
- target="_blank">{--DOWNLOAD_NOW--}</A></STRONG></TD>
- </TR>
- <TR>
- <TD align="right" height="25">
- {--DOWNLOAD_FROM_SERVER--}: </TD>
- <TD align="center"><STRONG><A
- href="{--SERVER_URL--}/cms/index/wht/downloads" target="_blank">{--DOWNLOAD_NOW--}</A></STRONG>
+ <TD width="50%" align="right" height="40" style="padding-right:5px">
+ {--DOWNLOAD_SVN--}:
+ </TD>
+ <TD width="50%" align="center">
+ <STRONG><A href="{!SERVER_URL!}/cms/index/wht/svn" target="_blank">{--DOWNLOAD_NOW--}</A></STRONG>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
- <TD height="30" colspan="3" class="admin_footer seperator"> </TD>
+ <TD colspan="3" class="admin_footer">
+ {--SVN_CHECKOUT_COMMAND--}<br />
+ svn co {!SERVER_URL!}/repos/mxchange-application/branches/{!FULL_VERSION!}/
+ </TD>
</TR>
</TABLE>