Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eaton Munoz committed May 14, 2017
0 parents commit f0655d1
Show file tree
Hide file tree
Showing 753 changed files with 109,625 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.directory
**/nbproject/
13 changes: 13 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteBase /ocbased/

# Redirect non-www to www - DISABLE THIS ON LOCALHOST
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/ocbased/$1 [R=301,L]
11 changes: 11 additions & 0 deletions application/controller/common/column_left.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
class ControllerCommonColumnLeft extends Controller {
public function index() {
if (isset($this->request->get['token']) && isset($this->session->data['token']) && ($this->request->get['token'] == $this->session->data['token'])) {
$data['profile'] = $this->load->controller('common/profile');
$data['menu'] = $this->load->controller('common/menu');

return $this->load->view('common/column_left', $data);
}
}
}
34 changes: 34 additions & 0 deletions application/controller/common/dashboard.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
class ControllerCommonDashboard extends Controller {
public function index() {
$this->load->language('common/dashboard');

$this->document->setTitle($this->language->get('heading_title'));

$data['heading_title'] = $this->language->get('heading_title');

$data['text_sale'] = $this->language->get('text_sale');
$data['text_map'] = $this->language->get('text_map');
$data['text_activity'] = $this->language->get('text_activity');
$data['text_recent'] = $this->language->get('text_recent');

$data['breadcrumbs'] = array();

$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
);

$data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
);

$data['token'] = $this->session->data['token'];
$data['header'] = $this->load->controller('common/header');
$data['column_left'] = $this->load->controller('common/column_left');
$data['footer'] = $this->load->controller('common/footer');

$this->response->setOutput($this->load->view('common/dashboard', $data));
}
}
Loading

0 comments on commit f0655d1

Please sign in to comment.