Línea 5... |
Línea 5... |
5 |
|
5 |
|
6 |
if ($sandbox) {
|
6 |
if ($sandbox) {
|
7 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
7 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
8 |
//$google_captcha_site_key = '6Lf4W1gUAAAAAE7gdIH5Xv4vJu7VuO6SxArAmdjZ';
|
8 |
//$google_captcha_site_key = '6Lf4W1gUAAAAAE7gdIH5Xv4vJu7VuO6SxArAmdjZ';
|
9 |
//$google_captcha_secret_key = '6Lf4W1gUAAAAAIz_VFO0768UyKcG9inVD1TIUatR';
|
9 |
//$google_captcha_secret_key = '6Lf4W1gUAAAAAIz_VFO0768UyKcG9inVD1TIUatR';
|
10 |
|
10 |
|
11 |
$database_host = 'localhost';
|
11 |
$database_host = 'localhost';
|
12 |
$database_port = '3306';
|
12 |
$database_port = '3306';
|
13 |
$database_dbname = 'db_leaderslinked_dev';
|
13 |
$database_dbname = 'db_leaderslinked_dev';
|
14 |
$database_user = 'leaderslinked-db';
|
14 |
$database_user = 'leaderslinked-db';
|
15 |
$database_password = 'NzY1CxNG-Gkb';
|
- |
|
16 |
|
- |
|
17 |
|
15 |
$database_password = 'NzY1CxNG-Gkb';
|
18 |
} else {
|
16 |
} else {
|
Línea 19... |
Línea 17... |
19 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
17 |
$google_map_api_key = 'AIzaSyDqfGXxql_vcpCJZ_5C8X4ARoPzv_kQepk';
|
20 |
|
18 |
|
21 |
//$google_captcha_site_key = '6Lenx8QZAAAAAAJh-kTLNktsi3mJ47svNmQkoIIv';
|
19 |
//$google_captcha_site_key = '6Lenx8QZAAAAAAJh-kTLNktsi3mJ47svNmQkoIIv';
|
22 |
//$google_captcha_secret_key = '6Lenx8QZAAAAAO44E3iN3jAkVvQ84lRmXvaDWdSY';
|
20 |
//$google_captcha_secret_key = '6Lenx8QZAAAAAO44E3iN3jAkVvQ84lRmXvaDWdSY';
|
23 |
|
21 |
|
24 |
|
22 |
|
25 |
$database_host = 'localhost';
|
23 |
$database_host = 'localhost';
|
26 |
$database_port = '3306';
|
24 |
$database_port = '3306';
|
27 |
$database_dbname = 'db_leaderslinked_dev';
|
25 |
$database_dbname = 'db_leaderslinked_dev';
|
Línea 31... |
Línea 29... |
31 |
|
29 |
|
Línea 32... |
Línea 30... |
32 |
$network = null;
|
30 |
$network = null;
|
33 |
|
31 |
|
34 |
try {
|
32 |
try {
|
35 |
$hostname = empty($_SERVER['HTTP_HOST']) ? '' : $_SERVER['HTTP_HOST'];
|
33 |
$hostname = empty($_SERVER['HTTP_HOST']) ? '' : $_SERVER['HTTP_HOST'];
|
36 |
$sql = 'SELECT * FROM tbl_networks '.
|
34 |
$sql = 'SELECT * FROM tbl_networks ' .
|
Línea 37... |
Línea 35... |
37 |
' WHERE `main_hostname` = ? OR `alternative_hostname` = ? ' .
|
35 |
' WHERE `main_hostname` = ? OR `alternative_hostname` = ? ' .
|
38 |
' LIMIT 1';
|
36 |
' LIMIT 1';
|
Línea 39... |
Línea 37... |
39 |
|
37 |
|
40 |
$mysqli = new mysqli($database_host, $database_user, $database_password, $database_dbname, $database_port);
|
38 |
$mysqli = new mysqli($database_host, $database_user, $database_password, $database_dbname, $database_port);
|
41 |
if (!mysqli_connect_errno()) {
|
39 |
if (!mysqli_connect_errno()) {
|
42 |
|
40 |
|
43 |
if ($stmt = $mysqli->prepare($sql)) {
|
41 |
if ($stmt = $mysqli->prepare($sql)) {
|
44 |
|
42 |
|
45 |
$stmt->bind_param('ss', $hostname, $hostname);
|
43 |
$stmt->bind_param('ss', $hostname, $hostname);
|
46 |
$stmt->execute();
|
44 |
$stmt->execute();
|
47 |
|
45 |
|
48 |
$result = $stmt->get_result();
|
46 |
$result = $stmt->get_result();
|
49 |
|
47 |
|
Línea 50... |
Línea 48... |
50 |
|
48 |
|
51 |
$network = $result->fetch_object(); /// $result->fetch_assoc();
|
49 |
$network = $result->fetch_object(); /// $result->fetch_assoc();
|
- |
|
50 |
$stmt->close();
|
Línea 52... |
Línea -... |
52 |
$stmt->close();
|
- |
|
53 |
}
|
- |
|
54 |
|
- |
|
55 |
$mysqli->close();
|
- |
|
56 |
}
|
- |
|
57 |
|
- |
|
58 |
|
51 |
}
|
59 |
|
- |
|
60 |
|
52 |
|
Línea 61... |
Línea 53... |
61 |
|
53 |
$mysqli->close();
|
62 |
} catch(\Exception $e) {
|
54 |
}
|
Línea 81... |
Línea 73... |
81 |
<meta http-equiv="charset" content="UTF-8">
|
73 |
<meta http-equiv="charset" content="UTF-8">
|
82 |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
74 |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
Línea 83... |
Línea 75... |
83 |
|
75 |
|
84 |
<link rel="stylesheet" type="text/css" href="/css/animate.css">
|
76 |
<link rel="stylesheet" type="text/css" href="/css/animate.css">
|
85 |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
- |
|
86 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome.css">
|
- |
|
87 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome-font-awesome.min.css">
|
77 |
<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
|
- |
|
78 |
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
|
- |
|
79 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome-font-awesome.min.css">
|
Línea 88... |
Línea 80... |
88 |
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css">
|
80 |
<link rel="stylesheet" type="text/css" href="/css/line-awesome.min.css">
|
89 |
|
81 |
|
Línea 90... |
Línea 82... |
90 |
<link rel="stylesheet" type="text/css" href="/lib/slick/slick.css">
|
82 |
<link rel="stylesheet" type="text/css" href="/lib/slick/slick.css">
|
Línea 96... |
Línea 88... |
96 |
<link rel="stylesheet" type="text/css" href="/look-and-field/chat.css" />
|
88 |
<link rel="stylesheet" type="text/css" href="/look-and-field/chat.css" />
|
97 |
<link rel="stylesheet" type="text/css" href="/look-and-field/navbar.css" />
|
89 |
<link rel="stylesheet" type="text/css" href="/look-and-field/navbar.css" />
|
98 |
<link rel="stylesheet" type="text/css" href="/look-and-field/dashboard.css" />
|
90 |
<link rel="stylesheet" type="text/css" href="/look-and-field/dashboard.css" />
|
Línea 99... |
Línea 91... |
99 |
|
91 |
|
100 |
<link rel="stylesheet" type="text/css" href="/vendors/nprogress/nprogress.css">
|
92 |
<link rel="stylesheet" type="text/css" href="/vendors/nprogress/nprogress.css">
|
101 |
|
93 |
|
102 |
<?php if($network) : ?>
|
94 |
<?php if ($network) : ?>
|
103 |
<style>
|
95 |
<style>
|
104 |
:root {
|
96 |
:root {
|
105 |
--bg-color: <?php echo $network->css_bg_color ?>;
|
97 |
--bg-color: <?php echo $network->css_bg_color ?>;
|
106 |
--body-bg-color: <?php echo $network->css_body_bg_color ?>;
|
98 |
--body-bg-color: <?php echo $network->css_body_bg_color ?>;
|
107 |
--bg-color-secondary: <?php echo $network->css_bg_color_secondary ?>;
|
99 |
--bg-color-secondary: <?php echo $network->css_bg_color_secondary ?>;
|
108 |
--font-color: <?php echo $network->css_font_color ?>;
|
100 |
--font-color: <?php echo $network->css_font_color ?>;
|
109 |
--font-color-hover: <?php echo $network->css_font_color_hover ?>;
|
101 |
--font-color-hover: <?php echo $network->css_font_color_hover ?>;
|
110 |
--title-color: <?php echo $network->css_title_color ?>;
|
102 |
--title-color: <?php echo $network->css_title_color ?>;
|
111 |
--subtitle-color: <?php echo $network->css_subtitle_color ?>;
|
103 |
--subtitle-color: <?php echo $network->css_subtitle_color ?>;
|
112 |
--icons-color: <?php echo $network->css_icons_color ?>;
|
104 |
--icons-color: <?php echo $network->css_icons_color ?>;
|
113 |
--button-bg: <?php echo $network->css_button_bg ?>;
|
105 |
--button-bg: <?php echo $network->css_button_bg ?>;
|
114 |
--button-bg-hover: <?php echo $network->css_button_bg_hover ?>;
|
106 |
--button-bg-hover: <?php echo $network->css_button_bg_hover ?>;
|
115 |
--button-text-color: <?php echo $network->css_button_text_color ?>;
|
107 |
--button-text-color: <?php echo $network->css_button_text_color ?>;
|
116 |
--button-bg-secondary: <?php echo $network->css_button_bg_secondary ?>;
|
108 |
--button-bg-secondary: <?php echo $network->css_button_bg_secondary ?>;
|
117 |
--button-bg-secondary-hover: <?php echo $network->css_button_bg_secondary_hover ?>;
|
109 |
--button-bg-secondary-hover: <?php echo $network->css_button_bg_secondary_hover ?>;
|
118 |
--button-text-color-secondary: <?php echo $network->css_button_text_color_secondary ?>;
|
110 |
--button-text-color-secondary: <?php echo $network->css_button_text_color_secondary ?>;
|
119 |
--button-bg-tertiary: <?php echo $network->css_button_bg_tertiary ?>;
|
111 |
--button-bg-tertiary: <?php echo $network->css_button_bg_tertiary ?>;
|
120 |
--button-text-color-tertiary: <?php echo $network->css_button_text_color_tertiary ?>;
|
112 |
--button-text-color-tertiary: <?php echo $network->css_button_text_color_tertiary ?>;
|
121 |
--border-primary: <?php echo $network->css_border_primary ?>;
|
113 |
--border-primary: <?php echo $network->css_border_primary ?>;
|
122 |
--border-trasnparent: <?php echo $network->css_border_trasnparent ?>;
|
114 |
--border-trasnparent: <?php echo $network->css_border_trasnparent ?>;
|
123 |
--chat-received: <?php echo $network->css_chat_received ?>;
|
115 |
--chat-received: <?php echo $network->css_chat_received ?>;
|
124 |
--chat-send: <?php echo $network->css_chat_send ?>;
|
116 |
--chat-send: <?php echo $network->css_chat_send ?>;
|
125 |
--chat-color: <?php echo $network->css_chat_color ?>;
|
117 |
--chat-color: <?php echo $network->css_chat_color ?>;
|
126 |
|
118 |
|
127 |
--light-gray: <?php echo $network->css_light_gray ?>;
|
119 |
--light-gray: <?php echo $network->css_light_gray ?>;
|
128 |
--gray: <?php echo $network->css_gray ?>;
|
120 |
--gray: <?php echo $network->css_gray ?>;
|
129 |
--danger: <?php echo $network->css_danger ?>;
|
121 |
--danger: <?php echo $network->css_danger ?>;
|
130 |
--danger-hover: <?php echo $network->css_danger_hover ?>;
|
122 |
--danger-hover: <?php echo $network->css_danger_hover ?>;
|
131 |
--online-green: <?php echo $network->css_online_green ?>;
|
123 |
--online-green: <?php echo $network->css_online_green ?>;
|
132 |
|
124 |
|
133 |
--border-gray-primary: <?php echo $network->css_border_gray_primary ?>;
|
125 |
--border-gray-primary: <?php echo $network->css_border_gray_primary ?>;
|
134 |
--white: <?php echo $network->css_white ?>;
|
126 |
--white: <?php echo $network->css_white ?>;
|
135 |
|
127 |
|
136 |
|
128 |
|
137 |
|
129 |
|
138 |
--white-backdrop: <?php echo $network->css_white_backdrop ?>;
|
130 |
--white-backdrop: <?php echo $network->css_white_backdrop ?>;
|
139 |
--border-radius: <?php echo $network->css_border_radius ?>;
|
131 |
--border-radius: <?php echo $network->css_border_radius ?>;
|
140 |
--light-shadow: <?php echo $network->css_light_shadow ?>;
|
132 |
--light-shadow: <?php echo $network->css_light_shadow ?>;
|
141 |
--shadow: <?php echo $network->css_shadow ?>;
|
133 |
--shadow: <?php echo $network->css_shadow ?>;
|
142 |
}
|
134 |
}
|
143 |
</style>
|
135 |
</style>
|
Línea 144... |
Línea 136... |
144 |
<?php endif; ?>
|
136 |
<?php endif; ?>
|
145 |
|
137 |
|
Línea 146... |
Línea 138... |
146 |
<link rel="stylesheet" type="text/css" href="/public/bundles/main.css" />
|
138 |
<link rel="stylesheet" type="text/css" href="/public/bundles/main.css" />
|
Línea 147... |
Línea 139... |
147 |
</head>
|
139 |
</head>
|
- |
|
140 |
|
- |
|
141 |
<body>
|
Línea 148... |
Línea 142... |
148 |
|
142 |
|
149 |
<body>
|
143 |
<div id="app" data-service="<?php if ($network) {
|
150 |
|
144 |
echo $network->service_hostname;
|
151 |
<div id="app" data-service="<?php if($network) { echo $network->service_hostname; } ?>">
|
145 |
} ?>">
|