FIX_Template auth pages only : ps
This commit is contained in:
parent
9eeb6a1ec9
commit
5484f60c53
@ -10,6 +10,9 @@ 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');
|
||||
@ -20,6 +23,28 @@ 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);
|
||||
}
|
||||
|
||||
@ -125,7 +150,7 @@ class Authentication extends BaseController
|
||||
|
||||
// Compose the email
|
||||
$email->setTo($recipient);
|
||||
$email->setFrom('no-reply@tripapprovaltool.com', 'BB-Donor');
|
||||
$email->setFrom('no-reply@tripapprovaltool.com', 'VB-Books');
|
||||
$email->setSubject('Email Notification');
|
||||
// $email->setMessage('This is a notification email from CodeIgniter.');
|
||||
$email->setMessage($content);
|
||||
@ -176,6 +201,26 @@ 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);
|
||||
}
|
||||
}
|
||||
@ -212,6 +257,27 @@ 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
|
||||
@ -254,6 +320,26 @@ 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);
|
||||
}
|
||||
|
||||
@ -275,6 +361,9 @@ 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
|
||||
|
||||
@ -323,7 +323,10 @@ public function getSubscriptionDetailsBySchemeName($selectedScheme, $downloadTyp
|
||||
|
||||
$query = $builder->get();
|
||||
$result = $query->getResultArray();
|
||||
//print_r($result);die;
|
||||
// $lastQuery = $this->db->getLastQuery();
|
||||
// $finalQueryString = $lastQuery->getQuery();
|
||||
// echo $finalQueryString;
|
||||
// print_r($result);die;
|
||||
// Initialize the customerDetails array and a set to track processed customer IDs
|
||||
$customerDetails = [];
|
||||
$processedCustomerIDs = [];
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Confirm Email Alert</title>
|
||||
@ -9,7 +8,7 @@
|
||||
<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; ?>">
|
||||
|
||||
<!-- App css -->
|
||||
<link href="<?= base_url() . "public/assets/css/bootstrap.min.css" ?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||
@ -22,7 +21,10 @@
|
||||
<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">
|
||||
@ -37,13 +39,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -105,7 +107,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 btn-primary waves-effect waves-light mt-3">Back to Home</a>
|
||||
<a href="<?= base_url(); ?>" class="btn btn-block <?= esc($btnClass); ?> 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 -->
|
||||
@ -121,7 +123,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
@ -20,7 +20,10 @@
|
||||
<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">
|
||||
@ -35,13 +38,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large ?>" alt="" height="55">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -67,7 +70,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn btn-primary btn-block" type="submit"> Log In </button>
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Log In </button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@ -92,7 +95,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
</footer>
|
||||
|
||||
|
||||
|
||||
@ -3,14 +3,14 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>BigBambooBookPublish | BBBP </title>
|
||||
<title><?= $tabtitle; ?></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="<?= base_url() . "public/uploads/default.ico" ?>"> -->
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<!-- 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" />
|
||||
@ -26,6 +26,10 @@
|
||||
min-height: 100vh;
|
||||
background: url("public/uploads/loginbgm2.jpeg") center;
|
||||
}
|
||||
.debug-bar-ndisplay {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body class="loading">
|
||||
|
||||
@ -38,17 +42,17 @@
|
||||
|
||||
<div class="card-body p-4">
|
||||
<!-- <div class="bgm"></div> -->
|
||||
<div class="text-center w-75 m-auto">
|
||||
<div class="text-center 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/uploads/default.png" ?>" alt="" height="80">
|
||||
<img src="<?= $company_logo_large; ?>" 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/uploads/default.png" ?>" alt="" height="80">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="80">
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
@ -90,7 +94,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn btn-primary btn-block" type="submit"> Log In </button>
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Log In </button>
|
||||
</div>
|
||||
|
||||
|
||||
@ -117,7 +121,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</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="<?= base_url() . "public/uploads/default.ico" ?>">
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
|
||||
<!-- App css -->
|
||||
<link href="<?= base_url() . "public/assets/css/bootstrap.min.css"?>" rel="stylesheet" type="text/css" id="bs-default-stylesheet" />
|
||||
@ -21,7 +21,10 @@
|
||||
<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">
|
||||
@ -36,13 +39,13 @@
|
||||
<div class="auth-logo">
|
||||
<a href="javascript:void(0);" class="logo logo-dark text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
</span><br/>
|
||||
</a>
|
||||
|
||||
<a href="javascript:void(0);" class="logo logo-light text-center">
|
||||
<span class="logo-lg">
|
||||
<img src="<?= base_url() . "public/uploads/default.png" ?>" alt="" height="55">
|
||||
<img src="<?= $company_logo_large; ?>" alt="" height="55">
|
||||
</span><br/>
|
||||
</a>
|
||||
</div>
|
||||
@ -92,7 +95,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</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="<?= base_url() . "public/uploads/default.ico" ?>">
|
||||
<link rel="shortcut icon" href="<?= $favicon; ?>">
|
||||
<!-- 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,7 +21,10 @@
|
||||
<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">
|
||||
@ -77,7 +80,7 @@
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn btn-primary btn-block" type="submit"> Reset Password </button>
|
||||
<button class="btn <?= esc($btnClass); ?> btn-block" type="submit"> Reset Password </button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@ -102,7 +105,7 @@
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
<p> <?= date('Y') ?> © <?= "bigbamboobookpublish"; ?>.</p>
|
||||
<p> <?= date('Y') ?> © <?= $foot; ?>.</p>
|
||||
</footer>
|
||||
|
||||
<!-- Vendor js -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user