Initial commit
14
applications/start/.htaccess
Normal file
@@ -0,0 +1,14 @@
|
||||
RewriteEngine on
|
||||
|
||||
# disable directory browsing
|
||||
Options All -Indexes
|
||||
|
||||
<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
|
||||
Order Allow,Deny
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
# turn off magic_quotes_gpc for PHP enabled servers
|
||||
<ifmodule mod_php4.c>
|
||||
php_flag magic_quotes_gpc off
|
||||
</ifmodule>
|
1
applications/start/cache/.htaccess
vendored
Normal file
@@ -0,0 +1 @@
|
||||
deny from all
|
1
applications/start/configuration/.htaccess
Normal file
@@ -0,0 +1 @@
|
||||
deny from all
|
16
applications/start/configuration/SuperSmashconfiguration.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$defaultController = 'introduction';
|
||||
$defaultAction = 'start';
|
||||
$language = 'english';
|
||||
|
||||
$controllerParameter = 'c';
|
||||
$actionParameter = 'a';
|
||||
|
||||
$development = true;
|
||||
$logErrors = true;
|
||||
$urlParameters = false;
|
||||
$sessionDatabase = false;
|
||||
|
||||
$libraries = array();
|
||||
$helpers = array();
|
||||
?>
|
11
applications/start/configuration/configuration.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$applicationName = 'start';
|
||||
$websiteTitle = 'SuperSmash framework | Start';
|
||||
$webmasterEmail = 'info@SuperSmash.nl';
|
||||
|
||||
// Include the database configuration file
|
||||
include_once ('databaseconfiguration.php');
|
||||
|
||||
// Include the SuperSmash framework configuration file
|
||||
include_once ('SuperSmashconfiguration.php');
|
||||
?>
|
10
applications/start/configuration/databaseconfiguration.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$database = array(
|
||||
'driver' => 'mysql',
|
||||
'host' => 'localhost',
|
||||
'database' => 'framework',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'port' => '3306'
|
||||
);
|
||||
?>
|
0
applications/start/controllers/index.html
Normal file
28
applications/start/controllers/introduction.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
class Introduction extends System\SuperSmash\Controller {
|
||||
|
||||
// Create the constructor
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
function _beforeAction() {
|
||||
|
||||
}
|
||||
|
||||
function start() {
|
||||
// Load the introduction Model
|
||||
$this->load->model('introduction');
|
||||
|
||||
// Load the data for the introduction model
|
||||
$data = $this->IntroductionModel->introduction();
|
||||
|
||||
// Load the view and add the data
|
||||
$this->load->view('introduction', $data);
|
||||
}
|
||||
|
||||
function _afterAction() {
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
0
applications/start/helpers/index.html
Normal file
0
applications/start/library/index.html
Normal file
0
applications/start/models/index.html
Normal file
17
applications/start/models/introduction.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
class IntroductionModel extends System\SuperSmash\Model {
|
||||
|
||||
// Create the constructor
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function introduction() {
|
||||
return array('introductionMessage' =>
|
||||
'Hello and welcome to the SuperSmash Framework! <br />
|
||||
This framework will help you while developing your application <br /><br />
|
||||
');
|
||||
}
|
||||
}
|
||||
?>
|
BIN
applications/start/portal.png
Normal file
After Width: | Height: | Size: 19 KiB |
85
applications/start/views/introduction/css/style.css
Normal file
@@ -0,0 +1,85 @@
|
||||
body
|
||||
{
|
||||
margin:0 auto;
|
||||
background-color:#000000;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: SuperSmash, serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
padding:10px;
|
||||
}
|
||||
|
||||
#container
|
||||
{
|
||||
width:600px;
|
||||
margin: 0 auto;
|
||||
background: #F0C74D;
|
||||
border: 1px solid #999;
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
border-bottom-left-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
}
|
||||
|
||||
#header
|
||||
{
|
||||
width: auto;
|
||||
height:100px;
|
||||
text-align: center;
|
||||
color : #F0C74D;
|
||||
}
|
||||
|
||||
#content
|
||||
{
|
||||
width:600px;
|
||||
padding: 20px 10px 20px 10px;
|
||||
margin:0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer
|
||||
{
|
||||
width:600px;
|
||||
margin: 0 auto;
|
||||
background: #F0C74D;
|
||||
border: 1px solid #999;
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
border-bottom-left-radius: 15px;
|
||||
border-bottom-right-radius: 15px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#dynamic{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#html5{
|
||||
position:fixed;
|
||||
top:20px;
|
||||
right:5px;
|
||||
}
|
||||
|
||||
#twitter{
|
||||
position:fixed;
|
||||
top:60px;
|
||||
right:5px;
|
||||
}
|
||||
|
||||
#w3c{
|
||||
position:fixed;
|
||||
top:100px;
|
||||
right:5px;
|
||||
}
|
||||
|
||||
pre
|
||||
{
|
||||
font-size: 12px;
|
||||
padding-top: 10px;
|
||||
background: #f0f0f0;
|
||||
border: 1px solid #999;
|
||||
width:400px;
|
||||
margin: 0 auto;
|
||||
}
|
BIN
applications/start/views/introduction/images/favicon.ico
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
applications/start/views/introduction/images/html5.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
applications/start/views/introduction/images/logo.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
applications/start/views/introduction/images/mvc.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
applications/start/views/introduction/images/twitter.png
Normal file
After Width: | Height: | Size: 755 B |
BIN
applications/start/views/introduction/images/w3c.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
49
applications/start/views/introduction/index.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo configuration('websiteTitle');?></title>
|
||||
<link href="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/favicon.ico" rel="shortcut icon" type="image/x-icon"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/css/style.css"/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="header">
|
||||
<h1>
|
||||
<img src="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/logo.png" alt="SuperSmash Logo" />
|
||||
Welcome to the SuperSmash Framework!
|
||||
<img src="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/logo.png" alt="SuperSmash Logo" />
|
||||
</h1>
|
||||
</div>
|
||||
<div id="container">
|
||||
<div id="content">
|
||||
<div id="dynamic"><?php echo $introductionMessage; ?></div>
|
||||
You can edit the <b>Model</b> by going here:
|
||||
<pre>applications/start/models/welcome.php
|
||||
</pre>
|
||||
<br />
|
||||
|
||||
You can edit the <b>View</b> by going here:
|
||||
<pre>applications/start/views/welcome.php
|
||||
</pre>
|
||||
<br />
|
||||
|
||||
You can edit the <b>Controller</b> by going here:
|
||||
<pre>applications/start/controllers/welcome.php
|
||||
</pre>
|
||||
|
||||
|
||||
<br /><img src="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/mvc.png" alt="MVC Model" /><br />
|
||||
|
||||
</div>
|
||||
</div> <br /><br />
|
||||
<div id="footer">
|
||||
<small>
|
||||
Page rendered in {elapsed} seconds, using {usage}<br />
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Show some items -->
|
||||
<a target="_blank" href="http://www.HTML5.com"><img id="html5" src="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/html5.png" alt="HTML5" /></a>
|
||||
<a target="_blank" href="http://twitter.com/#!/SuperSmash007"><img id="twitter" src="<?php echo $websiteURL . "/" . "applications" . "/" . configuration('applicationName') . $viewPath;?>/images/twitter.png" alt="Twitter" /></a>
|
||||
</body>
|
||||
</html>
|