Browse Source

add cs sub-page && add server checker #7

Laszlo Lang 1 month ago
parent
commit
61b0dc68fe

+ 4
- 0
config/routes.yaml View File

@@ -1,3 +1,7 @@
1 1
 index:
2 2
     path: /
3 3
     controller: App\Controller\DefaultController::index
4
+
5
+cs:
6
+    path: /cs
7
+    controller: App\Controller\DefaultController::cs

+ 1
- 1
config/services.yaml View File

@@ -9,7 +9,7 @@ parameters:
9 9
     jotunheimr.title.small: 'SplendidBear'
10 10
     jotunheimr.image: '/images/system7-Bear@250.png'
11 11
     jotunheimr.image.sign: '/images/system7-Bear-created-by@100.png'
12
-    jotunheimr.version: 1.14.1-20180821-4
12
+    jotunheimr.version: 1.15.1-20181029-4
13 13
     mailer_user: Lang
14 14
     mailer_email: langlasz@gmail.com
15 15
 

+ 429
- 0
public/check.php View File

@@ -0,0 +1,429 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+use Symfony\Requirements\SymfonyRequirements;
13
+/*
14
+if (!isset($_SERVER['HTTP_HOST'])) {
15
+    exit("This script cannot be run from the CLI. Run it from a browser.\n");
16
+}
17
+
18
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
19
+    '127.0.0.1',
20
+    '::1',
21
+))) {
22
+    header('HTTP/1.0 403 Forbidden');
23
+    exit('This script is only accessible from localhost.');
24
+}
25
+*/
26
+
27
+if (file_exists($autoloader = __DIR__.'/../../../autoload.php')) {
28
+    require_once $autoloader;
29
+} elseif (file_exists($autoloader = __DIR__.'/../vendor/autoload.php')) {
30
+    require_once $autoloader;
31
+} else {
32
+    throw new \RuntimeException('Unable to find the Composer autoloader.');
33
+}
34
+
35
+$symfonyRequirements = new SymfonyRequirements(dirname(dirname(realpath($autoloader))));
36
+
37
+$majorProblems = $symfonyRequirements->getFailedRequirements();
38
+$minorProblems = $symfonyRequirements->getFailedRecommendations();
39
+$hasMajorProblems = (bool) count($majorProblems);
40
+$hasMinorProblems = (bool) count($minorProblems);
41
+
42
+?>
43
+<!DOCTYPE html>
44
+<html>
45
+    <head>
46
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
47
+        <meta name="robots" content="noindex,nofollow" />
48
+        <title>Symfony Configuration Checker</title>
49
+        <style>
50
+            /* styles copied from symfony framework bundle */
51
+            html {
52
+                background: #eee;
53
+            }
54
+            body {
55
+                font: 11px Verdana, Arial, sans-serif;
56
+                color: #333;
57
+            }
58
+            .sf-reset, .sf-reset .block, .sf-reset #message {
59
+                margin: auto;
60
+            }
61
+            img {
62
+                border: 0;
63
+            }
64
+            .clear {
65
+                clear: both;
66
+                height: 0;
67
+                font-size: 0;
68
+                line-height: 0;
69
+            }
70
+            .clear-fix:after {
71
+                content: "\0020";
72
+                display: block;
73
+                height: 0;
74
+                clear: both;
75
+                visibility: hidden;
76
+            }
77
+            .clear-fix {
78
+                display: inline-block;
79
+            }
80
+            * html .clear-fix {
81
+                height: 1%;
82
+            }
83
+            .clear-fix {
84
+                display: block;
85
+            }
86
+            .header {
87
+                padding: 30px 30px 20px 30px;
88
+            }
89
+            .header-logo {
90
+                float: left;
91
+            }
92
+            .search {
93
+                float: right;
94
+                padding-top: 20px;
95
+            }
96
+            .search label {
97
+                line-height: 28px;
98
+                vertical-align: middle;
99
+            }
100
+            .search input {
101
+                width: 195px;
102
+                font-size: 12px;
103
+                border: 1px solid #dadada;
104
+                background: #fff url(data:image/gif;base64,R0lGODlhAQAFAKIAAPX19e/v7/39/fr6+urq6gAAAAAAAAAAACH5BAAAAAAALAAAAAABAAUAAAMESAEjCQA7) repeat-x left top;
105
+                padding: 5px 6px;
106
+                color: #565656;
107
+            }
108
+            .search input[type="search"] {
109
+                -webkit-appearance: textfield;
110
+            }
111
+            #content {
112
+                width: 970px;
113
+                margin: 0 auto;
114
+            }
115
+            #content pre {
116
+                white-space: normal;
117
+                font-family: Arial, Helvetica, sans-serif;
118
+            }
119
+
120
+            /*
121
+            Copyright (c) 2010, Yahoo! Inc. All rights reserved.
122
+            Code licensed under the BSD License:
123
+            http://developer.yahoo.com/yui/license.html
124
+            version: 3.1.2
125
+            build: 56
126
+            */
127
+            .sf-reset div,.sf-reset dl,.sf-reset dt,.sf-reset dd,.sf-reset ul,.sf-reset ol,.sf-reset li,.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6,.sf-reset pre,.sf-reset code,.sf-reset form,.sf-reset fieldset,.sf-reset legend,.sf-reset input,.sf-reset textarea,.sf-reset p,.sf-reset blockquote,.sf-reset th,.sf-reset td{margin:0;padding:0;}.sf-reset table{border-collapse:collapse;border-spacing:0;}.sf-reset fieldset,.sf-reset img{border:0;}.sf-reset address,.sf-reset caption,.sf-reset cite,.sf-reset code,.sf-reset dfn,.sf-reset em,.sf-reset strong,.sf-reset th,.sf-reset var{font-style:normal;font-weight:normal;}.sf-reset li{list-style:none;}.sf-reset caption,.sf-reset th{text-align:left;}.sf-reset h1,.sf-reset h2,.sf-reset h3,.sf-reset h4,.sf-reset h5,.sf-reset h6{font-size:100%;font-weight:normal;}.sf-reset q:before,.sf-reset q:after{content:'';}.sf-reset abbr,.sf-reset acronym{border:0;font-variant:normal;}.sf-reset sup{vertical-align:text-top;}.sf-reset sub{vertical-align:text-bottom;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-family:inherit;font-size:inherit;font-weight:inherit;}.sf-reset input,.sf-reset textarea,.sf-reset select{font-size:100%;}.sf-reset legend{color:#000;}
128
+            .sf-reset abbr {
129
+                border-bottom: 1px dotted #000;
130
+                cursor: help;
131
+            }
132
+            .sf-reset p {
133
+                font-size: 14px;
134
+                line-height: 20px;
135
+                padding-bottom: 20px;
136
+            }
137
+            .sf-reset strong {
138
+                color: #313131;
139
+                font-weight: bold;
140
+            }
141
+            .sf-reset a {
142
+                color: #6c6159;
143
+            }
144
+            .sf-reset a img {
145
+                border: none;
146
+            }
147
+            .sf-reset a:hover {
148
+                text-decoration: underline;
149
+            }
150
+            .sf-reset em {
151
+                font-style: italic;
152
+            }
153
+            .sf-reset h2,
154
+            .sf-reset h3 {
155
+                font-weight: bold;
156
+            }
157
+            .sf-reset h1 {
158
+                font-family: Georgia, "Times New Roman", Times, serif;
159
+                font-size: 20px;
160
+                color: #313131;
161
+                word-wrap: break-word;
162
+            }
163
+            .sf-reset li {
164
+                padding-bottom: 10px;
165
+            }
166
+            .sf-reset .block {
167
+                -moz-border-radius: 16px;
168
+                -webkit-border-radius: 16px;
169
+                border-radius: 16px;
170
+                margin-bottom: 20px;
171
+                background-color: #FFFFFF;
172
+                border: 1px solid #dfdfdf;
173
+                padding: 40px 50px;
174
+                word-break: break-all;
175
+            }
176
+            .sf-reset h2 {
177
+                font-size: 16px;
178
+                font-family: Arial, Helvetica, sans-serif;
179
+            }
180
+            .sf-reset li a {
181
+                background: none;
182
+                color: #868686;
183
+                text-decoration: none;
184
+            }
185
+            .sf-reset li a:hover {
186
+                background: none;
187
+                color: #313131;
188
+                text-decoration: underline;
189
+            }
190
+            .sf-reset ol {
191
+                padding: 10px 0;
192
+            }
193
+            .sf-reset ol li {
194
+                list-style: decimal;
195
+                margin-left: 20px;
196
+                padding: 2px;
197
+                padding-bottom: 20px;
198
+            }
199
+            .sf-reset ol ol li {
200
+                list-style-position: inside;
201
+                margin-left: 0;
202
+                white-space: nowrap;
203
+                font-size: 12px;
204
+                padding-bottom: 0;
205
+            }
206
+            .sf-reset li .selected {
207
+                background-color: #ffd;
208
+            }
209
+            .sf-button {
210
+                display: -moz-inline-box;
211
+                display: inline-block;
212
+                text-align: center;
213
+                vertical-align: middle;
214
+                border: 0;
215
+                background: transparent none;
216
+                text-transform: uppercase;
217
+                cursor: pointer;
218
+                font: bold 11px Arial, Helvetica, sans-serif;
219
+            }
220
+            .sf-button span {
221
+                text-decoration: none;
222
+                display: block;
223
+                height: 28px;
224
+                float: left;
225
+            }
226
+            .sf-button .border-l {
227
+                text-decoration: none;
228
+                display: block;
229
+                height: 28px;
230
+                float: left;
231
+                padding: 0 0 0 7px;
232
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQtJREFUeNpiPHnyJAMakARiByDWYEGT8ADiYGVlZStubm5xlv///4MEQYoKZGRkQkRERLRYWVl5wYJQyXBZWdkwCQkJUxAHKgaWlAHSLqKiosb//v1DsYMFKGCvoqJiDmQzwXTAJYECulxcXNLoumCSoszMzDzoumDGghQwYZUECWIzkrAkSIIGOmlkLI10AiX//P379x8jIyMTNmPf/v79+ysLCwsvuiQoNi5//fr1Kch4dAyS3P/gwYMTQBP+wxwHw0xA4gkQ73v9+vUZdJ2w1Lf82bNn4iCHCQoKasHsZw4ODgbRIL8c+/Lly5M3b978Y2dn5wC6npkFLXnsAOKLjx49AmUHLYAAAwBoQubG016R5wAAAABJRU5ErkJggg==) no-repeat top left;
233
+            }
234
+            .sf-button .border-r {
235
+                padding: 0 7px 0 0;
236
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR1JREFUeNpiPHnyZCMDA8MNID5gZmb2nAEJMH7//v3N169fX969e/cYkL8WqGAHXPLv37//QYzfv39/fvPmzbUnT56sAXInmJub/2H5/x8sx8DCwsIrISFhDmQyPX78+CmQXs70798/BmQsKipqBNTgdvz4cWkmkE5kDATMioqKZkCFdiwg1eiAi4tLGqhQF24nMmBmZuYEigth1QkEbEBxTlySYPvJkwSJ00AnjYylgU6gxB8g/oFVEphkvgLF32KNMmCCewYUv4qhEyj47+HDhyeBzIMYOoEp8CxQw56wsLAncJ1//vz5/P79+2svX74EJc2V4BT58+fPd8CE/QKYHMGJOiIiAp6oWW7evDkNSF8DZYfIyEiU7AAQYACJ2vxVdJW4eQAAAABJRU5ErkJggg==) right top no-repeat;
237
+            }
238
+            .sf-button .btn-bg {
239
+                padding: 0 14px;
240
+                color: #636363;
241
+                line-height: 28px;
242
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAYAAACgXdXMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiPnny5EKGf//+/Wf6//8/A4QAcrGzKCZwGc9sa2urBBBgAIbDUoYVp9lmAAAAAElFTkSuQmCC) repeat-x top left;
243
+            }
244
+            .sf-button:hover .border-l,
245
+            .sf-button-selected .border-l {
246
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR9JREFUeNpi/P//PwMyOHfunDqQSgNiexZkibNnzxYBqZa3HOs5v7PcYQBLnjlzhg1IbfzIdsTjA/t+ht9Mr8GKwZL//v3r+sB+0OMN+zqIEf8gFMvJkyd1gXTOa9YNDP//otrPAtSV/Jp9HfPff78Z0AEL0LUeXxivMfxD0wXTqfjj/2ugkf+wSrL9/YtpJEyS4S8WI5Ek/+GR/POPFjr//cenE6/kP9q4Fo/kr39/mdj+M/zFkGQCSj5i+ccPjLJ/GBgkuYOHQR1sNDpmAkb2LBmWwL///zKCIxwZM0VHR18G6p4uxeLLAA4tJMwEshiou1iMxXaHLGswA+t/YbhORuQUv2DBAnCifvxzI+enP3dQJUFg/vz5sOzgBBBgAPxX9j0YnH4JAAAAAElFTkSuQmCC) no-repeat top left;
247
+            }
248
+            .sf-button:hover .border-r,
249
+            .sf-button-selected .border-r {
250
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAcCAYAAACtQ6WLAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAT5JREFUeNpiPHv27BkGBoaDQDzLyMjoJgMSYHrM3WX8hn1d0f///88DFRYhSzIuv2X5H8Rg/SfKIPDTkYH/l80OINffxMTkF9O/f/8ZQPgnwyuGl+wrGd6x7vf49+9fO9jYf3+Bkkj4NesmBqAV+SdPntQC6vzHgIz//gOawbqOGchOxtAJwp8Zr4F0e7D8/fuPAR38/P8eZIo0yz8skv8YvoIk+YE6/zNgAyD7sRqLkPzzjxY6/+HS+R+fTkZ8djLh08lCUCcuSWawJGbwMTGwg7zyBatX2Bj5QZKPsBrLzaICktzN8g/NWEYGZgYZjoC/wMiei5FMpFh8QPSU6Ojoy3Cd7EwiDBJsDgxiLNY7gLrKQGIsHAxSDHxAO2TZ/b8D+TVxcXF9MCtYtLiKLgDpfUDVsxITE1GyA0CAAQA2E/N8VuHyAAAAAABJRU5ErkJggg==) right top no-repeat;
251
+            }
252
+            .sf-button:hover .btn-bg,
253
+            .sf-button-selected .btn-bg {
254
+                color: #FFFFFF;
255
+                text-shadow:0 1px 1px #6b9311;
256
+                background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAcCAIAAAAvP0KbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpiPnv2LNMdvlymf///M/37B8R/QfQ/MP33L4j+B6Qh7L9//sHpf2h8MA1V+w/KRjYLaDaLCU8vQIABAFO3TxZriO4yAAAAAElFTkSuQmCC) repeat-x top left;
257
+            }
258
+
259
+            /* styles copied from bundles/sensiodistribution/webconfigurator/css/install.css */
260
+            body {
261
+                font-size: 14px;
262
+                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
263
+            }
264
+            .sf-reset h1.title {
265
+                font-size: 45px;
266
+                padding-bottom: 30px;
267
+            }
268
+            .sf-reset h2 {
269
+                font-weight: bold;
270
+                color: #FFFFFF;
271
+                /* Font is reset to sans-serif (like body) */
272
+                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
273
+                margin-bottom: 10px;
274
+                background-color: #aacd4e;
275
+                padding: 2px 4px;
276
+                display: inline-block;
277
+                text-transform: uppercase;
278
+            }
279
+            .sf-reset ul a,
280
+            .sf-reset ul a:hover {
281
+                background: url(../images/blue-arrow.png) no-repeat right 6px;
282
+                padding-right: 10px;
283
+            }
284
+            .sf-reset ul, ol {
285
+                padding-left: 20px;
286
+            }
287
+            .sf-reset li {
288
+                padding-bottom: 18px;
289
+            }
290
+            .sf-reset ol li {
291
+                list-style-type: decimal;
292
+            }
293
+            .sf-reset ul li {
294
+                list-style-type: none;
295
+            }
296
+            .sf-reset .symfony-blocks-install {
297
+                overflow: hidden;
298
+            }
299
+            .sf-reset .symfony-install-continue {
300
+                font-size: 0.95em;
301
+                padding-left: 0;
302
+            }
303
+            .sf-reset .symfony-install-continue li {
304
+                padding-bottom: 10px;
305
+            }
306
+            .sf-reset .ok {
307
+                color: #fff;
308
+                font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
309
+                background-color: #6d6;
310
+                padding: 10px;
311
+                margin-bottom: 20px;
312
+            }
313
+            .sf-reset .ko {
314
+                background-color: #d66;
315
+            }
316
+            .sf-reset p.help {
317
+                padding: 12px 16px;
318
+                word-break: break-word;
319
+            }
320
+            .version {
321
+                text-align: right;
322
+                font-size: 10px;
323
+                margin-right: 20px;
324
+            }
325
+            .sf-reset a,
326
+            .sf-reset li a {
327
+                color: #08C;
328
+                text-decoration: none;
329
+            }
330
+            .sf-reset a:hover,
331
+            .sf-reset li a:hover {
332
+                color: #08C;
333
+                text-decoration: underline;
334
+            }
335
+            .sf-reset textarea {
336
+                padding: 7px;
337
+            }
338
+        </style>
339
+    </head>
340
+    <body>
341
+        <div id="content">
342
+            <div class="header clear-fix">
343
+                <div class="header-logo">
344
+                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALYAAAA+CAMAAACxzRGDAAAAUVBMVEX////Ly8yko6WLioxkYmVXVVkwLjLl5eWxsLJKSEzy8vJxcHLY2Ni+vb89Oz9XVVh+fH+Yl5n///+xsbLY2Nlxb3KkpKWXlph+fX+LiYy+vr/IZP61AAAAAXRSTlMAQObYZgAABRBJREFUeNrVmtuWoyAQRS1FEEQSzQU7//+hYxUiXsKQZLJWM+chsUloN+WhCuguYoKyYqzmvGasKqH4HyRKxndipcgcumH8qViTM7TkUclcwaHmf5XM0eWq4km1KjdqXfMXJHVe1J3hL8lk5fCGv6wmT+o0d87U+XNrk0Y9nfv+7LM6ZJH5ZBL6LAbSxQ3Q5FDr22Skr8PQSy4n7isnsQxSX4r6pobhjCHHeDNOKrO3yGmCvZOjV9jmt8ulTdXFKdbKLNh+kOMvBzuVRa4Y7MUsdEUSWQe7xxCfZmcwjHU83LqzFvSbJQOXQvptbPnEFoyZtUUGwTeKuLuTHyT1kaP0P6cR01OKvv448gtl61dqZfmJezQmU/t+1R2fJLtBwXV6uWGwB9SZPrn0fKO2WAvQN1PUhHjTom3xgXYTkvlSKHs19OhslETq6X3HrXbjt8XbGj9b4Gi+lUAnL6XxQj8Pyk9N4Bt1xUrsLVN/3isYMug8rODMdbgOvoHs8uAb2fcANIAzkKCLYy+AXRpSU8sr1r4P67xhLgPp7vM32zlqt7Bhq2fI1Hwp+VgANxok59SsGV3oqdUL0YVDMRY7Yg8QLbVUU4NZNoOq5hJHuxEM28Sh/IyUZ8D3reR+yc58EGvOy2U0HQL6G9V+kWyEWHmzaMx6t4o9RhOm/riUiYrzqij4Ptqkn7AaCXqc+F47m04ahfde7YIz8RHEBN6BdVwdIGRVdNbKqYu1Hc0x0wBY4wqC8+XUgBGnj81SZsQB+0yAS1x/BlI/6ebHHk0lauQLuPDpu6EwAVJ7T0rl2uXa23jcqNyOZekhqYHRz3JOANrF4wCCmEs1f9D1lUe0n4NAATed80Y5e0Q7CO2TezM/BR6wKdgQzKbCF4uOQC3Bk0fKAzbFlyRWg3gksA/gmm7eOjrpaKX7fHlEW2xLbE6GZsPiCiShVzN7RG2xTz2G+OJtEqzdJ7APxy3MrSsV0VukXbKMp9lhs5BN6dr3CN+sySUaoxGwfRUM3I/gdPYONgVU+PLX4vUWm32AvUySarbONvcpV2RQEPKKjEBHFk01kQDGRblnn8ZuE9g+JUl8OWAPbkFK2K6JxhJVvF47FzYYnAN22ttwxKYCoH36rheEB7KG/HF/YUaa2G5JF+55tpyrl7B1WHM39HuP2N2EXPl1UBu8vbj4OjvD+NoTE4ssF+ScARgaJY1N7+u8bY/Y9BSM5PKwJbvMVab32YP5FB5TtcYVrGoASolVLTzI7kVsYVxRtAb5n2JXq1vCdtd47XtYItynrN0835PasLg0y13aOPbmPI+on2Lr9e5tjSHvgkAvclUjL3Fsdaw03IzgTR62yYClk7QMah4IQ0qSsoYYbOix6zJR1ZGDNMOY3Bb6W5S6jiyovep3t7bUPyoq7OkjYumrfESp8zSBc/OLosVf+nTnnKjsqR16++WDwpI8FxJWRFTlI6NKnqYJaL96TqjAbo9Toi5QiWBDcmfdFV+T8dkvFe5bItgstbM2X6QG2mVun+cazfRwOS0eiaeRRJKgLfc3BQAqfnhJyz8lfR6580SF/FXVu83Nz1xrrnFqqXL6Qxl47DNSm4RFflvN5sABDD8peouqLLKQXVdGbnqf+qIpOxON4ZyYdJEJ6sy4zS2c5eRPTT4Jyp46qDE5/ptAWqJOQ9e6yE82FXBbZCk1/tXVoshVoopE3CB0zmraI3nbqCJ/gW3ZMgtbC5nh/QHlOoOZBxQCRgAAAABJRU5ErkJggg==" alt="Symfony" />
345
+                </div>
346
+
347
+                <div class="search">
348
+                  <form method="get" action="http://symfony.com/search">
349
+                    <div class="form-row">
350
+
351
+                      <label for="search-id">
352
+                                <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAABUElEQVQoz2NgAIJ29iBdD0d7X2cPb+tY2f9MDMjgP2O2hKu7vS8CBlisZUNSMJ3fxRMkXO61wm2ue6I3iB1q8Z8ZriDZFCS03fm/wX+1/xp/TBo8QPxeqf+MUAW+QIFKj/+q/wX/c/3n/i/6Qd/bx943z/Q/K1SBI1D9fKv/AhCn/Wf5L5EHdFGKw39OqAIXoPpOMziX4T9/DFBBnuN/HqhAEtCKCNf/XDA/rZRyAmrpsvrPDVUw3wrkqCiLaewg6TohX1d7X0ffs5r/OaAKfinmgt3t4ulr4+Xg4ANip3j+l/zPArNT4LNOD0pAgWCSOUIBy3+h/+pXbBa5tni0eMx23+/mB1YSYnENroT5Pw/QSOX/mkCo+l/jgo0v2KJA643s8PgAmsMBDCbu/5xALHPB2husxN9uCzsDOgAq5kAoaZVnYMCh5Ky1r88Eh/+iABM8jUk7ClYIAAAAAElFTkSuQmCC" alt="Search on Symfony website" />
353
+                      </label>
354
+
355
+                      <input name="q" id="search-id" type="search" placeholder="Search on Symfony website" />
356
+
357
+                      <button type="submit" class="sf-button">
358
+                          <span class="border-l">
359
+                            <span class="border-r">
360
+                                <span class="btn-bg">OK</span>
361
+                            </span>
362
+                        </span>
363
+                      </button>
364
+                    </div>
365
+                   </form>
366
+                </div>
367
+            </div>
368
+
369
+            <div class="sf-reset">
370
+                <div class="block">
371
+                    <div class="symfony-block-content">
372
+                        <h1 class="title">Configuration Checker</h1>
373
+                        <p>
374
+                            This script analyzes your system to check whether is
375
+                            ready to run Symfony applications.
376
+                        </p>
377
+
378
+                        <?php if ($hasMajorProblems): ?>
379
+                            <h2 class="ko">Major problems</h2>
380
+                            <p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p>
381
+                            <ol>
382
+                                <?php foreach ($majorProblems as $problem): ?>
383
+                                    <li><?php echo $problem->getTestMessage() ?>
384
+                                        <p class="help"><em><?php echo $problem->getHelpHtml() ?></em></p>
385
+                                    </li>
386
+                                <?php endforeach; ?>
387
+                            </ol>
388
+                        <?php endif; ?>
389
+
390
+                        <?php if ($hasMinorProblems): ?>
391
+                            <h2>Recommendations</h2>
392
+                            <p>
393
+                                <?php if ($hasMajorProblems): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
394
+                                it’s recommended that you fix the following:
395
+                            </p>
396
+                            <ol>
397
+                                <?php foreach ($minorProblems as $problem): ?>
398
+                                    <li><?php echo $problem->getTestMessage() ?>
399
+                                        <p class="help"><em><?php echo $problem->getHelpHtml() ?></em></p>
400
+                                    </li>
401
+                                <?php endforeach; ?>
402
+                            </ol>
403
+                        <?php endif; ?>
404
+
405
+                        <?php if ($symfonyRequirements->hasPhpConfigIssue()): ?>
406
+                            <p id="phpini">*
407
+                                <?php if ($symfonyRequirements->getPhpIniPath()): ?>
408
+                                    Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniPath() ?></strong>".
409
+                                <?php else: ?>
410
+                                    To change settings, create a "<strong>php.ini</strong>".
411
+                                <?php endif; ?>
412
+                            </p>
413
+                        <?php endif; ?>
414
+
415
+                        <?php if (!$hasMajorProblems && !$hasMinorProblems): ?>
416
+                            <p class="ok">All checks passed successfully. Your system is ready to run Symfony applications.</p>
417
+                        <?php endif; ?>
418
+
419
+                        <ul class="symfony-install-continue">
420
+                            <?php if ($hasMajorProblems || $hasMinorProblems): ?>
421
+                                <li><a href="check.php">Re-check configuration</a></li>
422
+                            <?php endif; ?>
423
+                        </ul>
424
+                    </div>
425
+                </div>
426
+            </div>
427
+        </div>
428
+    </body>
429
+</html>

BIN
public/images/bear-white@150.png View File


BIN
public/images/cs/cs-outbg.jpg View File


BIN
public/images/cs/cs_go.jpg View File


BIN
public/images/cs/cs_s.jpg View File


BIN
public/images/cs/steam-logo.jpg View File


BIN
public/images/cs/ts-logo.png View File


BIN
public/images/cs/video/connect-css.webm View File


BIN
public/images/cs/video/connect.webm View File


BIN
public/images/cs/video/console-css.webm View File


BIN
public/images/cs/video/console.webm View File


BIN
public/images/cs/video/ts.webm View File


+ 8
- 1
src/Controller/DefaultController.php View File

@@ -22,10 +22,17 @@ class DefaultController extends AbstractController
22 22
     public function index()
23 23
     {
24 24
         return $this->render('default/index.html.twig', array(
25
-            'controller_name' => 'DefaultController',
26 25
             'project' => $this->getDoctrine()
27 26
                 ->getRepository(Project::class)
28 27
                 ->findAll(),
29 28
         ));
30 29
     }
30
+
31
+    /**
32
+     * Counter-Strike documentation
33
+     */
34
+    public function cs()
35
+    {
36
+        return $this->render('default/cs.html.twig', array());
37
+    }
31 38
 }

