Skip to content
Snippets Groups Projects
Select Git revision
  • 74d351e9cd953dee861ff57a8d2bfc91c2dc02d1
  • main default protected
  • rewrite
  • production
4 results

dashboard.php

Blame
  • dashboard.php 386 B
    <?php
    
    if (empty($_SESSION)) {
        http_response_code(307);
        header('Location: /signin?callback=/dashboard');
        exit();
    }
    if (!$_SESSION['auth']) {
        http_response_code(307);
        header('Location: /signin?callback=/dashboard');
        exit;
    }
    
    $doc_title = get_display_name($user['id']) . "'s Dashboard" ;
    
    $output = $output .
        "<h1>Hey there ". $user['display_name'] ."!</h1>";