Commit Graph

110 Commits

Author SHA1 Message Date
Ingo Schommer
3be2d445f9 elofgren: VAR FIX: Initialize 'has' to an array and use isset() for removeList in ComponentSet::setByIDList() to fix undefined variable errors when saving 'SubscribeForm?' page.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41819 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:38:26 +00:00
Ingo Schommer
f9c5f25254 mlanthaler: Bugfix: Make sure *Priority* is set, otherwise an invalid SQL statement will be generated when the page is published (Priority = ).
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41818 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:33:51 +00:00
Ingo Schommer
e452de966c elofgren: VAR FIX: Fix a large amount of undefined variable errors when creating and editing a 'newsletter subscription form' page by adding needed issets and initializations.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41817 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:31:08 +00:00
Ingo Schommer
2a2b1db203 mlanthaler: Small fix to prevent E_NOTICEs.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41815 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:21:35 +00:00
Ingo Schommer
fa43f70696 mlanthaler: Fixed small typo.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41813 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:10:25 +00:00
Ingo Schommer
4d7346825a mlanthaler: Bugfix: Fixed small bug. Also notified the OpenID library maintainer so that they fix the library itself.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41811 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:07:23 +00:00
Ingo Schommer
0eada9f41b Refactored getClassManifest() for clearer ignore-rules
added $ignore_files and $ignore_folders

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41810 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 23:03:29 +00:00
Ingo Schommer
17202b859e mlanthaler: Bugfix: Fixed error "Trying to get property of non-object" when the accessed page doesn't exists (passed wrong URL).
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41789 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 19:17:37 +00:00
Ingo Schommer
fbc375a282 mlanthaler:OpenID authentication works now. To use it simple create an user account without password and put your *complete* OpenID identifier in the email field, e.g. "http://markus-lanthaler.myopenid.com/".
You can get a free OpenID from http://www.myopenid.com  (merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41785 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 19:10:18 +00:00
Ingo Schommer
4ae8c85d46 mlantahler:Bugfix: Small bugfix to prevent the usage of uninitialized $funcName. Happens if the form is submitted by pressing <enter> instead of pressing the button (at least in IE7). (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41779 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 18:02:03 +00:00
Ingo Schommer
d47e6cf67c mlantahler:Bugfix: Added checks in DataObjectSet::First() and DataObjectSet::Last() to prevent errors on an empty $items array. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41778 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 17:59:33 +00:00
Ingo Schommer
898d897c9e mlantahler: Bugfix: $URL != $url. The variable names are case-sensitive in PHP (http://www.php.net/manual/en/language.variables.php) (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41777 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 17:47:45 +00:00
Ingo Schommer
9a22699fcc elofgren: Add 2 needed calls to isset(): in Hierarchy::markingFilterMatches() and Notifications::getItems(). Errors were encountered when moving and deleting files in 'Files and Images'. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41775 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 17:40:29 +00:00
Ingo Schommer
daca02b9a7 mlanthaler: Don't show a error message and don't quit the script when the error was expected (statement with an @ in front to suppress the error). (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41730 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 03:19:34 +00:00
Ingo Schommer
f7646412f4 fixed merging error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41727 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 02:49:36 +00:00
Ingo Schommer
817f279cf1 pkrenn: Added methods needed for testing, namely databaseExists and selectDatabase (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41713 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:45:06 +00:00
Ingo Schommer
f912a33b63 pkrenn: Fixing database issues (wrong DB connections, logical errors) (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41712 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:44:34 +00:00
Ingo Schommer
b29cc1fbc7 pkrenn: tableList() fixed, indexList() added (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41711 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:41:13 +00:00
Ingo Schommer
c892ad24a3 pkrenn: Issues with prepared statements fixed (as they are limited to only a few positions).
fieldList() is nearly finished, only the default values are not working correctly, but that should be done rather soon  (merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41710 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:39:37 +00:00
Ingo Schommer
9a516662d0 pkrenn: tableList() has been added, three different queries necessary (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41709 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:37:48 +00:00
Ingo Schommer
08b2874a41 pkrenn: getGeneratedID added, fixed class PDOQuery (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41707 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:35:54 +00:00
Ingo Schommer
c144bf1aef pkrenn: Code cleaned up and affectedRows() are now supported (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41706 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:32:37 +00:00
Ingo Schommer
d7a4e657dc pkrenn: Methods with alter (field, table, index) rewritten - now supporting prepared statements. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41705 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:29:09 +00:00
Ingo Schommer
f0b9103de4 pkrenn: Various database updates (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41704 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:28:16 +00:00
Ingo Schommer
713802622b pkrenn: Various database updates (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41703 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:24:30 +00:00
Ingo Schommer
f2564794bf pkrenn: Basic PDO (PHP Database Object) class, including the connection strings.
Other functions need to be ported from MySQLDatabase.php into PDO syntax. (merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41702 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:23:36 +00:00
Ingo Schommer
d9b0843281 lperera: Fixed error message - Convert::raw2html is deprecated. (merged from branches/gsoc)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41701 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 01:21:37 +00:00
Ingo Schommer
0d80ed0e7b wscott: Patched the director to allow modules to register a function
that will be run on every page load. 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41691 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:54:02 +00:00
Ingo Schommer
4cb5bd719a wscott: Added some additional fixes & such to sapphire
TooglePanel? can be created initially closed 
PasswordField? honors a max size passed to it 
SiteTree? / Pages can now have custom meta tags 
Sitemap can deal with pinging google on updates, plus a couple other minor changes 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41690 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:47:00 +00:00
Ingo Schommer
5857c4cab6 wscott: Added base code for a working Google Sitemaps support.
Changes in Files: 
* Sitemap.php - controller for the sitemap, new 
* Sitemap.ss - template for the sitemap, new 

* main.php - added director rule 
* SiteTree?.php - added 'priority' database field, cms code to override priority 

TODO: ping google when the sitemap is updated, 

namely when pages are added / removed, or when a priority is overridden 


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41689 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-14 00:27:15 +00:00
Jeremy Shipman
a672aa7474 removed call by reference because it was causing a warning that it is depricated use. Refer to 41021
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41510 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-10 00:21:54 +00:00
Matt Peel
3a69b030fb Facebook doesn't like lots of nested tags, we need to close the <li> tags that we open for each database table.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41478 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 05:49:21 +00:00
Matt Peel
59147d10d9 Reverted previous change - null is a valid value for an argument, but not for an if statement.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41475 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 04:02:54 +00:00
Matt Peel
d0a256e647 $size is always 50 or something else if you set a default value for a function argument.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41473 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-09 03:30:53 +00:00
Matt Peel
aaabe7ee94 Removed junk from CVS, unnecessary newlines etc
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41462 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-08 03:18:26 +00:00
Sam Minnee
51c1e7ffec Refactored CMS page-URL accessing to use ->AbsoluteLink(), which can be overridden by defining alternateAbsoluteLink()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41283 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-05 06:42:26 +00:00
Jeremy Shipman
2cafe279a9 Included sapphire/pear in the directories to exclude from manifest builder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41272 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-05 04:14:09 +00:00
Matt Peel
85b45924a2 When mysql_connect() fails to establish a connection, it means that it couldn't connect, not that it could. :P
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41234 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-04 09:24:55 +00:00
Romain Louis
b5c83d3513 setByIDList function update( notices and ajax problem solving )
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41165 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-03 05:08:33 +00:00
Sam Minnee
8ecb8f0d6a Added '<% if HasPerm(PERM_CODE() %>' to ViewableData for template
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41094 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-31 00:27:34 +00:00
Sam Minnee
c0660c147b Added Director::redirected_to / Controller::redirectedTo() for redirection-detection
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41093 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-31 00:26:41 +00:00
Andrew O'Neil
83020ccc03 Removed require_once - it's not needed, and for some reason it makes PHP die on some servers
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41079 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-30 22:55:37 +00:00
Sam Minnee
8b582236dd Fix lloadDescendantIDListInto - it needs the & value given on the caller, for some reason.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41019 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-29 06:05:17 +00:00
Sam Minnee
b7ec0fd4df Fix ErrorPage publication
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40998 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 22:27:13 +00:00
Sam Minnee
c8f38617cb #write:31 - Fixed redirection from /home/ to /./ in IE6
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40980 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 02:49:31 +00:00
Sam Minnee
84e01faf1e Refactored newsletter system to put recipient selection and form-fieldset generation into the NewsletterType class, to allow for subclassing NewsletterType to create special system newsletters. [see oriwave2 for an example]
Removed a number of notice-level errors.
Allowed for BOUNCE_EMAIL to not exist and bounce-handling to be disabled.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40963 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 01:55:45 +00:00
Andrew O'Neil
35665321b9 Rename Pad PaddedImage, to be consistant with CroppedImage
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40948 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-28 01:26:52 +00:00
Sam Minnee
f199dc6cd4 Added docblock headers and removed notice-level errors
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40912 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:13:43 +00:00
Sam Minnee
79460dadfc Added HTTPResponse::getHeader(), to aid test verification
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40911 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:09:54 +00:00
Sam Minnee
8bcff1f1d6 Added DataObjectSet::find(), for using a DOS a bit like a PHP map
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40910 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-08-27 05:09:13 +00:00