Initial commit

This commit is contained in:
NightBits
2018-12-19 20:44:16 +01:00
parent b680b82039
commit 878eda33b8
92 changed files with 5819 additions and 0 deletions

View 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
View File

@@ -0,0 +1 @@
deny from all

View File

@@ -0,0 +1 @@
deny from all

View 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();
?>

View 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');
?>

View File

@@ -0,0 +1,10 @@
<?php
$database = array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'framework',
'username' => 'root',
'password' => '',
'port' => '3306'
);
?>

View 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() {
}
}
?>

View File

View File

View File

View 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 />
');
}
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View 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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View 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>