Esempio n. 1
0
function CheckConfigUpdate(&$request)
{
    echo "<h3>", _("check for necessary config updates"), "</h3>\n";
    echo _("check for old CACHE_CONTROL = NONE"), " ... ";
    if (defined('CACHE_CONTROL') and CACHE_CONTROL == '') {
        echo "<br />&nbsp;&nbsp;", _("CACHE_CONTROL is set to 'NONE', and must be changed to 'NO_CACHE'"), " ...";
        fixConfigIni("/^\\s*CACHE_CONTROL\\s*=\\s*NONE/", "CACHE_CONTROL = NO_CACHE");
    } else {
        echo _("OK");
    }
    echo "<br />\n";
    echo _("check for GROUP_METHOD = NONE"), " ... ";
    if (defined('GROUP_METHOD') and GROUP_METHOD == '') {
        echo "<br />&nbsp;&nbsp;", _("GROUP_METHOD is set to NONE, and must be changed to \"NONE\""), " ...";
        fixConfigIni("/^\\s*GROUP_METHOD\\s*=\\s*NONE/", "GROUP_METHOD = \"NONE\"");
    } else {
        echo _("OK");
    }
    echo "<br />\n";
}
Esempio n. 2
0
        die("Error: Cannot open file {$file}.\n" . "Please run this script from the root of your VuFind installation.\n");
    }
}
// Display introductory banner:
?>

#### configuration file upgrade ####

This script will upgrade some of your configuration files in web/conf/. It
reads values from your previous version's files and puts them into the new version's.
This is an automated process, so the results may require some manual cleanup.

**** PROCESSING FILES... ****
<?php 
// Update configuration files:
fixConfigIni($old_inputs['config'], $new_inputs['config']);
fixFacetsIni($old_inputs['facets'], $new_inputs['facets']);
fixSearchIni($old_inputs['searches'], $new_inputs['searches']);
fixSummonIni($old_inputs['Summon'], $new_inputs['Summon']);
fixWorldCatIni($old_inputs['WorldCat'], $new_inputs['WorldCat']);
fixSMSIni($old_inputs['sms'], $new_inputs['sms']);
// Check to see if any recommended dependencies are missing:
echo "\n**** CHECKING DEPENDENCIES... ****\n\n";
checkDependencies();
// Display parting notes now that we are done:
?>
**** DONE PROCESSING. ****

Please check all of the output files (web/conf/*.new) to make sure you are
happy with the results.