1
|
{#
|
2
|
@version $Id: sysInfo.twig 2 2017-07-02 15:14:29Z Manuela $
|
3
|
#}
|
4
|
<!-- BEGIN mainBlock -->
|
5
|
<!DOCTYPE html>
|
6
|
<html lang="en">
|
7
|
<meta charset="utf-8" />
|
8
|
<link rel="stylesheet" href="{{ THEME_URL }}css/theme.css" />
|
9
|
<link rel="stylesheet"
|
10
|
href="{{ THEME_URL }}css/sweetalert.css"
|
11
|
id="alertifyCSS" />
|
12
|
<script src="{{ WB_URL }}include/jquery/jquery-min.js" type="text/javascript"></script>
|
13
|
<script src="{{ THEME_URL }}js/sweetalert-dev.js" type="text/javascript"></script>
|
14
|
|
15
|
<head>
|
16
|
<style type="text/css">
|
17
|
<!--
|
18
|
body { background: #EAEAEA; }
|
19
|
.group {
|
20
|
background: #f3f3f3 none repeat scroll 0 0;
|
21
|
border: 1px solid #999;
|
22
|
border-radius: 4px;
|
23
|
box-shadow: 2px 2px 5px #ccc;
|
24
|
margin-bottom: 1em;
|
25
|
padding-bottom: 1em;
|
26
|
}
|
27
|
.group ul { padding-left: 0.825em; margin-bottom: 0.825em; }
|
28
|
.group h2 {
|
29
|
background-color: #5C9AB8;
|
30
|
box-shadow: 1px 1px 15px #999 inset;
|
31
|
color: #fff;
|
32
|
font-size: 1.6em;
|
33
|
font-weight: normal;
|
34
|
margin-top: 0;
|
35
|
padding: 0.1em 0.3em;
|
36
|
text-shadow: 0 1px 0 #777;
|
37
|
}
|
38
|
.icon {
|
39
|
background-image: url("{{ THEME_URL }}images/help_16.png") !important;
|
40
|
background-position: left top !important;
|
41
|
background-repeat: no-repeat !important;
|
42
|
height: 16px;
|
43
|
margin: 0 0 0 0.3em;
|
44
|
padding: 0 !important;
|
45
|
width: 16px;
|
46
|
}
|
47
|
a img {
|
48
|
border: 0 none;
|
49
|
}
|
50
|
img, button { vertical-align: middle; padding: 0; }
|
51
|
.btn-link { background: transparent; border: none; cursor: pointer; color: #676767; font-weight: bold; }
|
52
|
.btn-link:hover { color: #0A6383; }
|
53
|
|
54
|
-->
|
55
|
</style>
|
56
|
</head>
|
57
|
<body>
|
58
|
<div class="sysinfo-box" style="margin: 1.125em auto; width: 100%;">
|
59
|
|
60
|
<div class="group">
|
61
|
<h2>
|
62
|
Webserver
|
63
|
</h2>
|
64
|
<ul>
|
65
|
<li id="li_web_server_software">
|
66
|
Webserver Software: {{ getOsVersion }}
|
67
|
</li>
|
68
|
<li id="li_used_php_extension">
|
69
|
PHP-Erweiterung: mysqli
|
70
|
<a target="documentation" href="https://secure.php.net/manual/de/book.mysqli.php"><img class="icon ic_b_help" alt="Dokumentation" title="Dokumentation" src="{{ THEME_URL }}/images/dot.gif"></a>
|
71
|
curl
|
72
|
<a target="documentation" href="https://secure.php.net/manual/de/book.curl.php"><img class="icon ic_b_help" alt="Dokumentation" title="Dokumentation" src="{{ THEME_URL }}/images/dot.gif"></a>
|
73
|
mbstring
|
74
|
<a target="documentation" href="https://secure.php.net/manual/de/book.mbstring.php"><img class="icon ic_b_help" alt="Dokumentation" title="Dokumentation" src="{{ THEME_URL }}/images/dot.gif"></a>
|
75
|
</li>
|
76
|
<li id="li_used_wb_version">
|
77
|
PHP-Version: {{ php_version }}
|
78
|
</li>
|
79
|
<li id="li_used_php_version">
|
80
|
WebsiteBaker-Version: {{ WbVersion }}
|
81
|
</li>
|
82
|
</ul>
|
83
|
</div>
|
84
|
|
85
|
<div class="group">
|
86
|
<h2>Webspace writable folders</h2>
|
87
|
{% if aWritablePaths %}
|
88
|
<ul>
|
89
|
{% for nane, writable in aWritablePaths %}
|
90
|
<li style="color: {% if writable %}#207D12{% else %}#F63513{% endif %};">{{ nane }}</li>
|
91
|
{% else %}
|
92
|
<li><em>no path found</em></li>
|
93
|
{% endfor %}
|
94
|
</ul>
|
95
|
{% endif %}
|
96
|
</div>
|
97
|
|
98
|
<div class="group">
|
99
|
<h2>
|
100
|
Maintenances Tools
|
101
|
</h2>
|
102
|
<form method="post">
|
103
|
<ul>
|
104
|
<li><button class="btn-link" formaction="{{ THEME_URL }}lib/rebuildAccessFiles.php" formmethod="post" >Rebuild Access Files</button></li>
|
105
|
<li><button class="btn-link" formaction="{{ THEME_URL }}lib/clearTranslateCache.php" formmethod="post">Clear Translate Cache</button></li>
|
106
|
<li><a class="btn-link" href="{{ WB_URL }}upgrade-script.php" target="_parent" >Upgrade WebsiteBaker</a></li>
|
107
|
</ul>
|
108
|
</form>
|
109
|
|
110
|
<div class="group">
|
111
|
<h2>
|
112
|
Datenbank-Server/Client
|
113
|
</h2>
|
114
|
<ul>
|
115
|
<li id="li_server_info">
|
116
|
Server: {{ server.host_info }}
|
117
|
</li>
|
118
|
<li id="li_server_version">
|
119
|
Server-Version: {{ getSqlServer }}
|
120
|
</li>
|
121
|
<li id="li_mysql_proto">
|
122
|
Protokoll-Version: {{ server.protocol_version }}
|
123
|
</li>
|
124
|
<li id="li_mysql_client_version">
|
125
|
Datenbank-Client Version: {{ client_info }}
|
126
|
</li>
|
127
|
<li id="li_mysql_client_encoding">
|
128
|
Datenbank-Client encoding: {{ client_encoding }}
|
129
|
</li>
|
130
|
</ul>
|
131
|
</div>
|
132
|
|
133
|
</div>
|
134
|
|
135
|
<script type="text/javascript">
|
136
|
<!--
|
137
|
$("button").click(function(event) {
|
138
|
// Prevent the actual sending
|
139
|
event.preventDefault();
|
140
|
// Specify the sending form and the metadata
|
141
|
var form = $(this); // This pointer $ (this) or $ ( 'form'), if the ID form exists in the HTML ;)
|
142
|
console.info(form);
|
143
|
var action = form.attr("formaction"), // attr () can either read the current contents of the specified attribute, or set a new value if a second parameter is given
|
144
|
method = form.attr("formmethod"),
|
145
|
data = form.serialize(); // Builds the data to a string after the pattern firstname = max & lastname = Müller & alter = 42. . .
|
146
|
sDataString = '?go';
|
147
|
// The actual AJAX call
|
148
|
$.ajax({
|
149
|
url : action,
|
150
|
type : method,
|
151
|
dataType: 'json',
|
152
|
data: sDataString,
|
153
|
success: function(json_respond) {
|
154
|
if(json_respond.success === true) {
|
155
|
// swal(json_respond.message, '', "success");
|
156
|
swal({
|
157
|
title: data,
|
158
|
text: '<h3>'+json_respond.message+'</h3>',
|
159
|
confirmButtonColor: "#3A6FB9",
|
160
|
animation: "slide-from-top",
|
161
|
closeOnConfirm: true,
|
162
|
closeOnCancel: false,
|
163
|
imageUrl: "{{ THEME_URL }}images/thumbs-up.jpg",
|
164
|
html: true
|
165
|
},
|
166
|
function(isConfirm){
|
167
|
// do nothing
|
168
|
});
|
169
|
} else {
|
170
|
swal(json_respond.message, '', "warning");
|
171
|
}
|
172
|
}
|
173
|
});
|
174
|
});
|
175
|
-->
|
176
|
</script>
|
177
|
</body>
|
178
|
|
179
|
</html>
|
180
|
<!-- END mainBlock -->
|