Approve by action button without need to edit

Hi, I'm new in php, git, css ... so take this code with caution :)

I make this modification to create approve action and add approve button on page tools to make approve process more easier. No need to edit, just hit approve (of course if doc is not approved, and must have authorization).
It's quick, and does not depend on editor (problem if you use something like ckedit).

There is one problem. If release of doc for approval is modified externally (directly on filesystem, not from dokuwiki) approve doesn't work. You need to go to editor and save before approval.

I test it on my wiki, and it works.

Old style comments... you should use // or /*