forked from pus2inbo2ts/mmubee-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
executable file
·44 lines (36 loc) · 1.09 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
//header("Content-type=html/text; charset=utf-8;");
date_default_timezone_set('Asia/Kuala_Lumpur');
set_time_limit(300);
require_once 'function.php';
require_once 'parallelcurl.php';
require_once 'GCMPushMessage.php'; //Android push service
require_once 'ApnsPHP/Autoload.php'; //iOS push service
define('DEBUG', true);
define('DB_SERVER', '');
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_CHARSET', 'utf8mb4');
define('DB_PORT', '3306');
define('DB_DATABASE', 'mmubee');
if(DEBUG){
error_reporting(E_ALL);
}else{
error_reporting(E_ERROR);
}
$sid = @$_POST['sid'];
$pw = @$_POST['pw'];
$mpw = @$_POST['mpw'];
$cpw = @$_POST['cpw'];
$cpw = urlencode($cpw);
$activation = true;
$max_requests = 10; //ParallelCurl
$GCMKey = '';
//configure Apns log
class ApnsPHP_Log_Custom implements ApnsPHP_Log_Interface { public function log($sMessage){} }
$APNSKey = 'cert_key/dev.pem';
$APNSPassphrase = '';
?>