From aca2ce50f9f0ff2a7f3d222ab6c5e22028121a58 Mon Sep 17 00:00:00 2001
From: Nicolas Boisselier
Date: Sat, 2 Apr 2016 18:42:50 +0200
Subject: [PATCH] add files
---
awstatstotals/awstats.php | 71 +
awstatstotals/awstatstotals.php | 442 ++
betterawstats/bawstats.info | 5 +
betterawstats/bawstats.install | 38 +
betterawstats/bawstats.module | 167 +
betterawstats/config.php | 798 ++++
betterawstats/core/config.inc.php | 441 ++
betterawstats/core/config_default.inc.php | 639 +++
betterawstats/core/data.inc.php | 403 ++
betterawstats/core/display.inc.php | 1669 ++++++++
betterawstats/core/display_helpers.php | 786 ++++
betterawstats/core/extras.inc.php | 87 +
betterawstats/core/helpers.inc.php | 393 ++
betterawstats/core/index.html | 0
betterawstats/core/language.inc.php | 177 +
betterawstats/core/library.inc.php | 200 +
betterawstats/docs/FAQ.txt | 3 +
betterawstats/docs/LICENSE.TXT | 341 ++
betterawstats/docs/history.txt | 209 +
betterawstats/docs/index.html | 0
betterawstats/docs/install.drupal.txt | 142 +
betterawstats/docs/install.txt | 38 +
betterawstats/favicon.ico | Bin 0 -> 766 bytes
betterawstats/horizontal.css | 50 +
betterawstats/icons/bar.png | Bin 0 -> 193 bytes
betterawstats/icons/btn_empty.gif | Bin 0 -> 268 bytes
betterawstats/icons/circ-blue.png | Bin 0 -> 5320 bytes
betterawstats/icons/circ-green.png | Bin 0 -> 5773 bytes
betterawstats/icons/collapse.gif | Bin 0 -> 978 bytes
betterawstats/icons/empty.png | Bin 0 -> 138 bytes
betterawstats/icons/expand.gif | Bin 0 -> 281 bytes
betterawstats/icons/external.png | Bin 0 -> 165 bytes
betterawstats/icons/fulllist.png | Bin 0 -> 235 bytes
betterawstats/icons/fulllist_btn.png | Bin 0 -> 546 bytes
betterawstats/icons/help.png | Bin 0 -> 485 bytes
betterawstats/icons/index.html | 0
betterawstats/icons/screen.png | Bin 0 -> 91 bytes
betterawstats/icons/unknown.png | Bin 0 -> 233 bytes
betterawstats/icons/unknown_btn.png | Bin 0 -> 520 bytes
betterawstats/icons/versions.png | Bin 0 -> 237 bytes
betterawstats/icons/versions_btn.png | Bin 0 -> 569 bytes
betterawstats/icons/wmap.png | Bin 0 -> 23447 bytes
betterawstats/includes/bawstats.admin.inc | 272 ++
betterawstats/includes/bawstats.config.inc | 114 +
betterawstats/includes/bawstats.css | 143 +
betterawstats/includes/bawstats.stats.inc | 464 ++
betterawstats/includes/index.html | 0
betterawstats/index.php | 141 +
betterawstats/language/index.html | 0
betterawstats/language/lang_de.inc.php | 390 ++
betterawstats/language/lang_en.inc.php | 390 ++
betterawstats/language/lang_nl.inc.php | 392 ++
betterawstats/modules/index.html | 0
.../modules/render_htmlchart.inc.php | 247 ++
.../modules/render_htmlchart2.inc.php | 202 +
betterawstats/modules/render_jpgraph.inc.php | 142 +
betterawstats/modules/render_map.inc.php | 236 ++
betterawstats/modules/render_table.inc.php | 271 ++
betterawstats/scripts.js | 51 +
betterawstats/style.css | 461 ++
betterawstats/vertical.css | 14 +
favicon.ico | Bin 0 -> 8166 bytes
httpd.conf | 17 +
index.php | 95 +
jawstats-config.php | 56 +
jawstats/clsAWStats.php | 631 +++
jawstats/config.dist.php | 35 +
jawstats/config.php | 1 +
jawstats/index.php | 362 ++
jawstats/js/constants.js | 697 +++
jawstats/js/jawstats.js | 3759 +++++++++++++++++
jawstats/js/jquery.js | 19 +
jawstats/js/jquery.tablesorter.js | 876 ++++
jawstats/js/packed.js | 44 +
jawstats/js/swfobject.js | 233 +
jawstats/languages/de-de.js | 455 ++
jawstats/languages/fr.js | 311 ++
jawstats/languages/jp.js | 415 ++
jawstats/languages/pl.js | 356 ++
jawstats/languages/sv.js | 494 +++
jawstats/languages/translations.php | 362 ++
jawstats/readme.txt | 2 +
jawstats/swf/bar_graph.swf | Bin 0 -> 22280 bytes
jawstats/swf/line_graph.swf | Bin 0 -> 22516 bytes
jawstats/swf/pie.swf | Bin 0 -> 4265 bytes
jawstats/themes/default/browsers/camino.gif | Bin 0 -> 366 bytes
jawstats/themes/default/browsers/firefox.gif | Bin 0 -> 381 bytes
jawstats/themes/default/browsers/icab.gif | Bin 0 -> 379 bytes
.../themes/default/browsers/konqueror.gif | Bin 0 -> 397 bytes
jawstats/themes/default/browsers/libwww.gif | Bin 0 -> 43 bytes
.../themes/default/browsers/lotusnotes.gif | Bin 0 -> 399 bytes
jawstats/themes/default/browsers/mozilla.gif | Bin 0 -> 371 bytes
jawstats/themes/default/browsers/msie.gif | Bin 0 -> 390 bytes
jawstats/themes/default/browsers/netscape.gif | Bin 0 -> 377 bytes
jawstats/themes/default/browsers/omniweb.gif | Bin 0 -> 378 bytes
jawstats/themes/default/browsers/opera.gif | Bin 0 -> 379 bytes
.../themes/default/browsers/otherbrowsers.gif | Bin 0 -> 43 bytes
jawstats/themes/default/browsers/safari.gif | Bin 0 -> 386 bytes
jawstats/themes/default/browsers/unknown.gif | Bin 0 -> 43 bytes
jawstats/themes/default/browsers/wget.gif | Bin 0 -> 43 bytes
jawstats/themes/default/changemonth/first.gif | Bin 0 -> 117 bytes
.../themes/default/changemonth/first_off.gif | Bin 0 -> 117 bytes
.../themes/default/changemonth/first_on.gif | Bin 0 -> 117 bytes
jawstats/themes/default/changemonth/last.gif | Bin 0 -> 118 bytes
.../themes/default/changemonth/last_off.gif | Bin 0 -> 118 bytes
.../themes/default/changemonth/last_on.gif | Bin 0 -> 118 bytes
jawstats/themes/default/changemonth/next.gif | Bin 0 -> 114 bytes
.../themes/default/changemonth/next_off.gif | Bin 0 -> 114 bytes
.../themes/default/changemonth/next_on.gif | Bin 0 -> 114 bytes
jawstats/themes/default/changemonth/prev.gif | Bin 0 -> 115 bytes
.../themes/default/changemonth/prev_off.gif | Bin 0 -> 115 bytes
.../themes/default/changemonth/prev_on.gif | Bin 0 -> 115 bytes
jawstats/themes/default/flags/ad.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/ae.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/af.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/ag.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/ai.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/al.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/am.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/an.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/ao.gif | Bin 0 -> 244 bytes
jawstats/themes/default/flags/ar.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/as.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/at.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/au.gif | Bin 0 -> 378 bytes
jawstats/themes/default/flags/aw.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/ax.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/az.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/ba.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/bb.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/bd.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/be.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/bf.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/bg.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/bh.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/bi.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/bj.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/bm.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/bn.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/bo.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/br.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/bs.gif | Bin 0 -> 351 bytes
jawstats/themes/default/flags/bt.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/bv.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/bw.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/by.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/bz.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/ca.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/catalonia.gif | Bin 0 -> 238 bytes
jawstats/themes/default/flags/cc.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/cd.gif | Bin 0 -> 243 bytes
jawstats/themes/default/flags/cf.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/cg.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/ch.gif | Bin 0 -> 332 bytes
jawstats/themes/default/flags/ci.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/ck.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/cl.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/cm.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/cn.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/co.gif | Bin 0 -> 353 bytes
jawstats/themes/default/flags/cr.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/cs.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/cu.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/cv.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/cx.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/cy.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/cz.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/de.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/dj.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/dk.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/dm.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/do.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/dz.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/ec.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/ee.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/eg.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/eh.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/england.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/er.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/es.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/et.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/eu.gif | Bin 0 -> 171 bytes
jawstats/themes/default/flags/fam.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/fi.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/fj.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/fk.gif | Bin 0 -> 372 bytes
jawstats/themes/default/flags/fm.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/fo.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/fr.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/ga.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/gb.gif | Bin 0 -> 260 bytes
jawstats/themes/default/flags/gd.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/ge.gif | Bin 0 -> 379 bytes
jawstats/themes/default/flags/gf.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/gh.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/gi.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/gl.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/gm.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/gn.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/gp.gif | Bin 0 -> 357 bytes
jawstats/themes/default/flags/gq.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/gr.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/gs.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/gt.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/gu.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/gw.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/gy.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/hk.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/hm.gif | Bin 0 -> 378 bytes
jawstats/themes/default/flags/hn.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/hr.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/ht.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/hu.gif | Bin 0 -> 357 bytes
jawstats/themes/default/flags/id.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/ie.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/il.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/in.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/io.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/iq.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/ir.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/is.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/it.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/jm.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/jo.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/jp.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/ke.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/kg.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/kh.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/ki.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/km.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/kn.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/kp.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/kr.gif | Bin 0 -> 385 bytes
jawstats/themes/default/flags/kw.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/ky.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/kz.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/la.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/lb.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/lc.gif | Bin 0 -> 259 bytes
jawstats/themes/default/flags/li.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/lk.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/lr.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/ls.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/lt.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/lu.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/lv.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/ly.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/ma.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/mc.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/md.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/me.gif | Bin 0 -> 238 bytes
jawstats/themes/default/flags/mg.gif | Bin 0 -> 372 bytes
jawstats/themes/default/flags/mh.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/mk.gif | Bin 0 -> 382 bytes
jawstats/themes/default/flags/ml.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/mm.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/mn.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/mo.gif | Bin 0 -> 378 bytes
jawstats/themes/default/flags/mp.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/mq.gif | Bin 0 -> 379 bytes
jawstats/themes/default/flags/mr.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/ms.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/mt.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/mu.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/mv.gif | Bin 0 -> 372 bytes
jawstats/themes/default/flags/mw.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/mx.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/my.gif | Bin 0 -> 375 bytes
jawstats/themes/default/flags/mz.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/na.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/nc.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/ne.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/nf.gif | Bin 0 -> 375 bytes
jawstats/themes/default/flags/ng.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/ni.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/nl.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/no.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/np.gif | Bin 0 -> 302 bytes
jawstats/themes/default/flags/nr.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/nu.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/nz.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/om.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/pa.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/pe.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/pf.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/pg.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/ph.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/pk.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/pl.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/pm.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/pn.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/pr.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/ps.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/pt.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/pw.gif | Bin 0 -> 374 bytes
jawstats/themes/default/flags/py.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/qa.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/re.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/ro.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/rs.gif | Bin 0 -> 238 bytes
jawstats/themes/default/flags/ru.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/rw.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/sa.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/sb.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/sc.gif | Bin 0 -> 357 bytes
jawstats/themes/default/flags/scotland.gif | Bin 0 -> 378 bytes
jawstats/themes/default/flags/sd.gif | Bin 0 -> 355 bytes
jawstats/themes/default/flags/se.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/sg.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/sh.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/si.gif | Bin 0 -> 362 bytes
jawstats/themes/default/flags/sj.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/sk.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/sl.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/sm.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/sn.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/so.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/sr.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/st.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/sv.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/sy.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/sz.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/tc.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/td.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/tf.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/tg.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/th.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/tj.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/tk.gif | Bin 0 -> 372 bytes
jawstats/themes/default/flags/tl.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/tm.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/tn.gif | Bin 0 -> 375 bytes
jawstats/themes/default/flags/to.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/tr.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/trans.gif | Bin 0 -> 43 bytes
jawstats/themes/default/flags/tt.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/tv.gif | Bin 0 -> 361 bytes
jawstats/themes/default/flags/tw.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/tz.gif | Bin 0 -> 366 bytes
jawstats/themes/default/flags/ua.gif | Bin 0 -> 360 bytes
jawstats/themes/default/flags/ug.gif | Bin 0 -> 359 bytes
jawstats/themes/default/flags/uk.gif | Bin 0 -> 260 bytes
jawstats/themes/default/flags/um.gif | Bin 0 -> 371 bytes
jawstats/themes/default/flags/us.gif | Bin 0 -> 367 bytes
jawstats/themes/default/flags/uy.gif | Bin 0 -> 373 bytes
jawstats/themes/default/flags/uz.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/va.gif | Bin 0 -> 369 bytes
jawstats/themes/default/flags/vc.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/ve.gif | Bin 0 -> 364 bytes
jawstats/themes/default/flags/vg.gif | Bin 0 -> 368 bytes
jawstats/themes/default/flags/vi.gif | Bin 0 -> 376 bytes
jawstats/themes/default/flags/vn.gif | Bin 0 -> 370 bytes
jawstats/themes/default/flags/vu.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/wales.gif | Bin 0 -> 372 bytes
jawstats/themes/default/flags/wf.gif | Bin 0 -> 377 bytes
jawstats/themes/default/flags/ws.gif | Bin 0 -> 365 bytes
jawstats/themes/default/flags/ye.gif | Bin 0 -> 356 bytes
jawstats/themes/default/flags/yt.gif | Bin 0 -> 382 bytes
jawstats/themes/default/flags/za.gif | Bin 0 -> 363 bytes
jawstats/themes/default/flags/zm.gif | Bin 0 -> 358 bytes
jawstats/themes/default/flags/zw.gif | Bin 0 -> 365 bytes
.../themes/default/images/change_language.gif | Bin 0 -> 288 bytes
.../default/images/change_language_on.gif | Bin 0 -> 186 bytes
.../themes/default/images/external_link.png | Bin 0 -> 281 bytes
jawstats/themes/default/images/loading.gif | Bin 0 -> 847 bytes
jawstats/themes/default/images/tab_left.gif | Bin 0 -> 130 bytes
jawstats/themes/default/images/tab_right.gif | Bin 0 -> 424 bytes
.../themes/default/images/tablesorter_asc.gif | Bin 0 -> 54 bytes
.../themes/default/images/tablesorter_bg.gif | Bin 0 -> 64 bytes
.../default/images/tablesorter_desc.gif | Bin 0 -> 54 bytes
.../themes/default/images/taboff_left.gif | Bin 0 -> 131 bytes
.../themes/default/images/taboff_right.gif | Bin 0 -> 459 bytes
jawstats/themes/default/os/bsd.gif | Bin 0 -> 348 bytes
jawstats/themes/default/os/linux.gif | Bin 0 -> 371 bytes
jawstats/themes/default/os/mac.gif | Bin 0 -> 352 bytes
jawstats/themes/default/os/otheros.gif | Bin 0 -> 43 bytes
jawstats/themes/default/os/psp.gif | Bin 0 -> 377 bytes
jawstats/themes/default/os/sun.gif | Bin 0 -> 380 bytes
jawstats/themes/default/os/symbian.gif | Bin 0 -> 394 bytes
jawstats/themes/default/os/unknown.gif | Bin 0 -> 43 bytes
jawstats/themes/default/os/win.gif | Bin 0 -> 390 bytes
jawstats/themes/default/paging/first.gif | Bin 0 -> 191 bytes
jawstats/themes/default/paging/first_off.gif | Bin 0 -> 192 bytes
jawstats/themes/default/paging/first_on.gif | Bin 0 -> 191 bytes
jawstats/themes/default/paging/last.gif | Bin 0 -> 191 bytes
jawstats/themes/default/paging/last_off.gif | Bin 0 -> 192 bytes
jawstats/themes/default/paging/last_on.gif | Bin 0 -> 191 bytes
jawstats/themes/default/paging/next.gif | Bin 0 -> 190 bytes
jawstats/themes/default/paging/next_off.gif | Bin 0 -> 190 bytes
jawstats/themes/default/paging/next_on.gif | Bin 0 -> 190 bytes
jawstats/themes/default/paging/prev.gif | Bin 0 -> 188 bytes
jawstats/themes/default/paging/prev_off.gif | Bin 0 -> 188 bytes
jawstats/themes/default/paging/prev_on.gif | Bin 0 -> 188 bytes
.../themes/default/searchengines/alexa.gif | Bin 0 -> 175 bytes
.../themes/default/searchengines/alice.gif | Bin 0 -> 138 bytes
.../default/searchengines/alltheweb.gif | Bin 0 -> 159 bytes
.../default/searchengines/altavista.gif | Bin 0 -> 129 bytes
jawstats/themes/default/searchengines/aol.gif | Bin 0 -> 588 bytes
jawstats/themes/default/searchengines/ask.gif | Bin 0 -> 989 bytes
.../default/searchengines/avantfind.gif | Bin 0 -> 1080 bytes
.../themes/default/searchengines/blingo.gif | Bin 0 -> 130 bytes
.../themes/default/searchengines/bluewin.gif | Bin 0 -> 567 bytes
.../themes/default/searchengines/clusty.gif | Bin 0 -> 1033 bytes
.../default/searchengines/delicious.gif | Bin 0 -> 89 bytes
.../themes/default/searchengines/dogpile.gif | Bin 0 -> 370 bytes
.../default/searchengines/earthlink.gif | Bin 0 -> 246 bytes
.../themes/default/searchengines/eniro.gif | Bin 0 -> 130 bytes
.../themes/default/searchengines/excite.gif | Bin 0 -> 239 bytes
.../default/searchengines/goodsearch.gif | Bin 0 -> 343 bytes
.../themes/default/searchengines/google.gif | Bin 0 -> 570 bytes
.../default/searchengines/infospace.gif | Bin 0 -> 1045 bytes
.../themes/default/searchengines/kvasir.gif | Bin 0 -> 174 bytes
.../themes/default/searchengines/live.gif | Bin 0 -> 1024 bytes
.../themes/default/searchengines/lycos.gif | Bin 0 -> 132 bytes
.../themes/default/searchengines/mamma.gif | Bin 0 -> 383 bytes
jawstats/themes/default/searchengines/msn.gif | Bin 0 -> 151 bytes
.../default/searchengines/mywebsearch.gif | Bin 0 -> 290 bytes
.../themes/default/searchengines/sapo.gif | Bin 0 -> 582 bytes
.../themes/default/searchengines/search.gif | Bin 0 -> 161 bytes
.../themes/default/searchengines/seznam.gif | Bin 0 -> 539 bytes
.../default/searchengines/steadysearch.gif | Bin 0 -> 380 bytes
.../default/searchengines/stumbleupon.gif | Bin 0 -> 1062 bytes
.../themes/default/searchengines/tiscali.gif | Bin 0 -> 145 bytes
.../themes/default/searchengines/vivisimo.gif | Bin 0 -> 331 bytes
.../themes/default/searchengines/voila.gif | Bin 0 -> 333 bytes
.../default/searchengines/webcrawler.gif | Bin 0 -> 305 bytes
.../themes/default/searchengines/webde.gif | Bin 0 -> 138 bytes
.../themes/default/searchengines/yahoo.gif | Bin 0 -> 88 bytes
jawstats/themes/default/style.css | 160 +
jawstats/themes/default/style.js | 3 +
jawstats/xml_history.php | 115 +
jawstats/xml_pages.php | 55 +
jawstats/xml_stats.php | 74 +
jawstats/xml_update.php | 62 +
434 files changed, 20718 insertions(+)
create mode 100755 awstatstotals/awstats.php
create mode 100755 awstatstotals/awstatstotals.php
create mode 100644 betterawstats/bawstats.info
create mode 100644 betterawstats/bawstats.install
create mode 100644 betterawstats/bawstats.module
create mode 100644 betterawstats/config.php
create mode 100644 betterawstats/core/config.inc.php
create mode 100644 betterawstats/core/config_default.inc.php
create mode 100644 betterawstats/core/data.inc.php
create mode 100644 betterawstats/core/display.inc.php
create mode 100644 betterawstats/core/display_helpers.php
create mode 100644 betterawstats/core/extras.inc.php
create mode 100644 betterawstats/core/helpers.inc.php
create mode 100644 betterawstats/core/index.html
create mode 100644 betterawstats/core/language.inc.php
create mode 100644 betterawstats/core/library.inc.php
create mode 100644 betterawstats/docs/FAQ.txt
create mode 100644 betterawstats/docs/LICENSE.TXT
create mode 100644 betterawstats/docs/history.txt
create mode 100644 betterawstats/docs/index.html
create mode 100644 betterawstats/docs/install.drupal.txt
create mode 100644 betterawstats/docs/install.txt
create mode 100644 betterawstats/favicon.ico
create mode 100644 betterawstats/horizontal.css
create mode 100644 betterawstats/icons/bar.png
create mode 100644 betterawstats/icons/btn_empty.gif
create mode 100644 betterawstats/icons/circ-blue.png
create mode 100644 betterawstats/icons/circ-green.png
create mode 100644 betterawstats/icons/collapse.gif
create mode 100644 betterawstats/icons/empty.png
create mode 100644 betterawstats/icons/expand.gif
create mode 100644 betterawstats/icons/external.png
create mode 100644 betterawstats/icons/fulllist.png
create mode 100644 betterawstats/icons/fulllist_btn.png
create mode 100644 betterawstats/icons/help.png
create mode 100644 betterawstats/icons/index.html
create mode 100644 betterawstats/icons/screen.png
create mode 100644 betterawstats/icons/unknown.png
create mode 100644 betterawstats/icons/unknown_btn.png
create mode 100644 betterawstats/icons/versions.png
create mode 100644 betterawstats/icons/versions_btn.png
create mode 100644 betterawstats/icons/wmap.png
create mode 100644 betterawstats/includes/bawstats.admin.inc
create mode 100644 betterawstats/includes/bawstats.config.inc
create mode 100644 betterawstats/includes/bawstats.css
create mode 100644 betterawstats/includes/bawstats.stats.inc
create mode 100644 betterawstats/includes/index.html
create mode 100644 betterawstats/index.php
create mode 100644 betterawstats/language/index.html
create mode 100644 betterawstats/language/lang_de.inc.php
create mode 100644 betterawstats/language/lang_en.inc.php
create mode 100644 betterawstats/language/lang_nl.inc.php
create mode 100644 betterawstats/modules/index.html
create mode 100644 betterawstats/modules/render_htmlchart.inc.php
create mode 100644 betterawstats/modules/render_htmlchart2.inc.php
create mode 100644 betterawstats/modules/render_jpgraph.inc.php
create mode 100644 betterawstats/modules/render_map.inc.php
create mode 100644 betterawstats/modules/render_table.inc.php
create mode 100644 betterawstats/scripts.js
create mode 100644 betterawstats/style.css
create mode 100644 betterawstats/vertical.css
create mode 100644 favicon.ico
create mode 100644 httpd.conf
create mode 100644 index.php
create mode 100755 jawstats-config.php
create mode 100755 jawstats/clsAWStats.php
create mode 100755 jawstats/config.dist.php
create mode 120000 jawstats/config.php
create mode 100755 jawstats/index.php
create mode 100755 jawstats/js/constants.js
create mode 100755 jawstats/js/jawstats.js
create mode 100755 jawstats/js/jquery.js
create mode 100755 jawstats/js/jquery.tablesorter.js
create mode 100755 jawstats/js/packed.js
create mode 100755 jawstats/js/swfobject.js
create mode 100755 jawstats/languages/de-de.js
create mode 100755 jawstats/languages/fr.js
create mode 100755 jawstats/languages/jp.js
create mode 100755 jawstats/languages/pl.js
create mode 100755 jawstats/languages/sv.js
create mode 100755 jawstats/languages/translations.php
create mode 100755 jawstats/readme.txt
create mode 100755 jawstats/swf/bar_graph.swf
create mode 100755 jawstats/swf/line_graph.swf
create mode 100755 jawstats/swf/pie.swf
create mode 100755 jawstats/themes/default/browsers/camino.gif
create mode 100755 jawstats/themes/default/browsers/firefox.gif
create mode 100755 jawstats/themes/default/browsers/icab.gif
create mode 100755 jawstats/themes/default/browsers/konqueror.gif
create mode 100755 jawstats/themes/default/browsers/libwww.gif
create mode 100755 jawstats/themes/default/browsers/lotusnotes.gif
create mode 100755 jawstats/themes/default/browsers/mozilla.gif
create mode 100755 jawstats/themes/default/browsers/msie.gif
create mode 100755 jawstats/themes/default/browsers/netscape.gif
create mode 100755 jawstats/themes/default/browsers/omniweb.gif
create mode 100755 jawstats/themes/default/browsers/opera.gif
create mode 100755 jawstats/themes/default/browsers/otherbrowsers.gif
create mode 100755 jawstats/themes/default/browsers/safari.gif
create mode 100755 jawstats/themes/default/browsers/unknown.gif
create mode 100755 jawstats/themes/default/browsers/wget.gif
create mode 100755 jawstats/themes/default/changemonth/first.gif
create mode 100755 jawstats/themes/default/changemonth/first_off.gif
create mode 100755 jawstats/themes/default/changemonth/first_on.gif
create mode 100755 jawstats/themes/default/changemonth/last.gif
create mode 100755 jawstats/themes/default/changemonth/last_off.gif
create mode 100755 jawstats/themes/default/changemonth/last_on.gif
create mode 100755 jawstats/themes/default/changemonth/next.gif
create mode 100755 jawstats/themes/default/changemonth/next_off.gif
create mode 100755 jawstats/themes/default/changemonth/next_on.gif
create mode 100755 jawstats/themes/default/changemonth/prev.gif
create mode 100755 jawstats/themes/default/changemonth/prev_off.gif
create mode 100755 jawstats/themes/default/changemonth/prev_on.gif
create mode 100755 jawstats/themes/default/flags/ad.gif
create mode 100755 jawstats/themes/default/flags/ae.gif
create mode 100755 jawstats/themes/default/flags/af.gif
create mode 100755 jawstats/themes/default/flags/ag.gif
create mode 100755 jawstats/themes/default/flags/ai.gif
create mode 100755 jawstats/themes/default/flags/al.gif
create mode 100755 jawstats/themes/default/flags/am.gif
create mode 100755 jawstats/themes/default/flags/an.gif
create mode 100755 jawstats/themes/default/flags/ao.gif
create mode 100755 jawstats/themes/default/flags/ar.gif
create mode 100755 jawstats/themes/default/flags/as.gif
create mode 100755 jawstats/themes/default/flags/at.gif
create mode 100755 jawstats/themes/default/flags/au.gif
create mode 100755 jawstats/themes/default/flags/aw.gif
create mode 100755 jawstats/themes/default/flags/ax.gif
create mode 100755 jawstats/themes/default/flags/az.gif
create mode 100755 jawstats/themes/default/flags/ba.gif
create mode 100755 jawstats/themes/default/flags/bb.gif
create mode 100755 jawstats/themes/default/flags/bd.gif
create mode 100755 jawstats/themes/default/flags/be.gif
create mode 100755 jawstats/themes/default/flags/bf.gif
create mode 100755 jawstats/themes/default/flags/bg.gif
create mode 100755 jawstats/themes/default/flags/bh.gif
create mode 100755 jawstats/themes/default/flags/bi.gif
create mode 100755 jawstats/themes/default/flags/bj.gif
create mode 100755 jawstats/themes/default/flags/bm.gif
create mode 100755 jawstats/themes/default/flags/bn.gif
create mode 100755 jawstats/themes/default/flags/bo.gif
create mode 100755 jawstats/themes/default/flags/br.gif
create mode 100755 jawstats/themes/default/flags/bs.gif
create mode 100755 jawstats/themes/default/flags/bt.gif
create mode 100755 jawstats/themes/default/flags/bv.gif
create mode 100755 jawstats/themes/default/flags/bw.gif
create mode 100755 jawstats/themes/default/flags/by.gif
create mode 100755 jawstats/themes/default/flags/bz.gif
create mode 100755 jawstats/themes/default/flags/ca.gif
create mode 100755 jawstats/themes/default/flags/catalonia.gif
create mode 100755 jawstats/themes/default/flags/cc.gif
create mode 100755 jawstats/themes/default/flags/cd.gif
create mode 100755 jawstats/themes/default/flags/cf.gif
create mode 100755 jawstats/themes/default/flags/cg.gif
create mode 100755 jawstats/themes/default/flags/ch.gif
create mode 100755 jawstats/themes/default/flags/ci.gif
create mode 100755 jawstats/themes/default/flags/ck.gif
create mode 100755 jawstats/themes/default/flags/cl.gif
create mode 100755 jawstats/themes/default/flags/cm.gif
create mode 100755 jawstats/themes/default/flags/cn.gif
create mode 100755 jawstats/themes/default/flags/co.gif
create mode 100755 jawstats/themes/default/flags/cr.gif
create mode 100755 jawstats/themes/default/flags/cs.gif
create mode 100755 jawstats/themes/default/flags/cu.gif
create mode 100755 jawstats/themes/default/flags/cv.gif
create mode 100755 jawstats/themes/default/flags/cx.gif
create mode 100755 jawstats/themes/default/flags/cy.gif
create mode 100755 jawstats/themes/default/flags/cz.gif
create mode 100755 jawstats/themes/default/flags/de.gif
create mode 100755 jawstats/themes/default/flags/dj.gif
create mode 100755 jawstats/themes/default/flags/dk.gif
create mode 100755 jawstats/themes/default/flags/dm.gif
create mode 100755 jawstats/themes/default/flags/do.gif
create mode 100755 jawstats/themes/default/flags/dz.gif
create mode 100755 jawstats/themes/default/flags/ec.gif
create mode 100755 jawstats/themes/default/flags/ee.gif
create mode 100755 jawstats/themes/default/flags/eg.gif
create mode 100755 jawstats/themes/default/flags/eh.gif
create mode 100755 jawstats/themes/default/flags/england.gif
create mode 100755 jawstats/themes/default/flags/er.gif
create mode 100755 jawstats/themes/default/flags/es.gif
create mode 100755 jawstats/themes/default/flags/et.gif
create mode 100755 jawstats/themes/default/flags/eu.gif
create mode 100755 jawstats/themes/default/flags/fam.gif
create mode 100755 jawstats/themes/default/flags/fi.gif
create mode 100755 jawstats/themes/default/flags/fj.gif
create mode 100755 jawstats/themes/default/flags/fk.gif
create mode 100755 jawstats/themes/default/flags/fm.gif
create mode 100755 jawstats/themes/default/flags/fo.gif
create mode 100755 jawstats/themes/default/flags/fr.gif
create mode 100755 jawstats/themes/default/flags/ga.gif
create mode 100755 jawstats/themes/default/flags/gb.gif
create mode 100755 jawstats/themes/default/flags/gd.gif
create mode 100755 jawstats/themes/default/flags/ge.gif
create mode 100755 jawstats/themes/default/flags/gf.gif
create mode 100755 jawstats/themes/default/flags/gh.gif
create mode 100755 jawstats/themes/default/flags/gi.gif
create mode 100755 jawstats/themes/default/flags/gl.gif
create mode 100755 jawstats/themes/default/flags/gm.gif
create mode 100755 jawstats/themes/default/flags/gn.gif
create mode 100755 jawstats/themes/default/flags/gp.gif
create mode 100755 jawstats/themes/default/flags/gq.gif
create mode 100755 jawstats/themes/default/flags/gr.gif
create mode 100755 jawstats/themes/default/flags/gs.gif
create mode 100755 jawstats/themes/default/flags/gt.gif
create mode 100755 jawstats/themes/default/flags/gu.gif
create mode 100755 jawstats/themes/default/flags/gw.gif
create mode 100755 jawstats/themes/default/flags/gy.gif
create mode 100755 jawstats/themes/default/flags/hk.gif
create mode 100755 jawstats/themes/default/flags/hm.gif
create mode 100755 jawstats/themes/default/flags/hn.gif
create mode 100755 jawstats/themes/default/flags/hr.gif
create mode 100755 jawstats/themes/default/flags/ht.gif
create mode 100755 jawstats/themes/default/flags/hu.gif
create mode 100755 jawstats/themes/default/flags/id.gif
create mode 100755 jawstats/themes/default/flags/ie.gif
create mode 100755 jawstats/themes/default/flags/il.gif
create mode 100755 jawstats/themes/default/flags/in.gif
create mode 100755 jawstats/themes/default/flags/io.gif
create mode 100755 jawstats/themes/default/flags/iq.gif
create mode 100755 jawstats/themes/default/flags/ir.gif
create mode 100755 jawstats/themes/default/flags/is.gif
create mode 100755 jawstats/themes/default/flags/it.gif
create mode 100755 jawstats/themes/default/flags/jm.gif
create mode 100755 jawstats/themes/default/flags/jo.gif
create mode 100755 jawstats/themes/default/flags/jp.gif
create mode 100755 jawstats/themes/default/flags/ke.gif
create mode 100755 jawstats/themes/default/flags/kg.gif
create mode 100755 jawstats/themes/default/flags/kh.gif
create mode 100755 jawstats/themes/default/flags/ki.gif
create mode 100755 jawstats/themes/default/flags/km.gif
create mode 100755 jawstats/themes/default/flags/kn.gif
create mode 100755 jawstats/themes/default/flags/kp.gif
create mode 100755 jawstats/themes/default/flags/kr.gif
create mode 100755 jawstats/themes/default/flags/kw.gif
create mode 100755 jawstats/themes/default/flags/ky.gif
create mode 100755 jawstats/themes/default/flags/kz.gif
create mode 100755 jawstats/themes/default/flags/la.gif
create mode 100755 jawstats/themes/default/flags/lb.gif
create mode 100755 jawstats/themes/default/flags/lc.gif
create mode 100755 jawstats/themes/default/flags/li.gif
create mode 100755 jawstats/themes/default/flags/lk.gif
create mode 100755 jawstats/themes/default/flags/lr.gif
create mode 100755 jawstats/themes/default/flags/ls.gif
create mode 100755 jawstats/themes/default/flags/lt.gif
create mode 100755 jawstats/themes/default/flags/lu.gif
create mode 100755 jawstats/themes/default/flags/lv.gif
create mode 100755 jawstats/themes/default/flags/ly.gif
create mode 100755 jawstats/themes/default/flags/ma.gif
create mode 100755 jawstats/themes/default/flags/mc.gif
create mode 100755 jawstats/themes/default/flags/md.gif
create mode 100755 jawstats/themes/default/flags/me.gif
create mode 100755 jawstats/themes/default/flags/mg.gif
create mode 100755 jawstats/themes/default/flags/mh.gif
create mode 100755 jawstats/themes/default/flags/mk.gif
create mode 100755 jawstats/themes/default/flags/ml.gif
create mode 100755 jawstats/themes/default/flags/mm.gif
create mode 100755 jawstats/themes/default/flags/mn.gif
create mode 100755 jawstats/themes/default/flags/mo.gif
create mode 100755 jawstats/themes/default/flags/mp.gif
create mode 100755 jawstats/themes/default/flags/mq.gif
create mode 100755 jawstats/themes/default/flags/mr.gif
create mode 100755 jawstats/themes/default/flags/ms.gif
create mode 100755 jawstats/themes/default/flags/mt.gif
create mode 100755 jawstats/themes/default/flags/mu.gif
create mode 100755 jawstats/themes/default/flags/mv.gif
create mode 100755 jawstats/themes/default/flags/mw.gif
create mode 100755 jawstats/themes/default/flags/mx.gif
create mode 100755 jawstats/themes/default/flags/my.gif
create mode 100755 jawstats/themes/default/flags/mz.gif
create mode 100755 jawstats/themes/default/flags/na.gif
create mode 100755 jawstats/themes/default/flags/nc.gif
create mode 100755 jawstats/themes/default/flags/ne.gif
create mode 100755 jawstats/themes/default/flags/nf.gif
create mode 100755 jawstats/themes/default/flags/ng.gif
create mode 100755 jawstats/themes/default/flags/ni.gif
create mode 100755 jawstats/themes/default/flags/nl.gif
create mode 100755 jawstats/themes/default/flags/no.gif
create mode 100755 jawstats/themes/default/flags/np.gif
create mode 100755 jawstats/themes/default/flags/nr.gif
create mode 100755 jawstats/themes/default/flags/nu.gif
create mode 100755 jawstats/themes/default/flags/nz.gif
create mode 100755 jawstats/themes/default/flags/om.gif
create mode 100755 jawstats/themes/default/flags/pa.gif
create mode 100755 jawstats/themes/default/flags/pe.gif
create mode 100755 jawstats/themes/default/flags/pf.gif
create mode 100755 jawstats/themes/default/flags/pg.gif
create mode 100755 jawstats/themes/default/flags/ph.gif
create mode 100755 jawstats/themes/default/flags/pk.gif
create mode 100755 jawstats/themes/default/flags/pl.gif
create mode 100755 jawstats/themes/default/flags/pm.gif
create mode 100755 jawstats/themes/default/flags/pn.gif
create mode 100755 jawstats/themes/default/flags/pr.gif
create mode 100755 jawstats/themes/default/flags/ps.gif
create mode 100755 jawstats/themes/default/flags/pt.gif
create mode 100755 jawstats/themes/default/flags/pw.gif
create mode 100755 jawstats/themes/default/flags/py.gif
create mode 100755 jawstats/themes/default/flags/qa.gif
create mode 100755 jawstats/themes/default/flags/re.gif
create mode 100755 jawstats/themes/default/flags/ro.gif
create mode 100755 jawstats/themes/default/flags/rs.gif
create mode 100755 jawstats/themes/default/flags/ru.gif
create mode 100755 jawstats/themes/default/flags/rw.gif
create mode 100755 jawstats/themes/default/flags/sa.gif
create mode 100755 jawstats/themes/default/flags/sb.gif
create mode 100755 jawstats/themes/default/flags/sc.gif
create mode 100755 jawstats/themes/default/flags/scotland.gif
create mode 100755 jawstats/themes/default/flags/sd.gif
create mode 100755 jawstats/themes/default/flags/se.gif
create mode 100755 jawstats/themes/default/flags/sg.gif
create mode 100755 jawstats/themes/default/flags/sh.gif
create mode 100755 jawstats/themes/default/flags/si.gif
create mode 100755 jawstats/themes/default/flags/sj.gif
create mode 100755 jawstats/themes/default/flags/sk.gif
create mode 100755 jawstats/themes/default/flags/sl.gif
create mode 100755 jawstats/themes/default/flags/sm.gif
create mode 100755 jawstats/themes/default/flags/sn.gif
create mode 100755 jawstats/themes/default/flags/so.gif
create mode 100755 jawstats/themes/default/flags/sr.gif
create mode 100755 jawstats/themes/default/flags/st.gif
create mode 100755 jawstats/themes/default/flags/sv.gif
create mode 100755 jawstats/themes/default/flags/sy.gif
create mode 100755 jawstats/themes/default/flags/sz.gif
create mode 100755 jawstats/themes/default/flags/tc.gif
create mode 100755 jawstats/themes/default/flags/td.gif
create mode 100755 jawstats/themes/default/flags/tf.gif
create mode 100755 jawstats/themes/default/flags/tg.gif
create mode 100755 jawstats/themes/default/flags/th.gif
create mode 100755 jawstats/themes/default/flags/tj.gif
create mode 100755 jawstats/themes/default/flags/tk.gif
create mode 100755 jawstats/themes/default/flags/tl.gif
create mode 100755 jawstats/themes/default/flags/tm.gif
create mode 100755 jawstats/themes/default/flags/tn.gif
create mode 100755 jawstats/themes/default/flags/to.gif
create mode 100755 jawstats/themes/default/flags/tr.gif
create mode 100755 jawstats/themes/default/flags/trans.gif
create mode 100755 jawstats/themes/default/flags/tt.gif
create mode 100755 jawstats/themes/default/flags/tv.gif
create mode 100755 jawstats/themes/default/flags/tw.gif
create mode 100755 jawstats/themes/default/flags/tz.gif
create mode 100755 jawstats/themes/default/flags/ua.gif
create mode 100755 jawstats/themes/default/flags/ug.gif
create mode 100755 jawstats/themes/default/flags/uk.gif
create mode 100755 jawstats/themes/default/flags/um.gif
create mode 100755 jawstats/themes/default/flags/us.gif
create mode 100755 jawstats/themes/default/flags/uy.gif
create mode 100755 jawstats/themes/default/flags/uz.gif
create mode 100755 jawstats/themes/default/flags/va.gif
create mode 100755 jawstats/themes/default/flags/vc.gif
create mode 100755 jawstats/themes/default/flags/ve.gif
create mode 100755 jawstats/themes/default/flags/vg.gif
create mode 100755 jawstats/themes/default/flags/vi.gif
create mode 100755 jawstats/themes/default/flags/vn.gif
create mode 100755 jawstats/themes/default/flags/vu.gif
create mode 100755 jawstats/themes/default/flags/wales.gif
create mode 100755 jawstats/themes/default/flags/wf.gif
create mode 100755 jawstats/themes/default/flags/ws.gif
create mode 100755 jawstats/themes/default/flags/ye.gif
create mode 100755 jawstats/themes/default/flags/yt.gif
create mode 100755 jawstats/themes/default/flags/za.gif
create mode 100755 jawstats/themes/default/flags/zm.gif
create mode 100755 jawstats/themes/default/flags/zw.gif
create mode 100755 jawstats/themes/default/images/change_language.gif
create mode 100755 jawstats/themes/default/images/change_language_on.gif
create mode 100755 jawstats/themes/default/images/external_link.png
create mode 100755 jawstats/themes/default/images/loading.gif
create mode 100755 jawstats/themes/default/images/tab_left.gif
create mode 100755 jawstats/themes/default/images/tab_right.gif
create mode 100755 jawstats/themes/default/images/tablesorter_asc.gif
create mode 100755 jawstats/themes/default/images/tablesorter_bg.gif
create mode 100755 jawstats/themes/default/images/tablesorter_desc.gif
create mode 100755 jawstats/themes/default/images/taboff_left.gif
create mode 100755 jawstats/themes/default/images/taboff_right.gif
create mode 100755 jawstats/themes/default/os/bsd.gif
create mode 100755 jawstats/themes/default/os/linux.gif
create mode 100755 jawstats/themes/default/os/mac.gif
create mode 100755 jawstats/themes/default/os/otheros.gif
create mode 100755 jawstats/themes/default/os/psp.gif
create mode 100755 jawstats/themes/default/os/sun.gif
create mode 100755 jawstats/themes/default/os/symbian.gif
create mode 100755 jawstats/themes/default/os/unknown.gif
create mode 100755 jawstats/themes/default/os/win.gif
create mode 100755 jawstats/themes/default/paging/first.gif
create mode 100755 jawstats/themes/default/paging/first_off.gif
create mode 100755 jawstats/themes/default/paging/first_on.gif
create mode 100755 jawstats/themes/default/paging/last.gif
create mode 100755 jawstats/themes/default/paging/last_off.gif
create mode 100755 jawstats/themes/default/paging/last_on.gif
create mode 100755 jawstats/themes/default/paging/next.gif
create mode 100755 jawstats/themes/default/paging/next_off.gif
create mode 100755 jawstats/themes/default/paging/next_on.gif
create mode 100755 jawstats/themes/default/paging/prev.gif
create mode 100755 jawstats/themes/default/paging/prev_off.gif
create mode 100755 jawstats/themes/default/paging/prev_on.gif
create mode 100755 jawstats/themes/default/searchengines/alexa.gif
create mode 100755 jawstats/themes/default/searchengines/alice.gif
create mode 100755 jawstats/themes/default/searchengines/alltheweb.gif
create mode 100755 jawstats/themes/default/searchengines/altavista.gif
create mode 100755 jawstats/themes/default/searchengines/aol.gif
create mode 100755 jawstats/themes/default/searchengines/ask.gif
create mode 100755 jawstats/themes/default/searchengines/avantfind.gif
create mode 100755 jawstats/themes/default/searchengines/blingo.gif
create mode 100755 jawstats/themes/default/searchengines/bluewin.gif
create mode 100755 jawstats/themes/default/searchengines/clusty.gif
create mode 100755 jawstats/themes/default/searchengines/delicious.gif
create mode 100755 jawstats/themes/default/searchengines/dogpile.gif
create mode 100755 jawstats/themes/default/searchengines/earthlink.gif
create mode 100755 jawstats/themes/default/searchengines/eniro.gif
create mode 100755 jawstats/themes/default/searchengines/excite.gif
create mode 100755 jawstats/themes/default/searchengines/goodsearch.gif
create mode 100755 jawstats/themes/default/searchengines/google.gif
create mode 100755 jawstats/themes/default/searchengines/infospace.gif
create mode 100755 jawstats/themes/default/searchengines/kvasir.gif
create mode 100755 jawstats/themes/default/searchengines/live.gif
create mode 100755 jawstats/themes/default/searchengines/lycos.gif
create mode 100755 jawstats/themes/default/searchengines/mamma.gif
create mode 100755 jawstats/themes/default/searchengines/msn.gif
create mode 100755 jawstats/themes/default/searchengines/mywebsearch.gif
create mode 100755 jawstats/themes/default/searchengines/sapo.gif
create mode 100755 jawstats/themes/default/searchengines/search.gif
create mode 100755 jawstats/themes/default/searchengines/seznam.gif
create mode 100755 jawstats/themes/default/searchengines/steadysearch.gif
create mode 100755 jawstats/themes/default/searchengines/stumbleupon.gif
create mode 100755 jawstats/themes/default/searchengines/tiscali.gif
create mode 100755 jawstats/themes/default/searchengines/vivisimo.gif
create mode 100755 jawstats/themes/default/searchengines/voila.gif
create mode 100755 jawstats/themes/default/searchengines/webcrawler.gif
create mode 100755 jawstats/themes/default/searchengines/webde.gif
create mode 100755 jawstats/themes/default/searchengines/yahoo.gif
create mode 100755 jawstats/themes/default/style.css
create mode 100755 jawstats/themes/default/style.js
create mode 100755 jawstats/xml_history.php
create mode 100755 jawstats/xml_pages.php
create mode 100755 jawstats/xml_stats.php
create mode 100755 jawstats/xml_update.php
diff --git a/awstatstotals/awstats.php b/awstatstotals/awstats.php
new file mode 100755
index 0000000..f9dd72a
--- /dev/null
+++ b/awstatstotals/awstats.php
@@ -0,0 +1,71 @@
+
+ * @copyright 2004-2007 Telartis BV
+ * @version 1.1
+ *
+ * @link http://www.telartis.nl/xcms/awstats
+ *
+ * Changelog:
+ * 1.0 initial version
+ * 1.1 changed month param pattern
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/**
+ * The location of the AWStats script.
+ */
+$AWStatsFile = '/usr/lib/cgi-bin/awstats.pl';
+
+
+function addparam($name, $pattern, $allways = false) {
+ $result = $allways ? ' -'.$name : '';
+ if (isset($_GET[$name])) {
+ if (preg_match($pattern, $_GET[$name])) {
+ $result .= ($allways ? '' : ' -'.$name).'='.$_GET[$name];
+ }
+ }
+ return $result;
+}
+
+
+$param = addparam('config', '/^[-\.a-z0-9]+$/i');
+if (!$param) die("config parameter not set!");
+
+$param .= addparam('output', '/^[a-z0-9]+$/', true);
+$param .= addparam('year', '/^\d{4}$/');
+$param .= addparam('month', '/(\d{1,2}|all)/');
+$param .= addparam('lang', '/^[a-z]{2}$/');
+
+$pattern = '/^[^;:,`| ]+$/';
+$param .= addparam('hostfilter', $pattern);
+$param .= addparam('hostfilterex', $pattern);
+$param .= addparam('urlfilter', $pattern);
+$param .= addparam('urlfilterex', $pattern);
+$param .= addparam('refererpagesfilter', $pattern);
+$param .= addparam('refererpagesfilterex', $pattern);
+$param .= addparam('filterrawlog', $pattern);
+
+
+passthru('perl '.$AWStatsFile.$param);
+
+?>
diff --git a/awstatstotals/awstatstotals.php b/awstatstotals/awstatstotals.php
new file mode 100755
index 0000000..78c1ffa
--- /dev/null
+++ b/awstatstotals/awstatstotals.php
@@ -0,0 +1,442 @@
+
+ * @copyright 2004-2009 Telartis BV
+ * @version 1.17
+ *
+ * @link http://www.telartis.nl/xcms/awstats
+ *
+ * Changelog:
+ * 1.0 initial version
+ * 1.1 use awstats language files to set your language
+ * 1.2 register_globals setting can be off
+ * 1.3 display yearly totals and last entry (Marco Gruber)
+ * 1.4 use english messages when no language files found
+ * 1.5 error_reporting setting can be E_ALL
+ * 1.6 fixed incorrect unique visitors in year view (ConteZero)
+ * 1.7 changed number and byte format
+ * 1.8 added not viewed traffic, changed layout, improved reading of AWStats database
+ * 1.9 define all variables (Michael Dorn)
+ * 1.10 added browser language detection (based on work by Andreas Diem)
+ * 1.11 fixed notice errors when no data file present (Marco Gruber)
+ * 1.12 recursive reading of awstats data directory
+ * 1.13 fixed trailing slashes problem with directories
+ * 1.14 fixed errors when some dirs or files were not found (Reported by Sam Evans)
+ * 1.15 added security checks for input parameters (Elliot Kendall)
+ * 1.16 fixed month parameter 'all' to show stats in awstats
+ * 1.17 fixed small problem with open_basedir (Fred Peeterman)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+
+/*******************************************************
+ * SETUP SECTION
+ *******************************************************/
+
+/**
+ * Set this value to the directory where AWStats
+ * saves its database and working files into.
+ */
+$DirData = '/var/lib/awstats';
+
+/**
+ * The URL of the AWStats script.
+ */
+$AWStatsURL = '/cgi-bin/awstats.pl';
+#$AWStatsURL = 'awstats.php';
+
+/**
+ * Set your language.
+ * Possible value:
+ * Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca,
+ * Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Czech=cz, Danish=dk,
+ * Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,
+ * French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,
+ * Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=kr,
+ * Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,
+ * Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,
+ * Serbian=sr, Slovak=sk, Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua,
+ * Welsh=wlk.
+ * First available language accepted by browser=auto
+ */
+$Lang = 'auto';
+
+/**
+ * Set the location of language files.
+ */
+$DirLang = '/usr/share/awstats/lang';
+
+/**
+ * How to display not viewed traffic
+ * Possible value: ignore, columns, sum
+ */
+$NotViewed = 'sum';
+
+/**
+ * How to sort.
+ * Possible value:
+ * config, unique, visits, pages, hits, bandwidth,
+ * not_viewed_pages, not_viewed_hits, not_viewed_bandwidth
+ */
+$sort_default = 'bandwidth';
+
+/**
+ * Set number format.
+ */
+$dec_point = '.';
+$thousands_sep = ' ';
+
+/**
+ * Config names to filter. Shows all if empty array.
+ */
+$FilterConfigs = array();
+
+/*
+To read website configs from database, do something like:
+$sql = 'SELECT config FROM users WHERE (user=...)';
+$rs = mysql_query($sql);
+if ($rs) while ($row = mysql_fetch_array($rs))
+ $FilterConfigs[] = $row['config'];
+*/
+
+/*******************************************************
+ * PROGRAM SECTION
+ *******************************************************/
+
+if (isset($_GET['sort'])) $sort = preg_replace('/[^_a-z]/', '', $_GET['sort']); else $sort = $sort_default;
+if (isset($_GET['year'])) $year = (int)$_GET['year']; else $year = date('Y');
+if (isset($_GET['month'])) $month = (int)$_GET['month']; else $month = date('n');
+if (!$month) $month = 'all';
+
+function get_config($file) {
+ $r = '';
+ if (preg_match('/awstats\d{6}\.(.+)\.txt/', $file, $match)) $r = $match[1];
+ return $r;
+}
+
+function read_history($file) {
+ $config = get_config($file);
+
+ $s = '';
+ $f = fopen($file, 'r');
+ while (!feof($f)) {
+ $line = fgets($f, 4096);
+ $s .= $line;
+ if (trim($line) == 'END_TIME') break;
+ }
+ fclose($f);
+
+ $visits_total = 0; $unique_total = 0; $pages_total = 0; $hits_total = 0; $bandwidth_total = 0;
+ $not_viewed_pages_total = 0; $not_viewed_hits_total = 0; $not_viewed_bandwidth_total = 0;
+
+ if (preg_match('/TotalVisits (\d+)/', $s, $match)) $visits_total = (int)$match[1];
+ if (preg_match('/TotalUnique (\d+)/', $s, $match)) $unique_total = (int)$match[1];
+
+ if (preg_match('/\nBEGIN_TIME \d+\n(.*)\nEND_TIME\n/s', $s, $match)) {
+ foreach (explode("\n", $match[1]) as $row) {
+ list($hour, $pages, $hits, $bandwidth,
+ $not_viewed_pages, $not_viewed_hits, $not_viewed_bandwidth) = explode(' ', $row);
+ $pages_total += $pages; $hits_total += $hits; $bandwidth_total += $bandwidth;
+ $not_viewed_pages_total += $not_viewed_pages;
+ $not_viewed_hits_total += $not_viewed_hits;
+ $not_viewed_bandwidth_total += $not_viewed_bandwidth;
+ }
+ }
+
+ return array('config'=>$config, 'visits'=>$visits_total, 'unique'=>$unique_total,
+ 'pages'=>$pages_total, 'hits'=>$hits_total, 'bandwidth'=>$bandwidth_total,
+ 'not_viewed_pages'=>$not_viewed_pages_total,
+ 'not_viewed_hits'=>$not_viewed_hits_total,
+ 'not_viewed_bandwidth'=>$not_viewed_bandwidth_total);
+}
+
+function parse_dir($dir) {
+ // add a trailing slash if it doesn't exist:
+ if (substr($dir, -1) != '/') $dir .= '/';
+ $files = array();
+ if ($dh = @opendir($dir)) {
+ while (($file = readdir($dh)) !== false) {
+ if (!preg_match('/^\./s', $file)) {
+ if (is_dir($dir.$file)) {
+ $newdir = $dir.$file.'/';
+ chdir($newdir);
+ $files = array_merge($files, parse_dir($newdir));
+ } else {
+ $files[] = $dir.$file;
+ }
+ }
+ }
+ chdir($dir);
+ }
+ return $files;
+}
+
+if (!is_dir($DirData)) die("Could not open directory $DirData");
+
+$dirfiles = parse_dir($DirData);
+
+$files = array();
+$config = array();
+if ($month == 'all') $pat = '\d{2}'; else $pat = substr('0'.$month, -2);
+$pat = '/awstats'.$pat.$year.'\.(.+)\.txt$/';
+foreach ($dirfiles as $file) if (preg_match($pat, $file, $match)) {
+ $config = $match[1];
+ if (!$FilterConfigs || in_array($config, $FilterConfigs)) {
+ $configs[] = $config;
+ $files[] = $file;
+ }
+}
+
+$visits_total = 0; $unique_total = 0; $pages_total = 0; $hits_total = 0; $bandwidth_total = 0;
+$not_viewed_pages_total = 0; $not_viewed_hits_total = 0; $not_viewed_bandwidth_total = 0;
+
+$rows = array();
+if ($files) {
+ array_multisort($configs, $files);
+ $row_prev = array();
+ for ($i = 0, $cnt = count($files); $i <= $cnt; $i++) {
+ $row = array();
+ if ($i < $cnt) {
+ $row = read_history($files[$i]);
+
+ if ($NotViewed == 'sum') {
+ $row['pages'] += $row['not_viewed_pages'];
+ $row['hits'] += $row['not_viewed_hits'];
+ $row['bandwidth'] += $row['not_viewed_bandwidth'];
+ }
+
+ $visits_total += $row['visits'];
+ $unique_total += $row['unique'];
+ $pages_total += $row['pages'];
+ $hits_total += $row['hits'];
+ $bandwidth_total += $row['bandwidth'];
+
+ if ($NotViewed == 'columns') {
+ $not_viewed_pages_total += $row['not_viewed_pages'];
+ $not_viewed_hits_total += $row['not_viewed_hits'];
+ $not_viewed_bandwidth_total += $row['not_viewed_bandwidth'];
+ }
+ }
+ if ( isset($row['config']) && isset($row_prev['config']) &&
+ ($row['config'] == $row_prev['config']) ) {
+
+ $row['visits'] += $row_prev['visits'];
+ $row['unique'] += $row_prev['unique'];
+ $row['pages'] += $row_prev['pages'];
+ $row['hits'] += $row_prev['hits'];
+ $row['bandwidth'] += $row_prev['bandwidth'];
+
+ if ($NotViewed == 'columns') {
+ $row['not_viewed_pages'] += $row_prev['not_viewed_pages'];
+ $row['not_viewed_hits'] += $row_prev['not_viewed_hits'];
+ $row['not_viewed_bandwidth'] += $row_prev['not_viewed_bandwidth'];
+ }
+
+ } elseif ($i > 0) $rows[] = $row_prev;
+ $row_prev = $row;
+ }
+}
+
+function multisort(&$array, $key) {
+ $cmp = create_function('$a, $b',
+ 'if ($a["'.$key.'"] == $b["'.$key.'"]) return 0;'.
+ 'return ($a["'.$key.'"] > $b["'.$key.'"]) ? -1 : 1;');
+ usort($array, $cmp);
+}
+
+if ($sort == 'config') sort($rows); else multisort($rows, $sort);
+
+function detect_language($DirLang) {
+ $Lang = '';
+ foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $Lang) {
+ $Lang = strtolower(trim(substr($Lang, 0, 2)));
+ if (is_dir("$DirLang/awstats-$Lang.txt")) break; else $Lang = '';
+ }
+ if (!$Lang) $Lang = 'en';
+ return $Lang;
+}
+
+function read_language_data($file) {
+ $r = array();
+ if (file_exists($file)) $lines = file($file);
+ if ($lines) foreach ($lines as $line)
+ if (preg_match('/^message(\d+)=(.*)$/', $line, $match))
+ $r[$match[1]] = $match[2];
+ return $r;
+}
+
+// remove trailing slash if there is one:
+if (substr($DirLang, -1) == '/') $DirLang = substr($DirLang, 0, strlen($DirLang) - 1);
+
+if ($Lang == 'auto') $Lang = detect_language($DirLang);
+
+$message = read_language_data("$DirLang/awstats-$Lang.txt");
+
+if (!$message) {
+ $message[7] = 'Statistics for';
+ $message[10] = 'Number of visits';
+ $message[11] = 'Unique visitors';
+ $message[56] = 'Pages';
+ $message[57] = 'Hits';
+ $message[60] = 'Jan';
+ $message[61] = 'Feb';
+ $message[62] = 'Mar';
+ $message[63] = 'Apr';
+ $message[64] = 'May';
+ $message[65] = 'Jun';
+ $message[66] = 'Jul';
+ $message[67] = 'Aug';
+ $message[68] = 'Sep';
+ $message[69] = 'Oct';
+ $message[70] = 'Nov';
+ $message[71] = 'Dec';
+ $message[75] = 'Bandwidth';
+ $message[102] = 'Total';
+ $message[115] = 'OK';
+ $message[133] = 'Reported period';
+ $message[160] = 'Viewed traffic';
+ $message[161] = 'Not viewed traffic';
+}
+
+function byte_format($number, $decimals = 2) {
+ global $dec_point, $thousands_sep;
+ // kilo, mega, giga, tera, peta, exa, zetta, yotta
+ $prefix_arr = array('','k','M','G','T','P','E','Z','Y');
+ $i = 0;
+ if ($number == 0) $result = 0; else {
+ $value = round($number, $decimals);
+ while ($value > 1024) { $value /= 1024; $i++; }
+ $result = number_format($value, $decimals, $dec_point, $thousands_sep);
+ }
+ $result .= ' '.$prefix_arr[$i].'B'; if (!$i) $result .= 'ytes';
+ return $result;
+}
+
+function num_format($number, $decimals = 0) {
+ global $dec_point, $thousands_sep;
+ return number_format($number, $decimals, $dec_point, $thousands_sep);
+}
+
+
+/*******************************************************
+ * HTML SECTION
+ *******************************************************/
+
+?>
+
+
+
+AWStats Totals
+
+
+
+
+
+
+
+
+
+|
+ |
+ |
+ |
+
+|
+ |
+ |
+ |
+ |
+ |
+
+ |
+ |
+ |
+ | '.$row['config'].' | '.num_format($row['unique']).
+ ' | '.num_format($row['visits']).' | '.num_format($row['pages']).
+ ' | '.num_format($row['hits']).' | '.byte_format($row['bandwidth']);
+ if ($NotViewed == 'columns') echo ' | '.num_format($row['not_viewed_pages']).
+ ' | '.num_format($row['not_viewed_hits']).
+ ' | '.byte_format($row['not_viewed_bandwidth']);
+ echo "\n";
+}
+echo ' |
| Total | '.num_format($unique_total).
+ ' | '.num_format($visits_total).' | '.num_format($pages_total).
+ ' | '.num_format($hits_total).' | '.byte_format($bandwidth_total);
+if ($NotViewed == 'columns') echo ' | '.num_format($not_viewed_pages_total).
+ ' | '.num_format($not_viewed_hits_total).
+ ' | '.byte_format($not_viewed_bandwidth_total);
+echo "\n";
+?>
+ |
+
+
AWStats Totals 1.17 - © 2004-2009 Telartis BV
+
+
+
diff --git a/betterawstats/bawstats.info b/betterawstats/bawstats.info
new file mode 100644
index 0000000..1dba338
--- /dev/null
+++ b/betterawstats/bawstats.info
@@ -0,0 +1,5 @@
+; $Id $
+name = BAWstats
+description = Based on betterAWstats and the AWstats web statistics tools.
+version = "6.x-1.1-beta"
+core = 6.x
diff --git a/betterawstats/bawstats.install b/betterawstats/bawstats.install
new file mode 100644
index 0000000..9239733
--- /dev/null
+++ b/betterawstats/bawstats.install
@@ -0,0 +1,38 @@
+
\ No newline at end of file
diff --git a/betterawstats/bawstats.module b/betterawstats/bawstats.module
new file mode 100644
index 0000000..5ccb24a
--- /dev/null
+++ b/betterawstats/bawstats.module
@@ -0,0 +1,167 @@
+'. t('BAWstats is a drupal interface to "BetterAWstats" by Oliver Spiesshofer. If you run AWstats or have AWstats data, BAWstats can provide a drupal view of the statistics data. The data itself does not need to be in web accessible space, although it must be readable by php (i.e. within the openbasedir setting).') .'
';
+ $output .= ''. t('By default this module only shows statistics for a single site. Which site this is, is not configurable within the module. This is done to prevent administrative users on one site viewing another sites data (the AWstats data directory can hold multiple site data). BAWstats tries to guess the AWstats site name from the drupal site name, but if the guess is wrong it can be set within the settings.php file using the $conf[\'bawstats_defsite\'] variable. For example, $conf[\'bawstats_defsite\'] = \'equivocation.org\'; will generate site statistics from the AWStats data files for the site equivocation.org.') .'
';
+ $output .= ''. t('It is possible to view all the site statistics found in the AWstats data directory. By setting $conf[\'bawstats_admin_access\'] = 1; in the settings.php file, access to the statistics for all the sites available is given.') .'
';
+ $output .= ''. t('As this module only provides a drupal interface into the non-drupal "Better AWstats" code, limited configuration is available through drupal. Fine configuration of the statistics views may be achieved by editing the Better AWstats config.php file.') .'
';
+ break;
+ case 'admin/settings/bawstats':
+ $output .= ''. t('BAWstats is based on "BetterAWstats" by Oliver Spiesshofer. This module displays AWstats data within drupal. The location of the AWstats data and the location of auxiliary AWstats libraries can be configured below.') .'
';
+ $output .= ''. t('Note, it may be considered important that the AWstats data and library locations reside outside of web file space. This would remove direct access to the data with the only access through AWstats itself (if it is running as a CGI) and/or through this drupal module.') .'
';
+ $output .= ''. t('Once the AWstats locations are correctly configured, site statistics can be viewed under the admin reports') . ' (/admin/reports/bawstats).
';
+
+ }
+ return $output;
+}
+
+/**
+ * Implementation of hook_perm().
+ */
+function bawstats_perm() {
+ return array('view site statistics','statistics admin');
+}
+
+/**
+ * Implementation of hook_init()
+ * This hook is run at the beginning of the page request. When this hook
+ * is called, all modules are already loaded in memory. Here used to
+ * setup CSS
+ */
+
+function bawstats_init() {
+ drupal_add_css(drupal_get_path('module', 'bawstats') .'/includes/bawstats.css');
+}
+
+/**
+ * Implementation of hook_menu().
+ */
+
+function bawstats_menu() {
+ $items = array();
+ $includes_path = drupal_get_path('module', 'bawstats') . '/includes';
+
+ $items['admin/settings/bawstats'] = array(
+ 'title' => 'BAW Statistics',
+ 'description' => 'Configure site statistics.',
+ 'page callback' => 'drupal_get_form',
+ 'page arguments' => array('bawstats_admin_settings'),
+ 'file' => 'bawstats.admin.inc',
+ 'file path' => $includes_path,
+ 'access arguments' => array('statistics admin'),
+ );
+
+ $items['admin/reports/bawstats'] = array(
+ 'title' => 'View Site Statistics',
+ 'description' => t('View AWStats web statistics.'),
+ 'page callback' => 'bawstats_view_theform',
+ 'page arguments' => array(),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => 1,
+ 'access arguments' => array('view site statistics'),
+ );
+
+ $items['admin/reports/bawstats/all/%/%'] = array(
+ 'title' => 'View Site Statistics',
+ 'type' => MENU_CALLBACK,
+ 'page callback' => 'bawstats_view_theform',
+ 'page arguments' => array(4,5),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => 1,
+ 'access arguments' => array('view site statistics'),
+ );
+
+ // create the sub group menues if requested
+ if (variable_get('bawstats_page_view',0)>0) {
+ $statgroups = variable_get('bawstats_groups',array());
+ if (count($statgroups)>0) {
+ $pri = 1;
+ foreach ($statgroups as $group => $group_details) {
+ if ($pri==1) {
+ $items['admin/reports/bawstats/'.$group.'/%/%'] = array(
+ 'title' => 'View Site Statistics',
+ 'type' => MENU_CALLBACK,
+ 'page callback' => 'bawstats_view_theform',
+ 'page arguments' => array(4,5,$group),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => $pri,
+ 'access arguments' => array('view site statistics')
+ );
+ } else {
+ $items['admin/reports/bawstats/'.$group] = array(
+ 'title' => $group_details,
+ 'type' => MENU_NORMAL_ITEM,
+ 'page callback' => 'bawstats_set_section',
+ 'page arguments' => array($group),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => $pri,
+ 'access arguments' => array('view site statistics')
+ );
+ $items['admin/reports/bawstats/'.$group.'/%/%'] = array(
+ 'title' => $group_details,
+ 'type' => MENU_CALLBACK,
+ 'page callback' => 'bawstats_view_theform',
+ 'page arguments' => array(4,5,$group),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => $pri,
+ 'access arguments' => array('view site statistics')
+ );
+ }
+ $pri += 1;
+ }
+ }
+ }
+
+ // the "other" more specific things we don't have menus for!
+ $items['admin/reports/bawstats/details/%/%/%'] = array(
+ 'title' => $group_details,
+ 'type' => MENU_CALLBACK,
+ 'page callback' => 'bawstats_view_theform',
+ 'page arguments' => array(5,6,4),
+ 'file' => 'bawstats.stats.inc',
+ 'file path' => $includes_path,
+ 'weight' => $pri,
+ 'access arguments' => array('view site statistics')
+ );
+
+ return $items;
+}
diff --git a/betterawstats/config.php b/betterawstats/config.php
new file mode 100644
index 0000000..e0a1cda
--- /dev/null
+++ b/betterawstats/config.php
@@ -0,0 +1,798 @@
+
+ * copyright 2004-2006 Telartis
+ * version 1.13 (http://www.telartis.nl/xcms/awstats)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+// this file can't be used on its own - do not change these 3 lines
+if (strpos ($_SERVER['PHP_SELF'], 'config.php') !== false) {
+ die ('This file can not be used on its own!');
+}
+// ATTENTION: BetterAWstats has an online config editor that you can use
+// instead of editing this file here. The link is on the bottom of the menu!
+// To use it, set $BAW_CONF['online_config']= true; and make sure that the
+// file is writable by the server, AND protectthe BetterAWStats installation
+// by a .htaccess file!
+
+//*********************************************************/
+//* SITE SETTINGS
+//*********************************************************/
+ini_set("memory_limit","1G");
+set_time_limit(60*3);
+$BAW_MES['e'] = 'iso-8859-1';
+// NAME: Script URL
+// INFO: The url of BetterAWstats' directory, No trailing slash
+// DEFAULT: 'http://awstats.local'
+$BAW_CONF['site_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/betterawstats';
+
+// NAME: Script path
+// INFO: The path of BetterAWstats, No trailing slash
+// DEFAULT: '/path/to/betterawstats/'
+$BAW_CONF['site_path'] = $_SERVER['DOCUMENT_ROOT'].'/betterawstats';
+
+// NAME: Path to AWStats Data
+// INFO: Set this value to the directory where AWStats saves its database
+// files into. ATTENTION: If you read those files on windows but have
+// them created on linux or the other way round, make sure you transfer
+// them 'BINARY'. Otherwise they cannot be read properly. No trailing
+// slash
+// DEFAULT: '/path/to/betterawstats/awstats/data'
+$BAW_CONF['path_data'] = '/var/lib/awstats';
+
+// NAME: Path to AWStats Libraries
+// INFO: Set this value to the directory where AWStats saves its library
+// files into. No trailing slash
+// DEFAULT: '/path/to/betterawstats/awstats/lib'
+$BAW_CONF['path_lib'] = '/usr/share/awstats/lib';
+
+// NAME: Path to AWStats Language files
+// INFO: Set this value to the directory where AWStats saves its language
+// files into. No trailing slash
+// DEFAULT: '/path/to/betterawstats/awstats/lang'
+$BAW_CONF['path_lang'] = '/usr/share/awstats/lang';
+
+// NAME: URL to AWStats Icons
+// INFO: The url to the awstats icons, should include the whole http://...,
+// no trailing slash.
+// DEFAULT: 'http://awstats.local/awstats/icon'
+#$BAW_CONF['icons_url'] = $BAW_CONF['site_url'].'/icons';
+$BAW_CONF['icons_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/icon';
+
+// NAME: Web Configuration
+// INFO: Enable the online configuration editor? WARNING: Your config.php has
+// to be writable in order to enable this. This is a BAD idea to use
+// unless the folder is password-protected with a .htaccess file or
+// similar.
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['online_config'] = false;
+
+// NAME: Change configuration password?
+// INFO: This password is needed to access the online configuration. It has
+// to be longer than 5 letters.
+// DEFAULT: ''
+$BAW_CONF['online_config_password'] = '';
+
+// NAME: Limit to server?
+// INFO: Set this to a simgle server that you want to limit or "false" to
+// show all. The server name should be the one used for awstats.
+// DEFAULT: 'show_all'
+// POSSIBLE VALUES: 'sitename.org', 'show_all'
+$BAW_CONF['limit_server'] = 'show_all';
+
+
+
+//*********************************************************/
+//* LAYOUT SETTINGS
+//*********************************************************/
+
+// NAME: Layout Type
+// INFO: Display page in vertical or horizontal layout?
+// DEFAULT: 'vertical'
+// POSSIBLE VALUES: 'vertical', 'horizontal'
+$BAW_CONF['layout_type'] = 'vertical';
+
+// NAME: Language
+// INFO: Set your language. Set to "auto" to autodetect from browser
+// DEFAULT: 'auto'
+// POSSIBLE VALUES: 'auto', 'al', 'ba', 'bg', 'ca', 'tw', 'cn', 'cz', 'dk', 'nl',
+// 'en', 'et', 'eu', 'fi', 'fr', 'gl', 'de', 'gr', 'he', 'hu',
+// 'is', 'id', 'it', 'jp', 'kr', 'lv', 'nn', 'nb', 'pl', 'pt',
+// 'br', 'ro', 'ru', 'sr', 'sk', 'es', 'se', 'tr', 'ua', 'wlk'
+$BAW_CONF['lang_setting'] = 'auto';
+
+// NAME: Decimal Point
+// INFO: Decimal Point Character (99.9)
+// DEFAULT: '.'
+$BAW_CONF['dec_point'] = '.';
+
+// NAME: Thousands separator
+// INFO: Thousand Digit separator (1'000)
+// DEFAULT: "'"
+$BAW_CONF['tho_point'] = "'";
+
+// NAME: Date format (2007-31-12)
+// INFO: How should a date look like? For formatting, please consult
+// http://php.net/manual/en/function.date.php
+// DEFAULT: 'Y-M-d'
+$BAW_CONF['date_format'] = 'Y-M-d';
+
+// NAME: Date & Time format (2007-31-12 23:59)
+// INFO: How should a date & time look like? For formatting,please consult
+// http://php.net/manual/en/function.date.php
+// DEFAULT: 'Y-M-d H:i'
+$BAW_CONF['date_time_format'] = 'Y-M-d - H:i';
+
+// NAME: Percentage decimals
+// INFO: How many decimals for percentage value? (99.9%)
+// DEFAULT: '1'
+$BAW_CONF['percent_decimals'] = '1';
+
+// NAME: Hide Empty data
+// INFO: Completely hide graphs with zero entries? (The menu will also be
+// hidden)
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['hideempty'] = true;
+
+// NAME: Submit dropdowns on change
+// INFO: If enabled, the site/date dropdowns do not have an "OK"-button. The
+// page is refreshed as soon as you choose a new value. Not recommended
+// for large sites.
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['auto_submit_form'] = true;
+
+
+
+//*********************************************************/
+//* TABLE SETTINGS
+//*********************************************************/
+
+// NAME: First day of the week
+// INFO: Should Sunday be the first day of the week or monday?
+// DEFAULT: '1'
+// POSSIBLE VALUES: '1', '2'
+$BAW_CONF['firstdayofweek'] = '1';
+
+// NAME: Field Length
+// INFO: What is the max. text length of table fields? (Applies only to
+// links)
+// DEFAULT: '65'
+$BAW_CONF['field_length'] = '50';
+
+// NAME: Max. Table Lines
+// INFO: What is the max. no. of lines a table can have? Set to "false" to
+// disable. If a table reaches this number of lines, The rest is
+// summarized into one line. This also applies to the "full list" view
+// of a table
+// DEFAULT: '10000'
+$BAW_CONF['maxlines'] = '10000';
+
+
+
+//*********************************************************/
+//* CHART SETTINGS
+//*********************************************************/
+
+// NAME: Max scale for Visitors
+// INFO: The maximum value of the chosen option will define the maximum
+// height of the Visitors bars in the chart
+// DEFAULT: 'layout_visits'
+// POSSIBLE VALUES: 'layout_visitos', 'layout_visits', 'layout_pages',
+// 'layout_hits', 'layout_bytes'
+$BAW_CONF['max_visitors'] = 'layout_visits';
+
+// NAME: Max scale for Visits
+// INFO: The maximum value of the chosen option will define the maximum
+// height of the Visits bars in the chart
+// DEFAULT: 'layout_visits'
+// POSSIBLE VALUES: 'layout_visits', 'layout_pages', 'layout_hits', 'layout_bytes'
+$BAW_CONF['max_visits'] = 'layout_visits';
+
+// NAME: Max scale for Pages
+// INFO: The maximum value of the chosen option will define the maximum
+// height of the Pages bars in the chart
+// DEFAULT: 'layout_pages'
+// POSSIBLE VALUES: 'layout_pages', 'layout_hits', 'layout_bytes'
+$BAW_CONF['max_pages'] = 'layout_pages';
+
+// NAME: Max scale for Hits
+// INFO: The maximum value of the chosen option will define the maximum
+// height of the Hits bars in the chart
+// DEFAULT: 'layout_hits'
+// POSSIBLE VALUES: 'layout_hits', 'layout_bytes'
+$BAW_CONF['max_hits'] = 'layout_hits';
+
+// NAME: Max no of chart rows
+// INFO: When displaying the charts with the full lists, How many items can
+// there be displayed? The rest will sum up into "Others". This is done
+// to prevent too wide charts
+// DEFAULT: '50'
+$BAW_CONF['max_chart_items'] = '30';
+
+// NAME: Chart Titles?
+// INFO: If enabled, it will show a title on top of each chart.
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['chart_titles'] = false;
+
+
+
+//*********************************************************/
+//* JPGRAPH SETTINGS
+//*********************************************************/
+
+// NAME: Enable JPgraph?
+// INFO: To use JPGraph, you have to download it from
+// http://www.aditus.nu/jpgraph/jpdownload.php.
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['use_jpgraph'] = false;
+
+// NAME: Path to JPGraph
+// INFO: Where is your JPGraph installation? (The folder where jpgraph.php is
+// in. No trailing slash)
+// DEFAULT: '/path/to/betterawstats/jpgraph/src'
+$BAW_CONF['jpgraph_path'] = '/home/www/izideal/share/jpgraph/src';
+
+
+
+//*********************************************************/
+//* ADVANCED SETTINGS
+//*********************************************************/
+
+// NAME: XHTML/ HTML
+// INFO: Do you want output in HTML or XHTML?
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['xhtml'] = false;
+
+// NAME: Debug
+// INFO: Do you want to show debug-output (VERY detailed)?
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['debug'] = false;
+
+// NAME: Parser Stats
+// INFO: Do you want to show log file parsing data below the stats summary?
+// DEFAULT: true
+// POSSIBLE VALUES: true, false
+$BAW_CONF['show_parser_stats'] = true;
+
+// NAME: Module settings
+// INFO: Are you using BetterAWstats as a module for another software?
+// (Currently only Drupal is supported)
+// DEFAULT: 'none'
+// POSSIBLE VALUES: 'none', 'drupal'
+$BAW_CONF['module'] = 'none';
+
+
+
+//*********************************************************/
+//* DISPLAY
+//*********************************************************/
+
+// NAME: Summary
+// INFO: General Overview of key figures and dates
+$BAW_CONF_DIS['overview'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '1', // Item Sequence
+);
+
+// NAME: Monthly history
+// INFO: Monthly data
+$BAW_CONF_DIS['months'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '2', // Item Sequence
+ 'top_x' => '24', // Show how many entries?
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+);
+
+// NAME: Days of month
+// INFO: Daily data
+$BAW_CONF_DIS['days'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '3', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+);
+
+// NAME: Days of week (Averages)
+// INFO: Weekdays
+$BAW_CONF_DIS['weekdays'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '4', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+);
+
+// NAME: Hours (Averages)
+// INFO: Hours of the day
+$BAW_CONF_DIS['hours'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '5', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '1'=Hours, '2'=Pages, '3'=Hits, '4'=Bandwidth
+ 'sort_dir' => SORT_ASC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Visitors domains/countries
+// INFO: Domains of visitors
+$BAW_CONF_DIS['domains'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '6', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+ 'map' => true, // Show Map Image?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '0', // Sort for which column? Possible values are:
+ // 'key'=Visitors domains/countries, '0'=Pages, '1'=Hits, '2'=Bandwidth
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Hosts
+// INFO: IP addresses of visitors
+$BAW_CONF_DIS['visitors'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '7', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Hosts, '1'=Pages, '2'=Hits, '3'=Bandwidth, '4'=Ratio(Hits/Pages),
+ // '5'=Last visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'assumebot' => '1', // Hits/pages minimum ratio to assume normal user?
+);
+
+// NAME: Authenticated users
+// INFO: Logins for username/password protected pages
+$BAW_CONF_DIS['logins'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '8', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '5', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // 'key'=Authenticated users, '0'=Pages, '1'=Hits, '2'=Bandwidth, '3'=Last
+ // visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Robots/Spiders visitors
+// INFO: Spiders, Robots of Search engines etc.
+$BAW_CONF_DIS['robots'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '9', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Robots/Spiders visitors, '1'=Hits, '2'=Hits (robots.txt),
+ // '3'=Bandwidth, '4'=Last visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Worms
+// INFO: Worms searching for security holes
+$BAW_CONF_DIS['worms'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '10', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '2', // Sort for which column? Possible values are:
+ // '0'=Worms, '1'=Sensitive targets, '2'=Hits, '3'=Bandwidth, '4'=Last visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Visits duration
+// INFO: How long have people been on the site?
+$BAW_CONF_DIS['sessions'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '11', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+);
+
+// NAME: File type
+// INFO: What filetypes are on the site
+$BAW_CONF_DIS['filetype'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '12', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'chart' => true, // Show HTML chart?
+ 'sort' => '0', // Sort for which column? Possible values are:
+ // 'key'=File type, '0'=Hits, '1'=Bandwidth, '2'=Compression on,
+ // '3'=Compression result
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Pages-URL
+// INFO: Pages on the site
+$BAW_CONF_DIS['urls'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '13', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Pages-URL, '1'=Viewed, '2'=Average size, '3'=Entry, '4'=Exit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Files/paths
+// INFO: Files/paths on the site
+$BAW_CONF_DIS['paths'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '14', // Item Sequence
+ 'avg' => true, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Files/paths, '1'=Viewed
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Operating Systems
+// INFO: Operating system of users
+$BAW_CONF_DIS['os'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '15', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'chart' => true, // Show HTML chart?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '2', // Sort for which column? Possible values are:
+ // '1'=Operating Systems, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Unknown OS (useragent field)
+// INFO: Unknown Operating system
+$BAW_CONF_DIS['unknownos'] = array(
+ 'show' => false, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '17', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '1'=User Agent, '2'=Last visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Operating Systems (+Versions)
+// INFO: Operating system of users including versions
+$BAW_CONF_DIS['osversions'] = array(
+ 'show' => false, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '16', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'chart' => true, // Show HTML chart?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '2', // Sort for which column? Possible values are:
+ // '1'=Operating Systems, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Browsers
+// INFO: User Browser Type
+$BAW_CONF_DIS['browsers'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '18', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'chart' => true, // Show HTML chart?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '3', // Sort for which column? Possible values are:
+ // '1'=Browsers, '2'=Grabber, '3'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Browsers (+Versions)
+// INFO: User Browser Type (+Versions)
+$BAW_CONF_DIS['browserversions'] = array(
+ 'show' => false, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '19', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'chart' => false, // Show HTML chart?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '4', // Sort for which column? Possible values are:
+ // '2'=Browsers, '3'=Grabber, '4'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Unknown browsers (useragent field)
+// INFO: Unknown Browsers
+$BAW_CONF_DIS['unknownbrowser'] = array(
+ 'show' => false, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '20', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '1'=User Agent, '2'=Last visit
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Screen sizes
+// INFO: Screensizes of users
+$BAW_CONF_DIS['screensizes'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '21', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'chart' => true, // Show HTML chart?
+ 'top_x' => '5', // Show how many entries?
+ 'sort' => '2', // Sort for which column? Possible values are:
+ // '1'=Screen sizes, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Referring search engines
+// INFO: Referrals from search engines
+$BAW_CONF_DIS['se_referers'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '22', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Referring search engines, '1'=Pages, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'favicon' => true, // Retrieve favicons for external URLs?
+);
+
+// NAME: Referring sites
+// INFO: Referrals from other sites
+$BAW_CONF_DIS['referers'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '23', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Referring sites, '1'=Pages, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'favicon' => false, // Retrieve favicons for external URLs?
+);
+
+// NAME: Referring sites by Domains
+// INFO: Referrals from other sites, grouped by 2-nd level domains
+$BAW_CONF_DIS['referer_domains'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '24', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Referring sites, '1'=Pages, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'favicon' => false, // Retrieve favicons for external URLs?
+ 'domain_lvls' => '3', // Shorten URL to how many domain levels? (-1 to disable)
+);
+
+// NAME: Hotlinks
+// INFO: Pages linking to images/data on your site
+$BAW_CONF_DIS['hotlinks'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '25', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Referring sites, '1'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'favicon' => false, // Retrieve favicons for external URLs?
+);
+
+// NAME: Hotlinks by Domains
+// INFO: Domains linking to images/data on your site
+$BAW_CONF_DIS['hotlink_domains'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '26', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Referring sites, '1'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+ 'favicon' => false, // Retrieve favicons for external URLs?
+ 'domain_lvls' => '3', // Shorten URL to how many domain levels? (-1 to disable)
+);
+
+// NAME: Search Keyphrases
+// INFO: Search phrases
+$BAW_CONF_DIS['searchphrases'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '27', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=different keyphrases, '1'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Search Keywords
+// INFO: Search words
+$BAW_CONF_DIS['searchwords'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '28', // Item Sequence
+ 'avg' => false, // Show averages?
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=different keywords, '1'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Miscellaneous
+// INFO: User system features
+$BAW_CONF_DIS['misc'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '29', // Item Sequence
+ 'table' => true, // Show data table?
+);
+
+// NAME: HTTP Status codes
+// INFO: Acesses to pages that returned errors
+$BAW_CONF_DIS['errors'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '30', // Item Sequence
+ 'total' => true, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '2', // Sort for which column? Possible values are:
+ // '0'=HTTP Status codes, '2'=Hits, '3'=Average size
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Error Hits
+// INFO: Required but not found URLs (HTTP code 404)
+$BAW_CONF_DIS['errors404'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '31', // Item Sequence
+ 'table' => true, // Show data table?
+ 'total' => true, // Show total Sum?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Error Hits, '1'=Hits, '2'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+// NAME: Color depth
+// INFO: Screen colors of users
+$BAW_CONF_DIS['extra_1'] = array(
+ 'show' => true, // Show this Data?
+ 'collapse' => false, // Collapsed?
+ 'order' => '32', // Item Sequence
+ 'total' => false, // Show total Sum?
+ 'table' => true, // Show data table?
+ 'top_x' => '10', // Show how many entries?
+ 'sort' => '1', // Sort for which column? Possible values are:
+ // '0'=Color depth in bits, '1'=Hits
+ 'sort_dir' => SORT_DESC, // Sort direction? Possible values are:
+ // SORT_ASC=Ascending, SORT_DESC=Descending
+);
+
+
+?>
diff --git a/betterawstats/core/config.inc.php b/betterawstats/core/config.inc.php
new file mode 100644
index 0000000..9ebd521
--- /dev/null
+++ b/betterawstats/core/config.inc.php
@@ -0,0 +1,441 @@
+
+ * copyright 2004-2006 Telartis
+ * version 1.13 (http://www.telartis.nl/xcms/awstats)
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+
+/**
+ * File contents:
+ *
+ * This file contains only function related to the online config manager. It handles
+ * editing & saving the config as well as logging the admin in and out.
+ */
+
+// this file can't be used on its own
+if (strpos ($_SERVER['PHP_SELF'], 'config_default.php') !== false) {
+ die ('This file can not be used on its own!');
+}
+/*
+* Saves the config settings to file
+*
+*/
+function baw_action_save_config() {
+ global $BAW_CONF, $BAW_CONF_DEF, $BAW_CONF_DIS_DEF, $BAW_CONF_DIS;
+ global $BAW_MES, $BAW_CONF_DIS_TYP, $BAW_FILE_HEADER;
+ @session_start();
+ if (!baw_check_user()) {
+ return baw_site_header() . baw_config_login_form();
+ };
+
+ if (isset($_POST['exit']) && ($_POST['exit'] == $BAW_MES['cfg_exit'])) {
+ return baw_display_index();
+ }
+ if (isset($_POST['logout']) && ($_POST['logout'] == $BAW_MES['cfg_logout'])) {
+ baw_logout();
+ return baw_display_index();
+ }
+ if (!$BAW_CONF['online_config']) {
+ return baw_raise_error('configdisabled');
+ }
+ $filename = $BAW_CONF['site_path'].'/config.php';
+ if (is_writable($filename)) {
+ // prepare config for writing
+ $str = " $sectdata) {
+ $sect = strtoupper($sect);
+ $str .= "\r\n\r\n//*********************************************************/\r\n"
+ . "//* $sect\r\n"
+ . "//*********************************************************/\r\n\r\n";
+ foreach ($sectdata as $setting => $misc) {
+ if ($misc['type'] !== 'fixed') {
+ // set standard first
+ $allowed_values = '';
+ $val = $_POST[$setting];
+ $default = $misc['default'];
+ $val_str = "'$val'";
+ $default_str = "'$default'";
+ // now set the execptions
+ if ($val == 'true' or $val == 'false') {
+ $val_str = "$val";
+ if ($default == true) {
+ $default_str = 'true';
+ } else {
+ $default_str = 'false';
+ }
+ $allowed_values = "// POSSIBLE VALUES: true, false\r\n";
+ } else if ($val == "'"){
+ $val_str = '"\'"';
+ } else {
+ $val_str = "'$val'";
+ }
+ if ($default == "'"){
+ $default_str = '"\'"';
+ }
+
+ if ($setting == 'limit_server') { // dont print domain names into the config file
+ $allowed_values = "// POSSIBLE VALUES: 'sitename.org', 'show_all'\r\n";//
+ } else if ($misc['type'] == 'dropdown' && ($val !== 'true' && $val !== 'false')) {
+ $allowed_values = implode("', '", array_keys($misc['values']));
+ $allowed_values = wordwrap($allowed_values, 60, "\r\n// ");
+ $allowed_values = "// POSSIBLE VALUES: '$allowed_values'\r\n";
+ } else if ($misc['type'] == 'password') {
+ $val = $_POST[$setting];
+ if ($val[0] !== $val[1]) {
+ echo baw_raise_error('password_match');
+ exit;
+ } else if ($val[0] == '') { // password will not change if empty
+ $val_str = "'{$BAW_CONF['online_config_password']}'";
+ } else if (strlen($val[0]) < 5) { // password too short
+ echo baw_raise_error('password_short');
+ exit;
+ } else {
+ $val_str = "'{$val[0]}'";
+ }
+ }
+ $out_help = wordwrap(
+ strip_tags(html_entity_decode($misc['help'])),
+ 68
+ , "\r\n// "
+ );
+ $name = html_entity_decode($misc['name']);
+ $str .= "// {$BAW_MES['cfg_name']} $name\r\n"
+ . "// {$BAW_MES['cfg_info']} {$out_help}\r\n"
+ . "// {$BAW_MES['cfg_def']} $default_str\r\n"
+ . $allowed_values
+ . "\$BAW_CONF['$setting'] = $val_str;\r\n\r\n";
+ }
+ }
+ }
+ $str .= "\r\n\r\n//*********************************************************/\r\n"
+ . "//* {$BAW_MES['cfg_display']}\r\n"
+ . "//*********************************************************/\r\n\r\n";
+
+ foreach ($BAW_CONF_DIS_DEF as $setting => $misc) {
+ $val_arr = $_POST[$setting];
+ $name = html_entity_decode($misc['name']);
+ $help = html_entity_decode($misc['help']);
+ $str .= "// {$BAW_MES['cfg_name']} {$name}\r\n"
+ . "// {$BAW_MES['cfg_info']} {$help}\r\n";
+ $this_conf = $BAW_CONF_DIS[$setting];
+ $substr ='';
+ foreach ($this_conf as $name => $oldval) {
+ $type = $BAW_CONF_DIS_TYP[$name][1];
+ $desc = $BAW_CONF_DIS_TYP[$name][0];
+ $val = $val_arr[$name];
+ if ($type == 'string') {
+ $val = "'$val'";
+ } else if ($type == 'sorting1') {
+ $desc2 = $BAW_MES['cfg_possible_values'] ."\r\n // ";
+ foreach ($misc['sorting'] as $key => $value) {
+ $desc2 .= "'$key'=$value, ";
+ }
+ $desc2 = substr($desc2, 0, -2);
+ $desc2 = wordwrap($desc2, 75, "\r\n // ");
+ $desc .= $desc2;
+ $val = "'$val'";
+ } else if ($type == 'sorting2') {
+ $desc .= $BAW_MES['cfg_possible_values'] . "\r\n"
+ . " // " . $BAW_MES['cfg_type_sort_dir_opts'];
+ } else {
+ $val = "$val";
+ }
+ $desc = strip_tags(html_entity_decode($desc));
+ $substr .= " '$name' => $val, // $desc\r\n";
+ }
+ $str .= "\$BAW_CONF_DIS['$setting'] = array(\r\n$substr);\r\n\r\n";
+ }
+ $str .= "\r\n?>";
+ if (!$handle = fopen($filename, 'w+')) {
+ return baw_raise_error('configread');
+ }
+ if (fwrite($handle, $str) === FALSE) {
+ return baw_raise_error('configwrite');
+ }
+
+ $out = $BAW_MES['cfg_saved'];
+ $out = baw_site_header() . "BetterAWstats
$out