13 lines
291 B
PHP
13 lines
291 B
PHP
<?php
|
|
// phpcs:ignoreFile
|
|
|
|
require_once __DIR__ . '/grower-session.php';
|
|
|
|
$requiredGrowerId = isset($_SESSION['growerid']) ? $_SESSION['growerid'] : null;
|
|
|
|
if ($requiredGrowerId === null) {
|
|
header('Location: /grower-login.php');
|
|
exit();
|
|
}
|
|
|
|
require __DIR__ . '/growers/dashboard.php'; |