<?php
// In auth.php, find ALL instances of:
// header('Location: dashboard.php');

// And replace with:
if(isset($user) && $user['role'] == 'admin') {
    header('Location: admin/dashboard.php');
} elseif(isset($user) && $user['role'] == 'instructor') {
    header('Location: admin/dashboard.php');
} else {
    header('Location: dashboard.php');
}
exit;