Register
Home Projects Help

root / trunk / phpBB / style.php

style.php

View | Annotate | Download (6.7 KB)

# Date Author Comment
8572 View | Annotate 05/29/2008 02:25 PM acydburn

ok… i hope i haven’t messed too much with the code and everything is still working.
Changes:
- Ascraeus now uses constants for the phpbb root path and the php extension. This ensures more security for external applications and modifications (no more overwriting of root path and extension possible through insecure mods and register globals enabled) as well as no more globalizing needed.
- A second change implemented here is an additional short-hand-notation for append_sid(). It is allowed to omit the root path and extension now (for example calling append_sid(‘memberlist’)) – in this case the root path and extension get added automatically. The hook is called after these are added.

8515 View | Annotate 04/21/2008 12:55 PM acydburn

merge

8503 View | Annotate 04/11/2008 04:21 PM acydburn

merge some changes/fixes
henry: is your viewonline fix/change missing? ;)

8487 View | Annotate 04/02/2008 10:52 AM acydburn

#s24575

8485 View | Annotate 04/02/2008 10:28 AM davidmj

Some neat stuff, the new DBAL function has the potential of removing somewhere in the ballpark of 40% of all the DBAL code. It combines a few very common idioms into one statement, allowing us to implicitly use prepared statements. Short term advantages are the ability to remove the gross code that attempts to work around DB2, Oracle and Firebird. Long term advantages include removing the burden of sanitizing data (at least on input) from our end and placing it on shoulders of the backend PHP driver.

Also included is a new posting API I am working on. It is not a real API in so much as it is a backend that a “nice” API could use. User submitted functions are welcome :) It represents a massive simplification in post and topic accounting and a generalization of concepts like “soft deletion” as it works across both topics and posts (yes, this has preliminary support for soft deletions). The only “interesting” problem left is global topics, this has yet to be solved.

Enough talk, time for sleep.

P.S.
Sorry if I broke stuff, was not done on purpose :)

8477 View | Annotate 03/29/2008 01:08 AM naderman

Go away evil carriage returns\!

8467 View | Annotate 03/24/2008 02:04 AM naderman

not sure what the implications of this quick fix are, especially when upgrading from earlier versions we either have to use a different timezone depending on the server or fix timestamps on update, though shouldn’t they be gmt already?

8466 View | Annotate 03/24/2008 01:59 AM naderman

- add error_reporting to style.php (merge from r8464)
- let the error handler deal with E_STRICT (same as E_WARNING/E_NOTICE) and E_RECOVERABLE_ERROR (same as E_USER_ERROR)

8301 View | Annotate 01/04/2008 07:35 PM davidmj

Ch-ch-ch-changes
- Made us more DB independent by making many queries capability based instead of DB specific
- Finished PHP5ifying of the acm_file class, now with some (hopefully) enhancements to its performance
- Sped up viewforum considerably (also goes towards mcp_forum)

I really hope I didn’t explode CVS…

8295 View | Annotate 01/03/2008 06:00 PM davidmj

oh boy…
- Migrate code base to PHP 5.1+

8294 View | Annotate 01/03/2008 03:37 PM kellanved

cross-ci to the head

8054 View | Annotate 08/19/2007 05:58 PM acydburn

again… ie6 is still not behaving correctly… the pragma header invalidates the content. I hope this is really the cause now. :/

8049 View | Annotate 08/19/2007 12:39 PM acydburn

very tiny adjustements…

8040 View | Annotate 08/17/2007 02:32 PM acydburn

- IE6 is not able to correctly cope with gzip compression
- hopefully fixed the rtl icon issue in FF without breaking ltr display.

8033 View | Annotate 08/15/2007 07:32 PM acydburn

some bugs fixed

7954 View | Annotate 07/26/2007 05:51 PM acydburn

do not get too excited

7949 View | Annotate 07/26/2007 12:08 PM acydburn

add support for gzip compression to style.php as well as adding a much higher expire date – though could be much more effective (but also error prone) due to the session id.

7921 View | Annotate 07/23/2007 12:15 AM davidmj

validation

