|
NewsPro : Upgrading
NewsPro |
|
After downloading the NewsPro ZIP file, follow the instructions below. Upload only these files to your server: - newspro.cgi - viewnews.cgi - npa_add.pl - nplib.pl - npconfig.pl - nplang.plDo not upload any other files! Doing so will cause loss of customizations or news data. Once you have uploaded these files, run NewsPro. A simple upgrade procedure will take place automatically. If you have customized npconfig.pl yourself however, you can edit it
manually to upgrade it without losing your customizations. You must do two
things. First, add the line $npconfigversion = 3; to the very beginning of npconfig.pl (it should be on its own line). Second, replace "$newstime" with "$newsid" (both without the quotes, of course). This replacement should be done in two places: in sub SplitDataFile, and sub JoinDataFile. After uploading new files, rename npconfig.dat (which should already be in your NewsPro directory) to nsettings.cgi (there is no need to CHMOD the file). After files have been uploaded and the new version is working, look at this FAQ page, which provides important security information. |