PHP/MYSQL Inline editing after type password -


i want create simple cms allow editing site in place (inline editing).

what i've done:

  1. login panel on php , mysql
  2. editing page inline editor bootstrap wyswihtml5
  3. 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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -