mirror of https://github.com/itflow-org/itflow
Better logic handling for the default page redirects
This commit is contained in:
parent
c016b67c3a
commit
8c0d542d7d
|
|
@ -1,6 +1,6 @@
|
|||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar sidebar-dark-<?php echo nullable_htmlentities($config_theme); ?> d-print-none">
|
||||
<a class="brand-link pb-1 mt-1" href="../user/dashboard.php">
|
||||
<a class="brand-link pb-1 mt-1" href="../user/<?php echo $config_start_page ?>">
|
||||
<p class="h6">
|
||||
<i class="nav-icon fas fa-arrow-left ml-3 mr-2"></i>
|
||||
<span class="brand-text">
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ $config_imap_username = $row['config_imap_username'];
|
|||
$config_imap_password = $row['config_imap_password'];
|
||||
|
||||
// Defaults
|
||||
$config_start_page = $row['config_start_page'];
|
||||
$config_start_page = $row['config_start_page'] ?? 'clients.php';
|
||||
$config_default_transfer_from_account = intval($row['config_default_transfer_from_account']);
|
||||
$config_default_transfer_to_account = intval($row['config_default_transfer_to_account']);
|
||||
$config_default_payment_account = intval($row['config_default_payment_account']);
|
||||
|
|
|
|||
|
|
@ -2,12 +2,9 @@
|
|||
|
||||
if (file_exists("config.php")) {
|
||||
//require_once "includes/check_login.php";
|
||||
|
||||
if (isset($config_start_page)) {
|
||||
header("Location: /user/$config_start_page");
|
||||
} else {
|
||||
header("Location: /user");
|
||||
}
|
||||
|
||||
header("Location: /user/$config_start_page");
|
||||
|
||||
} else {
|
||||
header("Location: /setup");
|
||||
exit();
|
||||
|
|
|
|||
|
|
@ -15,10 +15,8 @@ require_once "includes/inc_all.php";
|
|||
<!-- Page Content -->
|
||||
<h1>Blank Page</h1>
|
||||
<hr>
|
||||
|
||||
<meta http-equiv="refresh" content="0;url=<?php echo $config_start_page; ?>">
|
||||
|
||||
<?php
|
||||
|
||||
if (isset($config_start_page)) { ?>
|
||||
<meta http-equiv="refresh" content="0;url=<?php echo $config_start_page; ?>">
|
||||
<?php }
|
||||
|
||||
require_once "../includes/footer.php";
|
||||
Loading…
Reference in New Issue