-$docLink = CRM_Utils_System::docURL2('Installation and Upgrades', FALSE, 'Installation Guide', NULL, NULL, "wiki");
-
-if ($installType == 'drupal') {
- //lets check only /modules/.
- $pattern = '/' . preg_quote(CIVICRM_DIRECTORY_SEPARATOR . 'modules', CIVICRM_DIRECTORY_SEPARATOR) . '/';
-
- if (!preg_match($pattern,
- str_replace("\\", "/", $_SERVER['SCRIPT_FILENAME'])
- )
- ) {
- $errorTitle = "Oops! Please Correct Your Install Location";
- $errorMsg = "Please untar (uncompress) your downloaded copy of CiviCRM in the <strong>" . implode(CIVICRM_DIRECTORY_SEPARATOR, array(
- 'sites',
- 'all',
- 'modules',
- )) . "</strong> directory below your Drupal root directory. Refer to the online " . $docLink . " for more information.";
- errorDisplayPage($errorTitle, $errorMsg);
- }
-}
-