diff --git a/webgis-kemiskinan/admin/login.php b/webgis-kemiskinan/admin/login.php index fd4eaa1..498bc0d 100644 --- a/webgis-kemiskinan/admin/login.php +++ b/webgis-kemiskinan/admin/login.php @@ -1,3 +1,23 @@ + 'index.php', + 'pengurus' => 'index.php', + 'pimpinan' => 'index.php', + 'masyarakat' => '../index.html', + ]; + header('Location: ' . ($redirect[$result['role']] ?? 'index.php')); + exit; + } + $error = $result['message']; +} +?> @@ -29,26 +49,6 @@ - 'index.php', - 'pengurus' => 'index.php', - 'pimpinan' => 'index.php', - 'masyarakat' => '../index.html', - ]; - header('Location: ' . ($redirect[$result['role']] ?? 'index.php')); - exit; - } - $error = $result['message']; -} -?>