Skip to content
Snippets Groups Projects
Commit c987dc9d authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

removed statistics debugging

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1003 44740490-163a-0410-bde0-09ae8108e29a
parent 0df58f6d
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,8 @@ class sspmod_statistics_LogParser { ...@@ -25,8 +25,8 @@ class sspmod_statistics_LogParser {
public function parseEpoch($line) { public function parseEpoch($line) {
$epoch = strtotime(substr($line, 0, $this->datelength)); $epoch = strtotime(substr($line, 0, $this->datelength));
echo 'debug ' . $line . "\n"; // echo 'debug ' . $line . "\n";
echo 'debug [' . substr($line, 0, $this->datelength) . '] => [' . $epoch . ']' . "\n"; // echo 'debug [' . substr($line, 0, $this->datelength) . '] => [' . $epoch . ']' . "\n";
return $epoch; return $epoch;
} }
......
...@@ -81,14 +81,20 @@ echo '<img src="' . htmlspecialchars($this->data['imgurl']) . '" />'; ...@@ -81,14 +81,20 @@ echo '<img src="' . htmlspecialchars($this->data['imgurl']) . '" />';
echo '<h3>Debug information</h3>'; // echo '<h3>Debug information</h3>';
echo '<input style="width: 80%" value="' . htmlspecialchars($this->data['imgurl']) . '" />'; // echo '<input style="width: 80%" value="' . htmlspecialchars($this->data['imgurl']) . '" />';
//
// echo '<table style="">';
// foreach ($this->data['debugdata'] AS $dd) {
// echo '<tr><td style="padding-right: 2em; border: 1px solid #ccc">' . $dd[0] . '</td><td style="padding-right: 2em; border: 1px solid #ccc">' . $dd[1] . '</td></tr>';
// }
// echo '</table>';
echo '<table style="">';
foreach ($this->data['debugdata'] AS $dd) {
echo '<tr><td style="padding-right: 2em; border: 1px solid #ccc">' . $dd[0] . '</td><td style="padding-right: 2em; border: 1px solid #ccc">' . $dd[1] . '</td></tr>';
}
echo '</table>';
// //
// if (count($this->data['sources']) === 0) { // if (count($this->data['sources']) === 0) {
// echo('<p>' . $this->t('{aggregator:dict:no_aggregators}') . '</p>'); // echo('<p>' . $this->t('{aggregator:dict:no_aggregators}') . '</p>');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment