PHP/MYSQL Inline editing after type password -
i want create simple cms allow editing site in place (inline editing).
what i've done:
- login panel on php , mysql
- editing page inline editor bootstrap wyswihtml5
- fully working saving , reading mysql via wyswihtml5
but, have site read tables mysql normal user. , second mirror site first added bootstrap wyswihtml5, admin can change content of site first.
so annoyingly must have mirrored site... have idea if go url: http://example.com/admin, have login forms. if password correct redirect first (and one) page, value.
on site if function , if logged editor enabled.
it's simple write here that, have no idea how that. maybe more experienced members of stackoverflow me.
why not implement login check php ?
save login-state in php $_session variable after login.
check variable on regular website. if admin logged in print out html code wysiwyg, make page redirect, or whatever prefer.
read this: http://www.php.net/manual/en/function.session-start.php
Comments
Post a Comment