function _init($m, $get, $post) { if (g::$session->user->isAdmin == false) { //echo '{"_GMSG_":"ERROR","MESSAGE":"Access Denied!","You Is not Admin":"req"}'; g::client()->fn('redirect', '#/')->send(); //g::client()->fn('js','alert("-*-")')->send(); exit; } }