| 1 |
<?php
|
| 2 |
// $Id: settings.php,v 1.1 2006/01/06 14:31:44 yogadex Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
*
|
| 7 |
* Why include settings.php in my sandbox?
|
| 8 |
*
|
| 9 |
* So that you can check this entire directory into your drupal/sites
|
| 10 |
* directory and quickly have access to everything in my sandbox.
|
| 11 |
*
|
| 12 |
* For instance, configure apache so that http://localhost/yogadex-sandbox
|
| 13 |
* points to your drupal install. CD to path-to-drupal/sites,
|
| 14 |
* then checkout the sandbox with:
|
| 15 |
*
|
| 16 |
* cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d localhost.yogadex-sandbox contributions/sandbox/yogadex
|
| 17 |
*
|
| 18 |
* Of course, you'll have to set up a database and configure this file to point to it.
|
| 19 |
*
|
| 20 |
* Then you should have a site with all my sandbox modules in it.
|
| 21 |
*
|
| 22 |
* Be sure to NOT check your changes to this file back into CVS. Thanks.
|
| 23 |
*
|
| 24 |
*/
|
| 25 |
|
| 26 |
/**
|
| 27 |
* Database settings:
|
| 28 |
*/
|
| 29 |
$db_url = 'mysql://php:php@localhost/sandbox_head';
|
| 30 |
$db_prefix = '';
|
| 31 |
|
| 32 |
/**
|
| 33 |
* Base URL:
|
| 34 |
*
|
| 35 |
* The URL to your Drupal installation. It is not allowed
|
| 36 |
* to have a trailing slash; Drupal will add it for you.
|
| 37 |
*
|
| 38 |
*/
|
| 39 |
// copied from http://drupal.org/node/6554
|
| 40 |
$base_url = 'http' . (isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] == 'on' ? 's' : '' : '');
|
| 41 |
$base_url .= '://' .$_SERVER['HTTP_HOST'];
|
| 42 |
if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\,/')) {
|
| 43 |
$base_url .= "/$dir";
|
| 44 |
}
|
| 45 |
|
| 46 |
/**
|
| 47 |
* PHP settings:
|
| 48 |
*
|
| 49 |
* To see what PHP settings are possible, including whether they can
|
| 50 |
* be set at runtime (ie., when ini_set() occurs), read the PHP
|
| 51 |
* documentation at http://www.php.net/manual/en/ini.php#ini.list
|
| 52 |
* and take a look at the .htaccess file to see which non-runtime
|
| 53 |
* settings are used there. Settings defined here should not be
|
| 54 |
* duplicated there so as to avoid conflict issues.
|
| 55 |
*/
|
| 56 |
ini_set('arg_separator.output', '&');
|
| 57 |
ini_set('magic_quotes_runtime', 0);
|
| 58 |
ini_set('magic_quotes_sybase', 0);
|
| 59 |
ini_set('session.cache_expire', 200000);
|
| 60 |
ini_set('session.cache_limiter', 'none');
|
| 61 |
ini_set('session.cookie_lifetime', 2000000);
|
| 62 |
ini_set('session.gc_maxlifetime', 200000);
|
| 63 |
ini_set('session.save_handler', 'user');
|
| 64 |
ini_set('session.use_only_cookies', 1);
|
| 65 |
ini_set('session.use_trans_sid', 0);
|
| 66 |
ini_set('url_rewriter.tags', '');
|
| 67 |
|
| 68 |
/**
|
| 69 |
* Variable overrides:
|
| 70 |
*
|
| 71 |
* To override specific entries in the 'variable' table for this site,
|
| 72 |
* set them here. You usually don't need to use this feature. This is
|
| 73 |
* useful in a configuration file for a vhost or directory, rather than
|
| 74 |
* the default settings.php. Any configuration setting from the 'variable'
|
| 75 |
* table can be given a new value.
|
| 76 |
*/
|
| 77 |
//$conf = array(
|
| 78 |
// 'site_name' => 'My Drupal site',
|
| 79 |
// 'theme_default' => 'pushbutton',
|
| 80 |
// 'anonymous' => 'Visitor'
|
| 81 |
//);
|
| 82 |
|