In old version I could use cockpit() function, now it throw error
Call to undefined function cockpit
How can I use cockpit v2 with require_once ‘cockpit/bootstrap.php’?
Ok I found the answer. But for people to find the way through google, better to let this page.