- // check if files exist and generate an error if so
- $aFiles = array(
- '../install.sql' => _ERRORS_INSTALLSQL,
- '../install.php' => _ERRORS_INSTALLPHP,
- 'upgrades' => _ERRORS_UPGRADESDIR,
- 'convert' => _ERRORS_CONVERTDIR
- );
- $aFound = array();
- foreach($aFiles as $fileName => $fileDesc)
- {
- if (@file_exists($fileName))
- array_push($aFound, $fileDesc);
- }
- if (@is_writable('../config.php')) {
- array_push($aFound, _ERRORS_CONFIGPHP);
- }
- if (sizeof($aFound) > 0)