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

profile.php

Blame
  • profile.php 445 B
    
    <link rel="stylesheet" href="/styles/profiles.css" />
    
    <?php
    
    if (!$_SESSION['auth']) {
        header('Location: /signin?callback=/profile');
        exit();
    }
    
    $profile = db_execute("SELECT * FROM `profiles` WHERE id = ? LIMIT 1", [$user['id']]);
    
    if (empty($profile)) {
        $profile = [
                "id" => "9999999",
                "public_display_name" => false,
                "public_avatar" => false,
                "description" => null,
        ];
    }
    
    ?>