7900 View | Annotate 07/17/2007 06:08 PM acydburn

it has been decided amongst the team that using glob() is bad practice, after determining the overall usage among projects as well as the security history of the function.

7884 View | Annotate 07/14/2007 05:44 PM acydburn

a bunch of fixes

7863 View | Annotate 07/10/2007 07:36 PM acydburn

more failsafe “glob()” method.

7736 View | Annotate 06/09/2007 01:11 PM acydburn

ok, mess around with the templates + fixing some bugs + adjusting headers for those files already modified to circumvent conflicts for those having their editor set to remove trailing spaces (not recommended!)

7685 View | Annotate 05/26/2007 04:23 PM naderman

- Send stylesheet in style.php even without a valid session id [Bug #11531]
- request_var should strictly return the requested number of dimensions
- corrected a character mapping in the search indexing character list, people might want to reindex after this change if they use fulltext_native

7654 View | Annotate 05/20/2007 04:32 PM naderman

- style.php uses default language fallback for the imageset like session.php now
- style.php removes placeholders for non-existant images instead of leaving them alone
- automatically try to load a localised part of an imageset if the folder exists and no images for that language were found in the database, thanks PhilippK

7523 View | Annotate 05/10/2007 04:12 PM acydburn

also recache if theme_data is empty.

7500 View | Annotate 05/07/2007 05:57 PM acydburn

implement change style check suggested by code reader.

7475 View | Annotate 05/05/2007 07:59 PM davidmj

#10497

7452 View | Annotate 05/02/2007 11:08 PM acydburn

some tiny changes

7430 View | Annotate 04/30/2007 12:59 PM kellanved

Better this way.

7384 View | Annotate 04/22/2007 05:27 PM acydburn

#10005, #10003, #10001, #9999, #9945, #9965, #9909, #9906, #9877, #9861, #9831, #9830, #9815, #9665, #9624

prosilver adjustments for important announcements in ucp – #9995
MCP fixes for user notes/warnings – #9981
Preserving imageset values on save/edit
find a member link for Mass PM’s – #9925
syndicate window.onload events where necessary – #9878
Duplicate topics in forums with announcements – #9840
Email template for forced re-activation – #9808
Topic pagination adjustment – #9763
Changed compose message layout in UCP – #9706, #9702
Fixed inline attachment font size (hopefully)

7364 View | Annotate 04/16/2007 01:27 PM davidmj

typo

7363 View | Annotate 04/16/2007 03:49 AM davidmj

must stop injecting debug code… :P

7362 View | Annotate 04/16/2007 03:30 AM davidmj

#9879

7308 View | Annotate 04/09/2007 07:10 AM davidmj

- Firebird is people too! (Firebird works again)
- small style.php bug

7304 View | Annotate 04/08/2007 07:40 PM davidmj

- overhaul of imagesets
imagesets are now “intelligently” multilingual, one may use imagesets inside of CSS files now (as well as properties like the width and height of an imageset’s image)
all previous styles should change their imageset.cfg to be like prosilver and subsilver2 (notice how there is now an imageset.cfg in the /en folder, there should be one for each language)

7214 View | Annotate 03/22/2007 01:59 AM davidmj

#5205

7010 View | Annotate 02/19/2007 05:15 AM davidmj

- forgot a few places :P

6734 View | Annotate 12/10/2006 12:52 AM davidmj

- tiny bit of sunshine :D

6447 View | Annotate 10/06/2006 08:43 PM acydburn

- support re-caching of theme data if stylesheet.css changed and load_tplcompile enabled
- mcp fixes
- fixed some usability issues

6254 View | Annotate 08/08/2006 09:02 PM naderman

- fixed some problems with themes
- added support for {IMG_NAME_SRC}, {IMG_NAME_WIDTH} and {IMG_NAME_HEIGHT}
- fulltext_native has to use group by in a few more quries

6153 View | Annotate 07/07/2006 10:38 PM naderman

- fix a stupid bug in style.php
- and we’d also like the post encoding :D

6048 View | Annotate 06/11/2006 08:13 PM acydburn

- fixed a few bugs
- added user_add() function
- check posted images ([img]) for same domain/scipt and php files
- auth_api.html updated to the coding guidelines look&feel
- introduced ability to force non page-updates (cron is using it)
- correctly resend coppa email

6015 View | Annotate 06/06/2006 10:53 PM acydburn

ok, this one is rather large… the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different

apart from this, code cleanage, bug fixing, etc.

6007 View | Annotate 06/04/2006 12:19 AM naderman

- removed useless code from style.php
- added a view template cache mode to acp_styles
- syntax highlighting for the acp css
- completed refresh actions for themes and templates
- fixed theme and template installation
- use a function for generating database theme data
- removed useless code from mcp_queue.php

we might need to do some more tests of acp_styles with safe_mode on

5953 View | Annotate 05/21/2006 01:56 AM naderman

- added a theme editor
- some adjustments in acp_styles.php
- fixed storing themes in db (needs revisiting)

5883 View | Annotate 05/05/2006 07:56 PM acydburn

- some adjustements for phpdocumentor

5422 View | Annotate 01/04/2006 07:37 AM davidmj

- file_get_contents instead of imploding file()s or fread()ing till the maximum filesize
- language and style properly use compression
- language now prompts user for methods
- functions_compress does not need to eval() to get a hex date, instead calls pack()
- A writing method is defined at the end of tar operations only if data has been sent to the archive
- BBCode parser does not have to eval(), it instead uses the regex to loop around the matches

Hopefully nothing broke :-)

