offtopic: oxpus mit Lichtgeschwindigkeit voraus ...
Letzter Stand des Paketes: 28.06.2005 - 20:43 Uhr
ontopic: Das Update verstehe ich jetzt so
Code: Alles auswählen
## For update upload and replace ALL files of this package and reinstall the part for
## includes/page_header.php!
##
## IMPORTANT!!!
## Remove previous installations by this mod from the files common.php and includes/constants.php
Den Part der page_header.php mit dem aus der Download_Mod_Full_Pack.txt 0.6.4 überschreiben.
In der common.php
Code: Alles auswählen
#
#-----[ FIND & DELETE ]--------------------------------------------------
#
// Fetch the hole download configuration and
// store it into the board configuration to
// be able to use it on the whole board
$sql = "SELECT *
FROM " . DL_CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
In der constants.php
Code: Alles auswählen
#
#-----[ FIND & DELETE ]------------------------------------------
#
define('PAGE_DOWNLOADS', -100);
define('PAGE_DL_DETAILS', -101);
define('PAGE_DL_OVERVIEW', -102);
define('PAGE_DL_TODO', -103);
define('PAGE_HACKSLIST', -104);
define('PAGE_DL_SEARCH', -105);
define('PAGE_DL_USERCP', -106);
define('PAGE_DL_MODCP', -107);
define('PAGE_DL_UPLOAD', -108);
#
#-----[ FIND & DELETE ]------------------------------------------
#
define('DL_AUTH_TABLE', $table_prefix.'dl_auth');
define('DL_CAT_TABLE', $table_prefix.'downloads_cat');
define('DL_CONFIG_TABLE', $table_prefix.'dl_config');
define('DL_RATING_TABLE', $table_prefix.'dl_ratings');
define('DOWNLOADS_TABLE', $table_prefix.'downloads');
Da die Konstenten jetzt in der dl_common.php definiert werden, sollte in der Mod-Anweisung vielleicht erwähnt werden, dass man kontrollieren sollte, ob diese in der constants.php nicht schon definiert (doppelt belegt) sind.