Commit graph

102 commits

Author SHA1 Message Date
Arne Heizmann
01faac3d37 Display the text the spam regexp matched. Patch by akl. 2004-08-13 20:52:15 +00:00
Brion Vibber
cdfd80a38b Correct typo that broke edit conflict screen 2004-07-30 20:43:59 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Tim Starling
d56d507cac bug fix 2004-07-10 01:09:36 +00:00
Brion Vibber
a8d224b722 <large> is not a real tag. It doesn't do anything and would cause
XHTML 1.0 transitional validation to fail, so chucking it.
(bug #981237)
2004-06-30 07:45:47 +00:00
Brion Vibber
9fe232c102 Change id='wpSave' to correct id='wpPreview' (bug #981868) 2004-06-30 07:38:33 +00:00
Tim Starling
3c4d38faee Removed arbitrary change in timestamp formats between MySQL and PostgreSQL, moved global functions to GlobalFunctions 2004-06-29 12:23:59 +00:00
Tim Starling
24d8a8e50b new anti-bot code 2004-06-21 07:41:53 +00:00
Tim Starling
72adcbd659 Show category links in preview 2004-06-19 06:46:54 +00:00
Gabriel Wicke
f0d23d77da added id for copywarn message on edit page 2004-06-15 21:40:19 +00:00
Domas Mituzas
888f42f4ab * use different timestamp parsing regexps for PG/MySQL
* use old->"old" for PG
2004-06-11 14:45:39 +00:00
Gabriel Wicke
2fa717d4f6 ids on submits 2004-06-10 18:42:05 +00:00
Brion Vibber
796fec1321 Fixes for the edit help popup link:
* Now works w/ JavaScript disabled
* Doesn't override window chrome to make things unusable
* Doesn't hardcode window dimensions
* Notifies the user that it'll be a popup (new msg 'newwindow')

(The link is a popup because IE and perhaps other browsers will destroy
the edited page text if you go to another page then hit 'back'.)
2004-06-09 06:59:05 +00:00
Gabriel Wicke
c410b3f316 section anchor cleanup, unurlencode : 2004-06-05 10:34:32 +00:00
Gabriel Wicke
a0fbb5e730 section anchor encoding:
'%' -> '.'
pseudo-urlencoded for enough uniqueness in non-ascii languages
2004-06-02 15:19:28 +00:00
Gabriel Wicke
1c974f646f enable redirects for urlencoded anchor names 2004-06-01 19:51:22 +00:00
Gabriel Wicke
5f08be1bae show language links on preview 2004-06-01 18:29:52 +00:00
Gabriel Wicke
cef4acffba show scrollbars in help window 2004-06-01 09:36:28 +00:00
Jens Frank
3a787c2ac5 The cancel-button of edit pages did not work for UTF-8 encoded articles with special chars. BUG-ID #962848 2004-05-29 19:52:47 +00:00
Tim Starling
1f0d5500b2 bug fix 2004-05-29 17:14:47 +00:00
Tim Starling
cb3a56bbca Fixed bug in edit conflict merge feature -- didn't decompress old_text 2004-05-29 16:20:08 +00:00
Jens Frank
3a9b95d4c1 Provide feedback to sysops that their edit triggered the spam filter. No feedback to anons, would someone miss the point. 2004-05-29 07:41:16 +00:00
Gabriel Wicke
de30a10aa4 better check before commit.. 2004-05-27 14:16:02 +00:00
Gabriel Wicke
04864596cb don't escape preview source II 2004-05-27 11:13:05 +00:00
Gabriel Wicke
680704d114 accidentially removed the test for 2004-05-20 19:51:41 +00:00
Gabriel Wicke
94d88c03b9 match spam against this-\>textbox1 2004-05-20 19:45:45 +00:00
Gabriel Wicke
3fc2c28e49 missing parentheses 2004-05-20 11:13:51 +00:00
Gabriel Wicke
f48f6617c8 Small tweak to section editing- try to generate a section (toc-)anchor from the edited section
and append that anchor to the url redirected to, so just edited section is shown by default

Shortcomings:
* won't append a number to duplicate headlines on a page (result: will go to first header with that content)
* doesn't actually parse the headline, headlines with [\\['{<>] in them will just fall back to the old behaviour
2004-05-14 13:03:57 +00:00
Gabriel Wicke
6af7c5ce7b After a longer phone call Erik and me agreed on working on an equivalent feature most likely based on categories that interacts better with caching. More discussion on to follow.
Removed with Erik's agreement.
2004-05-13 14:17:44 +00:00
Erik Moeller
201af52713 restore section folding 2004-05-13 12:20:59 +00:00
Gabriel Wicke
df08e4792a removed section folding 2004-05-13 11:54:19 +00:00
Erik Moeller
472272dc61 New feature:
Automatic or manual collapsing and expanding of long pages.
Pages can be collapsed automatically according to a size threshold
set in the user preferences. Pages can be collapsed manually by clicking
the "Collapse" link in the TOC.

When a page is collapsed, only the intro & TOC are displayed. The
individual TOC lines link to section views, which can be individually edited
(classic section editing).

Section editing/viewing behavior has also been improved. When a section
with subsections is viewed or edited, all subsections are also loaded.

Known issues:
- After saving a section, we return to the full article view
rather than the section view, even if we previously were in section view
mode.
- Should work with Standard and Monobook, not tested with Cologne Blue yet.
- In Monobook, no backlink to the mother article is shown during section
viewing (Gabriel, can you fix that?)
2004-05-12 13:26:36 +00:00
Gabriel Wicke
9c1bb5a9ad don't unescape preview text (made things like \&lt;pre\&gt; a plain \<pre\> in preview mode). Not sure if this has any side effects (and why it was unescaped in the first place). 2004-05-12 13:05:00 +00:00
Gabriel Wicke
d7c3aa4c1f typo 2004-05-10 17:28:23 +00:00
Gabriel Wicke
b201522a80 don't show when previewing 2004-05-10 17:17:39 +00:00
Gabriel Wicke
e0a82b847d preview note 2004-05-10 17:14:01 +00:00
Gabriel Wicke
2da73a4a50 * user css/js preview
* utility functions in title to test for user css/js, some weird php bug prevents those from working in most places though
2004-05-10 13:15:28 +00:00
Gabriel Wicke
090535e154 no javascript: of course 2004-05-05 20:56:06 +00:00
Gabriel Wicke
6b7f7a0d34 open edit help in separate window to work around IE data loss bug 2004-05-05 12:03:12 +00:00
Tim Starling
b872622410 Spam regex feature 2004-05-04 12:49:41 +00:00
Brion Vibber
dac6cd9111 Disable the unsafe redirect default on Article::getContent(). A couple
tweaks seem to fix editing of redirects problem.

Also split up some instances of "?>" in regexp strings. PHP itself doesn't
seem to break off the code there, but it's not really recommended (and
it confuses the hell out of my editor, breaking syntax highlighting
and jumping to functions).
2004-04-30 08:19:59 +00:00
Gabriel Wicke
b19e8da69f removed tawrapper 2004-04-29 12:17:33 +00:00
Gabriel Wicke
44bb42ae06 some IE6 textarea tweaks 2004-04-29 10:21:32 +00:00
Angela Beesley Starling
a20029bb93 Adds the username of the blocking sysop as a variable to the blockedIPpage function so [[special:emailuser/$4]] can be used in the block message. 2004-04-24 12:46:17 +00:00
Brion Vibber
b768dc0781 Fix tag nesting 2004-04-20 07:27:45 +00:00
Gabriel Wicke
fd996dbb20 wrapper div around textarea for ie fix 2004-04-19 14:16:06 +00:00
Brion Vibber
32ae234ee2 Fix notice with toolbar option off 2004-04-11 23:21:44 +00:00
Gabriel Wicke
e33c9a2fbe access keys and tooltips use wfMsg now 2004-04-09 19:22:51 +00:00
Gabriel Wicke
2ded40b72c i for 'minor edit'... 2004-04-09 18:18:10 +00:00