5388 View | Annotate 12/28/2005 06:35 PM acydburn

- some changes to browser checking (was the reason for not working logins)
- partly working style acp
- other tiny changes here and there

5372 View | Annotate 12/22/2005 05:28 PM acydburn

- ok, get away with the secondary style approach (styles can be mixed together easily with the acp)
- introduce a more generic approach of defining some additional variables through cfg files as well as the name, copyright and version fields
- please note that at the moment this is in flux. I added it now for Tom because he needs the theme parameters.

5343 View | Annotate 12/17/2005 01:05 PM subblue

Tweaked so that css files included via @include file(“file.css”); are brought into the main stylesheet.css before variable replacement. This greatly improves style organisation by enabling different stylesheets for the main sections of the forum

5328 View | Annotate 12/11/2005 11:14 PM subblue

theme_name field missing from the query getting the database style content

5257 View | Annotate 10/04/2005 11:47 PM acydburn

dumdidum

5255 View | Annotate 10/04/2005 11:39 PM acydburn

- some bugfixes

5199 View | Annotate 08/19/2005 12:48 PM acydburn

- add ability to limit search to groups

5114 View | Annotate 04/09/2005 02:26 PM acydburn

- Documentation related changes
- added resend activation email dialog
- fixed issue in session code
- log failed/successful admin re-authentication/login
- fixed simple forum dropdown box (used in mcp and posting)

5068 View | Annotate 01/20/2005 09:57 PM acydburn

- bugfixes
- default sort options for posts too
- adjusted format_date to remove the (time intensive) preg_ calls
- temporary style.php code.

4473 View | Annotate 09/07/2003 03:46 PM psotfx

Updates mainly for removal of extension + header comment … moved some aspects of ucp around, further work to be done on these areas … not commiting search for time being

4379 View | Annotate 08/11/2003 11:45 PM ludovic_arnaud

Taken out the $db var from acm classes for consistency with other classes

4374 View | Annotate 08/11/2003 03:12 AM psotfx

Update for acm parameter change

4343 View | Annotate 08/06/2003 05:45 PM psotfx

A fair amount of additional working or semi-working stuff … template stored db source (when appropriate), switch theme/templates between DB/filesystem (if available), import, upload templates, imagesets, themes (if available … i.e. no safe mode), etc. still a fair amount of stuff to do but getting there … take care using this, backup any themes/templates/imagesets before fiddling and let me know of issues

4322 View | Annotate 07/24/2003 12:54 PM psotfx

It’s going to be one of those days …

4321 View | Annotate 07/24/2003 12:52 PM psotfx

Generate stylesheet from DB on the fly