-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It’s now called „config-EDIT.php“ and has to be renamed to „config.php“ by the user. This prevents the unintentional overwriting of a user’s configuration while upgrading the PAPI.
- Loading branch information
1 parent
f6314f0
commit 4c647e7
Showing
4 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.DS_store | ||
inc/config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/* RENAME THIS FILE TO config.php WHEN YOU'RE READY TO INSTALL! */ | ||
|
||
// The URL under which your Personal API will be available | ||
// including http:// and / at the end, e.g. http://api.stefangrund.de/ or http://localhost:8888/PersonalAPI/ | ||
define('BASEURL', 'INSERT_HERE'); | ||
|
||
// The root folder of your Personal API | ||
define('ROOT', $_SERVER['DOCUMENT_ROOT'] . '/'); | ||
|
||
/* | ||
If you run your API under a subdomain this would be the ROOT definiton: | ||
define('ROOT', $_SERVER['DOCUMENT_ROOT'] . '/'); | ||
If you run it in a specific folder, e.g. in 'localhost/PersonalAPI', this would do it: | ||
define('ROOT', $_SERVER['DOCUMENT_ROOT'] . '/PersonalAPI'); | ||
*/ | ||
|
||
// Configuration of your MySQL database | ||
define('DB_HOST', 'INSERT_HERE'); // Hostname | ||
define('DB_NAME', 'INSERT_HERE'); // Database Name | ||
define('DB_USER', 'INSERT_HERE'); // Username | ||
define('DB_PASS', 'INSERT_HERE'); // Password | ||
define('DB_PORT', 'INSERT_HERE'); // Port, default: 3306 | ||
|
||
// Required files; DO NOT CHANGE! | ||
function __autoload($className) { | ||
require_once "class_" . $className . ".php"; | ||
} | ||
|
||
require_once 'global_functions.php'; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters