diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 19:59:09 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-02 19:59:09 +0000 |
commit | 3f21b08e5f7d0a44e69d70ca15286899c598f5eb (patch) | |
tree | 1690a9254acd0df903b4845137ce042d6788832b | |
parent | d742de4e1100df15153784fa0702a334cd388d73 (diff) |
Read local database config file
-rw-r--r-- | core/config/database.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/core/config/database.php b/core/config/database.php new file mode 100644 index 00000000..2661a815 --- /dev/null +++ b/core/config/database.php @@ -0,0 +1,23 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ + +if (file_exists(VARPATH . "database.php")) { + include(VARPATH . "database.php"); +} |