| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2014
* $Id$
- *
+ * @param $filesDirectory
*/
function civicrm_setup($filesDirectory) {
global $crmPath, $sqlPath, $pkgPath, $tplPath;
global $compileDir;
- $pkgPath = $crmPath . DIRECTORY_SEPARATOR . 'packages';
- set_include_path($crmPath . PATH_SEPARATOR .
- $pkgPath . PATH_SEPARATOR .
- get_include_path()
- );
-
$sqlPath = $crmPath . DIRECTORY_SEPARATOR . 'sql';
$tplPath = $crmPath . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR;
if (!$fd) {
die("Cannot open $name");
}
- fputs($fd, $buffer);
+ fwrite($fd, $buffer);
fclose($fd);
}