| 5 |
stevensc |
1 |
<?php
|
| 818 |
efrain |
2 |
|
| 637 |
stevensc |
3 |
$sandbox = 1;
|
| 1 |
efrain |
4 |
|
| 5 |
stevensc |
5 |
if ($sandbox) {
|
| 2 |
efrain |
6 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
| 817 |
efrain |
7 |
$database_host = 'localhost';
|
|
|
8 |
$database_port = '3306';
|
|
|
9 |
$database_dbname = 'db_leaderslinked_dev';
|
| 821 |
efrain |
10 |
$database_user = 'leaderslinked-db';
|
|
|
11 |
$database_password = 'NzY1CxNG-Gkb';
|
| 2 |
efrain |
12 |
} else {
|
|
|
13 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
| 817 |
efrain |
14 |
$database_host = 'localhost';
|
|
|
15 |
$database_port = '3306';
|
|
|
16 |
$database_dbname = 'db_leaderslinked_dev';
|
|
|
17 |
$database_user = 'leaderslinked-db';
|
|
|
18 |
$database_password = 'NzY1CxNG-Gkb';
|
| 2 |
efrain |
19 |
}
|
| 817 |
efrain |
20 |
|
| 830 |
efrain |
21 |
$network = null;
|
|
|
22 |
|
| 817 |
efrain |
23 |
try {
|
| 3434 |
stevensc |
24 |
$hostname = empty($_SERVER['HTTP_HOST']) ? '' : $_SERVER['HTTP_HOST'];
|
| 1082 |
stevensc |
25 |
$sql = 'SELECT * FROM tbl_networks ' .
|
| 827 |
efrain |
26 |
' WHERE `main_hostname` = ? OR `alternative_hostname` = ? ' .
|
|
|
27 |
' LIMIT 1';
|
| 817 |
efrain |
28 |
|
|
|
29 |
$mysqli = new mysqli($database_host, $database_user, $database_password, $database_dbname, $database_port);
|
| 823 |
efrain |
30 |
if (!mysqli_connect_errno()) {
|
| 817 |
efrain |
31 |
|
|
|
32 |
if ($stmt = $mysqli->prepare($sql)) {
|
| 825 |
efrain |
33 |
$stmt->bind_param('ss', $hostname, $hostname);
|
| 817 |
efrain |
34 |
$stmt->execute();
|
|
|
35 |
$result = $stmt->get_result();
|
| 830 |
efrain |
36 |
$network = $result->fetch_object(); /// $result->fetch_assoc();
|
| 817 |
efrain |
37 |
$stmt->close();
|
|
|
38 |
}
|
| 830 |
efrain |
39 |
|
| 817 |
efrain |
40 |
$mysqli->close();
|
|
|
41 |
}
|
| 1082 |
stevensc |
42 |
} catch (\Exception $e) {
|
| 819 |
efrain |
43 |
echo $e->getMessage();
|
| 817 |
efrain |
44 |
}
|
| 2 |
efrain |
45 |
?>
|
| 5 |
stevensc |
46 |
<html>
|
| 1 |
efrain |
47 |
|
| 5 |
stevensc |
48 |
<head>
|
| 379 |
stevensc |
49 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
| 5 |
stevensc |
50 |
<meta http-equiv="expires" content="0">
|
|
|
51 |
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT">
|
|
|
52 |
<meta http-equiv="pragma" content="no-cache">
|
|
|
53 |
<meta http-equiv="Cache-Control" content="no-store">
|
| 379 |
stevensc |
54 |
<meta http-equiv="Cache-Control" content="max-age=0">
|
| 5 |
stevensc |
55 |
<meta http-equiv="Cache-Control" content="no-cache">
|
|
|
56 |
<meta http-equiv="charset" content="UTF-8">
|
| 3434 |
stevensc |
57 |
<meta name="viewport"
|
|
|
58 |
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 2410 |
stevensc |
59 |
<!-- Primary Meta Tags -->
|
|
|
60 |
<title>LeadersLinked</title>
|
| 2412 |
stevensc |
61 |
<link rel="icon" type="image/svg+xml" href="/images/logo-leaderslinked.png">
|
| 2410 |
stevensc |
62 |
<!-- Open Graph / Facebook -->
|
|
|
63 |
<meta property="og:type" content="website">
|
|
|
64 |
<meta property="og:site_name" content="LeadersLinked">
|
| 2420 |
stevensc |
65 |
<meta property="og:url" content="https://dev-spa.leaderslinked.com/">
|
| 2410 |
stevensc |
66 |
<meta property="og:title" content="Este artículo de Liderazgo te va a interesar" />
|
| 3434 |
stevensc |
67 |
<meta property="og:image:secure_url" itemprop="image"
|
|
|
68 |
content="https://dev-spa.leaderslinked.com/images/logo-leaderslinked.png" />
|
| 2416 |
stevensc |
69 |
<link rel="thumbnail" href="" />
|
| 2410 |
stevensc |
70 |
<!-- Twitter -->
|
|
|
71 |
<meta property="twitter:card" content="summary_large_image">
|
|
|
72 |
<meta property="twitter:url" content="https://dev-spa.leaderslinked.com/">
|
|
|
73 |
<meta property="twitter:title" content="Este artículo de Liderazgo te va a interesar">
|
|
|
74 |
<!-- Styles -->
|
| 2929 |
stevensc |
75 |
<link rel="stylesheet" type="text/css" href="/css/animate.css">
|
|
|
76 |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
| 1082 |
stevensc |
77 |
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
|
| 5 |
stevensc |
78 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome-font-awesome.min.css">
|
| 1082 |
stevensc |
79 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome.min.css">
|
| 48 |
stevensc |
80 |
<link rel="stylesheet" type="text/css" href="/vendors/fontawesome-free/css/all.min.css">
|
| 521 |
stevensc |
81 |
<link rel="stylesheet" type="text/css" href="/vendors/smiley/assets/sprites/emojione.sprites.css">
|
| 2410 |
stevensc |
82 |
<link rel="stylesheet" type="text/css" href="/public/bundles/main.css" />
|
| 3434 |
stevensc |
83 |
<link rel="stylesheet" type="text/css" media="screen"
|
|
|
84 |
href="https://cdn.conversejs.org/10.1.4/dist/converse.min.css">
|
| 2466 |
stevensc |
85 |
<script src="https://cdn.conversejs.org/10.1.4/dist/converse.min.js" charset="utf-8"></script>
|
| 48 |
stevensc |
86 |
|
| 3434 |
stevensc |
87 |
<?php if ($network): ?>
|
| 1082 |
stevensc |
88 |
<style>
|
|
|
89 |
:root {
|
| 3434 |
stevensc |
90 |
--bg-color:
|
|
|
91 |
<?php echo $network->css_bg_color ?>
|
|
|
92 |
;
|
|
|
93 |
--body-bg-color:
|
|
|
94 |
<?php echo $network->css_body_bg_color ?>
|
|
|
95 |
;
|
|
|
96 |
--bg-color-secondary:
|
|
|
97 |
<?php echo $network->css_bg_color_secondary ?>
|
|
|
98 |
;
|
|
|
99 |
--font-color:
|
|
|
100 |
<?php echo $network->css_font_color ?>
|
|
|
101 |
;
|
|
|
102 |
--font-color-hover:
|
|
|
103 |
<?php echo $network->css_font_color_hover ?>
|
|
|
104 |
;
|
|
|
105 |
--title-color:
|
|
|
106 |
<?php echo $network->css_title_color ?>
|
|
|
107 |
;
|
|
|
108 |
--subtitle-color:
|
|
|
109 |
<?php echo $network->css_subtitle_color ?>
|
|
|
110 |
;
|
|
|
111 |
--icons-color:
|
|
|
112 |
<?php echo $network->css_icons_color ?>
|
|
|
113 |
;
|
|
|
114 |
--button-bg:
|
|
|
115 |
<?php echo $network->css_button_bg ?>
|
|
|
116 |
;
|
|
|
117 |
--button-bg-hover:
|
|
|
118 |
<?php echo $network->css_button_bg_hover ?>
|
|
|
119 |
;
|
|
|
120 |
--button-text-color:
|
|
|
121 |
<?php echo $network->css_button_text_color ?>
|
|
|
122 |
;
|
|
|
123 |
--button-bg-secondary:
|
|
|
124 |
<?php echo $network->css_button_bg_secondary ?>
|
|
|
125 |
;
|
|
|
126 |
--button-bg-secondary-hover:
|
|
|
127 |
<?php echo $network->css_button_bg_secondary_hover ?>
|
|
|
128 |
;
|
|
|
129 |
--button-text-color-secondary:
|
|
|
130 |
<?php echo $network->css_button_text_color_secondary ?>
|
|
|
131 |
;
|
|
|
132 |
--button-bg-tertiary:
|
|
|
133 |
<?php echo $network->css_button_bg_tertiary ?>
|
|
|
134 |
;
|
|
|
135 |
--button-text-color-tertiary:
|
|
|
136 |
<?php echo $network->css_button_text_color_tertiary ?>
|
|
|
137 |
;
|
|
|
138 |
--border-primary:
|
|
|
139 |
<?php echo $network->css_border_primary ?>
|
|
|
140 |
;
|
|
|
141 |
--border-trasnparent:
|
|
|
142 |
<?php echo $network->css_border_trasnparent ?>
|
|
|
143 |
;
|
|
|
144 |
--chat-received:
|
|
|
145 |
<?php echo $network->css_chat_received ?>
|
|
|
146 |
;
|
|
|
147 |
--chat-send:
|
|
|
148 |
<?php echo $network->css_chat_send ?>
|
|
|
149 |
;
|
|
|
150 |
--chat-color:
|
|
|
151 |
<?php echo $network->css_chat_color ?>
|
|
|
152 |
;
|
|
|
153 |
--light-gray:
|
|
|
154 |
<?php echo $network->css_light_gray ?>
|
|
|
155 |
;
|
|
|
156 |
--gray:
|
|
|
157 |
<?php echo $network->css_gray ?>
|
|
|
158 |
;
|
|
|
159 |
--danger:
|
|
|
160 |
<?php echo $network->css_danger ?>
|
|
|
161 |
;
|
|
|
162 |
--danger-hover:
|
|
|
163 |
<?php echo $network->css_danger_hover ?>
|
|
|
164 |
;
|
|
|
165 |
--online-green:
|
|
|
166 |
<?php echo $network->css_online_green ?>
|
|
|
167 |
;
|
|
|
168 |
--border-gray-primary:
|
|
|
169 |
<?php echo $network->css_border_gray_primary ?>
|
|
|
170 |
;
|
|
|
171 |
--white:
|
|
|
172 |
<?php echo $network->css_white ?>
|
|
|
173 |
;
|
|
|
174 |
--white-backdrop:
|
|
|
175 |
<?php echo $network->css_white_backdrop ?>
|
|
|
176 |
;
|
|
|
177 |
--border-radius:
|
|
|
178 |
<?php echo $network->css_border_radius ?>
|
|
|
179 |
;
|
|
|
180 |
--light-shadow:
|
|
|
181 |
<?php echo $network->css_light_shadow ?>
|
|
|
182 |
;
|
|
|
183 |
--shadow:
|
|
|
184 |
<?php echo $network->css_shadow ?>
|
|
|
185 |
;
|
| 2371 |
stevensc |
186 |
--sat: env(safe-area-inset-top);
|
| 1082 |
stevensc |
187 |
}
|
|
|
188 |
</style>
|
| 830 |
efrain |
189 |
<?php endif; ?>
|
| 7 |
stevensc |
190 |
</head>
|
|
|
191 |
|
|
|
192 |
<body>
|
| 1955 |
stevensc |
193 |
<div id="app" data-service="<?php if ($network) {
|
| 3434 |
stevensc |
194 |
echo $network->service_hostname;
|
|
|
195 |
} ?>">
|
| 8 |
stevensc |
196 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
197 |
<div class="spinner">
|
|
|
198 |
<div class="bounce1"></div>
|
|
|
199 |
<div class="bounce2"></div>
|
|
|
200 |
<div class="bounce3"></div>
|
| 7 |
stevensc |
201 |
</div>
|
|
|
202 |
</div>
|
|
|
203 |
</div>
|
|
|
204 |
|
| 69 |
stevensc |
205 |
<script type="text/javascript" src="/vendors/smiley/smiley.js"></script>
|
|
|
206 |
<script type="text/javascript" src="/vendors/smiley/js/emojione.min.js"></script>
|
| 9 |
stevensc |
207 |
<script type="text/javascript" src="/public/bundles/applicationBundle.js"></script>
|
| 3434 |
stevensc |
208 |
<script type="text/javascript"
|
|
|
209 |
src="https://maps.googleapis.com/maps/api/js?key=<?php echo $google_map_api_key ?>&libraries=places"></script>
|
| 7 |
stevensc |
210 |
<script async="async" defer="defer" src="https://www.google.com/recaptcha/api.js?render=explicit"></script>
|
|
|
211 |
</body>
|
|
|
212 |
|
|
|
213 |
</html>
|