-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ccloquet/feature/config_files
Add a config file per environement
- Loading branch information
Showing
3 changed files
with
13 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
define('BASE_URL', 'https://****/index.html'); // URL OF THE CLIENT PAGE | ||
define('BASE_FOLDER', '../received/'); // FOLDER WHERE THE IMAGES ARE STORED | ||
|
||
$params = array_merge($params, [ | ||
1 => ['secret'=> 'azerty', 'name'=> 'test user', 'sms_apikey' => ''] | ||
]); |
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,12 +1,10 @@ | ||
<?php | ||
|
||
define('BASE_URL', 'https://****/index.html'); // URL OF THE CLIENT PAGE | ||
define('BASE_FOLDER', '../received/'); // FOLDER WHERE THE IMAGES ARE STORED | ||
|
||
define('ENV', 'dev'); | ||
|
||
$params = [ | ||
// userids (confidential) // secret -- allow to authentify that the link sent by SMS comes from this server | ||
'' => ['secret'=> '', 'name'=> '', 'sms_apikey' => ''] | ||
// '' => ['secret'=> '', 'name'=> '', 'sms_apikey' => ''] | ||
]; | ||
|
||
?> | ||
|
||
require_once ('params.'.ENV.'.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
var upload_path = 'https://****/php/upload.php' // PATH TO UPLOAD THE PICTURES | ||
var upload_path = 'https://****/php/upload.php'; // PATH TO UPLOAD THE PICTURES |