implementing multiple modes for operation

implement operationModes:
- local: With local database
- synapse: use register-API of synapse
This commit is contained in:
Matthias
2018-04-16 15:17:12 +02:00
committed by Gitea
parent 31bacaeb36
commit 2c524ed066
13 changed files with 122 additions and 63 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
function send_mail($receiver, $subject, $body) {
include("config.php");
include("../config.php");
$headers = "From: " . $config["register_email"] . "\r\n"
. "Content-Type: text/plain;charset=utf-8";
return mail($receiver, $subject, $body, $headers);