GitHub/WoltLab/WCF.git
12 years agoMerge pull request #283 from wbbaddons/fileSizeOptionType
Alexander Ebert [Thu, 22 Dec 2011 17:58:10 +0000 (09:58 -0800)]
Merge pull request #283 from wbbaddons/fileSizeOptionType

Implements an fileSize option-type for easier handling of file sizes.

12 years agoMerge pull request #305 from wbbaddons/regexClass
Alexander Ebert [Thu, 22 Dec 2011 17:54:16 +0000 (09:54 -0800)]
Merge pull request #305 from wbbaddons/regexClass

Adding \wcf\system\Regex

12 years agoFixed multiple language input
Alexander Ebert [Thu, 22 Dec 2011 17:51:01 +0000 (18:51 +0100)]
Fixed multiple language input

i18n-inputs can now be declared optional and will no longer force a value, unless you left out one language. This means if i18n is not required you can leave out the value completely, but once you enable i18n you must give values for ALL installed languages!

Fixes #235
Fixes #282

12 years agoFixed application not be initialized in ACP
Alexander Ebert [Thu, 22 Dec 2011 16:22:33 +0000 (17:22 +0100)]
Fixed application not be initialized in ACP

Please be aware the namespaces will be registered, but loadApplication() will *not* init the application if within ACP.

Fixes #312

12 years agoThat one was too flexible … ;-)
Luzifr [Thu, 22 Dec 2011 13:42:41 +0000 (14:42 +0100)]
That one was too flexible … ;-)

12 years agoMakes the topMenu drop-downs more beautiful
Luzifr [Thu, 22 Dec 2011 13:05:52 +0000 (14:05 +0100)]
Makes the topMenu drop-downs more beautiful

12 years agoMaking the CSS files more flexible
Luzifr [Wed, 21 Dec 2011 18:23:54 +0000 (19:23 +0100)]
Making the CSS files more flexible

(and smaller)

12 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:15:19 +0000 (17:15 +0100)]
Going back to "dropdown"!

12 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:14:52 +0000 (17:14 +0100)]
Going back to "dropdown"!

12 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:06:06 +0000 (17:06 +0100)]
Going back to "dropdown"!

12 years agoMerge pull request #311 from Gravatronics/bug/cacheListLargeButtons
Harald Szekely [Wed, 21 Dec 2011 14:21:15 +0000 (06:21 -0800)]
Merge pull request #311 from Gravatronics/bug/cacheListLargeButtons

Fixes wrong "largeButtons" css class in cache list template

12 years agoFixes wrong "largeButtons" css class in cache list template
Matthias Schmidt [Wed, 21 Dec 2011 14:05:39 +0000 (15:05 +0100)]
Fixes wrong "largeButtons" css class in cache list template

12 years agoMore work on sidebars
Luzifr [Wed, 21 Dec 2011 13:41:41 +0000 (14:41 +0100)]
More work on sidebars

The profile-sidebar now has the same structure as the one in the ACP;
Changed the way the collapsible arrow icons are being included for all
sidebars, to allow for always opened menu items.

12 years agoGetting rid of "clear: both"
Luzifr [Tue, 20 Dec 2011 18:13:47 +0000 (19:13 +0100)]
Getting rid of "clear: both"

12 years agoImplemented quick search (replaces Suggestions)
Alexander Ebert [Tue, 20 Dec 2011 18:08:49 +0000 (19:08 +0100)]
Implemented quick search (replaces Suggestions)

12 years agoThat fixes the breadcrumbs
Luzifr [Tue, 20 Dec 2011 15:22:55 +0000 (16:22 +0100)]
That fixes the breadcrumbs

(when a sidebar is there)

12 years agoDropdowns reloaded (still not final!)
Luzifr [Tue, 20 Dec 2011 15:20:47 +0000 (16:20 +0100)]
Dropdowns reloaded (still not final!)

12 years agoWork-around for ACL
Alexander Ebert [Tue, 20 Dec 2011 13:52:48 +0000 (14:52 +0100)]
Work-around for ACL

