Subversion-Projekte lars-tiefland.ci

Revision

Revision 767 | Revision 783 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php

/**
 *
 * @package WebanOS CI
 * @author Lars Tiefland <ltiefland@gmail.com> 
 * @copyright 2016
 * @version $Rev: 769 $
 */

class Login extends CI_Controller
{
        public function index()
        {
                $data["formstart"] = form_open("/login/execute/");
                $data["formend"] = "</form>";
                $this->smarty->view('login.tpl', $data);
        }

        function execute()
        {
                if ($this->form_validation->run() === false)
                {
                        $data["errors"] = validation_errors();
                        $data["formstart"] = form_open("/login/execute/");
                        $data["formend"] = "</form>";
                        $this->smarty->view('login.tpl', $data);
                }
        }
}

?>