param = Common::replace("#^{$pathUrl}?#i",'', $url); }else{ $param = $url; } try{ /*if($_SERVER['REMOTE_ADDR'] == '10.1.2.94'){ include 'controller/funcoes/module.manutencao.php'; exit; }*/ $request = new Request($param); if(__PATH__ == '/'){ if($request->get('module') == 'rondon') Common::location('http://portalead.unesc.br:8080/rondon'); //if($request->get('module') == 'interativo') Common::location('http://portalead.unesc.br:8080/interativo'); if($request->get('module') == 'portal') Common::location('http://portalead.unesc.br/portal'); } $conn = new Connection(); if($request->get('module')=='ajax' && file_exists($cPath.$folderPath.'ajax.php')){ require $cPath.$folderPath.'ajax.php'; }elseif($request->get('module')=='get-file' && file_exists($cPath.$folderPath.'get-file.php')){ require $cPath.$folderPath.'get-file.php'; }else{ require $cPath.$folderPath.'core.php'; require $vPath.$folderPath.'index.php'; $conn->closeConnection(); } }catch(Exception $e){ echo "Error: ".$e->getMessage(); }