12 years agoOne more change for the dropdowns
Luzifr [Tue, 20 Dec 2011 13:35:25 +0000 (14:35 +0100)]
One more change for the dropdowns

12 years agoRepaired user-list-dropdown
Luzifr [Tue, 20 Dec 2011 13:32:20 +0000 (14:32 +0100)]
Repaired user-list-dropdown

This will be the way all menus will function soon …

12 years agoRemoved obsolete function
Marcel Werk [Mon, 19 Dec 2011 16:46:52 +0000 (17:46 +0100)]
Removed obsolete function

closes #300

12 years agoMerge branch 'master' of github.com:WoltLab/WCF
Marcel Werk [Mon, 19 Dec 2011 16:16:23 +0000 (17:16 +0100)]
Merge branch 'master' of github.com:WoltLab/WCF

12 years agoAdded object class name
Marcel Werk [Mon, 19 Dec 2011 16:16:11 +0000 (17:16 +0100)]
Added object class name

12 years agoSmall optical improvement
Luzifr [Mon, 19 Dec 2011 15:22:06 +0000 (16:22 +0100)]
Small optical improvement

12 years agoMerge pull request #308 from wbbaddons/balloonTooltipTitleRemove
Alexander Ebert [Mon, 19 Dec 2011 12:30:10 +0000 (04:30 -0800)]
Merge pull request #308 from wbbaddons/balloonTooltipTitleRemove

Remove title of balloon-tooltip-item when it changed

12 years agoReplaced raw number with sqlLimit reference
Alexander Ebert [Mon, 19 Dec 2011 12:25:08 +0000 (13:25 +0100)]
Replaced raw number with sqlLimit reference

12 years agoAdded sidebar placeholder
Marcel Werk [Sun, 18 Dec 2011 15:27:56 +0000 (16:27 +0100)]
Added sidebar placeholder

12 years agoRemove title of balloon-tooltip-item when it changed
Tim Düsterhus [Sun, 18 Dec 2011 13:53:49 +0000 (14:53 +0100)]
Remove title of balloon-tooltip-item when it changed

12 years agoImproved error-handling of \wcf\system\Regex
Tim Düsterhus [Sat, 17 Dec 2011 14:39:11 +0000 (15:39 +0100)]
Improved error-handling of \wcf\system\Regex

12 years agoAdding \wcf\system\Regex
Tim Düsterhus [Sat, 17 Dec 2011 12:39:32 +0000 (13:39 +0100)]
Adding \wcf\system\Regex

That way we can typehint regexes and have object-oriented access on regexes.

