Lines Matching refs:month

105             $month = date('Y-m', $date);
127 $newvisitor = !isset($this->logdata[$month]['ip'][$parts[0]]);
129 $this->logdata[$month]['ip'][$parts[0]] = 1;
131 $this->logdata[$month]['ip'][$parts[0]]++;
137 if (!isset($this->logdata[$month][$type]['hour'])) {
138 $this->logdata[$month][$type]['hour'] = array_fill(0, 23, array());
141 $this->logdata[$month][$type]['all']['count'] =
142 isset($this->logdata[$month][$type]['all']['count']) ?
143 $this->logdata[$month][$type]['all']['count'] + 1 :
145 $this->logdata[$month][$type]['day'][$day]['count'] =
146 isset($this->logdata[$month][$type]['day'][$day]['count']) ?
147 $this->logdata[$month][$type]['day'][$day]['count'] + 1 :
149 $this->logdata[$month][$type]['hour'][$hour]['count'] =
150 isset($this->logdata[$month][$type]['hour'][$hour]['count']) ?
151 $this->logdata[$month][$type]['hour'][$hour]['count'] + 1 :
154 $this->logdata[$month][$type]['all']['bytes'] =
155 isset($this->logdata[$month][$type]['all']['bytes']) ?
156 $this->logdata[$month][$type]['all']['bytes'] + $size :
158 $this->logdata[$month][$type]['day'][$day]['bytes'] =
159 isset($this->logdata[$month][$type]['day'][$day]['bytes']) ?
160 $this->logdata[$month][$type]['day'][$day]['bytes'] + $size
162 $this->logdata[$month][$type]['hour'][$hour]['bytes'] =
163 isset($this->logdata[$month][$type]['hour'][$hour]['bytes']) ?
164 $this->logdata[$month][$type]['hour'][$hour]['bytes'] + $size :
168 $this->logdata[$month]['usertraffic'][$day][$user] =
169 isset($this->logdata[$month]['usertraffic'][$day][$user]) ?
170 $this->logdata[$month]['usertraffic'][$day][$user] + $size :
175 $this->logdata[$month][$type]['all']['visitor'] =
176 isset($this->logdata[$month][$type]['all']['visitor']) ?
177 $this->logdata[$month][$type]['all']['visitor'] + 1 :
179 $this->logdata[$month][$type]['day'][$day]['visitor'] =
180 isset($this->logdata[$month][$type]['day'][$day]['visitor']) ?
181 $this->logdata[$month][$type]['day'][$day]['visitor'] + 1 :
183 $this->logdata[$month][$type]['hour'][$hour]['visitor'] =
184 isset($this->logdata[$month][$type]['hour'][$hour]['visitor']) ?
185 $this->logdata[$month][$type]['hour'][$hour]['visitor'] + 1 :
193 $this->logdata[$month]['page_url'][$url] =
194 isset($this->logdata[$month]['page_url'][$url]) ?
195 $this->logdata[$month]['page_url'][$url] + 1 :
203 $this->logdata[$month]['referer']['count'] =
204 isset($this->logdata[$month]['referer']['count']) ?
205 $this->logdata[$month]['referer']['count'] + 1 :
207 $this->logdata[$month]['referer_url'][$referer] =
208 isset($this->logdata[$month]['referer_url'][$referer]) ?
209 $this->logdata[$month]['referer_url'][$referer] + 1 :
215 $this->logdata[$month]['entry'][$url] =
216 isset($this->logdata[$month]['entry'][$url]) ?
217 $this->logdata[$month]['entry'][$url] + 1 :
225 $this->logdata[$month]['useragent'][$ua] =
226 isset($this->logdata[$month]['useragent'][$ua]) ?
227 $this->logdata[$month]['useragent'][$ua] + 1 :
233 $this->logdata[$month]['hits']['all']['count'] =
234 isset($this->logdata[$month]['hits']['all']['count']) ?
235 $this->logdata[$month]['hits']['all']['count'] + 1 :
237 $this->logdata[$month]['hits']['day'][$day]['count'] =
238 isset($this->logdata[$month]['hits']['day'][$day]['count']) ?
239 $this->logdata[$month]['hits']['day'][$day]['count'] + 1 :
241 $this->logdata[$month]['hits']['hour'][$hour]['count'] =
242 isset($this->logdata[$month]['hits']['hour'][$hour]['count']) ?
243 $this->logdata[$month]['hits']['hour'][$hour]['count'] + 1 :
247 $this->logdata[$month]['status']['all'][$status] =
248 isset($this->logdata[$month]['status']['all'][$status]) ?
249 $this->logdata[$month]['status']['all'][$status] + 1 :
251 $this->logdata[$month]['status']['day'][$day][$status] =
252 isset($this->logdata[$month]['status']['day'][$day][$status]) ?
253 $this->logdata[$month]['status']['day'][$day][$status] + 1 :
255 $this->logdata[$month]['status']['hour'][$hour][$status] =
256 isset($this->logdata[$month]['status']['hour'][$hour][$status]) ?
257 $this->logdata[$month]['status']['hour'][$hour][$status] + 1 :
263 …if (isset($month) && isset($this->logdata['_lastmonth']) && $this->logdata['_lastmonth'] != $month
265 $this->logdata['_lastmonth'] = $month;
279 * @param string $month where to clean up
281 private function clean_month($month) argument
283 if (!$month) return;
286 if (is_array($this->logdata[$month][$type])) {
287 arsort($this->logdata[$month][$type]);
288 … $this->logdata[$month][$type] = array_slice($this->logdata[$month][$type], 0, $this->top_limit);
456 list($year, $month) = explode('-', $date);
457 $month = $month - 1;
458 if ($month < 1) {
460 $month = 12;
462 return sprintf("%d-%02d", $year, $month);