BaseURL : ps
This commit is contained in:
parent
72fbddcbb4
commit
b81ded465c
49
.htaccess
Executable file
49
.htaccess
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
# Disable directory browsing
|
||||||
|
Options -Indexes
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
# Rewrite engine
|
||||||
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Turning on the rewrite engine is necessary for the following rules and features.
|
||||||
|
# FollowSymLinks must be enabled for this to work.
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
Options +FollowSymlinks
|
||||||
|
RewriteEngine On
|
||||||
|
|
||||||
|
# If you installed CodeIgniter in a subfolder, you will need to
|
||||||
|
# change the following line to match the subfolder you need.
|
||||||
|
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
|
||||||
|
# RewriteBase /
|
||||||
|
|
||||||
|
# Redirect Trailing Slashes...
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteCond %{REQUEST_URI} (.+)/$
|
||||||
|
RewriteRule ^ %1 [L,R=301]
|
||||||
|
|
||||||
|
# Rewrite "www.example.com -> example.com"
|
||||||
|
RewriteCond %{HTTPS} !=on
|
||||||
|
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||||
|
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
|
||||||
|
|
||||||
|
# Checks to see if the user is attempting to access a valid file,
|
||||||
|
# such as an image or css document, if this isn't true it sends the
|
||||||
|
# request to the front controller, index.php
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA]
|
||||||
|
|
||||||
|
# Ensure Authorization header is passed along
|
||||||
|
RewriteCond %{HTTP:Authorization} .
|
||||||
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule !mod_rewrite.c>
|
||||||
|
# If we don't have mod_rewrite installed, all 404's
|
||||||
|
# can be sent to index.php, and everything works as normal.
|
||||||
|
ErrorDocument 404 index.php
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# Disable server signature start
|
||||||
|
ServerSignature Off
|
||||||
|
# Disable server signature end
|
||||||
@ -1,6 +0,0 @@
|
|||||||
<IfModule authz_core_module>
|
|
||||||
Require all denied
|
|
||||||
</IfModule>
|
|
||||||
<IfModule !authz_core_module>
|
|
||||||
Deny from all
|
|
||||||
</IfModule>
|
|
||||||
@ -17,7 +17,9 @@ class App extends BaseConfig
|
|||||||
*
|
*
|
||||||
* http://example.com/
|
* http://example.com/
|
||||||
*/
|
*/
|
||||||
public string $baseURL = 'http://localhost:8080/';
|
// public string $baseURL = 'http://localhost:8080/';
|
||||||
|
public string $baseURL = 'http://localhost/vb_book/';
|
||||||
|
// public string $baseURL = 'http://localhost/vb_book/public/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allowed Hostnames in the Site URL other than the hostname in the baseURL.
|
* Allowed Hostnames in the Site URL other than the hostname in the baseURL.
|
||||||
@ -42,7 +44,8 @@ class App extends BaseConfig
|
|||||||
* something else. If you are using mod_rewrite to remove the page set this
|
* something else. If you are using mod_rewrite to remove the page set this
|
||||||
* variable so that it is blank.
|
* variable so that it is blank.
|
||||||
*/
|
*/
|
||||||
public string $indexPage = 'index.php';
|
// public string $indexPage = 'index.php';
|
||||||
|
public string $indexPage = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
@ -59,7 +62,9 @@ class App extends BaseConfig
|
|||||||
*
|
*
|
||||||
* WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
* WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
|
||||||
*/
|
*/
|
||||||
public string $uriProtocol = 'REQUEST_URI';
|
// public string $uriProtocol = 'REQUEST_URI';
|
||||||
|
public $uriProtocol = 'PATH_INFO';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
|
|||||||
@ -11,7 +11,7 @@ $routes = Services::routes();
|
|||||||
* --------------------------------------------------------------------
|
* --------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
$routes->setDefaultNamespace('App\Controllers');
|
$routes->setDefaultNamespace('App\Controllers');
|
||||||
$routes->setDefaultController('Home');
|
$routes->setDefaultController('Authentication');
|
||||||
$routes->setDefaultMethod('index');
|
$routes->setDefaultMethod('index');
|
||||||
$routes->setTranslateURIDashes(false);
|
$routes->setTranslateURIDashes(false);
|
||||||
$routes->set404Override();
|
$routes->set404Override();
|
||||||
@ -29,7 +29,9 @@ $routes->set404Override();
|
|||||||
|
|
||||||
// We get a performance increase by specifying the default
|
// We get a performance increase by specifying the default
|
||||||
// route since we don't have to scan directories.
|
// route since we don't have to scan directories.
|
||||||
$routes->get('/', 'Home::index');
|
$routes->get('/', 'Authentication::index');
|
||||||
|
$routes->post('login/', 'Authentication::login');
|
||||||
|
|
||||||
$routes->get('dashboard/', 'Home::index');
|
$routes->get('dashboard/', 'Home::index');
|
||||||
$routes->get("user_list/", "Home::user_list");
|
$routes->get("user_list/", "Home::user_list");
|
||||||
$routes->get("add_user/", "Home::add_user");
|
$routes->get("add_user/", "Home::add_user");
|
||||||
@ -42,6 +44,7 @@ $routes->get("add_subscribers/", "Home::add_subscribers");
|
|||||||
$routes->get("edit_subscribers/", "Home::edit_subscribers");
|
$routes->get("edit_subscribers/", "Home::edit_subscribers");
|
||||||
$routes->get("business_list/", "Business::add_bussiness");
|
$routes->get("business_list/", "Business::add_bussiness");
|
||||||
$routes->get("new_bussiness/", "Business::new_bussiness");
|
$routes->get("new_bussiness/", "Business::new_bussiness");
|
||||||
|
$routes->get('dashboard/', 'Home::auth_user');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
54
app/Controllers/Authentication.php
Executable file
54
app/Controllers/Authentication.php
Executable file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Controllers;
|
||||||
|
## Authentication Controllers only for Login,Logout,Signup,forgotpassword,confirmationpassword,resetpassword,sleepmode,session,cookie Modules
|
||||||
|
class Authentication extends BaseController
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
// Load the view
|
||||||
|
$data['company_name'] = 'Publishing';
|
||||||
|
$data['company_short_name'] = 'P';
|
||||||
|
$data['page_name'] = 'Login';
|
||||||
|
$data['browser_title'] = $data['company_name'].' | '.$data['company_short_name'] .' '. $data['page_name'];
|
||||||
|
$data['heading'] = $data['page_name'] == "Dashboard" ? 'Welcome to publishing.com' : "";
|
||||||
|
echo view('auth_login');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function login()
|
||||||
|
{
|
||||||
|
// Validate form data
|
||||||
|
$validation = \Config\Services::validation();
|
||||||
|
$rules = [
|
||||||
|
'username' => 'required',
|
||||||
|
'password' => 'required',
|
||||||
|
];
|
||||||
|
if ($this->validate($rules)) {
|
||||||
|
// Process login logic
|
||||||
|
$username = $this->request->getPost('username');
|
||||||
|
$password = $this->request->getPost('password');
|
||||||
|
|
||||||
|
// You can implement your authentication logic here
|
||||||
|
// For example, check against a database, validate credentials, etc.
|
||||||
|
if ($this->authenticate($username, $password)) {
|
||||||
|
// Redirect to a dashboard or other protected area
|
||||||
|
return redirect()->to('dashboard');
|
||||||
|
} else {
|
||||||
|
// Invalid credentials, display error message
|
||||||
|
return redirect()->back()->with('error', 'Invalid username or password.');
|
||||||
|
}
|
||||||
|
}else {
|
||||||
|
// Validation failed, display errors
|
||||||
|
return redirect()->back()->withInput()->with('validation', $validation);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Example authentication method, replace with your own logic
|
||||||
|
private function authenticate($username, $password)
|
||||||
|
{
|
||||||
|
// Implement your authentication logic here
|
||||||
|
// Return true if authentication is successful, false otherwise
|
||||||
|
// For example, you can compare against a database record
|
||||||
|
return ($username === 'admin@vbbook.com' && $password === 'test1234');
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Controllers;
|
namespace App\Controllers;
|
||||||
|
## Home Controllers only for Dashboards,Report Modules
|
||||||
class Home extends BaseController
|
class Home extends BaseController
|
||||||
{
|
{
|
||||||
public function index()
|
public function index()
|
||||||
|
|||||||
118
app/Views/auth_login.php
Executable file
118
app/Views/auth_login.php
Executable file
@ -0,0 +1,118 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title><?= $browser_title; ?></title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
|
||||||
|
<meta content="Coderthemes" name="author" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<!-- App favicon -->
|
||||||
|
<link rel="shortcut icon" href="<?= base_url()."public/assets/images/favicon.ico" ?>">
|
||||||
|
|
||||||
|
<!-- App css -->
|
||||||
|
<link href="<?= base_url()."public/assets/css/bootstrap.min.css" ?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||||
|
<link href="<?= base_url()."public/assets/css/app.min.css" ?>" rel="stylesheet" type="text/css" id="app-default-stylesheet" />
|
||||||
|
|
||||||
|
<link href="<?= base_url()."public/assets/css/bootstrap-dark.min.css" ?>" rel="stylesheet" type="text/css" id="bs-dark-stylesheet" />
|
||||||
|
<link href="<?= base_url()."public/assets/css/app-dark.min.css" ?>" rel="stylesheet" type="text/css" id="app-dark-stylesheet" />
|
||||||
|
|
||||||
|
<!-- icons -->
|
||||||
|
<link href="<?= base_url()."public/assets/css/icons.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="loading">
|
||||||
|
|
||||||
|
<div class="account-pages mt-5 mb-5">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-md-8 col-lg-6 col-xl-5">
|
||||||
|
<div class="card">
|
||||||
|
|
||||||
|
<div class="card-body p-4">
|
||||||
|
|
||||||
|
<div class="text-center w-75 m-auto">
|
||||||
|
<div class="auth-logo">
|
||||||
|
<a href="javascript: void(0);" class="logo logo-dark text-center">
|
||||||
|
<span class="logo-lg">
|
||||||
|
<img src="<?= base_url()."public/assets/images/logo.png" ?>" alt="" height="80">
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="javascript: void(0);" class="logo logo-light text-center">
|
||||||
|
<span class="logo-lg">
|
||||||
|
<img src="<?= base_url()."public/assets/images/logo.png" ?>" alt="" height="80">
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<p class="text-muted mb-4 mt-3">Enter your email address and password to access admin panel.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <form action=""> -->
|
||||||
|
<form action="<?= base_url()."login" ?>" method="post">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-group mb-3">
|
||||||
|
<label for="emailaddress">Email address</label>
|
||||||
|
<input class="form-control" type="email" name="username" id="emailaddress" required="" placeholder="Enter your email">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group mb-3">
|
||||||
|
<label for="password">Password</label>
|
||||||
|
<div class="input-group input-group-merge">
|
||||||
|
<input type="password" name="password" id="password" class="form-control" placeholder="Enter your password">
|
||||||
|
<div class="input-group-append" data-password="false">
|
||||||
|
<div class="input-group-text">
|
||||||
|
<span class="password-eye"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group mb-3">
|
||||||
|
<div class="custom-control custom-checkbox">
|
||||||
|
<input type="checkbox" class="custom-control-input" id="checkbox-signin" checked>
|
||||||
|
<label class="custom-control-label" for="checkbox-signin">Remember me</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group mb-0 text-center">
|
||||||
|
<button class="btn btn-primary btn-block" type="submit"> Log In </button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div> <!-- end card-body -->
|
||||||
|
</div>
|
||||||
|
<!-- end card -->
|
||||||
|
|
||||||
|
<div class="row mt-3">
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<p> <a href="auth-recoverpw.html" class="text-muted ml-1">Forgot your password?</a></p>
|
||||||
|
<p class="text-muted">Don't have an account? <a href="auth-register.html" class="text-primary font-weight-medium ml-1">Sign Up</a></p>
|
||||||
|
</div> <!-- end col -->
|
||||||
|
</div>
|
||||||
|
<!-- end row -->
|
||||||
|
|
||||||
|
</div> <!-- end col -->
|
||||||
|
</div>
|
||||||
|
<!-- end row -->
|
||||||
|
</div>
|
||||||
|
<!-- end container -->
|
||||||
|
</div>
|
||||||
|
<!-- end page -->
|
||||||
|
|
||||||
|
<footer class="footer footer-alt">
|
||||||
|
<p> <?= date('Y') ?> © <?= $company_name; ?>.</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Vendor js -->
|
||||||
|
<script src="<?= base_url()."public/assets/js/vendor.min.js" ?>"></script>
|
||||||
|
|
||||||
|
<!-- App js -->
|
||||||
|
<script src="<?= base_url()."public/assets/js/app.min.js" ?>"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status"></span>
|
<span class="user-status"></span>
|
||||||
<img src="./assets/images/users/avatar-10.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-10.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Andrew Mackie</h6>
|
<h6 class="mt-0 mb-1 font-14">Andrew Mackie</h6>
|
||||||
@ -115,7 +115,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status"></span>
|
<span class="user-status"></span>
|
||||||
<img src="./assets/images/users/avatar-1.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-1.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Rory Dalyell</h6>
|
<h6 class="mt-0 mb-1 font-14">Rory Dalyell</h6>
|
||||||
@ -130,7 +130,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status busy"></span>
|
<span class="user-status busy"></span>
|
||||||
<img src="./assets/images/users/avatar-9.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-9.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Jaxon Dunhill</h6>
|
<h6 class="mt-0 mb-1 font-14">Jaxon Dunhill</h6>
|
||||||
@ -149,7 +149,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status online"></span>
|
<span class="user-status online"></span>
|
||||||
<img src="./assets/images/users/avatar-2.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-2.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Jackson Therry</h6>
|
<h6 class="mt-0 mb-1 font-14">Jackson Therry</h6>
|
||||||
@ -164,7 +164,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status away"></span>
|
<span class="user-status away"></span>
|
||||||
<img src="./assets/images/users/avatar-4.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-4.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Charles Deakin</h6>
|
<h6 class="mt-0 mb-1 font-14">Charles Deakin</h6>
|
||||||
@ -179,7 +179,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status online"></span>
|
<span class="user-status online"></span>
|
||||||
<img src="./assets/images/users/avatar-5.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-5.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Ryan Salting</h6>
|
<h6 class="mt-0 mb-1 font-14">Ryan Salting</h6>
|
||||||
@ -194,7 +194,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status online"></span>
|
<span class="user-status online"></span>
|
||||||
<img src="./assets/images/users/avatar-6.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-6.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Sean Howse</h6>
|
<h6 class="mt-0 mb-1 font-14">Sean Howse</h6>
|
||||||
@ -209,7 +209,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status busy"></span>
|
<span class="user-status busy"></span>
|
||||||
<img src="./assets/images/users/avatar-7.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-7.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Dean Coward</h6>
|
<h6 class="mt-0 mb-1 font-14">Dean Coward</h6>
|
||||||
@ -224,7 +224,7 @@
|
|||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="position-relative mr-2">
|
<div class="position-relative mr-2">
|
||||||
<span class="user-status away"></span>
|
<span class="user-status away"></span>
|
||||||
<img src="./assets/images/users/avatar-8.jpg" class="rounded-circle avatar-sm" alt="user-pic">
|
<img src="<?= base_url()."public/assets/images/users/avatar-8.jpg" ?>" class="rounded-circle avatar-sm" alt="user-pic">
|
||||||
</div>
|
</div>
|
||||||
<div class="media-body overflow-hidden">
|
<div class="media-body overflow-hidden">
|
||||||
<h6 class="mt-0 mb-1 font-14">Hayley East</h6>
|
<h6 class="mt-0 mb-1 font-14">Hayley East</h6>
|
||||||
@ -431,41 +431,41 @@
|
|||||||
<div class="rightbar-overlay"></div>
|
<div class="rightbar-overlay"></div>
|
||||||
|
|
||||||
<!-- Vendor js -->
|
<!-- Vendor js -->
|
||||||
<script src="./assets/js/vendor.min.js"></script>
|
<script src="<?= base_url()."public/assets/js/vendor.min.js" ?>"></script>
|
||||||
|
|
||||||
<!-- KNOB JS -->
|
<!-- KNOB JS -->
|
||||||
<script src="./assets/libs/jquery-knob/jquery.knob.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/jquery-knob/jquery.knob.min.js" ?>"></script>
|
||||||
<!-- Apex js-->
|
<!-- Apex js-->
|
||||||
<script src="./assets/libs/apexcharts/apexcharts.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/apexcharts/apexcharts.min.js" ?>"></script>
|
||||||
|
|
||||||
<!-- Plugins js-->
|
<!-- Plugins js-->
|
||||||
<script src="./assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/admin-resources/jquery.vectormap/maps/jquery-jvectormap-world-mill-en.js"></script>
|
<script src="<?= base_url()."public/assets/libs/admin-resources/jquery.vectormap/maps/jquery-jvectormap-world-mill-en.js" ?>"></script>
|
||||||
|
|
||||||
<!-- Dashboard init-->
|
<!-- Dashboard init-->
|
||||||
<script src="./assets/js/pages/dashboard-sales.init.js"></script>
|
<script src="<?= base_url()."public/assets/js/pages/dashboard-sales.init.js" ?>"></script>
|
||||||
|
|
||||||
<!-- third party js -->
|
<!-- third party js -->
|
||||||
<script src="./assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net/js/jquery.dataTables.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-buttons/js/buttons.html5.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-buttons/js/buttons.html5.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-buttons/js/buttons.flash.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-buttons/js/buttons.flash.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-buttons/js/buttons.print.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-buttons/js/buttons.print.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/datatables.net-select/js/dataTables.select.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/datatables.net-select/js/dataTables.select.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/pdfmake/build/pdfmake.min.js"></script>
|
<script src="<?= base_url()."public/assets/libs/pdfmake/build/pdfmake.min.js" ?>"></script>
|
||||||
<script src="./assets/libs/pdfmake/build/vfs_fonts.js"></script>
|
<script src="<?= base_url()."public/assets/libs/pdfmake/build/vfs_fonts.js" ?>"></script>
|
||||||
<!-- third party js ends -->
|
<!-- third party js ends -->
|
||||||
|
|
||||||
<!-- Datatables init -->
|
<!-- Datatables init -->
|
||||||
<script src="./assets/js/pages/datatables.init.js"></script>
|
<script src="<?= base_url()."public/assets/js/pages/datatables.init.js" ?>"></script>
|
||||||
|
|
||||||
<!-- App js -->
|
<!-- App js -->
|
||||||
<script src="./assets/js/app.min.js"></script>
|
<script src="<?= base_url()."public/assets/js/app.min.js" ?>"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -8,27 +8,27 @@
|
|||||||
<meta content="Coderthemes" name="author" />
|
<meta content="Coderthemes" name="author" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<!-- App favicon -->
|
<!-- App favicon -->
|
||||||
<link rel="shortcut icon" type="image/png" href="/favicon.ico">
|
<link rel="shortcut icon" href="<?= base_url()."public/assets/images/favicon.ico" ?>" >
|
||||||
|
|
||||||
<!-- plugin css -->
|
<!-- plugin css -->
|
||||||
<link href="./assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
<!-- third party css -->
|
<!-- third party css -->
|
||||||
<link href="./assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<link href="./assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<link href="./assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/libs/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<link href="./assets/libs/datatables.net-select-bs4/css//select.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/libs/datatables.net-select-bs4/css//select.bootstrap4.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
<!-- third party css end -->
|
<!-- third party css end -->
|
||||||
|
|
||||||
<!-- App css -->
|
<!-- App css -->
|
||||||
<link href="./assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
<link href="<?= base_url()."public/assets/css/bootstrap.min.css" ?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||||
<link href="./assets/css/app.min.css" rel="stylesheet" type="text/css" id="app-default-stylesheet" />
|
<link href="<?= base_url()."public/assets/css/app.min.css" ?>" rel="stylesheet" type="text/css" id="app-default-stylesheet" />
|
||||||
|
|
||||||
<link href="./assets/css/bootstrap-dark.min.css" rel="stylesheet" type="text/css" id="bs-dark-stylesheet" />
|
<link href="<?= base_url()."public/assets/css/bootstrap-dark.min.css" ?>" rel="stylesheet" type="text/css" id="bs-dark-stylesheet" />
|
||||||
<link href="./assets/css/app-dark.min.css" rel="stylesheet" type="text/css" id="app-dark-stylesheet" />
|
<link href="<?= base_url()."public/assets/css/app-dark.min.css" ?>" rel="stylesheet" type="text/css" id="app-dark-stylesheet" />
|
||||||
|
|
||||||
<!-- icons -->
|
<!-- icons -->
|
||||||
<link href="./assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
<link href="<?= base_url()."public/assets/css/icons.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
<!-- User box -->
|
<!-- User box -->
|
||||||
<div class="user-box text-center">
|
<div class="user-box text-center">
|
||||||
<img src="./assets/images/users/avatar-1.jpg" alt="user-img" title="Mat Helme"
|
<img src="<?= base_url()."public/assets/images/users/avatar-1.jpg" ?>" alt="user-img" title="Mat Helme"
|
||||||
class="rounded-circle avatar-md">
|
class="rounded-circle avatar-md">
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a href="javascript: void(0);" class="text-reset dropdown-toggle h5 mt-2 mb-1 d-block"
|
<a href="javascript: void(0);" class="text-reset dropdown-toggle h5 mt-2 mb-1 d-block"
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
<!-- item-->
|
<!-- item-->
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<img class="d-flex mr-2 rounded-circle" src="./assets/images/users/avatar-2.jpg" alt="Generic placeholder image" height="32">
|
<img class="d-flex mr-2 rounded-circle" src="<?= base_url()."public/assets/images/users/avatar-2.jpg" ?>" alt="Generic placeholder image" height="32">
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h5 class="m-0 font-14">Erwin E. Brown</h5>
|
<h5 class="m-0 font-14">Erwin E. Brown</h5>
|
||||||
cat<span class="font-12 mb-0">UI Designer</span>
|
cat<span class="font-12 mb-0">UI Designer</span>
|
||||||
@ -59,7 +59,7 @@
|
|||||||
<!-- item-->
|
<!-- item-->
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<img class="d-flex mr-2 rounded-circle" src="./assets/images/users/avatar-5.jpg" alt="Generic placeholder image" height="32">
|
<img class="d-flex mr-2 rounded-circle" src="<?= base_url()."public/assets/images/users/avatar-5.jpg" ?>" alt="Generic placeholder image" height="32">
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h5 class="m-0 font-14">Jacob Deo</h5>
|
<h5 class="m-0 font-14">Jacob Deo</h5>
|
||||||
<span class="font-12 mb-0">Developer</span>
|
<span class="font-12 mb-0">Developer</span>
|
||||||
@ -100,21 +100,21 @@
|
|||||||
<div class="row no-gutters">
|
<div class="row no-gutters">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a class="dropdown-icon-item" href="https://web.whatsapp.com/" target="_blank">
|
<a class="dropdown-icon-item" href="https://web.whatsapp.com/" target="_blank">
|
||||||
<img src="./assets/images/brands/whatsapp.png" alt="whatsapp">
|
<img src="<?= base_url()."public/assets/images/brands/whatsapp.png" ?>" alt="whatsapp">
|
||||||
<span>Whatsapp</span>
|
<span>Whatsapp</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a class="dropdown-icon-item" href="https://meet.google.com" target="_blank">
|
<a class="dropdown-icon-item" href="https://meet.google.com" target="_blank">
|
||||||
<img src="./assets/images/brands/meet.png" alt="G meet">
|
<img src="<?= base_url()."public/assets/images/brands/meet.png" ?>" alt="G meet">
|
||||||
<span>G Meet</span>
|
<span>G Meet</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a class="dropdown-icon-item" href="https://mail.google.com" target="_blank">
|
<a class="dropdown-icon-item" href="https://mail.google.com" target="_blank">
|
||||||
<!-- <img src="https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_default_1x_r5.png" alt="G Suite"> -->
|
<!-- <img src="https://ssl.gstatic.com/ui/v1/icons/mail/rfr/logo_gmail_lockup_default_1x_r5.png" alt="G Suite"> -->
|
||||||
<img src="./assets/images/brands/gmail.png" alt="G mail">
|
<img src="<?= base_url()."public/assets/images/brands/gmail.png" ?>" alt="G mail">
|
||||||
<span>G Mail</span>
|
<span>G Mail</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -158,7 +158,7 @@
|
|||||||
<!-- item-->
|
<!-- item-->
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
<div class="notify-icon">
|
<div class="notify-icon">
|
||||||
<img src="./assets/images/users/avatar-2.jpg" class="img-fluid rounded-circle" alt="" />
|
<img src="<?= base_url()."public/assets/images/users/avatar-2.jpg" ?>" class="img-fluid rounded-circle" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<p class="notify-details">Mario Drummond</p>
|
<p class="notify-details">Mario Drummond</p>
|
||||||
<p class="text-muted mb-0 user-msg">
|
<p class="text-muted mb-0 user-msg">
|
||||||
@ -169,7 +169,7 @@
|
|||||||
<!-- item-->
|
<!-- item-->
|
||||||
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
<a href="javascript:void(0);" class="dropdown-item notify-item">
|
||||||
<div class="notify-icon">
|
<div class="notify-icon">
|
||||||
<img src="./assets/images/users/avatar-4.jpg" class="img-fluid rounded-circle" alt="" />
|
<img src="<?= base_url()."public/assets/images/users/avatar-4.jpg" ?>" class="img-fluid rounded-circle" alt="" />
|
||||||
</div>
|
</div>
|
||||||
<p class="notify-details">Rory Dalyell</p>
|
<p class="notify-details">Rory Dalyell</p>
|
||||||
<p class="text-muted mb-0 user-msg">
|
<p class="text-muted mb-0 user-msg">
|
||||||
@ -221,7 +221,7 @@
|
|||||||
|
|
||||||
<li class="dropdown notification-list topbar-dropdown">
|
<li class="dropdown notification-list topbar-dropdown">
|
||||||
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
|
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
|
||||||
<img src="./assets/images/users/avatar-1.jpg" alt="user-image" class="rounded-circle">
|
<img src="<?= base_url()."public/assets/images/users/avatar-1.jpg" ?>" alt="user-image" class="rounded-circle">
|
||||||
<span class="pro-user-name ml-1"><?= $loggedin_person; ?><i class="mdi mdi-chevron-down"></i>
|
<span class="pro-user-name ml-1"><?= $loggedin_person; ?><i class="mdi mdi-chevron-down"></i>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
69
index.php
Executable file
69
index.php
Executable file
@ -0,0 +1,69 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Check PHP version.
|
||||||
|
$minPhpVersion = '7.4'; // If you update this, don't forget to update `spark`.
|
||||||
|
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
|
||||||
|
$message = sprintf(
|
||||||
|
'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
|
||||||
|
$minPhpVersion,
|
||||||
|
PHP_VERSION
|
||||||
|
);
|
||||||
|
|
||||||
|
exit($message);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Path to the front controller (this file)
|
||||||
|
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||||
|
|
||||||
|
// Ensure the current directory is pointing to the front controller's directory
|
||||||
|
chdir(FCPATH);
|
||||||
|
|
||||||
|
/*
|
||||||
|
*---------------------------------------------------------------
|
||||||
|
* BOOTSTRAP THE APPLICATION
|
||||||
|
*---------------------------------------------------------------
|
||||||
|
* This process sets up the path constants, loads and registers
|
||||||
|
* our autoloader, along with Composer's, loads our constants
|
||||||
|
* and fires up an environment-specific bootstrapping.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Load our paths config file
|
||||||
|
// This is the line that might need to be changed, depending on your folder structure.
|
||||||
|
// require FCPATH . '../app/Config/Paths.php';
|
||||||
|
$pathsPath = FCPATH . 'app/Config/Paths.php';
|
||||||
|
require $pathsPath;
|
||||||
|
// ^^^ Change this line if you move your application folder
|
||||||
|
|
||||||
|
$paths = new Config\Paths();
|
||||||
|
|
||||||
|
// Location of the framework bootstrap file.
|
||||||
|
require rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
|
||||||
|
|
||||||
|
// Load environment settings from .env files into $_SERVER and $_ENV
|
||||||
|
require_once SYSTEMPATH . 'Config/DotEnv.php';
|
||||||
|
(new CodeIgniter\Config\DotEnv(ROOTPATH))->load();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ---------------------------------------------------------------
|
||||||
|
* GRAB OUR CODEIGNITER INSTANCE
|
||||||
|
* ---------------------------------------------------------------
|
||||||
|
*
|
||||||
|
* The CodeIgniter class contains the core functionality to make
|
||||||
|
* the application run, and does all the dirty work to get
|
||||||
|
* the pieces all working together.
|
||||||
|
*/
|
||||||
|
|
||||||
|
$app = Config\Services::codeigniter();
|
||||||
|
$app->initialize();
|
||||||
|
$context = is_cli() ? 'php-cli' : 'web';
|
||||||
|
$app->setContext($context);
|
||||||
|
|
||||||
|
/*
|
||||||
|
*---------------------------------------------------------------
|
||||||
|
* LAUNCH THE APPLICATION
|
||||||
|
*---------------------------------------------------------------
|
||||||
|
* Now that everything is set up, it's time to actually fire
|
||||||
|
* up the engines and make this app do its thang.
|
||||||
|
*/
|
||||||
|
|
||||||
|
$app->run();
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 20 KiB |
BIN
public/assets/images/logo.png
Executable file
BIN
public/assets/images/logo.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Loading…
Reference in New Issue
Block a user