+ 258
- 0
templates/default/cs.html.twig View File

@@ -0,0 +1,258 @@
1
+{% extends 'base.html.twig' %}
2
+
3
+{% block title %}SplendidBear Websites - Counter-Strike{% endblock %}
4
+
5
+{% block body %}
6
+    <header class="bg-dark" data-block-type="headers" data-id="4" data-vivaldi-spatnav-clickable="1">
7
+        <div class="container">
8
+            <nav class="navbar navbar-expand-md no-gutters">
9
+                <div class="col-3 text-left">
10
+                    <img src="{{ asset('images/bear-white@150.png') }}" height="30" alt="image">
11
+                </div>
12
+
13
+                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse-4"
14
+                        aria-controls="navbarNav7" aria-expanded="false" aria-label="Toggle navigation">
15
+                    <span class="navbar-toggler-icon"></span>
16
+                </button>
17
+
18
+                <div class="collapse navbar-collapse navbar-collapse-4 justify-content-center col-md-6" id="navbarNav7">
19
+                    <ul class="navbar-nav justify-content-center">
20
+                        <li class="nav-item active">
21
+                            <a class="nav-link"
22
+                               href="#download">Game download <span class="sr-only">(current)</span></a>
23
+                        </li>
24
+                        <li class="nav-item">
25
+                            <a class="nav-link"
26
+                               href="#ts">TeamSpeak</a>
27
+                        </li>
28
+                        <li class="nav-item">
29
+                            <a class="nav-link"
30
+                               href="#csgo">CS:GO settings</a>
31
+                        </li>
32
+                        <li class="nav-item">
33
+                            <a class="nav-link"
34
+                               href="#css">CS:S settings</a>
35
+                        </li>
36
+                    </ul>
37
+                </div>
38
+                <div class="collapse navbar-collapse navbar-collapse-4">
39
+                    <a class="btn ml-md-3" href="https://www.splendidbear.org">SplendidBear Websites</a>
40
+                </div>
41
+            </nav>
42
+        </div>
43
+    </header>
44
+    <section class="fdb-block fdb-image-bg fp-active"
45
+             style="background-image: url({{ asset('images/cs/cs-outbg.jpg') }});"
46
+             data-block-type="contents"
47
+             data-id="1"
48
+             draggable="true"
49
+             data-vivaldi-spatnav-clickable="1">
50
+        <div class="container">
51
+            <div class="row text-left">
52
+                <div class="col-12 col-md-8 col-lg-6 ml-sm-auto">
53
+                    <div class="fdb-box fdb-touch">
54
+                        <div class="row justify-content-center">
55
+                            <div class="col-12 col-xl-8 text-center">
56
+                                <h1>Counter-Strike</h1>
57
+                                <p class="text-h2">Jotunheimr Server</p>
58
+                            </div>
59
+                        </div>
60
+                    </div>
61
+                </div>
62
+            </div>
63
+        </div>
64
+    </section>
65
+    <section class="fdb-block fp-active"
66
+             id="download"
67
+             data-block-type="features"
68
+             data-id="1"
69
+             draggable="true"
70
+             data-vivaldi-spatnav-clickable="1">
71
+        <div class="container">
72
+            <div class="row text-center">
73
+                <div class="col-12">
74
+                    <h1>Game download links</h1>
75
+                </div>
76
+            </div>
77
+            <div class="row text-center justify-content-center mt-5">
78
+                <div class="col-10 col-sm-3">
79
+                    <img alt="image" class="img-fluid"
80
+                         src="{{ asset('images/cs/steam-logo.jpg') }}">
81
+                    <h3><strong>Valve - Steam client</strong></h3>
82
+                    <a class="btn"
83
+                       target="_blank"
84
+                       href="https://store.steampowered.com/about/">Download</a>
85
+                </div>
86
+                <div class="col-10 col-sm-3">
87
+                    <img alt="image" class="img-fluid"
88
+                         src="{{ asset('images/cs/cs_go.jpg') }}">
89
+                    <h3><strong>CS - Global Offensive</strong></h3>
90
+                    <a class="btn"
91
+                       target="_blank"
92
+                       href="https://store.steampowered.com/app/730/CounterStrike_Global_Offensive/">Download</a>
93
+                </div>
94
+                <div class="col-10 col-sm-3 pt-5 pt-sm-0">
95
+                    <img alt="image" class="img-fluid"
96
+                         src="{{ asset('images/cs/cs_s.jpg') }}">
97
+                    <h3><strong>CS - Source</strong></h3>
98
+                    <a class="btn"
99
+                       target="_blank"
100
+                       href="https://store.steampowered.com/app/240/CounterStrike_Source/">Download</a>
101
+                </div>
102
+            </div>
103
+        </div>
104
+    </section>
105
+    <section class="fdb-block fp-active"
106
+             id="ts"
107
+             style="background: #ccc;"
108
+             data-block-type="contents"
109
+             data-id="2"
110
+             draggable="true"
111
+             data-vivaldi-spatnav-clickable="1">
112
+        <div class="container">
113
+            <div class="row align-items-center">
114
+                <div class="col-12 col-md-12 col-lg-6 col-xl-5">
115
+                    <h1>TeamSpeak 3</h1>
116
+                    <p><strong>Download TS3 client</strong></p>
117
+                    <p>
118
+                        <a href="https://www.teamspeak.com/en/downloads/" target="_blank">
119
+                            <img alt="image" class="fdb-icon" src="{{ asset('images/cs/ts-logo.png') }}">
120
+                        </a>
121
+                    </p>
122
+                    <p><strong>Server data</strong></p>
123
+                    <ul class="list-group">
124
+                        <li class="list-group-item">
125
+                            <strong>host:</strong> valve.splendidbear.org
126
+                        </li>
127
+                        <li class="list-group-item">
128
+                            <strong>pass:</strong> for more information, contact the admin. ;)
129
+                        </li>
130
+                    </ul>
131
+                </div>
132
+                <div class="col-12 col-md-8 m-auto ml-lg-auto mr-lg-0 col-lg-6 pt-5 pt-lg-0">
133
+                    <video controls
134
+                           class="img-fluid">
135
+                        <source src="{{ asset('images/cs/video/ts.webm') }}" type="video/webm">
136
+                        Your browser does not support the video tag.
137
+                    </video>
138
+                </div>
139
+            </div>
140
+        </div>
141
+    </section>
142
+    <section class="fdb-block"
143
+             id="csgo"
144
+             data-block-type="contents"
145
+             data-id="1"
146
+             draggable="true"
147
+             data-vivaldi-spatnav-clickable="1">
148
+        <div class="container">
149
+            <div class="row text-center">
150
+                <div class="col-12">
151
+                    <h1>Connect to the server in <u>Global Offensive</u></h1>
152
+                    <a href="valve:/connect/valve.splendidbear.org"
153
+                       style="color: rgb(68, 68, 68); text-decoration: underline"
154
+                       class="text-h2">
155
+                        valve.splendidbear.org
156
+                    </a>
157
+                </div>
158
+            </div>
159
+            <div class="row text-center pt-3 pt-xl-5">
160
+                <div class="col-12 col-sm-10 m-auto m-md-0 col-md-6">
161
+                    <video controls
162
+                           class="img-fluid">
163
+                        <source src="{{ asset('images/cs/video/console.webm') }}" type="video/webm">
164
+                        Your browser does not support the video tag.
165
+                    </video>
166
+                    <p class="text-h3">
167
+                        Setup console
168
+                    </p>
169
+                </div>
170
+                <div class="col-12 col-sm-10 m-auto m-md-0 col-md-6 pt-5 pt-md-0">
171
+                    <video controls
172
+                           class="img-fluid">
173
+                        <source src="{{ asset('images/cs/video/connect.webm') }}" type="video/webm">
174
+                        Your browser does not support the video tag.
175
+                    </video>
176
+                    <p class="text-h3">
177
+                        Connect via console
178
+                    </p>
179
+                    <p class="text-h3">
180
+                        Press 0 to switch on console
181
+                    </p>
182
+                </div>
183
+            </div>
184
+        </div>
185
+    </section>
186
+    <section class="fdb-block"
187
+             id="css"
188
+             style="background: #ccc;"
189
+             data-block-type="contents"
190
+             data-id="1"
191
+             draggable="true"
192
+             data-vivaldi-spatnav-clickable="1">
193
+        <div class="container">
194
+            <div class="row text-center">
195
+                <div class="col-12">
196
+                    <h1>Connect to the server in <u>Source</u></h1>
197
+                    <a href="valve:/connect/valve.splendidbear.org:27115"
198
+                       style="color: rgb(68, 68, 68); text-decoration: underline"
199
+                       class="text-h2">
200
+                        valve.splendidbear.org:27115
201
+                    </a>
202
+                </div>
203
+            </div>
204
+            <div class="row text-center pt-3 pt-xl-5">
205
+                <div class="col-12 col-sm-10 m-auto m-md-0 col-md-6">
206
+                    <video controls
207
+                           class="img-fluid">
208
+                        <source src="{{ asset('images/cs/video/console-css.webm') }}" type="video/webm">
209
+                        Your browser does not support the video tag.
210
+                    </video>
211
+                    <p class="text-h3">
212
+                        Setup console
213
+                    </p>
214
+                </div>
215
+                <div class="col-12 col-sm-10 m-auto m-md-0 col-md-6 pt-5 pt-md-0">
216
+                    <video controls
217
+                           class="img-fluid">
218
+                        <source src="{{ asset('images/cs/video/connect-css.webm') }}" type="video/webm">
219
+                        Your browser does not support the video tag.
220
+                    </video>
221
+                    <p class="text-h3">
222
+                        Connect via console
223
+                    </p>
224
+                    <p class="text-h3">
225
+                        Press 0 to switch on console
226
+                    </p>
227
+                </div>
228
+            </div>
229
+        </div>
230
+    </section>
231
+    <section class="fdb-block fdb-image-bg fp-active"
232
+             style="background: #31333e"
233
+             data-block-type="contents"
234
+             data-id="1"
235
+             draggable="true"
236
+             data-vivaldi-spatnav-clickable="1">
237
+        <div class="container">
238
+            <div class="row text-center">
239
+                <div class="col-12">
240
+                    <h1>
241
+                        Made with <span class="heart">❤</span> by
242
+                        <a href="https://www.splendidbear.org">SplendidBear Websites</a>
243
+                    </h1>
244
+                </div>
245
+            </div>
246
+        </div>
247
+    </section>
248
+{% endblock %}
249
+
250
+{% block stylesheets %}
251
+    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css"
252
+          integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
253
+    <link rel="stylesheet" media="screen" href="{{ asset('build/style.css') }}">
254
+{% endblock %}
255
+
256
+{% block javascripts %}
257
+    <script type="text/javascript" language="JavaScript" src="{{ asset('build/app.js') }}"></script>
258
+{% endblock %}

+ 1
- 1
templates/default/index.html.twig View File

@@ -1,6 +1,6 @@
1 1
 {% extends 'base.html.twig' %}
2 2
 
3
-{% block title %}SplendidBear Websites{% endblock %}
3
+{% block title %}SplendidBear Websites - Home{% endblock %}
4 4
 
5 5
 {% block body %}
6 6
     <section id="main-section"