Commit Graph

12 Commits

Author SHA1 Message Date
Elián Hanisch c59d11c308 Fix searching in only bans, or only mutes.
We can't use LIMIT and OFFSET if we are going to filter mutes/bans later.
We have to get *all* bans and mutes, filter, and do the pagination manually.
2011-12-24 13:58:08 -03:00
Elián Hanisch 9c4c948a7f print pagination links at the bottom of the page.
highlight the current page between []
2011-12-22 21:03:33 -03:00
Elián Hanisch 7f104934ab fix the bans counter, it wasn't updated after filtering mutes. 2011-12-22 20:55:20 -03:00
Elián Hanisch aa88d5529e fix searching only mutes and add option for removed ones. 2011-12-22 20:52:37 -03:00
Elián Hanisch 4f8d1d1916 fix typos. 2011-12-22 19:36:58 -03:00
Terence Simpson fb7f9c7acf Added log.tmpl 2011-12-21 17:01:41 +00:00
Terence Simpson bb605749a5 Typo++ 2011-12-21 16:50:46 +00:00
Terence Simpson 3c9161db65 * Update symlinks in the root.
* Bantracker/cgi/bans.cgi:
 * Use action="" in forms, which default to whatever the current URL is
   (without query or fragment).
 * Make sure errors are printed to sys.stderr, so they show up in the
   right pace.
 * Added irc_network and irc_channel config options, so it's not
   hard-coded.
 * replace "X.has_key(Y)" with "Y in X", has_key is "depricated" and
   removed in 3.x (forward planning)
 * added isTrue() and isFalse() to test if a form value evaluates to
   boolean.
 * True or False, repectivly. Use these in isOn().
 * If a bad regex is passed in the log view, show that it was an error.
 * Wrap INSERT statements in a try block.
 * Put the generation time in a (X)HTML comment.
* Bantracker/config.py: Add SQL to create INDEX. 
* Bantracker/README.txt: Update with extra information on setting up the
  web interface.
2011-12-21 16:38:39 +00:00
Elián Hanisch e3669b4465 Don't show the last bans when the page is loaded, it takes a lot of time.
This is due to sqlite2, sqlite3 doesn't have this problem.
2011-11-07 19:13:43 -03:00
Elián Hanisch 9d69828d44 read config settings from 'bantracker.conf' so I don't have to edit the cgi script every bloody time I update it.
Also, handle errors more gracefully.
2011-11-07 18:29:16 -03:00
Elián Hanisch 0556d87d01 fix layout and other stuff, disable sorting since is broken. 2011-11-07 18:27:28 -03:00
Elián Hanisch 5583fc3f82 move everything to into a "cgi" dir.
Show the latest bans, paginate searches, so there's only 100 bans loaded at the time.
2011-11-06 22:36:36 -03:00