Пример #1
0
            <div id="window-forgetPassword" style="display: none">
                <form id="new-password" action="<?echo LinkController::getBaseURL()?>/user/forgetpassword">
                    <div class="fields">
                        <label>email cadastrado:</label>
                        <input id="f-email" type="text"/>
                    </div>
                    <div class="fields">
                        <label>nome de usuário:</label>
                        <input id="f-username" type="text"/>
                    </div>
                    <div class="fields">
                        <button id="get-new-pass">solicitar nova senha</button>
                    </div>
                </form>
            </div>
        </body>
        </html>
        <?
    }else{                 
        if(LinkController::link() == 'login') {                        
            require_once 'core/Login/process_login.php';        
        }else {
            try {
                require_once LinkController::rest();
            }catch(Exception $err) {                
                echo $err->getMessage();
            }
        }
    }
?>
Пример #2
0
                                <tr>
                                    <th>Título</th>
                                    <th>link</th>
                                    <th>Tema</th>
                                    <th>Estado</th>                                    
                                    <?if(LinkController::link() != "analysis"):?>
                                    <th>Tipo do Evento</th>
                                    <?else:?>
                                    <th>Data</th>
                                    <?endif?>
                                </tr>
                            </thead>
                            <tbody>                                
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<?}else{    
    try{        
        $_REQUEST['no-must-online'] = true;
        include LinkController::rest();
    }catch(Exception $err){
        $json = new JsonResponse();
        print_r($json->response(false, $err->getMessage())->serialize());
    }
}
?>