Last change
on this file since 527 was
468,
checked in by anonymous, 11 years ago
|
Completed integrating /branches/eli_branch into /trunk. Changes include:
- Removed closing ?> from end of files
- Upgrade old-style contructor methods to use construct() instead.
- Class properties and methods defined as public, private, static or protected
- Ensure code runs under E_ALL with only mysql_* deprecated warnings
- Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
- Run the php cli -l option to check files for syntax errors.
- Bring tests up-to-date with latest version and methods of PHPUnit
|
File size:
1.4 KB
|
Rev | Line | |
---|
[316] | 1 | <?php |
---|
[362] | 2 | /** |
---|
| 3 | * The Strangecode Codebase - a general application development framework for PHP |
---|
| 4 | * For details visit the project site: <http://trac.strangecode.com/codebase/> |
---|
[396] | 5 | * Copyright 2001-2012 Strangecode, LLC |
---|
[362] | 6 | * |
---|
| 7 | * This file is part of The Strangecode Codebase. |
---|
| 8 | * |
---|
| 9 | * The Strangecode Codebase is free software: you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License as published by the |
---|
| 11 | * Free Software Foundation, either version 3 of the License, or (at your option) |
---|
| 12 | * any later version. |
---|
| 13 | * |
---|
| 14 | * The Strangecode Codebase is distributed in the hope that it will be useful, but |
---|
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
| 16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
| 17 | * details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License along with |
---|
| 20 | * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>. |
---|
| 21 | */ |
---|
| 22 | |
---|
[316] | 23 | /* |
---|
| 24 | * The credentials here are to be loaded only by command-line scripts executed |
---|
| 25 | * on the command line or via cron. This script should be not be readable by apache. |
---|
[334] | 26 | * Ownership should be the web owner, with only user-readability, such as: |
---|
[316] | 27 | * -rw-------@ 1 bob bob 416 Mar 10 16:59 global/db_auth.inc.php |
---|
| 28 | */ |
---|
| 29 | require_once 'codebase/lib/App.inc.php'; |
---|
| 30 | $app =& App::getInstance(); |
---|
| 31 | |
---|
| 32 | $app->setParam(array( |
---|
| 33 | 'db_name' => '', |
---|
| 34 | 'db_user' => '', |
---|
| 35 | 'db_pass' => '', |
---|
| 36 | )); |
---|
Note: See
TracBrowser
for help on using the repository browser.