From c38330fcac105ed081a8db6b96b98506b2d0df8c Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Sat, 3 Sep 2011 13:13:09 +0200 Subject: [PATCH] Add static pages for license and about The about page needs more information. But we'll get to that later. --- application/controllers/about.php | 44 +++++++++++++++++++++++++++++ application/controllers/license.php | 44 +++++++++++++++++++++++++++++ application/views/about.php | 27 ++++++++++++++++++ application/views/license.php | 40 ++++++++++++++++++++++++++ 4 files changed, 155 insertions(+) create mode 100644 application/controllers/about.php create mode 100644 application/controllers/license.php create mode 100644 application/views/about.php create mode 100644 application/views/license.php diff --git a/application/controllers/about.php b/application/controllers/about.php new file mode 100644 index 0000000..0e7f09c --- /dev/null +++ b/application/controllers/about.php @@ -0,0 +1,44 @@ + + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +/** + * Static about page + * + * @author Karsten Heiken + */ +class About extends CI_Controller { + + /** + * Constructor. + */ + public function __construct() { + parent::__construct(); + } + + public function index() { + $this->load->view('about'); + } +} + +/* End of file about.php */ +/* Location: ./application/controllers/about.php */ diff --git a/application/controllers/license.php b/application/controllers/license.php new file mode 100644 index 0000000..a0166ed --- /dev/null +++ b/application/controllers/license.php @@ -0,0 +1,44 @@ + + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +/** + * Static license page + * + * @author Karsten Heiken + */ +class License extends CI_Controller { + + /** + * Constructor. + */ + public function __construct() { + parent::__construct(); + } + + public function index() { + $this->load->view('license'); + } +} + +/* End of file license.php */ +/* Location: ./application/controllers/license.php */ diff --git a/application/views/about.php b/application/views/about.php new file mode 100644 index 0000000..3c0839d --- /dev/null +++ b/application/views/about.php @@ -0,0 +1,27 @@ +load->view('header'); ?> + +
+ +
+

+
+ +
+

+

+

+
+
+

+

+

Programming

+
    +
  • Karsten Heiken, 2011
  • +
  • Eike Foken, 2011
  • +
+

+
+ +
+ +load->view('footer'); ?> diff --git a/application/views/license.php b/application/views/license.php new file mode 100644 index 0000000..ee2daa3 --- /dev/null +++ b/application/views/license.php @@ -0,0 +1,40 @@ +load->view('header'); ?> + +
+ +
+

+
+ +
+

This application is licensed under the MIT License for Open Source Software

+

Copyright (c) 2011 Karsten Heiken, Eike Foken

+ +

+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the Software
+ is furnished to do so, subject to the following conditions: +

+ +

+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software. +

+ +

+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE. +

+
+
+ +load->view('footer'); ?>