| 1 |
<?php
|
| 2 |
/**
|
| 3 |
* @file: Script to set the global environment for the scripts in Drupal
|
| 4 |
*/
|
| 5 |
global $template_dir, $drupal_dir, $sql_binary;
|
| 6 |
/**
|
| 7 |
* Template dir is where the templates are stored. Should be relative to the drupal root.
|
| 8 |
* Omit trailing slash.
|
| 9 |
*/
|
| 10 |
$template_dir = './templates';
|
| 11 |
|
| 12 |
/**
|
| 13 |
* Drupal dir is the dir where you have drupal running.
|
| 14 |
* It is adviced not to put these scripts in a place where apache can exectue them
|
| 15 |
* NOTE: no trailing slash!
|
| 16 |
*/
|
| 17 |
$drupal_dir = '/var/www/drupal';
|
| 18 |
|
| 19 |
/**
|
| 20 |
* location of mysql
|
| 21 |
* invoke "which mysql" on the commandline to find the binary.
|
| 22 |
* TODO make this postgre and mssql friendly
|
| 23 |
*/
|
| 24 |
$sql_binary = 'mysql';
|
| 25 |
|
| 26 |
/**
|
| 27 |
* User settings
|
| 28 |
* Define the user and group that become owner of the direcories and files.
|
| 29 |
* TODO allow this as optional commandline parameter
|
| 30 |
*/
|
| 31 |
$file_user = 'www-data';
|
| 32 |
$file_group = 'www-data';
|
| 33 |
?>
|