pibase | Personal Start Page for the Raspberry Pi
kandi X-RAY | pibase Summary
kandi X-RAY | pibase Summary
PiBase is a personal news hub and start page designed to be hosted on the Raspberry Pi.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pibase
pibase Key Features
pibase Examples and Code Snippets
Community Discussions
Trending Discussions on pibase
QUESTION
i am reworking some old typo3 project extensions. the problem is we have to stay on that pibase structure as it is supported by core anyway. so that extension does some simple CRUD operations, in my case an insert based on submitted values via $_POST. so the old extension just used $_POST directly which is not supported anymore, i guess since the PSR-7 Request/Response implementation.
but now how can i access the submitted values since $_POST is not available anymore and i do not have $this->request either because the extension extends AbstractPlugin.
edit: also we are not inside main() the codeblock is within sendMail()
i also have no idea were sendMail gets called from as there is no available documentation for pibase.
help is much appreciated
...ANSWER
Answered 2020-Jun-02 at 14:49you can access the GET and POST parameters with \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('name')
but for security reasons that might be filtered away.
we have the concept of cHashes which secure the site against injected parameter. all parameters must be known and are secured aby a hash. TYPO3 remembers the parameter by the cHash. if a cHash is given, the paramters are fetched from database and paramters given to the server are ignored.
for forms (like ext:form
or ext:powermail
) there are no cHashes generated and the fields of the form can be processed.
if you have 'naked' forms and plain php-files to process, you should change to a form extension where you can use the existing finishers and can add addional finishers (and validators), for these finishers the form data is secured against injection and you do not need to access $_GET
or $_POST
.
EDIT:
Here is a question/answer how to disable cHash calculation for single form values: TYPO3 - Deactivating cHash in own extension - 8LTS
QUESTION
Right now I am upgrading an old pibased Extension from 6.2 to an extbase 10.2 Extension. After some research I found out that the Request Workflow for Frontend Requests has changed in TYPO3 10.0 (Issue #88540). From the Changelog:
TSFE is instantiated after all site resolving, authentication, page resolving and argument validation is done.
Since I used to store user sessions in $GLOBALS['TSFE']->fe_user
with $GLOBALS['TSFE']->fe_user->setKey('ses','key', $value)
while authentication process (Custom authService) I am not able to store it anymore because of the changed request workflow. $GLOBALS['TSFE']->fe_user
is now instantiated after the authentication process. It seems like that saving frontend user session has to be moved into Middleware (found some Information here: Task #88541). Since I never dealt with Middlewares, my Question now is how I can achive saving my frontend user session data by using a middleware Class? Under Configuration\RequestMiddlewares.php
I got following config:
ANSWER
Answered 2020-Feb-13 at 13:06Since TYPO3 v10.0.0 the Request Workflow for Frontend Requests has changed. That's why it isn't possible anymore to store session data during the authentication process. See: Changed Request Workflow for Frontend Requests I used a custom middleware for this to store it after the $GLOBALS['TSFE']->fe_user
has been created.
QUESTION
An extbase extension shall select data from an external non-typo3 database and display them in TYPO3 frontend. Updating data or insertion of new data is not planned. It is not allowed to store the external data in the local TYPO3 system. The data are relational, and the external database is physically on an external server.
Upto now a pibase extension was used for this. The funcionality shall now be replaced by an extbase extension.
How can the external database be accessed with extbase?
...ANSWER
Answered 2017-Jan-06 at 08:03QUESTION
I have to migrate TYPO3 6.2 websites to 8.7. Some websites use custom pibase extensions, do I need to redevelop them with Extbase ?
...ANSWER
Answered 2017-Dec-28 at 14:45you don't need to redevelop these extensions, but you might need to change the call to core functions.
In 6.2 you still could use the old class names like t3lib
.
These class names are available only with compatibility layer (together with a lot of delay).
For the future you need to use namespaces (and the correct new classes). You also should use namespaces for your own classes.
Depending on your used functions you might need to replace some calls with the newer functions as some functions got deprecated meanwhile.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pibase
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page