There is no longer a need to add or escape the delimiters, this is all done by the Regex-class.
The modifiers are added via a bitmask as the second parameter:
Valid modifiers are:
Regex::CASE_INSENSITIVE (add i)
Regex::EVAL_REPLACEMENT (add e)
Regex::UNGREEDY (add U)
Regex::NO_ANALYSE (don't add s)

Usage:

```
$regex = new Regex('^http(s)?://(www\.)woltlab\.(com|de|info)/', Regex::CASE_INSENSITIVE);
var_dump($regex->match('http://www.woltlab.com/pluginstore/')); // int(1)
var_dump($regex->getMatches()); // array with all matched substrings

var_dump(Regex::compile('[a-z]')->replace('asdf345', '')); // string(3) "345"
var_dump(Regex::compile('[a-z]')->replace('asdf345', new Callback(function ($matches) {
return 'x';
})); // string(7) "xxxx345"
```

12 years agoRemoved Profile Comment styles from here
Luzifr [Fri, 16 Dec 2011 17:29:39 +0000 (18:29 +0100)]
Removed Profile Comment styles from here

12 years agoSmall correction
Luzifr [Fri, 16 Dec 2011 15:45:14 +0000 (16:45 +0100)]
Small correction

12 years agoAdded missing language variables
Alexander Ebert [Fri, 16 Dec 2011 13:45:51 +0000 (14:45 +0100)]
Added missing language variables

12 years agoFixed ACP package list
Alexander Ebert [Fri, 16 Dec 2011 13:16:15 +0000 (14:16 +0100)]
Fixed ACP package list

12 years agoMerge pull request #302 from max-m/patch-5
Alexander Ebert [Thu, 15 Dec 2011 19:42:19 +0000 (11:42 -0800)]
Merge pull request #302 from max-m/patch-5

Fixed HTML - added forgotten "

12 years agoSmall changes
Luzifr [Thu, 15 Dec 2011 18:25:20 +0000 (19:25 +0100)]
Small changes

12 years agoFixed HTML - added forgotten "
max-m [Thu, 15 Dec 2011 17:58:16 +0000 (18:58 +0100)]
Fixed HTML - added forgotten "

12 years agoDisabled automatic transactions for now
Alexander Ebert [Thu, 15 Dec 2011 15:34:15 +0000 (16:34 +0100)]
Disabled automatic transactions for now

12 years agoEnhanced database exceptions
Alexander Ebert [Thu, 15 Dec 2011 15:22:39 +0000 (16:22 +0100)]
Enhanced database exceptions

12 years agoUsing transaction now
Alexander Ebert [Thu, 15 Dec 2011 15:03:37 +0000 (16:03 +0100)]
Using transaction now

Changes to PreparedStatement: execute() will now automatically wrap itself in a transaction before committing changes, including an automatic rollback on failure.

If you want to send multiple queries at once, you should wrap the whole loop in a transaction and use executeUnbuffered() instead.

You SHOULD NOT use executeUnbuffered() without a transaction.

12 years agoMerge pull request #272 from Gravatronics/bug/DBOActionUpdateData
Alexander Ebert [Wed, 14 Dec 2011 23:25:15 +0000 (15:25 -0800)]
Merge pull request #272 from Gravatronics/bug/DBOActionUpdateData

Fixes a possible bug in AbstractDatabaseObjectAction::update()

12 years agoMerge pull request #298 from wbbaddons/getLinkPageMenu
Alexander Ebert [Wed, 14 Dec 2011 23:24:44 +0000 (15:24 -0800)]
Merge pull request #298 from wbbaddons/getLinkPageMenu

Adding getLink()-method for page-menu

12 years agoMerge pull request #291 from max-m/patch-4
Alexander Ebert [Wed, 14 Dec 2011 23:23:38 +0000 (15:23 -0800)]
Merge pull request #291 from max-m/patch-4

Fixes menu item options not saved in database

12 years agoMerge pull request #275 from wbbaddons/mailSenderOptimizatio
Alexander Ebert [Wed, 14 Dec 2011 23:22:58 +0000 (15:22 -0800)]
Merge pull request #275 from wbbaddons/mailSenderOptimizatio

Mail sender optimization

12 years agoMerge pull request #274 from wbbaddons/breadcrumbsSPL
Alexander Ebert [Wed, 14 Dec 2011 23:22:35 +0000 (15:22 -0800)]
Merge pull request #274 from wbbaddons/breadcrumbsSPL

Use SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs

12 years agoMerge pull request #278 from Gravatronics/bug/AbstractOptionListFormValidate
Alexander Ebert [Wed, 14 Dec 2011 23:20:17 +0000 (15:20 -0800)]
Merge pull request #278 from Gravatronics/bug/AbstractOptionListFormValidate

Fixes bug in AbstractOptionListForm::validate()

12 years agoMerge pull request #279 from wbbaddons/WCFTemplateFix
Alexander Ebert [Wed, 14 Dec 2011 23:19:55 +0000 (15:19 -0800)]
Merge pull request #279 from wbbaddons/WCFTemplateFix

Fixing WCF.Template

12 years agoMerge pull request #281 from max-m/patch-2
Alexander Ebert [Wed, 14 Dec 2011 23:19:20 +0000 (15:19 -0800)]
Merge pull request #281 from max-m/patch-2

ZipFile doesn't exist but GZipFile ;)

12 years agoMerge pull request #301 from wbbaddons/fileUtilImprovements
Alexander Ebert [Wed, 14 Dec 2011 23:18:03 +0000 (15:18 -0800)]
Merge pull request #301 from wbbaddons/fileUtilImprovements

(add|remove)(Leading|Trailing)Slash rewritten

12 years ago(add|remove)(Leading|Trailing)Slash rewritten
Tim Düsterhus [Wed, 14 Dec 2011 18:49:01 +0000 (19:49 +0100)]
(add|remove)(Leading|Trailing)Slash rewritten

12 years agoSome optimizations
Luzifr [Wed, 14 Dec 2011 18:06:49 +0000 (19:06 +0100)]
Some optimizations

Deleted obsolete declarations; Changed syntax of a declaration; Some
comments added.

12 years agoSmall bug fix
Luzifr [Wed, 14 Dec 2011 14:07:40 +0000 (15:07 +0100)]
Small bug fix

12 years agoAnother small change.
Luzifr [Tue, 13 Dec 2011 18:57:10 +0000 (19:57 +0100)]
Another small change.

12 years agoSmall change
Luzifr [Tue, 13 Dec 2011 18:43:16 +0000 (19:43 +0100)]
Small change

12 years agoAdding getLink()-method for page-menu
Tim Düsterhus [Mon, 12 Dec 2011 16:45:12 +0000 (17:45 +0100)]
Adding getLink()-method for page-menu

12 years agoMatch floating point numbers as well
Tim Düsterhus [Mon, 12 Dec 2011 14:09:17 +0000 (15:09 +0100)]
Match floating point numbers as well

Valid numbers are (when . is the decimal-point):
1024
1.02
.5

12 years agoMerge pull request #285 from wbbaddons/stripHTMLComments
Alexander Ebert [Sat, 10 Dec 2011 20:21:15 +0000 (12:21 -0800)]
Merge pull request #285 from wbbaddons/stripHTMLComments

Strip HTML comments as well in StringUtil::stripHTML()

12 years agoMerge pull request #294 from wbbaddons/wcfJSSemicolon
Alexander Ebert [Sat, 10 Dec 2011 20:20:41 +0000 (12:20 -0800)]
Merge pull request #294 from wbbaddons/wcfJSSemicolon

Adding missing semicolons

12 years agoMerge pull request #292 from wbbaddons/fixUSH
Alexander Ebert [Sat, 10 Dec 2011 20:19:58 +0000 (12:19 -0800)]
Merge pull request #292 from wbbaddons/fixUSH

Fix UserStorageHandler

12 years agoAdding missing semicolons
Tim Düsterhus [Sat, 10 Dec 2011 15:06:47 +0000 (16:06 +0100)]
Adding missing semicolons

12 years agoExamine packageID as well when checking whether the cache is loaded
Tim Düsterhus [Sat, 10 Dec 2011 12:12:33 +0000 (13:12 +0100)]
Examine packageID as well when checking whether the cache is loaded

12 years agoFixing UserStorageHandler
Tim Düsterhus [Sat, 10 Dec 2011 12:07:49 +0000 (13:07 +0100)]
Fixing UserStorageHandler

$packageID was not correctly passed.

12 years agoFixes menu item options not saved in database
max-m [Fri, 9 Dec 2011 22:07:32 +0000 (23:07 +0100)]
Fixes menu item options not saved in database

12 years agoRemoved useless declaration
Luzifr [Thu, 8 Dec 2011 17:40:20 +0000 (18:40 +0100)]
Removed useless declaration

12 years agoStrip HTML comments as well in StringUtil::stripHTML()
Tim Düsterhus [Thu, 8 Dec 2011 15:55:18 +0000 (16:55 +0100)]
Strip HTML comments as well in StringUtil::stripHTML()

Fixes https://www.woltlab.com/bugtracker/index.php?page=Bug&bugID=428

12 years agoImplements an fileSize option-type for easier handling of file sizes.
Tim Düsterhus [Wed, 7 Dec 2011 16:21:23 +0000 (17:21 +0100)]
Implements an fileSize option-type for easier handling of file sizes.

It transparently converts inputs like 42 kB or 1337 MiB to Integers to
save in the database and converts the back to strings in the ACP.

12 years agoMerge pull request #280 from max-m/patch-1
Harald Szekely [Mon, 5 Dec 2011 18:35:18 +0000 (10:35 -0800)]
Merge pull request #280 from max-m/patch-1

Changed "style.css" to "wcf.css" ...

12 years agoZipFile doesn't exist but GZipFile ;)
max-m [Mon, 5 Dec 2011 18:06:25 +0000 (19:06 +0100)]
ZipFile doesn't exist but GZipFile ;)

12 years agoChanged "style.css" to "wcf.css" according to https://github.com/WoltLab/WCF/commit...
max-m [Mon, 5 Dec 2011 17:39:03 +0000 (18:39 +0100)]
Changed "style.css" to "wcf.css" according to https://github.com/WoltLab/WCF/commit/c9591332fe488fec4920f7a8fc634e04587b38dc

12 years ago"dropdown" -> "dropDown"
Luzifr [Mon, 5 Dec 2011 16:58:14 +0000 (17:58 +0100)]
"dropdown" -> "dropDown"

I don't like that change, because too much CamelCase makes me sick and
destroys readability, but for consistency-reasons i'll do it …

12 years agoRenamed style-files
Luzifr [Mon, 5 Dec 2011 15:26:12 +0000 (16:26 +0100)]
Renamed style-files

12 years agoFixing WCF.Template
Tim Düsterhus [Mon, 5 Dec 2011 13:21:21 +0000 (14:21 +0100)]
Fixing WCF.Template

12 years agoCorrected comment syntax
Luzifr [Sun, 4 Dec 2011 15:13:16 +0000 (16:13 +0100)]
Corrected comment syntax

12 years agoFixes bug in AbstractOptionListForm::validate()
Matthias Schmidt [Sun, 4 Dec 2011 12:42:00 +0000 (13:42 +0100)]
Fixes bug in AbstractOptionListForm::validate()

Forms that extend AbstractOptionListForm validate first, but their entries in the errorType property are overwritten by the option handler's errors.

12 years agoUsers can now be added through ACP again
Alexander Ebert [Fri, 2 Dec 2011 19:27:38 +0000 (20:27 +0100)]
Users can now be added through ACP again

Fixes #273

12 years agoJust a small fix
Luzifr [Fri, 2 Dec 2011 15:20:15 +0000 (16:20 +0100)]
Just a small fix

12 years agoCollapsible sidebar button optimized
Luzifr [Fri, 2 Dec 2011 14:47:26 +0000 (15:47 +0100)]
Collapsible sidebar button optimized

Now we only see 3 arrows inside that tall collapse-"button", if the
page gets longer than 600 pixels.

12 years agoReverted 2febb84
Alexander Ebert [Fri, 2 Dec 2011 14:30:01 +0000 (15:30 +0100)]
Reverted 2febb84

12 years agoMerge pull request #264 from wbbaddons/fqnIllegalLinkException
Alexander Ebert [Fri, 2 Dec 2011 14:23:28 +0000 (06:23 -0800)]
Merge pull request #264 from wbbaddons/fqnIllegalLinkException

Fixing fully qualified name of IllegalLinkException

12 years agoMerge pull request #269 from wbbaddons/getController
Alexander Ebert [Fri, 2 Dec 2011 14:23:10 +0000 (06:23 -0800)]
Merge pull request #269 from wbbaddons/getController

Adding Request::getController

12 years agoImplode will already return an empty string.
Tim Düsterhus [Thu, 1 Dec 2011 21:52:18 +0000 (22:52 +0100)]
Implode will already return an empty string.

12 years agoUse a type-secure check
Tim Düsterhus [Thu, 1 Dec 2011 21:50:55 +0000 (22:50 +0100)]
Use a type-secure check

12 years agoUse a real signature separated with --
Tim Düsterhus [Thu, 1 Dec 2011 21:50:34 +0000 (22:50 +0100)]
Use a real signature separated with --

12 years agoFixes a possible bug in AbstractDatabaseObjectAction::update()
Matthias Schmidt [Thu, 1 Dec 2011 21:45:25 +0000 (22:45 +0100)]
Fixes a possible bug in AbstractDatabaseObjectAction::update()

This bug currently occurs if you try to edit the profile inline in the profile itself (Error: "Undefined index: data"). The reason for this bug is that the after saving the input data, the "real" user data isn't updated, only their options which is handled by the UserAction separately (UserAction, line 140), so 'data' doesn't always need to exist.

12 years agoUse SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs
Tim Düsterhus [Thu, 1 Dec 2011 21:42:43 +0000 (22:42 +0100)]
Use SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs

Countable and Iterator are implemented.

12 years agoFixes floating problem
Luzifr [Thu, 1 Dec 2011 19:32:57 +0000 (20:32 +0100)]
Fixes floating problem

12 years agoMaking the strings shorter
Luzifr [Thu, 1 Dec 2011 18:15:17 +0000 (19:15 +0100)]
Making the strings shorter

12 years agoSmall fixes
Luzifr [Thu, 1 Dec 2011 18:10:06 +0000 (19:10 +0100)]
Small fixes

12 years agoMerge pull request #270 from Gravatronics/bug/packageUpdatePackageID
Alexander Ebert [Thu, 1 Dec 2011 17:04:34 +0000 (09:04 -0800)]
Merge pull request #270 from Gravatronics/bug/packageUpdatePackageID

Fixes bug during package update

12 years agoMerge pull request #271 from Gravatronics/bug/userOptionUpdate
Alexander Ebert [Thu, 1 Dec 2011 17:04:15 +0000 (09:04 -0800)]
Merge pull request #271 from Gravatronics/bug/userOptionUpdate

Fixes wrong method name in UserOptionEditor::update()

12 years agoFixes wrong method name in UserOptionEditor::update()
Matthias Schmidt [Thu, 1 Dec 2011 16:56:50 +0000 (17:56 +0100)]
Fixes wrong method name in UserOptionEditor::update()

12 years agoFixes bug during package update
Matthias Schmidt [Thu, 1 Dec 2011 16:50:20 +0000 (17:50 +0100)]
Fixes bug during package update

The id of the updated package is still read like when no routes were used.

12 years agoSidebar optimizations
Luzifr [Thu, 1 Dec 2011 16:44:45 +0000 (17:44 +0100)]
Sidebar optimizations

Still unfinished!

12 years agoRemoved debug code
Marcel Werk [Thu, 1 Dec 2011 16:43:05 +0000 (17:43 +0100)]
Removed debug code

12 years agoAdded hascontent to sidebar
Marcel Werk [Thu, 1 Dec 2011 16:09:01 +0000 (17:09 +0100)]
Added hascontent to sidebar

12 years agoCollapsible sidebar reloaded
Luzifr [Thu, 1 Dec 2011 15:05:29 +0000 (16:05 +0100)]
Collapsible sidebar reloaded

Complete overhaul of the collapse-function due to the switch to a
floated sidebar; Renamed some classes; All done by CSS now; Animation
works in all odern browsers incl. IE 10.

12 years agoFloated sidebar
Luzifr [Wed, 30 Nov 2011 18:12:42 +0000 (19:12 +0100)]
Floated sidebar

Floated sidebar ready.
ToDo: Collapsing does not yet work correctly! Work in progress!

12 years agoFixed option handler not displaying user values
Alexander Ebert [Wed, 30 Nov 2011 15:15:40 +0000 (16:15 +0100)]
Fixed option handler not displaying user values

12 years agoSome small stuff
Luzifr [Wed, 30 Nov 2011 14:59:11 +0000 (15:59 +0100)]
Some small stuff

Preparing for floating sidebar; Corrected wrong class name; Changed the
German name of Cronjobs to "Cronjobs", a word which is really common
now and also much shorter thus more handy!

12 years agoUpdating user options now working
Alexander Ebert [Wed, 30 Nov 2011 14:05:19 +0000 (15:05 +0100)]
Updating user options now working