} }); /* * @name Remove File * @desc Remove File ( :any use base64_encode remenber decode file) */ $p->route('/action/removefile/(:any)/(:any)', function ($token, $file) use($p) { if (Session::exists('user')) { if (Token::check($token)) { $p->view('actions', ['type' => 'Remove File', 'title' => Panel::$lang['Remove_File'], 'content' => base64_decode($file)]); } else { die('crsf Detect'); } } }); /* * @name Remove folder * @desc Remove folder ( :any use base64_encode remenber decode file) */ $p->route('/action/removefolder/(:any)/(:any)', function ($token, $file) use($p) { if (Session::exists('user')) { if (Token::check($token)) { $p->view('actions', ['type' => 'Remove Folder', 'title' => Panel::$lang['Remove_Folder'], 'content' => base64_decode($file)]); } else { die('crsf Detect'); } } }); // start $p->lauch();