5 |
stevensc |
1 |
<?php
|
818 |
efrain |
2 |
|
819 |
efrain |
3 |
|
637 |
stevensc |
4 |
$sandbox = 1;
|
1 |
efrain |
5 |
|
5 |
stevensc |
6 |
if ($sandbox) {
|
2 |
efrain |
7 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
834 |
efrain |
8 |
//$google_captcha_site_key = '6Lf4W1gUAAAAAE7gdIH5Xv4vJu7VuO6SxArAmdjZ';
|
|
|
9 |
//$google_captcha_secret_key = '6Lf4W1gUAAAAAIz_VFO0768UyKcG9inVD1TIUatR';
|
1082 |
stevensc |
10 |
|
817 |
efrain |
11 |
$database_host = 'localhost';
|
|
|
12 |
$database_port = '3306';
|
|
|
13 |
$database_dbname = 'db_leaderslinked_dev';
|
821 |
efrain |
14 |
$database_user = 'leaderslinked-db';
|
|
|
15 |
$database_password = 'NzY1CxNG-Gkb';
|
2 |
efrain |
16 |
} else {
|
|
|
17 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
5 |
stevensc |
18 |
|
834 |
efrain |
19 |
//$google_captcha_site_key = '6Lenx8QZAAAAAAJh-kTLNktsi3mJ47svNmQkoIIv';
|
|
|
20 |
//$google_captcha_secret_key = '6Lenx8QZAAAAAO44E3iN3jAkVvQ84lRmXvaDWdSY';
|
1082 |
stevensc |
21 |
|
|
|
22 |
|
817 |
efrain |
23 |
$database_host = 'localhost';
|
|
|
24 |
$database_port = '3306';
|
|
|
25 |
$database_dbname = 'db_leaderslinked_dev';
|
|
|
26 |
$database_user = 'leaderslinked-db';
|
|
|
27 |
$database_password = 'NzY1CxNG-Gkb';
|
2 |
efrain |
28 |
}
|
817 |
efrain |
29 |
|
830 |
efrain |
30 |
$network = null;
|
|
|
31 |
|
817 |
efrain |
32 |
try {
|
|
|
33 |
$hostname = empty($_SERVER['HTTP_HOST']) ? '' : $_SERVER['HTTP_HOST'];
|
1082 |
stevensc |
34 |
$sql = 'SELECT * FROM tbl_networks ' .
|
827 |
efrain |
35 |
' WHERE `main_hostname` = ? OR `alternative_hostname` = ? ' .
|
|
|
36 |
' LIMIT 1';
|
817 |
efrain |
37 |
|
|
|
38 |
$mysqli = new mysqli($database_host, $database_user, $database_password, $database_dbname, $database_port);
|
823 |
efrain |
39 |
if (!mysqli_connect_errno()) {
|
817 |
efrain |
40 |
|
|
|
41 |
if ($stmt = $mysqli->prepare($sql)) {
|
1082 |
stevensc |
42 |
|
825 |
efrain |
43 |
$stmt->bind_param('ss', $hostname, $hostname);
|
817 |
efrain |
44 |
$stmt->execute();
|
1082 |
stevensc |
45 |
|
817 |
efrain |
46 |
$result = $stmt->get_result();
|
1082 |
stevensc |
47 |
|
|
|
48 |
|
830 |
efrain |
49 |
$network = $result->fetch_object(); /// $result->fetch_assoc();
|
817 |
efrain |
50 |
$stmt->close();
|
|
|
51 |
}
|
830 |
efrain |
52 |
|
817 |
efrain |
53 |
$mysqli->close();
|
|
|
54 |
}
|
1082 |
stevensc |
55 |
} catch (\Exception $e) {
|
817 |
efrain |
56 |
|
819 |
efrain |
57 |
echo $e->getMessage();
|
817 |
efrain |
58 |
}
|
|
|
59 |
|
2 |
efrain |
60 |
?>
|
5 |
stevensc |
61 |
<html>
|
1 |
efrain |
62 |
|
5 |
stevensc |
63 |
<head>
|
|
|
64 |
<title></title>
|
|
|
65 |
<link rel="icon" href="/storage-network/type/favico">
|
379 |
stevensc |
66 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
5 |
stevensc |
67 |
<meta http-equiv="expires" content="0">
|
|
|
68 |
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
|
|
|
69 |
<meta http-equiv="pragma" content="no-cache">
|
|
|
70 |
<meta http-equiv="Cache-Control" content="no-store">
|
379 |
stevensc |
71 |
<meta http-equiv="Cache-Control" content="max-age=0">
|
5 |
stevensc |
72 |
<meta http-equiv="Cache-Control" content="no-cache">
|
|
|
73 |
<meta http-equiv="charset" content="UTF-8">
|
379 |
stevensc |
74 |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
48 |
stevensc |
75 |
|
5 |
stevensc |
76 |
<link rel="stylesheet" type="text/css" href="/css/animate.css">
|
|
|
77 |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
1082 |
stevensc |
78 |
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
|
5 |
stevensc |
79 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome-font-awesome.min.css">
|
1082 |
stevensc |
80 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome.min.css">
|
48 |
stevensc |
81 |
|
1496 |
stevensc |
82 |
<link rel="stylesheet" type="text/css" href="/lib/slick/slick.css">
|
|
|
83 |
<link rel="stylesheet" type="text/css" href="/lib/slick/slick-theme.css">
|
44 |
stevensc |
84 |
|
48 |
stevensc |
85 |
<link rel="stylesheet" type="text/css" href="/vendors/fontawesome-free/css/all.min.css">
|
1339 |
stevensc |
86 |
|
521 |
stevensc |
87 |
<link rel="stylesheet" type="text/css" href="/vendors/smiley/assets/sprites/emojione.sprites.css">
|
48 |
stevensc |
88 |
|
1082 |
stevensc |
89 |
<?php if ($network) : ?>
|
|
|
90 |
<style>
|
|
|
91 |
:root {
|
|
|
92 |
--bg-color: <?php echo $network->css_bg_color ?>;
|
|
|
93 |
--body-bg-color: <?php echo $network->css_body_bg_color ?>;
|
|
|
94 |
--bg-color-secondary: <?php echo $network->css_bg_color_secondary ?>;
|
|
|
95 |
--font-color: <?php echo $network->css_font_color ?>;
|
|
|
96 |
--font-color-hover: <?php echo $network->css_font_color_hover ?>;
|
|
|
97 |
--title-color: <?php echo $network->css_title_color ?>;
|
|
|
98 |
--subtitle-color: <?php echo $network->css_subtitle_color ?>;
|
|
|
99 |
--icons-color: <?php echo $network->css_icons_color ?>;
|
|
|
100 |
--button-bg: <?php echo $network->css_button_bg ?>;
|
|
|
101 |
--button-bg-hover: <?php echo $network->css_button_bg_hover ?>;
|
|
|
102 |
--button-text-color: <?php echo $network->css_button_text_color ?>;
|
|
|
103 |
--button-bg-secondary: <?php echo $network->css_button_bg_secondary ?>;
|
|
|
104 |
--button-bg-secondary-hover: <?php echo $network->css_button_bg_secondary_hover ?>;
|
|
|
105 |
--button-text-color-secondary: <?php echo $network->css_button_text_color_secondary ?>;
|
|
|
106 |
--button-bg-tertiary: <?php echo $network->css_button_bg_tertiary ?>;
|
|
|
107 |
--button-text-color-tertiary: <?php echo $network->css_button_text_color_tertiary ?>;
|
|
|
108 |
--border-primary: <?php echo $network->css_border_primary ?>;
|
|
|
109 |
--border-trasnparent: <?php echo $network->css_border_trasnparent ?>;
|
|
|
110 |
--chat-received: <?php echo $network->css_chat_received ?>;
|
|
|
111 |
--chat-send: <?php echo $network->css_chat_send ?>;
|
|
|
112 |
--chat-color: <?php echo $network->css_chat_color ?>;
|
|
|
113 |
|
|
|
114 |
--light-gray: <?php echo $network->css_light_gray ?>;
|
|
|
115 |
--gray: <?php echo $network->css_gray ?>;
|
|
|
116 |
--danger: <?php echo $network->css_danger ?>;
|
|
|
117 |
--danger-hover: <?php echo $network->css_danger_hover ?>;
|
|
|
118 |
--online-green: <?php echo $network->css_online_green ?>;
|
|
|
119 |
|
|
|
120 |
--border-gray-primary: <?php echo $network->css_border_gray_primary ?>;
|
|
|
121 |
--white: <?php echo $network->css_white ?>;
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
--white-backdrop: <?php echo $network->css_white_backdrop ?>;
|
|
|
126 |
--border-radius: <?php echo $network->css_border_radius ?>;
|
|
|
127 |
--light-shadow: <?php echo $network->css_light_shadow ?>;
|
|
|
128 |
--shadow: <?php echo $network->css_shadow ?>;
|
|
|
129 |
}
|
|
|
130 |
</style>
|
830 |
efrain |
131 |
<?php endif; ?>
|
1 |
efrain |
132 |
|
9 |
stevensc |
133 |
<link rel="stylesheet" type="text/css" href="/public/bundles/main.css" />
|
7 |
stevensc |
134 |
</head>
|
|
|
135 |
|
|
|
136 |
<body>
|
|
|
137 |
|
1082 |
stevensc |
138 |
<div id="app" data-service="<?php if ($network) {
|
|
|
139 |
echo $network->service_hostname;
|
|
|
140 |
} ?>">
|
8 |
stevensc |
141 |
|
|
|
142 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
143 |
<div class="spinner">
|
|
|
144 |
<div class="bounce1"></div>
|
|
|
145 |
<div class="bounce2"></div>
|
|
|
146 |
<div class="bounce3"></div>
|
7 |
stevensc |
147 |
</div>
|
|
|
148 |
</div>
|
8 |
stevensc |
149 |
|
7 |
stevensc |
150 |
</div>
|
|
|
151 |
|
69 |
stevensc |
152 |
<script type="text/javascript" src="/vendors/smiley/smiley.js"></script>
|
|
|
153 |
<script type="text/javascript" src="/vendors/smiley/js/emojione.min.js"></script>
|
|
|
154 |
<script type="text/javascript" src="/vendors/jquery/jquery.min.js"></script>
|
7 |
stevensc |
155 |
|
69 |
stevensc |
156 |
<script type="text/javascript" src="/vendors/bootstrap/js/bootstrap.bundle.min.js"></script>
|
7 |
stevensc |
157 |
|
9 |
stevensc |
158 |
<script type="text/javascript" src="/public/bundles/applicationBundle.js"></script>
|
7 |
stevensc |
159 |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<?php echo $google_map_api_key ?>&libraries=places"></script>
|
|
|
160 |
<script async="async" defer="defer" src="https://www.google.com/recaptcha/api.js?render=explicit"></script>
|
|
|
161 |
</body>
|
|
|
162 |
|
|
|
163 |
</html>
|