FIX _Reverted Auth Template : ps
This commit is contained in:
parent
5484f60c53
commit
9601e9e7c2
@ -10,9 +10,6 @@ class Authentication extends BaseController
|
||||
## Load Login Page
|
||||
public function index()
|
||||
{
|
||||
$request = \Config\Services::request();
|
||||
$httpHost = $request->getServer('HTTP_HOST');
|
||||
|
||||
// Retrieve flashed session data
|
||||
$successMessage = session()->getFlashdata('success');
|
||||
$validationErrors = session()->getFlashdata('error');
|
||||
@ -23,28 +20,6 @@ class Authentication extends BaseController
|
||||
'successMessage' => $successMessage,
|
||||
'validationErrors' => $validationErrors,
|
||||
];
|
||||
|
||||
switch($httpHost){
|
||||
case "vbp.venbait.in" :
|
||||
$alerts['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$alerts['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$alerts['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$alerts['tabtitle'] = "Vijayabharatham Prasuram Books Publish | VBP";
|
||||
$alerts['btnClass'] = "btn-danger"; break;
|
||||
case "vibhav.vijayabharathambooks.com" :
|
||||
$alerts['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$alerts['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$alerts['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$alerts['tabtitle'] = "Vijayabharatham Prasuram Books Publish | VBP";
|
||||
$alerts['btnClass'] = "btn-danger"; break;
|
||||
default :
|
||||
$alerts['favicon'] = base_url() . "public/uploads/default.ico";
|
||||
$alerts['company_logo_large'] = base_url() . "public/uploads/default.png";
|
||||
$alerts['foot'] = "bigbamboobookpublish";
|
||||
$alerts['tabtitle'] = "BigBambooBookPublish | BBBP";
|
||||
$alerts['btnClass'] = "btn-primary";
|
||||
}
|
||||
|
||||
return view('auth_login', $alerts);
|
||||
}
|
||||
|
||||
@ -201,26 +176,6 @@ class Authentication extends BaseController
|
||||
// Here, we'll use the default View class for demonstration purposes
|
||||
$data['successMessage'] = $successMessage;
|
||||
$data['validationErrors'] = $validationErrors;
|
||||
$request = \Config\Services::request();
|
||||
$httpHost = $request->getServer('HTTP_HOST');
|
||||
switch($httpHost){
|
||||
case "vbp.venbait.in" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
case "vibhav.vijayabharathambooks.com" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
default :
|
||||
$data['favicon'] = base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = base_url() . "public/uploads/default.png";
|
||||
$data['foot'] = "bigbamboobookpublish";
|
||||
$data['btnClass'] = "btn-primary";
|
||||
}
|
||||
|
||||
return view('auth_reset_password', $data);
|
||||
}
|
||||
}
|
||||
@ -257,27 +212,6 @@ class Authentication extends BaseController
|
||||
// Here, we'll use the default View class for demonstration purposes
|
||||
$data['successMessage'] = $successMessage;
|
||||
$data['validationErrors'] = $validationErrors;
|
||||
$request = \Config\Services::request();
|
||||
$httpHost = $request->getServer('HTTP_HOST');
|
||||
switch($httpHost){
|
||||
case "vbp.venbait.in" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
case "vibhav.vijayabharathambooks.com" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['tabtitle'] = "Vijayabharatham Prasuram Books Publish | VBP";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
default :
|
||||
$data['favicon'] = base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = base_url() . "public/uploads/default.png";
|
||||
$data['foot'] = "bigbamboobookpublish";
|
||||
$data['btnClass'] = "btn-primary";
|
||||
}
|
||||
|
||||
return view('auth_login', $data);
|
||||
} else {
|
||||
// Password confirmation failed
|
||||
@ -320,26 +254,6 @@ class Authentication extends BaseController
|
||||
$this->response->setHeader('Pragma', 'no-cache');
|
||||
$this->response->setHeader('Expires', 'Fri, 01 Jan 1990 00:00:00 GMT');
|
||||
$data = [];
|
||||
$request = \Config\Services::request();
|
||||
$httpHost = $request->getServer('HTTP_HOST');
|
||||
switch($httpHost){
|
||||
case "vbp.venbait.in" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
case "vibhav.vijayabharathambooks.com" :
|
||||
$data['favicon'] = file_exists(FCPATH."public/uploads/Vijayabharatham.ico") ? base_url() . "public/uploads/Vijayabharatham.ico" : base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = file_exists(FCPATH."public/uploads/Vijayabharatham_withname_1.png") ? base_url() . "public/uploads/Vijayabharatham_withname_1.png" : base_url() . "public/uploads/default.png" ;
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger"; break;
|
||||
default :
|
||||
$data['favicon'] = base_url() . "public/uploads/default.ico";
|
||||
$data['company_logo_large'] = base_url() . "public/uploads/default.png";
|
||||
$data['foot'] = "bigbamboobookpublish";
|
||||
$data['btnClass'] = "btn-primary";
|
||||
}
|
||||
|
||||
return view('auth_logout', $data);
|
||||
}
|
||||
|
||||
@ -361,9 +275,6 @@ class Authentication extends BaseController
|
||||
$data['profile_picture'] = !empty($details[0]['profile_picture']) && file_exists(FCPATH."public/uploads/".$details[0]['profile_picture']) ? base_url("public/uploads/" . $details[0]['profile_picture']) : base_url("public/uploads/avatar.png");
|
||||
$data['company_logo_small'] = !empty($details[0]['company_logo_small']) && file_exists(FCPATH."public/uploads/".$details[0]['company_logo_small']) ? base_url("public/uploads/" . $details[0]['company_logo_small']) : base_url("public/uploads/default_logo.png");
|
||||
$data['company_logo_large'] = !empty($details[0]['company_logo_large']) && file_exists(FCPATH."public/uploads/".$details[0]['company_logo_large']) ? base_url("public/uploads/" . $details[0]['company_logo_large']) : base_url("public/uploads/default.png");
|
||||
$data['foot'] = "vijayabharathamprasurambookpublish";
|
||||
$data['btnClass'] = "btn-danger";
|
||||
|
||||
$successMessage = session()->getFlashdata('success');
|
||||
$validationErrors = session()->getFlashdata('error');
|
||||
// Load and display the form view with the above data
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Confirm Email Alert</title>
|
||||
@ -8,7 +9,7 @@
|
||||
<meta content="Coderthemes" name="author" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<link rel="shortcut icon" href="<?= base_url() . "public/uploads/default.ico" ?>">
|
||||
|
||||
<!-- App css -->
|
||||
<link href="<?= base_url() . "public/assets/css/bootstrap.min.css" ?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||
@ -21,10 +22,7 @@
|
||||
<link href="<?= base_url() . "public/assets/css/icons.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||
|
||||
</head>
|
||||
<style> .debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="loading">
|
||||
|
||||
<div class="account-pages mt-5 mb-5">
|
||||
@ -39,13 +37,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -107,7 +105,7 @@
|
||||
Please check for an email from company and click on the included link to
|
||||
reset your password. </p>
|
||||
|
||||
<a href="<?= base_url(); ?>" class="btn btn-block <?= esc($btnClass); ?> waves-effect waves-light mt-3">Back to Home</a>
|
||||
<a href="<?= base_url(); ?>" class="btn btn-block btn-primary waves-effect waves-light mt-3">Back to Home</a>
|
||||
<!-- <a href="<?= $link; ?>" class="btn btn-block btn-primary waves-effect waves-light mt-3" target="_blank">Alternative So Click here</a> -->
|
||||
</div>
|
||||
</div> <!-- end card-body -->
|
||||
@ -123,7 +121,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
@ -20,10 +20,7 @@
|
||||
<link href="<?= base_url() . "public/assets/css/icons.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||
|
||||
</head>
|
||||
<style> .debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="loading">
|
||||
|
||||
<div class="account-pages mt-5 mb-5">
|
||||
@ -38,13 +35,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -70,7 +67,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Log In </button>
|
||||
<button class="btn btn-primary btn-block" type="submit"> Log In </button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@ -95,7 +92,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
@ -3,14 +3,14 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><?= $tabtitle; ?></title>
|
||||
<title>BigBambooBookPublish | BBBP </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/uploads/default.ico" ?>"> -->
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<link rel="shortcut icon" href="<?= base_url() . "public/uploads/default.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" />
|
||||
@ -23,13 +23,9 @@
|
||||
</head>
|
||||
<style>
|
||||
.bgm {
|
||||
min-height: 100vh;
|
||||
min-height: 50vh;
|
||||
background: url("public/uploads/loginbgm2.jpeg") center;
|
||||
}
|
||||
.debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body class="loading">
|
||||
|
||||
@ -42,17 +38,17 @@
|
||||
|
||||
<div class="card-body p-4">
|
||||
<!-- <div class="bgm"></div> -->
|
||||
<div class="text-center m-auto">
|
||||
<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="<?= $company_logo_large; ?>" alt="" height="80">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="80">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="javascript: void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="80">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="80">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -94,7 +90,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Log In </button>
|
||||
<button class="btn btn-primary btn-block" type="submit"> Log In </button>
|
||||
</div>
|
||||
|
||||
|
||||
@ -121,7 +117,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<meta content="Coderthemes" name="author" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<link rel="shortcut icon" href="<?= base_url() . "public/uploads/default.ico" ?>">
|
||||
|
||||
<!-- App css -->
|
||||
<link href="<?= base_url() . "public/assets/css/bootstrap.min.css"?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||
@ -21,10 +21,7 @@
|
||||
<link href="<?= base_url() . "public/assets/css/icons.min.css"?>" rel="stylesheet" type="text/css" />
|
||||
|
||||
</head>
|
||||
<style> .debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="loading">
|
||||
|
||||
<div class="account-pages mt-5 mb-5">
|
||||
@ -39,13 +36,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span><br/>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
</span><br/>
|
||||
</a>
|
||||
</div>
|
||||
@ -95,7 +92,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
<meta content="Coderthemes" name="author" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<link rel="shortcut icon" href="<?= base_url() . "public/uploads/default.ico" ?>">
|
||||
<!-- App css -->
|
||||
<link href="<?= base_url() . "public/assets/css/bootstrap-creative.min.css" ?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||
<link href="<?= base_url() . "public/assets/css/app-creative.min.css" ?>" rel="stylesheet" type="text/css" id="app-default-stylesheet" />
|
||||
@ -21,10 +21,7 @@
|
||||
<link href="<?= base_url() . "public/assets/css/icons.min.css" ?>" rel="stylesheet" type="text/css" />
|
||||
|
||||
</head>
|
||||
<style> .debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<body class="loading">
|
||||
|
||||
<div class="account-pages mt-5 mb-5">
|
||||
@ -80,7 +77,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Reset Password </button>
|
||||
<button class="btn btn-primary btn-block" type="submit"> Reset Password </button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -105,7 +102,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user