Advertisement
Guest User

asdf-gasss

a guest
Aug 27th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.01 KB | None | 0 0
  1.  /**
  2.                  * HTML Head.
  3.                  */
  4.                 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)) $
  5.                         $this->output('critical', basename(__FILE__).':'.__LINE__.', sqlite3 says: '.$sqlite3->lastErrorMsg());
  6.                 }
  7.  
  8.                 $date_max = $result['date'];
  9.                 $l_max = $result['l_total'];
  10.                 $this->output = '<!DOCTYPE html>'."\n\n"
  11.                         . '<html>'."\n\n"
  12.                         . '<head>'."\n"
  13.                         . '<meta charset="utf-8">'."\n"
  14.                         . '<title>'.htmlspecialchars($this->channel).', seriously.</title>'."\n"
  15.                         . '<link rel="stylesheet" href="'.$this->stylesheet.'">'."\n"
  16.                         . '<style type="text/css">'."\n"
  17.                         . '  .act-year { width:'.(2 + (($this->datetime['years'] + ($this->estimate ? 1 : 0)) * 34)).'px }'."\n"
  18.                         . '</style>'."\n";
  19.  
  20.                          /////////////////////////// google analytics
  21.                 $this->output .= @file_get_contents('analytics.txt');
  22.                         ///////////////////////////
  23.  
  24.                 $this->output .= '</head>'."\n\n"
  25.                         . '<body><div id="container">'."\n"
  26.                         . '<div class="info">'.htmlspecialchars($this->channel).', seriously.<br><br>'
  27.                         . number_format($dayslogged).' day'.($dayslogged > 1 ? 's logged from '.date('M j, Y', strtotime($date_first)).' to '.date('M j, Y', strtotime($date_last))$
  28.                         . 'Logs contain '.number_format($this->l_total).' line'.($this->l_total > 1 ? 's' : '').' &ndash; an average of '.number_format($l_avg).' line'.($l_avg > 1$
  29.                         . '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