mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 19:34:52 +00:00
Show the 'default' company logo (if configured) on the agent login page instead of the ITFlow text
This commit is contained in:
12
login.php
12
login.php
@@ -28,9 +28,13 @@ if ($failed_login_count >= 15) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Query Settings for "default" company (as companies are being removed shortly)
|
// Query Settings for "default" company (as companies are being removed shortly)
|
||||||
$sql_settings = mysqli_query($mysqli, "SELECT * FROM settings WHERE company_id = 1");
|
$sql_settings = mysqli_query($mysqli, "SELECT * FROM settings LEFT JOIN companies ON settings.company_id = companies.company_id WHERE settings.company_id = 1");
|
||||||
$row = mysqli_fetch_array($sql_settings);
|
$row = mysqli_fetch_array($sql_settings);
|
||||||
|
|
||||||
|
// Company info
|
||||||
|
$company_name = $row['company_name'];
|
||||||
|
$company_logo = $row['company_logo'];
|
||||||
|
|
||||||
// Mail
|
// Mail
|
||||||
$config_smtp_host = $row['config_smtp_host'];
|
$config_smtp_host = $row['config_smtp_host'];
|
||||||
$config_smtp_port = $row['config_smtp_port'];
|
$config_smtp_port = $row['config_smtp_port'];
|
||||||
@@ -219,7 +223,11 @@ if (isset($_POST['login'])) {
|
|||||||
<body class="hold-transition login-page">
|
<body class="hold-transition login-page">
|
||||||
<div class="login-box">
|
<div class="login-box">
|
||||||
<div class="login-logo">
|
<div class="login-logo">
|
||||||
<b>IT</b>Flow
|
<?php if(!empty($company_logo)) { ?>
|
||||||
|
<img height="110" width="380" class="img-fluid" src="<?php echo "uploads/settings/1/$company_logo"; ?>">
|
||||||
|
<?php } else { ?>
|
||||||
|
<b>IT</b>Flow
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- /.login-logo -->
|
<!-- /.login-logo -->
|
||||||
|
|||||||
Reference in New Issue
Block a user