1 <script src=
"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
15 <!-- Content Wrapper. Contains page content -->
16 <div class=\"content-wrapper\" id=\"content-FX\">
17 <!-- Content Header (Page header) -->
18 <section class=\"content-header\">";
20 echo backend::getTitle(
"YaWK",
$lang[
'SYSTEM'].
$lang[
'INFO']);
21 echo
"<ol class=\"breadcrumb\">
22 <li><a href=\"index.php\" title=\"Dashboard\"><i class=\"fa fa-dashboard\"></i> Dashboard</a></li>
23 <li class=\"active\"><a href=\"index.php?page=yawk-stats\" title=\"Pages\"> Statistics</a></li>
27 <section class=\"content\">";
32 <div
class=
"col-md-8">
34 <div
class=
"box-header"><h3
class=
"box-title">Month</h3></div>
35 <div
class=
"box-body">
37 <h4>Server Variablen</h4>
39 <?php print_r($_SERVER); ?>
43 <h4>Session Variablen</h4>
45 <?php print_r($_SESSION); ?>
49 <h4>Gesetzte Cookies</h4>
51 <?php print_r($_COOKIE); ?>
55 <!-- <canvas
id=
"myChart"></canvas> -->
59 <div
class=
"col-md-4">
61 <div
class=
"box-header"><h3
class=
"box-title">Month</h3></div>
62 <div
class=
"box-body">
71 echo
"<h4>Browser Statistik </h4>Your browser: ".
"<b>".
$useragent[
'name'] .
" " .
$useragent[
'version'] .
" on " .$useragent[
'platform'] .
"</b><br><br>";
73 echo
"<h4>User Statistik</h4>";
74 echo
"Current: ".$_SERVER[
'REQUEST_URI'].
"<br>";
75 echo
"accept language: ".$_SERVER[
'HTTP_ACCEPT_LANGUAGE'].
"<br><br>";
77 echo
"<h4>Quellcode Statistik</h4>";
78 echo
"YaWK Version: ". settings::getSetting(
$db,
"yawkversion");
79 echo
" <small>";echo settings::getSettingDescription(
$db,
"yawkversion");echo
"</small>";
85 echo
"<br>YaWK ($FILE_PATH) umfasst insgesamt <b>$data[files]</b> $data[type] files mit exakt <b>$data[lines]</b> Zeilen $data[type] Code</p><br>";
87 echo
"<h4>Server Statistik</h4>";
88 if (sys::checkZlib() ===
true)
90 echo
"<p>...zlib found!</p>";
94 echo
"<p class=\"text-danger\">...zlib not found!</p>";
104 echo
"<h3>Project Summary</h3>";
105 echo
"<h4>PHP Files: </h4>";
108 echo $key.
" : ".
$value.
"<br>";
110 echo
"<h4>CSS Files: </h4>";
113 echo $key.
" : ".
$value.
"<br>";
115 echo
"<h4>JS Files: </h4>";
118 echo $key.
" : ".
$value.
"<br>";
120 echo
"Insgesamt zählt das Projekt: <b>$total</b> Zeilen Quellcode.";
131 var ctx = document.getElementById(
'myChart').getContext(
'2d');
132 var chart =
new Chart(ctx, {
138 labels: [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
"13",
"14",
"15",
139 "16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31"],
141 label:
"Hits this day",
142 borderColor:
'rgb(51, 122, 183)',
143 backgroundColor:
'rgb(51, 122, 183)',
144 data: [11, 10, 5, 2, 20, 30, 45, 16, 54, 34, 46, 67, 55, 46, 46, 47, 26, 11, 10, 5, 2, 20, 30,
145 45, 16, 64, 58, 46, 67, 55, 46]
print $lang['FILEMAN_UPLOAD']
Backend class serves a few useful functions for the admin backend.
Mysqli database class; returns db connection object.
The language class - support multilingual backend.
Settings class: get and set YaWK system settings.
The sys class - handles yawk's system core functions.