Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * HTML Head.
- */
- if (($result = $sqlite3->querySingle('SELECT MIN(date) AS date, l_total FROM channel_activity WHERE l_total = (SELECT MAX(l_total) FROM channel_activity)', true)) $
- $this->output('critical', basename(__FILE__).':'.__LINE__.', sqlite3 says: '.$sqlite3->lastErrorMsg());
- }
- $date_max = $result['date'];
- $l_max = $result['l_total'];
- $this->output = '<!DOCTYPE html>'."\n\n"
- . '<html>'."\n\n"
- . '<head>'."\n"
- . '<meta charset="utf-8">'."\n"
- . '<title>'.htmlspecialchars($this->channel).', seriously.</title>'."\n"
- . '<link rel="stylesheet" href="'.$this->stylesheet.'">'."\n"
- . '<style type="text/css">'."\n"
- . ' .act-year { width:'.(2 + (($this->datetime['years'] + ($this->estimate ? 1 : 0)) * 34)).'px }'."\n"
- . '</style>'."\n";
- /////////////////////////// google analytics
- $this->output .= @file_get_contents('analytics.txt');
- ///////////////////////////
- $this->output .= '</head>'."\n\n"
- . '<body><div id="container">'."\n"
- . '<div class="info">'.htmlspecialchars($this->channel).', seriously.<br><br>'
- . number_format($dayslogged).' day'.($dayslogged > 1 ? 's logged from '.date('M j, Y', strtotime($date_first)).' to '.date('M j, Y', strtotime($date_last))$
- . 'Logs contain '.number_format($this->l_total).' line'.($this->l_total > 1 ? 's' : '').' – an average of '.number_format($l_avg).' line'.($l_avg > 1$
- . 'Most active day was '.date('M j, Y', strtotime($date_max)).' with a total of '.number_format($l_max).' line'.($l_max > 1 ? 's' : '').' typed.'.($this->a$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement