[dokuwiki] Some Patches ("?>", PHP4, css improvement, image-class, linebreak, rss excludes)

  • From: fabidev@xxxxxxxx
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 15 Mar 2008 00:45:58 +0100 (CET)

Hallo to everybody, i am new in dokuwiki, specially in development, so give me 
some time to learn and some credits for errors.

I would like to use the little patch sys i construct for my environment, witch 
make use of diff (not dracs).
If i should change something on the patches to support the usability, give me a 
hint.

If you reject a patch, pleas give me a info about the reason, so i am able to 
see witch patches are useless for you, and i down't send similar patches 
anymore.
(one first question is, do you down't like camelcase and caseinsensitivity at 
all? Because i do, and create some patches for this.)

At last, i use english rarely, so pleas forgive bad english and errors (my 
mother tongue is german).




-----------
Description of the first patches:


1 cleanup.zip
First use this for deleting all final "?>" at the end of the pages.


common tools for PHP4.zip
Some functions are not contained in the PHP version 4. Because PHP4 is still in 
the use, some of these functions should be available generally. i think there 
still are some plugins which down't work under PHP4. (no experience with PHP4, 
i use PHP5)
array_keycheck can be used for caseinsensitive functions. Patches which use it 
are still in work. (caseinsensitive 'things' et)


css improvement.zip
Improves the formatting for automatically produced CSS classes. So mouse-over 
effects work better.


(??) force write with fflush.zip
I am not sure if this patch is really necessary.  But i use a logingsys for 
malicious accesses. Some entries been added repeatedly, although code should 
prevent that. i can not judge how long data remain in the buffer before they 
are saved physically, therefore i force to write the data, and this is maybe 
useful in general.  Since that i had no multiple entries anymore, but that can 
be however also chance. These patch could be unnecessary, if the data are 
written immediately with fclose.


image-class for shown pictures.zip
Produces an other classe for visible pictures. So an own formatting can be 
prepared for pictures in the CSS. Brings a little more flexibility for template 
design.


linebreak.zip
The first patch in all me installations. It eliminates the pressure to finalize 
lines with \\. 
(only C PHP Java programmers are accustomed to do this ;;;; 'things'. It is in 
my opinion one the design errors of all C based languages and not intuitive at 
all. And by the way, it is statistically the most frequent syntaxerror during 
the coding. i use sometimes ;;;;; as synonymously for ugly design flub work or 
needless, more ;;;;;;; more worse :-)
There is a Plugin for this function, but some people report problems with it.
With this option the test system "Simple-Test" down't work anymore clean, this 
must overwrite the option.


rss Exclude.zip
Gives the possibility to exclude certain namespaces and pages from RSS. The 
playground is uninteresting, and i have some private test sites in my wiki 
which should remain invisible (no read permission, no rss). But admins/managers 
see all.


Jetzt komfortabel bei Arcor-Digital TV einsteigen: Mehr Happy Ends, mehr 
Herzschmerz, mehr Fernsehen! Erleben Sie 50 digitale TV Programme und optional 
60 Pay TV Sender, einen elektronischen Programmführer mit Movie Star 
Bewertungen von TV Movie. Außerdem, aktuelle Filmhits und prickelnde Erotik in 
der Arcor-Videothek. Infos unter www.arcor.de/tv

Other related posts: