Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
665 commits
Select commit Hold shift + click to select a range
6691a84
changed session auth to not always set the cookie in the headers => a…
Mar 3, 2012
d5dfc9b
changed session auth to not always set the cookie in the headers => a…
Mar 3, 2012
9cbb65b
added cleanup to remember tabs functionality
Mar 3, 2012
0975908
PIMCORE-1413 - Analytics-Tag-Management based on POST-Parameter & err…
Mar 3, 2012
a3d8dff
PIMCORE-1407 - Cannot unset website setting of type document, asset o…
Mar 3, 2012
ddc7a2d
PIMCORE-1414 - Would like to be able to add my own attributes to a link.
Mar 4, 2012
5da7f04
PIMCORE-1403 - Page unload confirmation (added user configuration and…
Mar 4, 2012
6cefa91
fixed problem with lowercase translations
Mar 5, 2012
ec7a249
fixed problem with logger in cache initialization (if there was a pro…
Mar 5, 2012
0e05246
added mongodb cache adapter & some check in cache interface Pimcore_M…
Mar 5, 2012
adfb071
added linebreak at the end of logincontroller
Mar 6, 2012
543ff98
removed jquery 1.4.2 sources (references were removed already with 1.…
Mar 6, 2012
782f0eb
refactored some db detching methods fetchRow -> fetchOne and fetchAll…
Mar 6, 2012
6fdcf7a
version cleanup is now entirely done in the maintenance job
Mar 6, 2012
912ec54
PIMCORE-1418 - Problem with content-encoding: none
Mar 6, 2012
ff18c02
PIMCORE-928 - register shutdown function hook
Mar 6, 2012
26ba45f
PIMCORE-1417 - Deactivate maintenance jobs while maintenance mode is …
Mar 6, 2012
7652889
eventmanager
Mar 7, 2012
8485c07
outputbuffer, gzip compression only for frontend (breaks the WSDL)
Mar 7, 2012
005b1e3
version ...
Mar 7, 2012
b710acb
header check in ouputbufferend shutdown function and gzip compression
Mar 7, 2012
8331e04
header check in ouputbufferend shutdown function and gzip compression…
Mar 7, 2012
9f7ee1a
not finished => headers ....
Mar 7, 2012
3cf12c2
PIMCORE-1418 - Problem with content-encoding: none => now the content…
Mar 7, 2012
d700fc6
PIMCORE-1424 - Redirect-log to detect infinte redirect loops
Mar 7, 2012
5f55ef2
typo in http header info
Mar 7, 2012
3bad3a6
replaced pimcore encoded header with powered by header
Mar 7, 2012
a9b9e37
added CRC32 to gzip compression in outputbuffer end
Mar 8, 2012
11a9dae
optimized autocreation of translations => do not create translations …
Mar 8, 2012
2e2c1e6
mongodb cache adapter improvement converning expires
Mar 8, 2012
b39b181
mongodb cache adapter improvement converning expires
Mar 8, 2012
3ea1e5a
PIMCORE-1425 - Renaming key in Website Translation fails
Mar 9, 2012
6b84fc1
PIMCORE-1428 - error_reporting(E_ALL ^ E_NOTICE);
Mar 9, 2012
d5de8f1
PIMCORE-1428 - error_reporting(E_ALL ^ E_NOTICE);
Mar 9, 2012
487186c
fixed problem with mongodb cache adapter (lifetime, ...)
Mar 9, 2012
9351fd8
PIMCORE-1431 - Mail framework - sending mail causes deadlock
Mar 11, 2012
71454f2
version ...
Mar 11, 2012
30e9320
IE 10 compatibility fix in libfixes.js (NOT TESTED YET!)
Mar 11, 2012
9588a0d
PIMCORE-1433 - Temporary IE10 Support (until Ext 4 is integrated)
Mar 12, 2012
7cb7cd8
Added support for module when $this->inc(); is called
Mar 12, 2012
c52b80e
document snippet editable module support
Mar 12, 2012
ec78e21
fixed problem with $this->snippet() in a block where the action of th…
Mar 12, 2012
15b9c56
version ...
Mar 12, 2012
2b0e6bf
PIMCORE-1427 - PHP Fatal error: Call to a member function setProperti…
Mar 12, 2012
2d1abbc
PIMCORE-1436 - Improving transliteration: asia, ... Text/Unidecode.pm
Mar 12, 2012
e019e9c
IE compatiblity mode order
Mar 13, 2012
ddaf567
transliteration trimming the result (sometimes there's a space after …
Mar 13, 2012
e97c0fa
user cast tinyint values to bool in User model
Mar 13, 2012
ec2da8e
removed transliteration javascript embedding in index/index.php (caus…
Mar 13, 2012
e9605c8
object relations performance improvement: using a PHP sorting functio…
Mar 13, 2012
fff25f4
check if user-agent supports gzip compression
Mar 13, 2012
51d80dc
versions are only saved if they are activated in the system-settings …
Mar 14, 2012
b92679e
removed createDataRows() in object concrete resource, because it seem…
Mar 14, 2012
44eabca
optimized insert/update for objects
Mar 15, 2012
31ce7b5
renamed optimize-tables cli script to mysql-tools and added a table w…
Mar 15, 2012
55b50b2
optimized mysql warmup
Mar 15, 2012
e904c2e
fixed problem with routes and the nearest document is a folder, this …
Mar 15, 2012
f0fdeb9
fixed little problem with insertOrUpdate in object_concrete
Mar 15, 2012
4458f7d
javascript console dummy fallback: added more methods (all provided b…
Mar 15, 2012
801fa0a
PIMCORE-1434 - translateAdmin should have the same features as translate
Mar 19, 2012
e998cad
Pimcore_Event sorting items directly in register, not at fire (perfor…
Mar 19, 2012
15359e6
improved cache of resource implementation cache
Mar 19, 2012
4b9f212
Added filter for email logs
Mar 19, 2012
26ae0fa
Added filter for email logs
Mar 19, 2012
eada504
fixed problem in Pimcore_Tool_Text where wrong datatypes where return…
Mar 19, 2012
b52f0b9
added cache for fieldcollection and objectbrick ::getByKey() -> like …
Mar 19, 2012
a887522
PIMCORE-1429 - Pimcore_Tool_Console::execInBackground - return PID
Mar 19, 2012
8f0d75b
PIMCORE-1430 - Fix all E_STRICT warnings in the pimcore codebase
Mar 19, 2012
2ee507c
PIMCORE-1430 - Fix all E_STRICT warnings in the pimcore codebase => f…
Mar 19, 2012
bdc8a82
Email logs - removed resend icon when no text/html log files are avai…
Mar 20, 2012
9672af5
PIMCORE-1205 - Improve Performance Document_Tag_Wysiwyg::getCacheTags…
Mar 20, 2012
21a1762
PIMCORE-1205 - Improve Performance Document_Tag_Wysiwyg::getCacheTags…
Mar 20, 2012
40c02b1
PIMCORE-1446 - missing permission gets ignored
Mar 20, 2012
1eabaa7
changed width of roles multiselect box
Mar 21, 2012
1f59fd1
error handling for "framing" elements in document editmode
Mar 21, 2012
ed42daf
optionally include inherited objectbricks into getItems-method of Obj…
Mar 23, 2012
5cc27e3
new icon for document/asset/object delete in detail view
Mar 26, 2012
cf744b9
new icon for document/asset/object delete in detail view
Mar 26, 2012
0afce8c
blocking % values in document wysiwyg editable tag configurations => …
Mar 26, 2012
c19a17e
PIMCORE-1449 - Support for %-values in wysiwyg editable
Mar 26, 2012
57836c8
PIMCORE-1450 - System setting for automatically created redirects whe…
Mar 26, 2012
8109921
PIMCORE-1451 - Do not copy the pretty url the the target document (sh…
Mar 26, 2012
2c6b901
PIMCORE-1299 - Website-Error Log
Mar 26, 2012
f9db600
PIMCORE-1299 - Website-Error Log => update script + install.sql
Mar 26, 2012
e2b78b3
added maintenance cleanup for http error log
Mar 27, 2012
fa63864
problem with path and moving childs
Mar 27, 2012
fc1f19b
added amount column in http error log, to see how often the error occ…
Mar 27, 2012
704bb47
added filter field for path in http error log
Mar 27, 2012
4820344
added flush button in http error log
Mar 27, 2012
65c8e1d
added open link in new window in http error log
Mar 27, 2012
43a6947
added grouping and detail page to http error log
Mar 27, 2012
3c2525f
force string in Pimcore_Tool_Console::getPhpCli()
Mar 27, 2012
687d517
Documents with navigation_exclude property should be added to navigat…
Hagith Mar 27, 2012
d3e635b
dragable areabricks + toolbar for adding bricks => NOT FINISHED!
Mar 28, 2012
8a1db74
dragable areabricks + toolbar for adding bricks + controlbar is only …
Mar 28, 2012
0d03d39
Merge pull request #14 from rafalgalka/navigation-exclude
Mar 28, 2012
f23c671
dragable areabricks + toolbar for adding bricks => fixed bug in Chrom…
Mar 29, 2012
36078b3
IE 10 compatibility with http headers instead of meta tags
Mar 29, 2012
4c9b47b
elements in sharedtoolbar of wysiwyg is now are now floating and the …
Mar 29, 2012
3d5d4ec
PIMCORE-1453 - downloadAction / downloadAsZipAction respoecting view …
Mar 29, 2012
e53be85
console.log removed
Mar 29, 2012
1814ace
PIMCORE-1454 - Objects with multiple bricks containing hrefs do not d…
Mar 29, 2012
5370241
native html5 support for video tag <video>
Mar 30, 2012
0447dc5
added mime-types for mp4 and webm in .htaccess
Mar 30, 2012
dd81528
added dnd support in editmode for the html5 player
Mar 30, 2012
91cd848
fixed some bug with copy service and emails
Mar 30, 2012
db767bb
mobile preview (iphone)
Apr 3, 2012
ff69253
version ...
Apr 3, 2012
4850d1a
mobile preview: added flip icon on iphone covers
Apr 3, 2012
5fec1cd
page preview buttons state, area block toolbar with text
Apr 3, 2012
e2fb273
PIMCORE-1462 - Not possible to create new translation (Key is always …
Apr 3, 2012
3089cda
PIMCORE-1461 - When I open several documents and "element is used by …
Apr 3, 2012
f79bb03
Pimcore_Mail: Added ";" as a separator for multiple recipients
Apr 4, 2012
efcbe6e
version ...
Apr 4, 2012
76bc927
added module support in Document_Service::render()
Apr 4, 2012
6de4374
absolute link in httpErrorLog.js corrected
Apr 4, 2012
6713c58
Document_Service->render() - Passed params are now also added to the …
Apr 4, 2012
57d3311
added clear to areablock dropzone spacer
Apr 4, 2012
073ef64
disabled shadow on areablock toolbar (position fixed problem)
Apr 4, 2012
ae7d02f
version ...
Apr 5, 2012
260f986
expiry date for redirects
Apr 5, 2012
240ab77
added "clear cache" in test bootstrap
Apr 5, 2012
285e313
removed legacy pimcorelink ckeditor plugin which wasn't in use
Apr 5, 2012
eac081f
added 2 ckeditor plugins which add a entry in the contextmenu to open…
Apr 5, 2012
9ae1f78
PIMCORE-1464 - Expiry date for redirects => completed the maintenance…
Apr 5, 2012
3b71dcc
PIMCORE-1463 - Glossary - Option for exact match + updated install.sq…
Apr 5, 2012
f2c44b9
better backward compatibility for video editable => if ffmpeg is pres…
Apr 11, 2012
51718cb
better backward compatibility for video editable => if ffmpeg is avai…
Apr 11, 2012
42bd043
changed youtube and vimeo to iframe integrations (from object code)
Apr 11, 2012
4ab4907
Extensionmanager: added "systemLocale" param to iframe url (otherwise…
Apr 11, 2012
8034984
selectPath for elements refactured => NOT FINISHED
Apr 11, 2012
49c5500
added idPath info to object folders
Apr 11, 2012
c635f4a
consistent button order across all entities, added show in tree butto…
Apr 11, 2012
5bd41f2
changed some icons (medium) save, publish, unpublish, reload
Apr 11, 2012
395cc3f
fixed bug with opened tabs and cookies
Apr 11, 2012
dbab257
changed superfield in select an multiselect field definition to commo…
Apr 12, 2012
ea53743
removed ux roweditor in grids => now using the common editorgridpanel…
Apr 12, 2012
e4e95d0
version ...
Apr 12, 2012
43a7b69
seo-tree: show length of title & description in grid and in editor (l…
Apr 12, 2012
ab210bc
removed archive import / export
Apr 12, 2012
5d06d21
checking for >= 1 to restrict to one related item only for objects an…
lightninggk Apr 12, 2012
3f247b7
removed Ext.ux.SuperField out of pimcore and replaced it with Multise…
Apr 12, 2012
10e56ef
Merge pull request #16 from lightninggk/master
Apr 12, 2012
a2733b6
pull request #15 https://github.com/pimcore/pimcore/pull/15 viewport …
Apr 12, 2012
8e43269
version ...
Apr 13, 2012
b197d50
redirecting allowcapitals and trailing slashes only when request meth…
Apr 13, 2012
264fc41
improved error handling => error page not only for frontend, php erro…
Apr 13, 2012
623be24
rewrite pimcore event - is now a lot of faster
timglabisch Apr 14, 2012
05724e8
unnötige Datei entfernen
timglabisch Apr 14, 2012
c736042
PIMCORE-1471 - Uncaught exception causing a fatal error => error page…
Apr 14, 2012
74b14aa
PIMCORE-1467 - Scrolling workspace panel in users and roles
Apr 14, 2012
5692412
Merge pull request #17 from timglabisch/pimcore_event
Apr 14, 2012
e50fec0
version ...
Apr 16, 2012
e420cc7
cache tags table with char length 255
Apr 16, 2012
4cf243a
fixed some bugs in refactored class data definitions (where superfiel…
Apr 16, 2012
eb3ad65
fixed some bugs in refactored class data definitions: fixed some chec…
Apr 16, 2012
d80d9ca
PIMCORE-1475 - "catch" Typo in Pimcore.php
Apr 16, 2012
b833eb8
added wmode=transparent to video editable youtube integration (iframe…
Apr 16, 2012
9b2d5bf
typo in exception message in document-controller
Apr 16, 2012
9ebe0c9
detailed info in exception whemn key of object or document is wrong
Apr 16, 2012
efb6730
moved tree locks in install.sql to the right place (a-z) ;-) so that …
Apr 16, 2012
07a9d14
version 1.4.5
Apr 16, 2012
b2bcdd5
problem when using sites and $doc->getFullPath() when $doc is also th…
Apr 17, 2012
31c006b
PIMCORE-1479 - Automatically sending rel=canonical header when reques…
Apr 17, 2012
173ed34
PIMCORE-1477 - Missing localization in property grid (Inherited) and …
Apr 17, 2012
d79910a
PIMCORE-1478 - Remove ? (question mark) from URL's filtered by Websit…
Apr 17, 2012
af1b058
document/editmail.js overwrote the document.edit. both files are now …
timglabisch Apr 17, 2012
c36a7ed
Merge pull request #18 from timglabisch/wrong_document_edit
Apr 18, 2012
8d5c2ff
version ...
Apr 18, 2012
897e4bf
Pimcore_Tool::isValidKey() removed capitals
Apr 19, 2012
6febd4a
PIMCORE-1480 - Classes in DB saved wrong when localized fields in the…
Apr 19, 2012
eccf757
PIMCORE-1481 - manual areablocks arent working
Apr 19, 2012
0b2dac1
fixed problem with IE8 and drag an drop in document-editmode
Apr 20, 2012
24fa262
event-tracking api (NOT FINISHED)
Apr 22, 2012
7827aaf
PIMCORE-1486 - Call to a member function getFieldDefinitions()
Apr 22, 2012
b930253
version ...
Apr 22, 2012
f994d8a
Merge pull request #20 from timglabisch/install_drop_treelocks
Apr 22, 2012
cb48aba
removed event tracking api
Apr 23, 2012
8f9b5bc
version ...
Apr 23, 2012
459f200
PIMCORE-1487 - Dragging a document into the WYSIWYG surrounds the cre…
Apr 23, 2012
fe2378e
PIMCORE-1225 - Allow inline upload of asset within object (image data…
Apr 23, 2012
044dbc0
PIMCORE-1225 - Allow inline upload of asset within object (href, mult…
Apr 25, 2012
3b0b8dc
PIMCORE-1489 - Saving a document before a renderlet has been loaded, …
Apr 25, 2012
c438fa7
fixed problem in method AssetController::getImageThumbnailAction() wi…
Apr 26, 2012
ed2d13a
fixed problem in version cleanup, only documents where cleaned up, bu…
Apr 26, 2012
52ffae9
fixed problem in version cleanup, only documents where cleaned up, bu…
Apr 26, 2012
f7353db
version ...
Apr 26, 2012
3e1ef23
Added optional parameter "resetPassedParams" to $this->template() to …
Apr 27, 2012
bb5b90f
calling the garbage collector all 100 iterations in version cleanup (…
Apr 27, 2012
979ce65
PIMCORE-1496 - Save 'just direct childs' option in folders
Apr 27, 2012
42511de
getClasses() in Object_Abstract_Resource always returns an array
Apr 27, 2012
422f4d4
PIMCORE-1490 - image preview wrong for some eps files
Apr 27, 2012
313a436
PIMCORE-1494 - Typo in filename for areablock tags
Apr 27, 2012
e187a23
PIMCORE-1498 - Possibility to define ICC color profiles for CMYK -> R…
Apr 28, 2012
f07f4ee
PIMCORE-1500 - Better code editor inside server explorer
Apr 29, 2012
7b38a3b
version ...
Apr 30, 2012
e5b215a
document: input and textarea, automatically get style from parent ele…
Apr 30, 2012
9d11ed4
removed auto-hide feature for buttons in blocks and areablock and fix…
Apr 30, 2012
f08a1dd
areablock => only use the button as drag - proxy when reordering elem…
Apr 30, 2012
766515c
added support for sites in glossary module
Apr 30, 2012
28b93f9
Glossary::setSite() now accepts object type Site not only the ID
Apr 30, 2012
9cb3d82
version ...
Apr 30, 2012
b025ff5
improved glossary check for current document (now works also with pat…
May 3, 2012
b8c50c2
fixed problem with imagick generated thumbnails using gray colormode …
May 4, 2012
cbafb4a
check system requirements in cli startup.php script
May 4, 2012
7d8b374
youtube and vimeo video https awareness
May 4, 2012
24823d0
corrected double assignment of $tags in TagManagement output filter (…
May 4, 2012
ad3364a
show error message when "show in tree" is not possible because of paging
May 4, 2012
4113384
ffmpeg module: removed dependency to baseline present file from ffmpeg
May 7, 2012
caa1974
ffmpeg module: removed dependency to baseline present file from ffmpe…
May 7, 2012
49a9b4f
version ...
May 8, 2012
b7b3fe1
fixed problem with IE and Timefield in combination with ace editor, a…
May 8, 2012
101b955
system requirements check => not finished
May 9, 2012
acf2b2e
Pimcore_Mail / Placeholder - added option to disable the layout when …
May 11, 2012
63ac66b
Changed assignment of tabbar so it works the same as for documents
May 16, 2012
4c670bb
PIMCORE-1511 - Add flag to prevent sendin content type headers
May 16, 2012
dc23217
PIMCORE-1511 - Add flag to prevent sendin content type headers
May 16, 2012
cc55978
Added autoplay support for youtube videos
May 21, 2012
289d40b
PIMCORE-1516 - Google Analytics Integration: Add possibility to add c…
May 24, 2012
7bf6718
Altered setAbsolutePaths() so it can be used for any domain + fix for…
May 25, 2012
29f7d0b
version ...
May 29, 2012
de37912
fixed problem with youtube and vimeo videos in editmode ($this->view …
May 29, 2012
9a0ff6f
PIMCORE-1517 - User Roles / Workspace Checkboxes not available in Chrome
May 29, 2012
2023ed5
PIMCORE-1520 - add trim() to static routes input fields
May 29, 2012
6f85eb2
PIMCORE-1518 - Workspace shows more objects as it should
May 29, 2012
dae44d9
PIMCORE-1518 - Workspace shows more objects as it should => FIX
May 29, 2012
d8737c5
PIMCORE-1509 - With mbstring enabled and mbstring.func_overload set t…
May 29, 2012
45916ed
PIMCORE-1509 - fixed it also for admin asset thumbnails AssetController
May 29, 2012
c7cb6e6
show details in error box in frontend if an exception was thrown
May 30, 2012
c1ff4c6
integrated system requirements check in install form and in Extras Me…
May 30, 2012
530b4a9
regenerate the session id only when the login was successful and not …
May 30, 2012
8a171a1
limiting the number of remembered tabs to 10 and cleanup the cookie o…
May 30, 2012
0b29062
changed the way how the inital request in Pimcore_Controller_Action_A…
May 30, 2012
2f2d182
some comments ....
May 30, 2012
97ea11f
added headers when a user is logged in to prevent proxies and browser…
May 30, 2012
feac585
cleaned up some admin session topics
May 30, 2012
3a1b204
upgrade to Sabre 1.6.2 stable
grobmeier May 31, 2012
3971f8a
PIMCORE-1523 - cli scripts can't be run when maintenance mode is acti…
May 31, 2012
ee3d2f7
Merge pull request #22 from grobmeier/master
May 31, 2012
49e3355
PIMCORE-1507 - Setting a debug email address for log notifications wi…
May 31, 2012
8f59baf
fixed problem with treelocks -> filter for type was not applied
Jun 1, 2012
79b761f
PIMCORE-1509 - mb_string() ... changed in AssetController to filesize…
Jun 4, 2012
97d2ee3
PIMCORE-1515 - Locking elements in pimcore backend tree: locks do not…
Jun 4, 2012
8644c69
version ...
Jun 5, 2012
52dd2b1
PIMCORE-1510 - Lost password - changing password was not possible
Jun 5, 2012
3ae4ace
added google api client
Jun 8, 2012
cbd4999
google analytics api v3 test in misc controller
Jun 8, 2012
fa996d2
PIMCORE-1352 - Implement Google Analytics API v3 (just google analyti…
Jun 8, 2012
efd3d04
PIMCORE-1287 - Using OAuth 2.0 for google services => had to remove w…
Jun 8, 2012
b1e55d0
image thumbnail pipeline - unsharp mask (Photoshop/Gimp) - for GD and…
Jun 9, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

# mime types
AddType video/mp4 .mp4
AddType video/webm .webm

# rewrites
RewriteEngine On

# ASSETS: check if request method is GET (because of WebDAV) and if the requested file (asset) exists on the filesystem, if both match, deliver the asset directly
Expand All @@ -19,6 +25,7 @@ RewriteRule ^plugins/.*$ / [F,L]
RewriteRule ^pimcore/.*$ / [F,L]

# basic zend-framework setup see: http://framework.zend.com/manual/en/zend.controller.html
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -f
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Issue-Tracker:
http://www.pimcore.org/issues/

Community:
http://www.pimcore.org/forum/
http://www.pimcore.org/board/
3 changes: 1 addition & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license dsf sdaf asdf asdf
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
* @license http://www.pimcore.org/license New BSD License
*/

include_once("pimcore/config/startup.php");

try {
Expand Down
13 changes: 8 additions & 5 deletions pimcore/cli/maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

try {
$opts = new Zend_Console_Getopt(array(
'job|j=s' => 'call just a specific job(s), use "," (comma) to execute more than one job (valid options: scheduledtasks, youtubepreview, logmaintenance, sanitycheck, cleanupoldpidfiles, versioncleanup, and plugin classes if you want to call a plugin maintenance)',
'job|j=s' => 'call just a specific job(s), use "," (comma) to execute more than one job (valid options: scheduledtasks, logmaintenance, sanitycheck, cleanupoldpidfiles, versioncleanup, redirectcleanup, cleanupbrokenviews, and plugin classes if you want to call a plugin maintenance)',
'manager|m=s' => 'force a specific manager (valid options: procedural, daemon)',
'ignore-maintenance-mode' => 'forces the script execution even when the maintenance mode is activated',
'verbose|v' => 'show detailed information during the maintenance (for debug, ...)',
'help|h' => 'display this help'
));
Expand Down Expand Up @@ -74,11 +75,13 @@

// register scheduled tasks
$manager->registerJob(new Schedule_Maintenance_Job("scheduledtasks", new Schedule_Task_Executor(), "execute"));
$manager->registerJob(new Schedule_Maintenance_Job("youtubepreview", new Asset_Video_Youtube(), "maintenanceupload"));
$manager->registerJob(new Schedule_Maintenance_Job("logmaintenance", new Pimcore_Log_Maintenance(), "execute"));
$manager->registerJob(new Schedule_Maintenance_Job("sanitycheck", "Element_Service", "runSanityCheck",array(false)));
$manager->registerJob(new Schedule_Maintenance_Job("logmaintenance", new Pimcore_Log_Maintenance(), "mail"));
$manager->registerJob(new Schedule_Maintenance_Job("httperrorlog", new Pimcore_Log_Maintenance(), "httpErrorLogCleanup"));
$manager->registerJob(new Schedule_Maintenance_Job("sanitycheck", "Element_Service", "runSanityCheck"));
$manager->registerJob(new Schedule_Maintenance_Job("cleanupoldpidfiles", "Schedule_Manager_Factory", "cleanupOldPidFiles"), true);
$manager->registerJob(new Schedule_Maintenance_Job("versioncleanup", new Version(), "maintenanceCleanUp"));
$manager->registerJob(new Schedule_Maintenance_Job("redirectcleanup", "Redirect", "maintenanceCleanUp"));
$manager->registerJob(new Schedule_Maintenance_Job("cleanupbrokenviews", "Pimcore_Resource", "cleanupBrokenViews"));

// call plugins
$plugins = Pimcore_API_Plugin_Broker::getInstance()->getPlugins();
Expand All @@ -100,6 +103,6 @@

}


$manager->run();

?>
94 changes: 94 additions & 0 deletions pimcore/cli/mysql-tools.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
* @license http://www.pimcore.org/license New BSD License
*/

include_once("startup.php");

try {
$opts = new Zend_Console_Getopt(array(
'verbose|v' => 'show detailed information (for debug, ...)',
'help|h' => 'display this help',
"mode|m=s" => "optimize,warmup"
));
} catch (Exception $e) {
echo $e->getMessage();
}

try {
$opts->parse();
} catch (Zend_Console_Getopt_Exception $e) {
echo $e->getMessage();
}


// display help message
if($opts->getOption("help")) {
echo $opts->getUsageMessage();
exit;
}

// display error message
if(!$opts->getOption("mode")) {
echo "Please specify the mode! See: \n";
echo $opts->getUsageMessage();
exit;
}


if($opts->getOption("verbose")) {
$writer = new Zend_Log_Writer_Stream('php://output');
$logger = new Zend_Log($writer);
Logger::addLogger($logger);

// set all priorities
Logger::setPriorities(array(
Zend_Log::DEBUG,
Zend_Log::INFO,
Zend_Log::NOTICE,
Zend_Log::WARN,
Zend_Log::ERR,
Zend_Log::CRIT,
Zend_Log::ALERT,
Zend_Log::EMERG
));
}

$db = Pimcore_Resource::get();

if($opts->getOption("mode") == "optimize") {
$tables = $db->fetchAll("SHOW TABLES");

foreach ($tables as $table) {
$t = current($table);
try {
Logger::debug("Running: OPTIMIZE TABLE " . $t);
$db->query("OPTIMIZE TABLE " . $t);
} catch (Exception $e) {
Logger::error($e);
}
}
} else if ($opts->getOption("mode") == "warmup") {
$tables = $db->fetchAll("SHOW TABLES");

foreach ($tables as $table) {
$t = current($table);
try {
Logger::debug("Running: SELECT COUNT(*) FROM $t");
$res = $db->fetchOne("SELECT COUNT(*) FROM $t");
Logger::debug("Result: " . $res);
} catch (Exception $e) {
Logger::error($e);
}
}
}
56 changes: 56 additions & 0 deletions pimcore/cli/search-backend-reindex.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
* @license http://www.pimcore.org/license New BSD License
*/

include_once("startup.php");

// clear all data
$db = Pimcore_Resource::get();
$db->query("TRUNCATE `search_backend_data`;");

$elementsPerLoop = 100;
$types = array("asset","document","object");

foreach ($types as $type) {
$listClassName = ucfirst($type) . "_List";
$list = new $listClassName();
$elementsTotal = $list->getTotalCount();

for($i=0; $i<(ceil($elementsTotal/$elementsPerLoop)); $i++) {
$list->setLimit($elementsPerLoop);
$list->setOffset($i*$elementsPerLoop);

echo "Processing " .$type . ": " . ($list->getOffset()+$elementsPerLoop) . "/" . $elementsTotal . "\n";

$elements = $list->load();
foreach ($elements as $element) {
try {
$searchEntry = Search_Backend_Data::getForElement($element);
if($searchEntry instanceof Search_Backend_Data and $searchEntry->getId() instanceof Search_Backend_Data_Id ) {
$searchEntry->setDataFromElement($element);
} else {
$searchEntry = new Search_Backend_Data($element);
}

$searchEntry->save();
} catch (Exception $e) {
Logger::err($e);
}
}
Pimcore::collectGarbage();
}
}

$db->query("OPTIMIZE TABLE search_backend_data;");

23 changes: 21 additions & 2 deletions pimcore/cli/startup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
include_once("../config/startup.php");
chdir($workingDirectory);


// CLI Zend_Controller_Front Setup, this is required to make it possible to make use of all rendering features
// this includes $this->action() in templates, ...
$front = Zend_Controller_Front::getInstance();
Pimcore::initControllerFront($front);

$request = new Zend_Controller_Request_Http();
$request->setModuleName(PIMCORE_FRONTEND_MODULE);
$request->setControllerName("default");
$request->setActionName("default");
$front->setRequest($request);
$front->setResponse(new Zend_Controller_Response_Cli());

// generic pimcore setup
Pimcore::setSystemRequirements();
Pimcore::initAutoloader();
Pimcore::initConfiguration();
Pimcore::setupFramework();
Expand All @@ -35,6 +50,10 @@
// Error reporting is enabled in CLI
@ini_set("display_errors", "On");
@ini_set("display_startup_errors", "On");
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

?>
// skip if maintenance mode is on and the flag is not set
// we cannot use Zend_Console_Getopt here because it doesn't allow to be called twice (unrecognized parameter, ...)
if(Pimcore_Tool_Admin::isInMaintenanceMode() && !in_array("--ignore-maintenance-mode", $_SERVER['argv'])) {
die("in maintenance mode -> skip\nset the falg --ignore-maintenance-mode to force execution \n");
}
18 changes: 18 additions & 0 deletions pimcore/cli/video-converter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2010 elements.at New Media Solutions GmbH (http://www.elements.at)
* @license http://www.pimcore.org/license New BSD License
*/

include_once("startup.php");

Asset_Video_Thumbnail_Processor::execute($argv[1]);
28 changes: 17 additions & 11 deletions pimcore/config/startup.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
* @license http://www.pimcore.org/license New BSD License
*/

error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

// configure some constants needed by pimcore
$pimcoreDocumentRoot = realpath(dirname(__FILE__) . '/../..');

if (!defined("PIMCORE_DOCUMENT_ROOT")) define("PIMCORE_DOCUMENT_ROOT", $pimcoreDocumentRoot);
if (!defined("PIMCORE_FRONTEND_MODULE")) define("PIMCORE_FRONTEND_MODULE", "website"); // frontend module, this is the module containing your website, please be sure that the module folder is in PIMCORE_DOCUMENT_ROOT and is named identically with this name
// frontend module, this is the module containing your website, please be sure that the module folder is in PIMCORE_DOCUMENT_ROOT and is named identically with this name
if (!defined("PIMCORE_FRONTEND_MODULE")) define("PIMCORE_FRONTEND_MODULE", "website");
if (!defined("PIMCORE_PATH")) define("PIMCORE_PATH", PIMCORE_DOCUMENT_ROOT . "/pimcore");
if (!defined("PIMCORE_PLUGINS_PATH")) define("PIMCORE_PLUGINS_PATH", PIMCORE_DOCUMENT_ROOT . "/plugins");

Expand All @@ -31,25 +32,28 @@
if (!defined("PIMCORE_ASSET_DIRECTORY")) define("PIMCORE_ASSET_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/assets");
if (!defined("PIMCORE_VERSION_DIRECTORY")) define("PIMCORE_VERSION_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/versions");
if (!defined("PIMCORE_WEBDAV_TEMP")) define("PIMCORE_WEBDAV_TEMP", PIMCORE_WEBSITE_PATH . "/var/webdav");
if (!defined("PIMCORE_LOG_DEBUG")) define("PIMCORE_LOG_DEBUG", PIMCORE_WEBSITE_PATH . "/var/log/debug.log");
if (!defined("PIMCORE_LOG_MAIL_TEMP")) define("PIMCORE_LOG_MAIL_TEMP", PIMCORE_WEBSITE_PATH . "/var/log/mail");
if (!defined("PIMCORE_LOG_DIRECTORY")) define("PIMCORE_LOG_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/log");
if (!defined("PIMCORE_LOG_DEBUG")) define("PIMCORE_LOG_DEBUG", PIMCORE_LOG_DIRECTORY . "/debug.log");
if (!defined("PIMCORE_LOG_MAIL_TEMP")) define("PIMCORE_LOG_MAIL_TEMP", PIMCORE_LOG_DIRECTORY . "/mail");
if (!defined("PIMCORE_TEMPORARY_DIRECTORY")) define("PIMCORE_TEMPORARY_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/tmp");
if (!defined("PIMCORE_CACHE_DIRECTORY")) define("PIMCORE_CACHE_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/cache");
if (!defined("PIMCORE_CLASS_DIRECTORY")) define("PIMCORE_CLASS_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/classes");
if (!defined("PIMCORE_BACKUP_DIRECTORY")) define("PIMCORE_BACKUP_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/backup");
if (!defined("PIMCORE_RECYCLEBIN_DIRECTORY")) define("PIMCORE_RECYCLEBIN_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/recyclebin");
if (!defined("PIMCORE_SYSTEM_TEMP_DIRECTORY")) define("PIMCORE_SYSTEM_TEMP_DIRECTORY", PIMCORE_WEBSITE_PATH . "/var/system");
if (!defined("PIMCORE_LOG_MAIL_PERMANENT")) define("PIMCORE_LOG_MAIL_PERMANENT", PIMCORE_WEBSITE_PATH . "/var/email");

// setup include pathes
// setup include paths
// include paths defined in php.ini are ignored because they're causing problems with open_basedir, see PIMCORE-1233
// it also improves the performance when reducing the amount of include paths, you can of course add additional paths anywhere in your code (/website)
$includePaths = array(
PIMCORE_PATH . "/lib",
PIMCORE_PATH . "/models",
PIMCORE_WEBSITE_PATH . "/lib",
PIMCORE_WEBSITE_PATH . "/models",
PIMCORE_PATH . "/modules/searchadmin/models",
PIMCORE_CLASS_DIRECTORY,
PIMCORE_PATH . "/lib/_deprecated", // depricated libraries and classes
get_include_path()
PIMCORE_PATH . "/lib/_deprecated", // deprecated libraries and classes
);
set_include_path(implode(PATH_SEPARATOR, $includePaths));

Expand All @@ -64,12 +68,14 @@

$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Pimcore');

$autoloader->suppressNotFoundWarnings(true);

$autoloader->suppressNotFoundWarnings(false);

// do some general stuff
$websiteStartup = PIMCORE_CONFIGURATION_DIRECTORY . "/startup.php";
if(@is_file($websiteStartup)) {
include_once($websiteStartup);
}

// on pimcore shutdown
register_shutdown_function("Pimcore::shutdown");
register_shutdown_function("Pimcore::shutdownHandler");

Loading