falafel65 / mavo-php Goto Github PK
View Code? Open in Web Editor NEWPHP adaptor for Mavo
License: GNU General Public License v3.0
PHP adaptor for Mavo
License: GNU General Public License v3.0
Hello and thanks for this nice mavo plugin.
I was messing with your code trying to remove authentication (make it work like the local storage mode does), but still using php to write files on server. Unfortunately couldn't make it.
I would appreciate any help and what to remove and make it work.
(I come from the designers world and my skills on coding are very primitive, so forgive me if the answer to my question is very obvious)
As @GalinhaLX mentionned, you may want to protect your data files of public access. I don't get why, but that's not the point.
The backend would the only one able to access the files via PHP file access.
Could you improve the readme to at least mention the file used to store the user info?
Hay Falafel 65 , I am using the mavo-php plug in and its working
I only struggle with the location where it saves images files (mv-portfolio app) .
I Uploaded al your php files at the top level but it puts al image uploads
also at the top level.
My mv-storage is set to datas/randomname.json would that not also be
the location to store image files to ?
mv-app="portfolio"
mv-storage-type="php"
mv-storage="datas/randomname.json">
I have low level knowledge of PHP so any help would be really appreciated.
btw Thanks for your work
Winn
Default will be to JSON and I'll add CSV and Text, as they are well supported by PHP and Mavo by default.
Other format should throw an error.
As @GalinhaLX mentionned, if you click on login the first time, you are redirect to the login page. So far, it's ok.
But after the login, you go back to the original app page, and then to be logged you have to click again on login.
The problem reside in the fact that the Mavo app does not have the user infos on the initialisation stage (= constructor) so it won't recognize you as logged until it ask the server if the user is logged (user is in $_SESSION).
Two solutions :
Bonjour @Falafel65
I've been able to install this plug in, and read data.json file correctly
But I'm not able to edit properties and save data (despite correct file permissions)
I guess it's the same cause @LeaVerou and @DmitrySharabin
are talking about in another plugin here
putFile and putData methods are not checking for authorized user session. Looks like it's serious vulnerability for user data.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.