Add static pages for license and about
The about page needs more information. But we'll get to that later.
This commit is contained in:
44
application/controllers/about.php
Normal file
44
application/controllers/about.php
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2011 Karsten Heiken <karsten@disposed.de>
|
||||||
|
*
|
||||||
|
* 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 <karsten@disposed.de>
|
||||||
|
*/
|
||||||
|
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 */
|
||||||
44
application/controllers/license.php
Normal file
44
application/controllers/license.php
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2011 Karsten Heiken <karsten@disposed.de>
|
||||||
|
*
|
||||||
|
* 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 <karsten@disposed.de>
|
||||||
|
*/
|
||||||
|
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 */
|
||||||
27
application/views/about.php
Normal file
27
application/views/about.php
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<?php $this->load->view('header'); ?>
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
<div class="title">
|
||||||
|
<h2><?=_('About');?></h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<h3><?=_('Introduction');?></h3>
|
||||||
|
<p>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<h3><?=_('Contributors');?></h3>
|
||||||
|
<p>
|
||||||
|
<h4>Programming</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Karsten Heiken, 2011</li>
|
||||||
|
<li>Eike Foken, 2011</li>
|
||||||
|
</ul>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('footer'); ?>
|
||||||
40
application/views/license.php
Normal file
40
application/views/license.php
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<?php $this->load->view('header'); ?>
|
||||||
|
|
||||||
|
<div id="content">
|
||||||
|
|
||||||
|
<div class="title">
|
||||||
|
<h2><?=_('License');?></h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<h3>This application is licensed under the MIT License for Open Source Software</h3>
|
||||||
|
<p>Copyright (c) 2011 Karsten Heiken, Eike Foken</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining<br />
|
||||||
|
a copy of this software and associated documentation files (the "Software"),<br />
|
||||||
|
to deal in the Software without restriction, including without limitation<br />
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,<br />
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the Software<br />
|
||||||
|
is furnished to do so, subject to the following conditions:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The above copyright notice and this permission notice shall be included in all<br />
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,<br />
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES<br />
|
||||||
|
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND<br />
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT<br />
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,<br />
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br />
|
||||||
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR <br />
|
||||||
|
OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php $this->load->view('footer'); ?>
|
||||||
Reference in New Issue
Block a user