This repository was archived by the owner on Apr 2, 2020. It is now read-only.
forked from pa-ra-kram/chatbot-voxibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.php
More file actions
75 lines (60 loc) · 1.78 KB
/
Copy pathconfig_example.php
File metadata and controls
75 lines (60 loc) · 1.78 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
echo "!!! YOU NEED TO RENAME THIS FILE WITH config.php, AND REMOVE THIS 2 LINES !!!";
exit;
$headers = apache_request_headers();
if (isset($_REQUEST['param']))
{
$param=$_REQUEST['param'];
}
if (isset($headers['Voximal-Parameter']))
{
$param=$headers['Voximal-Parameter'];
}
if (isset($param))
$filename="configs/".$param.".php";
if (false)
if(isset($_SERVER['DATA'])) {
$oldtime = strtotime($_SERVER['DATE']);
$newtime = time() - 6000;
if (file_exists($config))
$newtime = filemtime($filename);
if ($oldtime < $newtime) {
header('HTTP/1.1 304 Not Modified');
exit;
}
else
{
header('Last-Modified: ', gmdate('D, d M Y H:i:s T', $newtime));
}
}
// Voxibot configuration file
$config['db']['hostname'] = "localhost";
$config['db']['user'] = "root";
$config['db']['password'] = "";
$config['db']['name'] = "voxibot";
$config['mail']['smtpauth'] = true;
$config['mail']['smtpsecure'] = "ssl";
$config['mail']['host'] = "smtp.eu.mailgun.org";
$config['mail']['port'] = 465;
$config['mail']['user'] = "postmaster@voxibot.com";
$config['mail']['password'] = "****";
$config['mail']['address'] = "borja.sixto@ulex.fr";
$config['mail']['hidden'] = "bsixto@gmail.com";
//$config['mail']['fromname'] = "VOXIBOT";
//$config['mail']['from'] = "contact@voxibot.com";
$config['recognize']['api'] = "google_dialogflow";
$config['recognize']['language'] = "fr";
$config['chatbot']['api'] = "dialogflow2";
$config['chatbot']['authorization'] = "";
$config['google']['dialogflow'] = "****"; // Dialogflow V1
$config['google']['speech'] = "****"; // Facebook
$headers = apache_request_headers();
if (isset($_REQUEST['param']))
{
@include("configs/".$_REQUEST['param'].".php");
}
if (isset($headers['Voximal-Parameter']))
{
@include("configs/".$headers['Voximal-Parameter'].".php");
}
?>