nayodahl / ocproject5 Goto Github PK
View Code? Open in Web Editor NEWBlog project done with Vanilla PHP, for Openclassrooms
Blog project done with Vanilla PHP, for Openclassrooms
create controll input Class to controll $_GET $_POST inside the router before calling the controller
each metho in this controll class will be static
create Posts manager view
create Superadmin Users Manager view
create Comments Manager view
create Add Post view
add rule : when we delete a user that as comments, set them to anonymous author
refactorize RequestValidator class to keep number of methods under 10
add rights checks before accessing to members manager
add pager for SinglePost view based on creation date instead of postId
add reset password method
add sql injection protection
finish all CRUD
Comments Manager view - add a column with parent Post title and a link to it
grammar, syntax, rules etc..
create sign in page
Create Authentication system
split backcontroller
correct router, needs to accept more than 1 numeric character as int paramater
Add template for front using twig
Create Front controller
create error class to manage errors and redirect to 404 if needed
Add template for back using twig
Create homepage
set rule - in case a user has no more admin rights, who is the writer ?
create Http\Request class
Create Singe Post Page
add mail generation for contact form
install :
php-cs-fixer (en Development requirements)
whoops (en Development requirements)
Create Back controller
create login page
all done, but needs pager system
replace router with a dynamic router
optimize router, call a controller only when needed
install bootstrap theme :
https://startbootstrap.com/previews/clean-blog/
add fluent writing for error
That said, you should:
Besides that, you should also regenerate the session ID while invalidating the old one (see session_regenerate_id function) after certain session state changes (e. g. confirmation of authenticity after login or change of authorization/privileges) and you can additionally do this periodically to reduce the time span for a successful session hijacking attack.
Create Entities :
Post
Comment
User
correct DB and its "ON DELETE CASCADE"
add salt to password_hash method
add double check for password on signin form
set control on manager for valid parameter
exemple = postId doesnt exist
create add comment method
add rights checks before accessing to admin controller
CSRF protection on forms
create database with demo data
create signin method with password generator with hash + salt
make signin form work
create Edit Post view
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.